reasoning-deployment-service 0.4.4__py3-none-any.whl → 0.4.6__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.
Potentially problematic release.
This version of reasoning-deployment-service might be problematic. Click here for more details.
- reasoning_deployment_service/reasoning_deployment_service.py +19 -14
- reasoning_deployment_service/runner.py +4 -2
- {reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/METADATA +1 -1
- {reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/RECORD +7 -7
- {reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/WHEEL +0 -0
- {reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/entry_points.txt +0 -0
- {reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/top_level.txt +0 -0
|
@@ -829,15 +829,19 @@ class ReasoningEngineDeploymentService:
|
|
|
829
829
|
self.info("[AGENT PATCH] Nothing to update.")
|
|
830
830
|
return agent_data
|
|
831
831
|
|
|
832
|
-
patch_url = f"{url}
|
|
832
|
+
patch_url = f"{url}"
|
|
833
833
|
self.info(f"[AGENT PATCH] PATCH {patch_url} with payload={json.dumps(patch_payload, indent=2)}")
|
|
834
834
|
|
|
835
835
|
patch_resp = self._http.patch(patch_url, headers=headers, json=patch_payload, timeout=60)
|
|
836
836
|
patch_resp.raise_for_status()
|
|
837
837
|
|
|
838
838
|
return patch_resp.json()
|
|
839
|
+
|
|
840
|
+
def one_githhub_deployment_to_go_with_skip(self):
|
|
841
|
+
return self.one_github_deployment_to_go(skip_engine=True)
|
|
842
|
+
|
|
839
843
|
|
|
840
|
-
def one_github_deployment_to_go(self):
|
|
844
|
+
def one_github_deployment_to_go(self, skip_engine=False):
|
|
841
845
|
"""
|
|
842
846
|
CI-friendly deploy:
|
|
843
847
|
- Engine: create or update by display_name.
|
|
@@ -870,19 +874,20 @@ class ReasoningEngineDeploymentService:
|
|
|
870
874
|
engine_rn = self.find_engine_by_name(self._reasoning_engine_name)
|
|
871
875
|
self.info(f"[ENGINE] find_engine_by_name -> {engine_rn}")
|
|
872
876
|
|
|
873
|
-
if not
|
|
874
|
-
self.info(f"[ENGINE] '{self._reasoning_engine_name}' not found. Creating...")
|
|
875
|
-
self.create_reasoning_engine()
|
|
876
|
-
rec_after_create = self._read_engine_deployment_record()
|
|
877
|
-
self.info(f"[ENGINE] record after create -> {json.dumps(rec_after_create, indent=2)}")
|
|
878
|
-
engine_rn = rec_after_create.get("reasoning_engine_id") or self.find_engine_by_name(self._reasoning_engine_name)
|
|
879
|
-
self.info(f"[ENGINE] post-create resolution -> {engine_rn}")
|
|
877
|
+
if not skip_engine:
|
|
880
878
|
if not engine_rn:
|
|
881
|
-
self.
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
879
|
+
self.info(f"[ENGINE] '{self._reasoning_engine_name}' not found. Creating...")
|
|
880
|
+
self.create_reasoning_engine()
|
|
881
|
+
rec_after_create = self._read_engine_deployment_record()
|
|
882
|
+
self.info(f"[ENGINE] record after create -> {json.dumps(rec_after_create, indent=2)}")
|
|
883
|
+
engine_rn = rec_after_create.get("reasoning_engine_id") or self.find_engine_by_name(self._reasoning_engine_name)
|
|
884
|
+
self.info(f"[ENGINE] post-create resolution -> {engine_rn}")
|
|
885
|
+
if not engine_rn:
|
|
886
|
+
self.error("[ENGINE] Creation did not yield a resource name.")
|
|
887
|
+
raise RuntimeError("Engine creation failed.")
|
|
888
|
+
else:
|
|
889
|
+
self.info(f"[ENGINE] '{self._reasoning_engine_name}' exists. Updating...")
|
|
890
|
+
self.update_reasoning_engine(engine_rn)
|
|
886
891
|
|
|
887
892
|
self.info(f"[ENGINE] final engine_rn={engine_rn}")
|
|
888
893
|
|
|
@@ -13,7 +13,7 @@ class Runner:
|
|
|
13
13
|
parser = argparse.ArgumentParser(description="Reasoning Engine Deployment Runner")
|
|
14
14
|
parser.add_argument(
|
|
15
15
|
"--mode",
|
|
16
|
-
choices=["create", "auth", "cli", "gui", "populate_files", "github_deployment"],
|
|
16
|
+
choices=["create", "auth", "cli", "gui", "populate_files", "github_deployment", "github_deployment_without_engine"],
|
|
17
17
|
help="Operation mode to run",
|
|
18
18
|
)
|
|
19
19
|
parser.add_argument(
|
|
@@ -133,12 +133,14 @@ class Runner:
|
|
|
133
133
|
svc._check_required_files_exist()
|
|
134
134
|
elif mode == "github_deployment":
|
|
135
135
|
svc.one_github_deployment_to_go()
|
|
136
|
+
elif mode == "github_deployment_without_engine":
|
|
137
|
+
svc.one_githhub_deployment_to_go_with_skip()
|
|
136
138
|
|
|
137
139
|
@staticmethod
|
|
138
140
|
def _menu(root_agent):
|
|
139
141
|
print("Choose an operation:\n1) Create/Update\n2) Auth only\n3) CLI\n4) GUI\nq) Quit")
|
|
140
142
|
choice = input("Enter choice: ").strip().lower()
|
|
141
|
-
mapping = {"1": "create", "2": "auth", "3": "cli", "4": "gui", "5": "github_deployment"}
|
|
143
|
+
mapping = {"1": "create", "2": "auth", "3": "cli", "4": "gui", "5": "github_deployment", "6": "github_deployment_without_engine"}
|
|
142
144
|
if choice == "q":
|
|
143
145
|
sys.exit(0)
|
|
144
146
|
Runner._dispatch(mapping.get(choice, ""), root_agent)
|
{reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
reasoning_deployment_service/__init__.py,sha256=xDuKt9gGviQiTV6vXBdkBvygnlAOIrwnUjVaMGZy0L4,670
|
|
2
|
-
reasoning_deployment_service/reasoning_deployment_service.py,sha256=
|
|
3
|
-
reasoning_deployment_service/runner.py,sha256=
|
|
2
|
+
reasoning_deployment_service/reasoning_deployment_service.py,sha256=o9Exc4kObYGRuDCTAEzxpc7_toGYsQ5pJ3GeNnLkAvY,44087
|
|
3
|
+
reasoning_deployment_service/runner.py,sha256=qWN0t66lQ1G4ht48gIHSF2JvedcheHRu8PmUz5TaKTI,5619
|
|
4
4
|
reasoning_deployment_service/cli_editor/__init__.py,sha256=bN8NPkw8riB92pj2lAwJZuEMOQIO_RRuge0ehnJTW1I,118
|
|
5
5
|
reasoning_deployment_service/cli_editor/api_client.py,sha256=Kzx5iYp0MmowggrSmPLE7I2kt1-8xvdGBAgde9a1gCY,33681
|
|
6
6
|
reasoning_deployment_service/cli_editor/cli_runner.py,sha256=1KkHtgAhVZ7VHQj7o76JibLHnr7NMUB-tieDX_KrAcY,18239
|
|
@@ -22,8 +22,8 @@ reasoning_deployment_service/gui_editor/src/ui/authorization_view.py,sha256=BoNc
|
|
|
22
22
|
reasoning_deployment_service/gui_editor/src/ui/reasoning_engine_view.py,sha256=tCvSPEf4dW0NRdAqfs3yT5Pa873gYeLzCMMIt2r2T4o,14644
|
|
23
23
|
reasoning_deployment_service/gui_editor/src/ui/reasoning_engines_view.py,sha256=IRjFlBbY98usAZa0roOonjvWQOsF6NBW4bBg_k8KnKI,7860
|
|
24
24
|
reasoning_deployment_service/gui_editor/src/ui/ui_components.py,sha256=HdQHy-oSZ3GobQ3FNdH7y_w3ANbFiuf2rMoflAmff0A,55366
|
|
25
|
-
reasoning_deployment_service-0.4.
|
|
26
|
-
reasoning_deployment_service-0.4.
|
|
27
|
-
reasoning_deployment_service-0.4.
|
|
28
|
-
reasoning_deployment_service-0.4.
|
|
29
|
-
reasoning_deployment_service-0.4.
|
|
25
|
+
reasoning_deployment_service-0.4.6.dist-info/METADATA,sha256=HpWfCvrYweJeNVb8XLSgPminWJaYiV7aOi-yL9zx5qk,5302
|
|
26
|
+
reasoning_deployment_service-0.4.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
reasoning_deployment_service-0.4.6.dist-info/entry_points.txt,sha256=onGKjR5ONTtRv3aqEtK863iw9Ty1kLcjfZlsplkRZrA,84
|
|
28
|
+
reasoning_deployment_service-0.4.6.dist-info/top_level.txt,sha256=GKuQS1xHUYLZbatw9DmcYdBxxLhWhhGkV4FmFxgKdp0,29
|
|
29
|
+
reasoning_deployment_service-0.4.6.dist-info/RECORD,,
|
{reasoning_deployment_service-0.4.4.dist-info → reasoning_deployment_service-0.4.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|