ground-control-cli 0.5.0__tar.gz → 0.5.1__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.
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/PKG-INFO +1 -1
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/pyproject.toml +1 -1
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/service.py +0 -38
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/.gitignore +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/__init__.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/actions.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/claude.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/cli.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/connect.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/hooks.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/machine.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/__init__.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/code/__init__.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/code/bash.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/code/javascript.js +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/code/javascript.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/code/python.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/deploy.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/errors.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/gh.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/git.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/health.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/queue.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/request.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/settings.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/tests.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/probes/workspace.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/queue.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/repos.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/system/__init__.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/system/macos.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/tools.py +0 -0
- {ground_control_cli-0.5.0 → ground_control_cli-0.5.1}/update.py +0 -0
|
@@ -343,44 +343,6 @@ class Service:
|
|
|
343
343
|
"""
|
|
344
344
|
return self.call("GET", "/api/plugin/settings?" + urlencode({"repo": repo}))
|
|
345
345
|
|
|
346
|
-
def run_checks(
|
|
347
|
-
self, repo: str, feature: str, step: str, moment: str, root, entering=None
|
|
348
|
-
) -> list[dict]:
|
|
349
|
-
"""Have a step's checks run on the service, running here the probes it asks for.
|
|
350
|
-
|
|
351
|
-
Args:
|
|
352
|
-
repo: The repo, as its host writes it, such as owner/repo.
|
|
353
|
-
feature: The feature, `<lane>/<name>`.
|
|
354
|
-
step: The step entered or exited.
|
|
355
|
-
moment: entry or exit.
|
|
356
|
-
root: The checkout the probes run in.
|
|
357
|
-
entering: The fields of the step_enter row being entered, for the entry checks.
|
|
358
|
-
|
|
359
|
-
Returns:
|
|
360
|
-
Every check of the step, as the service decided it, in run order.
|
|
361
|
-
|
|
362
|
-
Raises:
|
|
363
|
-
ServiceError: If the service refuses, cannot be reached, or asks again for a probe
|
|
364
|
-
it was given.
|
|
365
|
-
|
|
366
|
-
Company: the one at the address.
|
|
367
|
-
"""
|
|
368
|
-
body = {"repo": repo, "feature": feature, "step": step, "moment": moment}
|
|
369
|
-
body["entering"] = dict(entering or {})
|
|
370
|
-
found: list[dict] = []
|
|
371
|
-
ran: set[str] = set()
|
|
372
|
-
while True:
|
|
373
|
-
answer = self.call("POST", "/api/plugin/check", body | {"facts": found})
|
|
374
|
-
if not answer["need"]:
|
|
375
|
-
return answer["checks"]
|
|
376
|
-
for probe in answer["need"]:
|
|
377
|
-
key = json.dumps(probe, sort_keys=True)
|
|
378
|
-
if key in ran:
|
|
379
|
-
raise ServiceError(None, f"the service asked again for {probe['name']}")
|
|
380
|
-
ran.add(key)
|
|
381
|
-
fact = probes.run(probe["name"], probe["params"], root)
|
|
382
|
-
found.append(probe | {"fact": fact})
|
|
383
|
-
|
|
384
346
|
def create_plan(self, repo: str, feature: str, role: str, issue: str = "") -> int:
|
|
385
347
|
"""Have the service make a feature's plan, as its first version.
|
|
386
348
|
|
|
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
|
|
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
|
|
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
|