plan-manager-client-dev 0.2.186__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.
- plan_manager_client/__init__.py +10 -0
- plan_manager_client/_version.py +58 -0
- plan_manager_client/authoring_diagnostics.py +137 -0
- plan_manager_client/client.py +75 -0
- plan_manager_client/config.py +320 -0
- plan_manager_client/delivery/__init__.py +7 -0
- plan_manager_client/delivery/archive.py +140 -0
- plan_manager_client/delivery/atomicity.py +93 -0
- plan_manager_client/delivery/commit.py +113 -0
- plan_manager_client/delivery/destination.py +140 -0
- plan_manager_client/delivery/provenance.py +88 -0
- plan_manager_client/delivery/upload.py +118 -0
- plan_manager_client/dispatch.py +380 -0
- plan_manager_client/export_fetch_chunks.py +166 -0
- plan_manager_client/export_fetch_request.py +88 -0
- plan_manager_client/export_fetch_unpack.py +149 -0
- plan_manager_client/export_fetch_verify.py +101 -0
- plan_manager_client/facade_agent_config_mixin.py +224 -0
- plan_manager_client/facade_bug_project_mixin.py +202 -0
- plan_manager_client/facade_context_gate_mixin.py +303 -0
- plan_manager_client/facade_entity_common_mixin.py +38 -0
- plan_manager_client/facade_hrs_file_mixin.py +206 -0
- plan_manager_client/facade_plan_hrs_mixin.py +200 -0
- plan_manager_client/facade_runtime_mixin/__init__.py +11 -0
- plan_manager_client/facade_runtime_mixin/authoring_part.py +442 -0
- plan_manager_client/facade_runtime_mixin/facade.py +380 -0
- plan_manager_client/facade_runtime_mixin/overlay_part.py +192 -0
- plan_manager_client/facade_step_graph_mixin.py +158 -0
- plan_manager_client/id_rule.py +115 -0
- plan_manager_client/info_walker.py +133 -0
- plan_manager_client/scenario_runtime.py +65 -0
- plan_manager_client/server_api.py +427 -0
- plan_manager_client/server_api_mutating.py +105 -0
- plan_manager_client_dev-0.2.186.dist-info/METADATA +10 -0
- plan_manager_client_dev-0.2.186.dist-info/RECORD +37 -0
- plan_manager_client_dev-0.2.186.dist-info/WHEEL +5 -0
- plan_manager_client_dev-0.2.186.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
"""Module for split package."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from typing import Any
|
|
5
|
+
from .overlay_part import RuntimeOverlayPart
|
|
6
|
+
from .authoring_part import ABSENT, RuntimeAuthoringPart
|
|
7
|
+
|
|
8
|
+
class RuntimeCommandsMixin:
|
|
9
|
+
"""One method per plan_manager command in the runtime work-item family.
|
|
10
|
+
|
|
11
|
+
Assumes it is mixed into a class that also inherits
|
|
12
|
+
plan_manager_client.dispatch._CommandDispatchMixin, which supplies the
|
|
13
|
+
coroutine async def _call(self, command: str, params: dict[str, Any] | None = None) -> Any
|
|
14
|
+
used by every method below."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, *args, **kwargs):
|
|
17
|
+
super().__init__(*args, **kwargs)
|
|
18
|
+
self.runtimeOverlayPart = RuntimeOverlayPart(self)
|
|
19
|
+
self.runtimeAuthoringPart = RuntimeAuthoringPart(self)
|
|
20
|
+
|
|
21
|
+
async def todo_create(self, **params: Any) -> Any:
|
|
22
|
+
return await self.runtimeOverlayPart.todo_create(**params)
|
|
23
|
+
|
|
24
|
+
async def todo_get(self, **params: Any) -> Any:
|
|
25
|
+
return await self.runtimeOverlayPart.todo_get(**params)
|
|
26
|
+
|
|
27
|
+
async def todo_list(self, **params: Any) -> Any:
|
|
28
|
+
return await self.runtimeOverlayPart.todo_list(**params)
|
|
29
|
+
|
|
30
|
+
async def todo_update(self, **params: Any) -> Any:
|
|
31
|
+
return await self.runtimeOverlayPart.todo_update(**params)
|
|
32
|
+
|
|
33
|
+
async def todo_reanchor(self, **params: Any) -> Any:
|
|
34
|
+
return await self.runtimeOverlayPart.todo_reanchor(**params)
|
|
35
|
+
|
|
36
|
+
async def todo_resolve(self, **params: Any) -> Any:
|
|
37
|
+
return await self.runtimeOverlayPart.todo_resolve(**params)
|
|
38
|
+
|
|
39
|
+
async def todo_close(self, **params: Any) -> Any:
|
|
40
|
+
return await self.runtimeOverlayPart.todo_close(**params)
|
|
41
|
+
|
|
42
|
+
async def todo_reopen(self, **params: Any) -> Any:
|
|
43
|
+
return await self.runtimeOverlayPart.todo_reopen(**params)
|
|
44
|
+
|
|
45
|
+
async def todo_delete(self, **params: Any) -> Any:
|
|
46
|
+
return await self.runtimeOverlayPart.todo_delete(**params)
|
|
47
|
+
|
|
48
|
+
async def todo_link_add(self, **params: Any) -> Any:
|
|
49
|
+
return await self.runtimeOverlayPart.todo_link_add(**params)
|
|
50
|
+
|
|
51
|
+
async def todo_link_remove(self, **params: Any) -> Any:
|
|
52
|
+
return await self.runtimeOverlayPart.todo_link_remove(**params)
|
|
53
|
+
|
|
54
|
+
async def todo_link_get(self, **params: Any) -> Any:
|
|
55
|
+
return await self.runtimeOverlayPart.todo_link_get(**params)
|
|
56
|
+
|
|
57
|
+
async def todo_link_list(self, **params: Any) -> Any:
|
|
58
|
+
return await self.runtimeOverlayPart.todo_link_list(**params)
|
|
59
|
+
|
|
60
|
+
async def todo_link_delete(self, **params: Any) -> Any:
|
|
61
|
+
return await self.runtimeOverlayPart.todo_link_delete(**params)
|
|
62
|
+
|
|
63
|
+
async def todo_queue(self, **params: Any) -> Any:
|
|
64
|
+
return await self.runtimeOverlayPart.todo_queue(**params)
|
|
65
|
+
|
|
66
|
+
async def wish_create(self, **params: Any) -> Any:
|
|
67
|
+
return await self.runtimeOverlayPart.wish_create(**params)
|
|
68
|
+
|
|
69
|
+
async def wish_get(self, **params: Any) -> Any:
|
|
70
|
+
return await self.runtimeOverlayPart.wish_get(**params)
|
|
71
|
+
|
|
72
|
+
async def wish_list(self, **params: Any) -> Any:
|
|
73
|
+
return await self.runtimeOverlayPart.wish_list(**params)
|
|
74
|
+
|
|
75
|
+
async def wish_update(self, **params: Any) -> Any:
|
|
76
|
+
return await self.runtimeOverlayPart.wish_update(**params)
|
|
77
|
+
|
|
78
|
+
async def wish_reanchor(self, **params: Any) -> Any:
|
|
79
|
+
return await self.runtimeOverlayPart.wish_reanchor(**params)
|
|
80
|
+
|
|
81
|
+
async def wish_delete(self, **params: Any) -> Any:
|
|
82
|
+
return await self.runtimeOverlayPart.wish_delete(**params)
|
|
83
|
+
|
|
84
|
+
async def calendar_entry_create(self, **params: Any) -> Any:
|
|
85
|
+
return await self.runtimeOverlayPart.calendar_entry_create(**params)
|
|
86
|
+
|
|
87
|
+
async def calendar_entry_get(self, **params: Any) -> Any:
|
|
88
|
+
return await self.runtimeOverlayPart.calendar_entry_get(**params)
|
|
89
|
+
|
|
90
|
+
async def calendar_entry_list(self, **params: Any) -> Any:
|
|
91
|
+
return await self.runtimeOverlayPart.calendar_entry_list(**params)
|
|
92
|
+
|
|
93
|
+
async def calendar_entry_update(self, **params: Any) -> Any:
|
|
94
|
+
return await self.runtimeOverlayPart.calendar_entry_update(**params)
|
|
95
|
+
|
|
96
|
+
async def calendar_entry_reanchor(self, **params: Any) -> Any:
|
|
97
|
+
return await self.runtimeOverlayPart.calendar_entry_reanchor(**params)
|
|
98
|
+
|
|
99
|
+
async def calendar_entry_delete(self, **params: Any) -> Any:
|
|
100
|
+
return await self.runtimeOverlayPart.calendar_entry_delete(**params)
|
|
101
|
+
|
|
102
|
+
async def runtime_link_add(self, **params: Any) -> Any:
|
|
103
|
+
return await self.runtimeOverlayPart.runtime_link_add(**params)
|
|
104
|
+
|
|
105
|
+
async def runtime_link_list(self, **params: Any) -> Any:
|
|
106
|
+
return await self.runtimeOverlayPart.runtime_link_list(**params)
|
|
107
|
+
|
|
108
|
+
async def runtime_link_remove(self, **params: Any) -> Any:
|
|
109
|
+
return await self.runtimeOverlayPart.runtime_link_remove(**params)
|
|
110
|
+
|
|
111
|
+
async def runtime_link_get(self, **params: Any) -> Any:
|
|
112
|
+
return await self.runtimeOverlayPart.runtime_link_get(**params)
|
|
113
|
+
|
|
114
|
+
async def runtime_link_delete(self, **params: Any) -> Any:
|
|
115
|
+
return await self.runtimeOverlayPart.runtime_link_delete(**params)
|
|
116
|
+
|
|
117
|
+
async def runtime_overlay_export(self, **params: Any) -> Any:
|
|
118
|
+
return await self.runtimeOverlayPart.runtime_overlay_export(**params)
|
|
119
|
+
|
|
120
|
+
async def runtime_overlay_import(self, **params: Any) -> Any:
|
|
121
|
+
return await self.runtimeOverlayPart.runtime_overlay_import(**params)
|
|
122
|
+
|
|
123
|
+
async def comment_add(self, **params: Any) -> Any:
|
|
124
|
+
return await self.runtimeOverlayPart.comment_add(**params)
|
|
125
|
+
|
|
126
|
+
async def comment_get(self, **params: Any) -> Any:
|
|
127
|
+
return await self.runtimeOverlayPart.comment_get(**params)
|
|
128
|
+
|
|
129
|
+
async def comment_list(self, **params: Any) -> Any:
|
|
130
|
+
return await self.runtimeOverlayPart.comment_list(**params)
|
|
131
|
+
|
|
132
|
+
async def comment_supersede(self, **params: Any) -> Any:
|
|
133
|
+
return await self.runtimeOverlayPart.comment_supersede(**params)
|
|
134
|
+
|
|
135
|
+
async def comment_resolve(self, **params: Any) -> Any:
|
|
136
|
+
return await self.runtimeOverlayPart.comment_resolve(**params)
|
|
137
|
+
|
|
138
|
+
async def comment_update(self, **params: Any) -> Any:
|
|
139
|
+
return await self.runtimeOverlayPart.comment_update(**params)
|
|
140
|
+
|
|
141
|
+
async def comment_reanchor(self, **params: Any) -> Any:
|
|
142
|
+
return await self.runtimeOverlayPart.comment_reanchor(**params)
|
|
143
|
+
|
|
144
|
+
async def comment_delete(self, **params: Any) -> Any:
|
|
145
|
+
return await self.runtimeOverlayPart.comment_delete(**params)
|
|
146
|
+
|
|
147
|
+
async def authoring_usage_get(self, step: str, include_descendants: bool, plan: str | None = None) -> Any:
|
|
148
|
+
return await self.runtimeAuthoringPart.authoring_usage_get(
|
|
149
|
+
step, include_descendants, plan=plan
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
async def model_binding_set(self, **params: Any) -> Any:
|
|
153
|
+
return await self.runtimeAuthoringPart.model_binding_set(**params)
|
|
154
|
+
|
|
155
|
+
async def model_binding_get(self, **params: Any) -> Any:
|
|
156
|
+
return await self.runtimeAuthoringPart.model_binding_get(**params)
|
|
157
|
+
|
|
158
|
+
async def model_binding_list(self, **params: Any) -> Any:
|
|
159
|
+
return await self.runtimeAuthoringPart.model_binding_list(**params)
|
|
160
|
+
|
|
161
|
+
async def model_binding_update(self, **params: Any) -> Any:
|
|
162
|
+
return await self.runtimeAuthoringPart.model_binding_update(**params)
|
|
163
|
+
|
|
164
|
+
async def model_binding_remove(self, **params: Any) -> Any:
|
|
165
|
+
return await self.runtimeAuthoringPart.model_binding_remove(**params)
|
|
166
|
+
|
|
167
|
+
async def model_binding_resolve(self, **params: Any) -> Any:
|
|
168
|
+
return await self.runtimeAuthoringPart.model_binding_resolve(**params)
|
|
169
|
+
|
|
170
|
+
async def authoring_session_create(
|
|
171
|
+
self,
|
|
172
|
+
plan: str,
|
|
173
|
+
common_prompt_document_id: str | None = None,
|
|
174
|
+
executor_prompt_document_ids: dict[str, str] | None = None,
|
|
175
|
+
) -> Any:
|
|
176
|
+
return await self.runtimeAuthoringPart.authoring_session_create(
|
|
177
|
+
plan, common_prompt_document_id, executor_prompt_document_ids
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
async def authoring_session_get(self, session_id: Any = ABSENT, **unknown: Any) -> Any:
|
|
181
|
+
return await self.runtimeAuthoringPart.authoring_session_get(session_id, **unknown)
|
|
182
|
+
|
|
183
|
+
async def authoring_session_list(self, plan: Any = ABSENT, include_deleted: Any = ABSENT, limit: Any = ABSENT, offset: Any = ABSENT, **unknown: Any) -> Any:
|
|
184
|
+
return await self.runtimeAuthoringPart.authoring_session_list(plan, include_deleted, limit, offset, **unknown)
|
|
185
|
+
|
|
186
|
+
async def authoring_session_update(
|
|
187
|
+
self,
|
|
188
|
+
session_id: Any = ABSENT,
|
|
189
|
+
changed_by: Any = ABSENT,
|
|
190
|
+
common_prompt_document_id: Any = ABSENT,
|
|
191
|
+
executor_prompt_document_ids: Any = ABSENT,
|
|
192
|
+
**unknown: Any,
|
|
193
|
+
) -> Any:
|
|
194
|
+
return await self.runtimeAuthoringPart.authoring_session_update(
|
|
195
|
+
session_id, changed_by, common_prompt_document_id, executor_prompt_document_ids, **unknown
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
async def authoring_session_delete(
|
|
199
|
+
self,
|
|
200
|
+
session_id: Any = ABSENT,
|
|
201
|
+
changed_by: Any = ABSENT,
|
|
202
|
+
hard: bool = False,
|
|
203
|
+
recursive: bool = False,
|
|
204
|
+
dry_run: bool = False,
|
|
205
|
+
drop_dialogue: Any = ABSENT,
|
|
206
|
+
**unknown: Any,
|
|
207
|
+
) -> Any:
|
|
208
|
+
return await self.runtimeAuthoringPart.authoring_session_delete(
|
|
209
|
+
session_id, changed_by, hard=hard, recursive=recursive, dry_run=dry_run, drop_dialogue=drop_dialogue, **unknown
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
async def authoring_job_start(
|
|
213
|
+
self,
|
|
214
|
+
plan: str,
|
|
215
|
+
step: str,
|
|
216
|
+
session_id: str,
|
|
217
|
+
orchestrator_model_id: str | None = None,
|
|
218
|
+
) -> Any:
|
|
219
|
+
return await self.runtimeAuthoringPart.authoring_job_start(
|
|
220
|
+
plan, step, session_id, orchestrator_model_id
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
async def authoring_job_status(
|
|
224
|
+
self, plan: str, step: str, session_id: str
|
|
225
|
+
) -> Any:
|
|
226
|
+
return await self.runtimeAuthoringPart.authoring_job_status(
|
|
227
|
+
plan, step, session_id
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
async def authoring_job_resume(
|
|
231
|
+
self,
|
|
232
|
+
plan: str,
|
|
233
|
+
step: str,
|
|
234
|
+
session_id: str,
|
|
235
|
+
answer: str,
|
|
236
|
+
orchestrator_model_id: str | None = None,
|
|
237
|
+
) -> Any:
|
|
238
|
+
return await self.runtimeAuthoringPart.authoring_job_resume(
|
|
239
|
+
plan, step, session_id, answer, orchestrator_model_id
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
async def authoring_job_stop(self, plan: str, step: str, session_id: str) -> Any:
|
|
243
|
+
return await self.runtimeAuthoringPart.authoring_job_stop(
|
|
244
|
+
plan, step, session_id
|
|
245
|
+
)
|
|
246
|
+
|
|
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
|
+
|
|
250
|
+
async def authoring_job_get(self, job_id: Any = ABSENT, **unknown: Any) -> Any:
|
|
251
|
+
return await self.runtimeAuthoringPart.authoring_job_get(job_id, **unknown)
|
|
252
|
+
|
|
253
|
+
async def authoring_job_update(self, job_id: Any = ABSENT, changed_by: Any = ABSENT, state: str | None = None, result: dict[str, Any] | None = None, question: str | None = None, answer: str | None = None, error_reason: str | None = None, **unknown: Any) -> Any:
|
|
254
|
+
return await self.runtimeAuthoringPart.authoring_job_update(job_id, changed_by, state=state, result=result, question=question, answer=answer, error_reason=error_reason, **unknown)
|
|
255
|
+
|
|
256
|
+
async def authoring_child_list(self, step: str, plan: str | None = None) -> Any:
|
|
257
|
+
return await self.runtimeAuthoringPart.authoring_child_list(step, plan=plan)
|
|
258
|
+
|
|
259
|
+
async def authoring_context_read(self, section: Any = ABSENT, ids: Any = ABSENT, offset: Any = ABSENT, limit: Any = ABSENT, **unknown: Any) -> Any:
|
|
260
|
+
return await self.runtimeAuthoringPart.authoring_context_read(section, ids, offset, limit, **unknown)
|
|
261
|
+
|
|
262
|
+
async def authoring_child_write(self, children: Any = ABSENT, **unknown: Any) -> Any:
|
|
263
|
+
return await self.runtimeAuthoringPart.authoring_child_write(children, **unknown)
|
|
264
|
+
|
|
265
|
+
async def authoring_child_start(self, steps: Any = ABSENT, restart: Any = ABSENT, **unknown: Any) -> Any:
|
|
266
|
+
return await self.runtimeAuthoringPart.authoring_child_start(steps, restart, **unknown)
|
|
267
|
+
|
|
268
|
+
async def authoring_child_status(self, steps: Any = ABSENT, **unknown: Any) -> Any:
|
|
269
|
+
return await self.runtimeAuthoringPart.authoring_child_status(steps, **unknown)
|
|
270
|
+
|
|
271
|
+
async def authoring_child_wait(self, until: Any = ABSENT, timeout_seconds: Any = ABSENT, **unknown: Any) -> Any:
|
|
272
|
+
return await self.runtimeAuthoringPart.authoring_child_wait(until, timeout_seconds, **unknown)
|
|
273
|
+
|
|
274
|
+
async def authoring_child_answer(self, answers: Any = ABSENT, **unknown: Any) -> Any:
|
|
275
|
+
return await self.runtimeAuthoringPart.authoring_child_answer(answers, **unknown)
|
|
276
|
+
|
|
277
|
+
async def authoring_step_create(self, **params: Any) -> Any:
|
|
278
|
+
return await self.runtimeAuthoringPart.authoring_step_create(**params)
|
|
279
|
+
|
|
280
|
+
async def authoring_step_update(self, **params: Any) -> Any:
|
|
281
|
+
return await self.runtimeAuthoringPart.authoring_step_update(**params)
|
|
282
|
+
|
|
283
|
+
async def authoring_step_delete(self, **params: Any) -> Any:
|
|
284
|
+
return await self.runtimeAuthoringPart.authoring_step_delete(**params)
|
|
285
|
+
|
|
286
|
+
async def authoring_step_submit(self, step_payload: dict[str, Any]) -> Any:
|
|
287
|
+
return await self.runtimeAuthoringPart.authoring_step_submit(step_payload)
|
|
288
|
+
|
|
289
|
+
async def authoring_escalate(self, question: str) -> Any:
|
|
290
|
+
return await self.runtimeAuthoringPart.authoring_escalate(question)
|
|
291
|
+
|
|
292
|
+
async def execution_attempt_create(self, **params: Any) -> Any:
|
|
293
|
+
return await self.runtimeAuthoringPart.execution_attempt_create(**params)
|
|
294
|
+
|
|
295
|
+
async def execution_attempt_report(self, **params: Any) -> Any:
|
|
296
|
+
return await self.runtimeAuthoringPart.execution_attempt_report(**params)
|
|
297
|
+
|
|
298
|
+
async def execution_attempt_get(self, **params: Any) -> Any:
|
|
299
|
+
return await self.runtimeAuthoringPart.execution_attempt_get(**params)
|
|
300
|
+
|
|
301
|
+
async def execution_attempt_list(self, **params: Any) -> Any:
|
|
302
|
+
return await self.runtimeAuthoringPart.execution_attempt_list(**params)
|
|
303
|
+
|
|
304
|
+
async def execution_attempt_supersede(self, **params: Any) -> Any:
|
|
305
|
+
return await self.runtimeAuthoringPart.execution_attempt_supersede(**params)
|
|
306
|
+
|
|
307
|
+
async def execution_attempt_delete(self, **params: Any) -> Any:
|
|
308
|
+
return await self.runtimeAuthoringPart.execution_attempt_delete(**params)
|
|
309
|
+
|
|
310
|
+
async def review_result_create(self, **params: Any) -> Any:
|
|
311
|
+
return await self.runtimeAuthoringPart.review_result_create(**params)
|
|
312
|
+
|
|
313
|
+
async def review_result_get(self, **params: Any) -> Any:
|
|
314
|
+
return await self.runtimeAuthoringPart.review_result_get(**params)
|
|
315
|
+
|
|
316
|
+
async def review_result_list(self, **params: Any) -> Any:
|
|
317
|
+
return await self.runtimeAuthoringPart.review_result_list(**params)
|
|
318
|
+
|
|
319
|
+
async def review_result_supersede(self, **params: Any) -> Any:
|
|
320
|
+
return await self.runtimeAuthoringPart.review_result_supersede(**params)
|
|
321
|
+
|
|
322
|
+
async def review_result_delete(self, **params: Any) -> Any:
|
|
323
|
+
return await self.runtimeAuthoringPart.review_result_delete(**params)
|
|
324
|
+
|
|
325
|
+
async def escalation_create(self, **params: Any) -> Any:
|
|
326
|
+
return await self.runtimeAuthoringPart.escalation_create(**params)
|
|
327
|
+
|
|
328
|
+
async def escalation_get(self, **params: Any) -> Any:
|
|
329
|
+
return await self.runtimeAuthoringPart.escalation_get(**params)
|
|
330
|
+
|
|
331
|
+
async def escalation_list(self, **params: Any) -> Any:
|
|
332
|
+
return await self.runtimeAuthoringPart.escalation_list(**params)
|
|
333
|
+
|
|
334
|
+
async def escalation_resolve(self, **params: Any) -> Any:
|
|
335
|
+
return await self.runtimeAuthoringPart.escalation_resolve(**params)
|
|
336
|
+
|
|
337
|
+
async def escalation_reanchor(self, **params: Any) -> Any:
|
|
338
|
+
return await self.runtimeAuthoringPart.escalation_reanchor(**params)
|
|
339
|
+
|
|
340
|
+
async def escalation_delete(self, **params: Any) -> Any:
|
|
341
|
+
return await self.runtimeAuthoringPart.escalation_delete(**params)
|
|
342
|
+
|
|
343
|
+
async def escalation_update(self, **params: Any) -> Any:
|
|
344
|
+
return await self.runtimeAuthoringPart.escalation_update(**params)
|
|
345
|
+
|
|
346
|
+
async def escalation_policy_create(self, **params: Any) -> Any:
|
|
347
|
+
return await self.runtimeAuthoringPart.escalation_policy_create(**params)
|
|
348
|
+
|
|
349
|
+
async def escalation_policy_get(self, **params: Any) -> Any:
|
|
350
|
+
return await self.runtimeAuthoringPart.escalation_policy_get(**params)
|
|
351
|
+
|
|
352
|
+
async def escalation_policy_list(self, **params: Any) -> Any:
|
|
353
|
+
return await self.runtimeAuthoringPart.escalation_policy_list(**params)
|
|
354
|
+
|
|
355
|
+
async def escalation_policy_update(self, **params: Any) -> Any:
|
|
356
|
+
return await self.runtimeAuthoringPart.escalation_policy_update(**params)
|
|
357
|
+
|
|
358
|
+
async def escalation_policy_delete(self, **params: Any) -> Any:
|
|
359
|
+
return await self.runtimeAuthoringPart.escalation_policy_delete(**params)
|
|
360
|
+
|
|
361
|
+
async def escalation_policy_get_active(self, **params: Any) -> Any:
|
|
362
|
+
return await self.runtimeAuthoringPart.escalation_policy_get_active(**params)
|
|
363
|
+
|
|
364
|
+
async def answer_envelope_create(self, **params: Any) -> Any:
|
|
365
|
+
return await self.runtimeAuthoringPart.answer_envelope_create(**params)
|
|
366
|
+
|
|
367
|
+
async def answer_envelope_get(self, **params: Any) -> Any:
|
|
368
|
+
return await self.runtimeAuthoringPart.answer_envelope_get(**params)
|
|
369
|
+
|
|
370
|
+
async def answer_envelope_list(self, **params: Any) -> Any:
|
|
371
|
+
return await self.runtimeAuthoringPart.answer_envelope_list(**params)
|
|
372
|
+
|
|
373
|
+
async def answer_envelope_update(self, **params: Any) -> Any:
|
|
374
|
+
return await self.runtimeAuthoringPart.answer_envelope_update(**params)
|
|
375
|
+
|
|
376
|
+
async def answer_envelope_delete(self, **params: Any) -> Any:
|
|
377
|
+
return await self.runtimeAuthoringPart.answer_envelope_delete(**params)
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"""Module for split package."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
class RuntimeOverlayPart:
|
|
7
|
+
"""One method per plan_manager command in the runtime work-item family.
|
|
8
|
+
|
|
9
|
+
Assumes it is mixed into a class that also inherits
|
|
10
|
+
plan_manager_client.dispatch._CommandDispatchMixin, which supplies the
|
|
11
|
+
coroutine async def _call(self, command: str, params: dict[str, Any] | None = None) -> Any
|
|
12
|
+
used by every method below."""
|
|
13
|
+
|
|
14
|
+
def __init__(self, owner):
|
|
15
|
+
self._owner = owner
|
|
16
|
+
|
|
17
|
+
def __getattr__(self, name):
|
|
18
|
+
"""Resolve names this part does not define on the owning facade."""
|
|
19
|
+
if name == "_owner":
|
|
20
|
+
raise AttributeError(name)
|
|
21
|
+
return getattr(self._owner, name)
|
|
22
|
+
|
|
23
|
+
async def todo_create(self, **params: Any) -> Any:
|
|
24
|
+
"""Create a new TODO work item with a primary anchor."""
|
|
25
|
+
return await self._call("todo_create", params)
|
|
26
|
+
|
|
27
|
+
async def todo_get(self, **params: Any) -> Any:
|
|
28
|
+
"""Fetch a single TODO work item by identifier."""
|
|
29
|
+
return await self._call("todo_get", params)
|
|
30
|
+
|
|
31
|
+
async def todo_list(self, **params: Any) -> Any:
|
|
32
|
+
"""List TODO work items with uniform filtering and pagination."""
|
|
33
|
+
return await self._call("todo_list", params)
|
|
34
|
+
|
|
35
|
+
async def todo_update(self, **params: Any) -> Any:
|
|
36
|
+
"""Update mutable fields of an existing TODO work item."""
|
|
37
|
+
return await self._call("todo_update", params)
|
|
38
|
+
|
|
39
|
+
async def todo_reanchor(self, **params: Any) -> Any:
|
|
40
|
+
"""Move a TODO item's primary anchor to a new target, with an audit record."""
|
|
41
|
+
return await self._call("todo_reanchor", params)
|
|
42
|
+
|
|
43
|
+
async def todo_resolve(self, **params: Any) -> Any:
|
|
44
|
+
"""Mark a TODO work item resolved."""
|
|
45
|
+
return await self._call("todo_resolve", params)
|
|
46
|
+
|
|
47
|
+
async def todo_close(self, **params: Any) -> Any:
|
|
48
|
+
"""Mark a TODO work item closed."""
|
|
49
|
+
return await self._call("todo_close", params)
|
|
50
|
+
|
|
51
|
+
async def todo_reopen(self, **params: Any) -> Any:
|
|
52
|
+
"""Reopen a TODO work item from a terminal state."""
|
|
53
|
+
return await self._call("todo_reopen", params)
|
|
54
|
+
|
|
55
|
+
async def todo_delete(self, **params: Any) -> Any:
|
|
56
|
+
"""Delete a TODO work item: soft by default, hard=true gated by the inbound-reference integrity check, dry_run previews."""
|
|
57
|
+
return await self._call("todo_delete", params)
|
|
58
|
+
|
|
59
|
+
async def todo_link_add(self, **params: Any) -> Any:
|
|
60
|
+
"""Create a typed link between two TODO work items."""
|
|
61
|
+
return await self._call("todo_link_add", params)
|
|
62
|
+
|
|
63
|
+
async def todo_link_remove(self, **params: Any) -> Any:
|
|
64
|
+
"""Remove (soft-delete) a typed link between two TODO work items."""
|
|
65
|
+
return await self._call("todo_link_remove", params)
|
|
66
|
+
|
|
67
|
+
async def todo_link_get(self, **params: Any) -> Any:
|
|
68
|
+
"""Read one todo link by its id (parameters passed through; the server validates them)."""
|
|
69
|
+
return await self._call("todo_link_get", params)
|
|
70
|
+
|
|
71
|
+
async def todo_link_list(self, **params: Any) -> Any:
|
|
72
|
+
"""List todo links with filters and pagination (parameters passed through; the server validates them)."""
|
|
73
|
+
return await self._call("todo_link_list", params)
|
|
74
|
+
|
|
75
|
+
async def todo_link_delete(self, **params: Any) -> Any:
|
|
76
|
+
"""Delete a todo link: mark by default, hard=true removes a marked link, dry_run previews (parameters passed through; the server validates them)."""
|
|
77
|
+
return await self._call("todo_link_delete", params)
|
|
78
|
+
|
|
79
|
+
async def todo_queue(self, **params: Any) -> Any:
|
|
80
|
+
"""Surface a paginated page of the TODO-derived portion of the unified runtime work queue."""
|
|
81
|
+
return await self._call("todo_queue", params)
|
|
82
|
+
|
|
83
|
+
async def wish_create(self, **params: Any) -> Any:
|
|
84
|
+
"""Create a new runtime wish item."""
|
|
85
|
+
return await self._call("wish_create", params)
|
|
86
|
+
|
|
87
|
+
async def wish_get(self, **params: Any) -> Any:
|
|
88
|
+
"""Fetch a single runtime wish item by identifier."""
|
|
89
|
+
return await self._call("wish_get", params)
|
|
90
|
+
|
|
91
|
+
async def wish_list(self, **params: Any) -> Any:
|
|
92
|
+
"""List runtime wish items with filtering and pagination."""
|
|
93
|
+
return await self._call("wish_list", params)
|
|
94
|
+
|
|
95
|
+
async def wish_update(self, **params: Any) -> Any:
|
|
96
|
+
"""Update mutable fields of a runtime wish item."""
|
|
97
|
+
return await self._call("wish_update", params)
|
|
98
|
+
|
|
99
|
+
async def wish_reanchor(self, **params: Any) -> Any:
|
|
100
|
+
"""Move a wish item's primary anchor to a new target, with an audit record."""
|
|
101
|
+
return await self._call("wish_reanchor", params)
|
|
102
|
+
|
|
103
|
+
async def wish_delete(self, **params: Any) -> Any:
|
|
104
|
+
"""Delete a runtime wish item: soft by default, hard=true gated by the inbound-reference integrity check, dry_run previews."""
|
|
105
|
+
return await self._call("wish_delete", params)
|
|
106
|
+
|
|
107
|
+
async def calendar_entry_create(self, **params: Any) -> Any:
|
|
108
|
+
"""Create a calendar-based work entry spanning one or more calendar days."""
|
|
109
|
+
return await self._call("calendar_entry_create", params)
|
|
110
|
+
|
|
111
|
+
async def calendar_entry_get(self, **params: Any) -> Any:
|
|
112
|
+
"""Fetch one calendar-based work entry by identifier."""
|
|
113
|
+
return await self._call("calendar_entry_get", params)
|
|
114
|
+
|
|
115
|
+
async def calendar_entry_list(self, **params: Any) -> Any:
|
|
116
|
+
"""List calendar-based work entries with filtering and pagination."""
|
|
117
|
+
return await self._call("calendar_entry_list", params)
|
|
118
|
+
|
|
119
|
+
async def calendar_entry_update(self, **params: Any) -> Any:
|
|
120
|
+
"""Update mutable fields of a calendar-based work entry."""
|
|
121
|
+
return await self._call("calendar_entry_update", params)
|
|
122
|
+
|
|
123
|
+
async def calendar_entry_reanchor(self, **params: Any) -> Any:
|
|
124
|
+
"""Move a calendar entry's primary anchor to a new target, with an audit record."""
|
|
125
|
+
return await self._call("calendar_entry_reanchor", params)
|
|
126
|
+
|
|
127
|
+
async def calendar_entry_delete(self, **params: Any) -> Any:
|
|
128
|
+
"""Delete a calendar-based work entry: soft by default, hard=true available, dry_run previews."""
|
|
129
|
+
return await self._call("calendar_entry_delete", params)
|
|
130
|
+
|
|
131
|
+
async def runtime_link_add(self, **params: Any) -> Any:
|
|
132
|
+
"""Create a typed link between two runtime records, each independently a bug or a todo."""
|
|
133
|
+
return await self._call("runtime_link_add", params)
|
|
134
|
+
|
|
135
|
+
async def runtime_link_list(self, **params: Any) -> Any:
|
|
136
|
+
"""List generic runtime links, optionally filtered to one endpoint record, with uniform pagination."""
|
|
137
|
+
return await self._call("runtime_link_list", params)
|
|
138
|
+
|
|
139
|
+
async def runtime_link_remove(self, **params: Any) -> Any:
|
|
140
|
+
"""Remove (soft-delete) a generic runtime link, with an optional dry-run preview."""
|
|
141
|
+
return await self._call("runtime_link_remove", params)
|
|
142
|
+
|
|
143
|
+
async def runtime_link_get(self, **params: Any) -> Any:
|
|
144
|
+
"""Read one runtime link by its id (parameters passed through; the server validates them)."""
|
|
145
|
+
return await self._call("runtime_link_get", params)
|
|
146
|
+
|
|
147
|
+
async def runtime_link_delete(self, **params: Any) -> Any:
|
|
148
|
+
"""Delete a runtime link: mark by default, hard=true removes a marked link, dry_run previews (parameters passed through; the server validates them)."""
|
|
149
|
+
return await self._call("runtime_link_delete", params)
|
|
150
|
+
|
|
151
|
+
async def runtime_overlay_export(self, **params: Any) -> Any:
|
|
152
|
+
"""Export the runtime overlay of one plan to overlay.json in the plan export folder (parameters passed through)."""
|
|
153
|
+
return await self._call("runtime_overlay_export", params)
|
|
154
|
+
|
|
155
|
+
async def runtime_overlay_import(self, **params: Any) -> Any:
|
|
156
|
+
"""Import a runtime overlay file into its plan, all or nothing; dry_run validates and counts only (parameters passed through)."""
|
|
157
|
+
return await self._call("runtime_overlay_import", params)
|
|
158
|
+
|
|
159
|
+
async def comment_add(self, **params: Any) -> Any:
|
|
160
|
+
"""Create a new runtime comment attached to a comment anchor."""
|
|
161
|
+
return await self._call("comment_add", params)
|
|
162
|
+
|
|
163
|
+
async def comment_get(self, **params: Any) -> Any:
|
|
164
|
+
"""Retrieve a single runtime comment by identifier."""
|
|
165
|
+
return await self._call("comment_get", params)
|
|
166
|
+
|
|
167
|
+
async def comment_list(self, **params: Any) -> Any:
|
|
168
|
+
"""List runtime comments with uniform filtering and pagination."""
|
|
169
|
+
return await self._call("comment_list", params)
|
|
170
|
+
|
|
171
|
+
async def comment_supersede(self, **params: Any) -> Any:
|
|
172
|
+
"""Create a new runtime comment that supersedes an existing one, preserving history."""
|
|
173
|
+
return await self._call("comment_supersede", params)
|
|
174
|
+
|
|
175
|
+
async def comment_resolve(self, **params: Any) -> Any:
|
|
176
|
+
"""Mark an existing runtime comment as resolved."""
|
|
177
|
+
return await self._call("comment_resolve", params)
|
|
178
|
+
|
|
179
|
+
async def comment_update(self, **params: Any) -> Any:
|
|
180
|
+
"""Change the body, kind, visibility or author of a runtime comment in place (parameters passed through; the server validates them)."""
|
|
181
|
+
return await self._call("comment_update", params)
|
|
182
|
+
|
|
183
|
+
async def comment_reanchor(self, **params: Any) -> Any:
|
|
184
|
+
"""Move a runtime comment's primary anchor to a new target, with an audit record."""
|
|
185
|
+
return await self._call("comment_reanchor", params)
|
|
186
|
+
|
|
187
|
+
async def comment_delete(self, **params: Any) -> Any:
|
|
188
|
+
"""Delete a runtime comment: soft by default, hard=true gated by the inbound-reference integrity check, dry_run previews."""
|
|
189
|
+
return await self._call("comment_delete", params)
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|