dirigent-cli 0.9.3__tar.gz → 0.9.4__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.
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/PKG-INFO +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/pyproject.toml +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/pyproject.toml.orig +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/commands.py +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/context.py +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/main.py +7 -10
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/project.py +2 -2
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/summaries.py +1 -1
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/LICENSE +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/README.md +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/__init__.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/aliases.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/formatters.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/graph.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/health.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/local.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/output.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/params.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/profiles.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/py.typed +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/reaper.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/scaffold.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/schemas.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/sources.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/stream.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/README.md.tmpl +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/__init__.py.tmpl +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/operator.py.tmpl +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/pyproject.toml.tmpl +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/test_plugin.py.tmpl +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/timing.py +0 -0
- {dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/triggers.py +0 -0
|
@@ -608,7 +608,7 @@ def _refuse_an_existing_instance(root: Path) -> None:
|
|
|
608
608
|
_init_fail(
|
|
609
609
|
f"{existing} already exists, so this directory holds an instance already",
|
|
610
610
|
problems=[
|
|
611
|
-
"dg dev
|
|
611
|
+
"dg dev starts it",
|
|
612
612
|
"dg db upgrade brings its schema forward",
|
|
613
613
|
"dg init --documents-only scaffolds documents beside it",
|
|
614
614
|
],
|
|
@@ -117,7 +117,7 @@ def state_of(ctx: typer.Context) -> CliState:
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
#: What a refused connection to a loopback address adds: the local instance is not running.
|
|
120
|
-
LOCAL_INSTANCE_HINT = "nothing is listening there; uv run dg dev
|
|
120
|
+
LOCAL_INSTANCE_HINT = "nothing is listening there; uv run dg dev in the project starts its instance"
|
|
121
121
|
|
|
122
122
|
LOOPBACK_HOSTS = frozenset({"127.0.0.1", "localhost", "::1"})
|
|
123
123
|
|
|
@@ -810,18 +810,16 @@ def dev(
|
|
|
810
810
|
bool,
|
|
811
811
|
typer.Option(
|
|
812
812
|
"--wipe-state/--keep-state",
|
|
813
|
-
help="Delete the state directory before starting,
|
|
813
|
+
help="Delete the state directory before starting, instead of running the instance that is there.",
|
|
814
814
|
),
|
|
815
|
-
] =
|
|
815
|
+
] = False,
|
|
816
816
|
) -> None:
|
|
817
817
|
"""Run the API and an embedded worker in one process, on SQLite, with no dependencies.
|
|
818
818
|
|
|
819
819
|
The database and the artifacts live in .dirigent/state under the working directory, so
|
|
820
820
|
starting this somewhere else means a different instance, with none of the same runs.
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
is a development artifact, and a database left over from an older schema answers
|
|
824
|
-
strangely rather than failing. Only a directory dirigent named itself is removed.
|
|
821
|
+
An instance that is there, made by dg init or by an earlier start, is the one that runs;
|
|
822
|
+
--wipe-state deletes it first, and only a directory dirigent named itself is removed.
|
|
825
823
|
"""
|
|
826
824
|
import asyncio
|
|
827
825
|
import os
|
|
@@ -879,10 +877,10 @@ def clear_state(settings: Settings) -> Path | None:
|
|
|
879
877
|
|
|
880
878
|
|
|
881
879
|
def state_cleared(directory: Path) -> Record:
|
|
882
|
-
"""Build the record saying the state went,
|
|
880
|
+
"""Build the record saying the state went, as --wipe-state asked.
|
|
883
881
|
|
|
884
|
-
Emitted only when something was actually deleted, so a
|
|
885
|
-
|
|
882
|
+
Emitted only when something was actually deleted, so a wipe of an empty machine stays
|
|
883
|
+
quiet.
|
|
886
884
|
"""
|
|
887
885
|
return make(
|
|
888
886
|
"process",
|
|
@@ -890,7 +888,6 @@ def state_cleared(directory: Path) -> Record:
|
|
|
890
888
|
message="state cleared",
|
|
891
889
|
process="dev",
|
|
892
890
|
state=str(directory),
|
|
893
|
-
hint="--keep-state keeps it",
|
|
894
891
|
)
|
|
895
892
|
|
|
896
893
|
|
|
@@ -519,13 +519,13 @@ __RUN__
|
|
|
519
519
|
README_RUN: Final = {
|
|
520
520
|
"basic": (
|
|
521
521
|
"uv sync",
|
|
522
|
-
"uv run dg dev
|
|
522
|
+
"uv run dg dev",
|
|
523
523
|
"uv run dg apply",
|
|
524
524
|
"uv run dg run hello-world --watch",
|
|
525
525
|
),
|
|
526
526
|
"ci": (
|
|
527
527
|
"uv sync",
|
|
528
|
-
"uv run dg dev
|
|
528
|
+
"uv run dg dev",
|
|
529
529
|
"uv run dg apply",
|
|
530
530
|
"uv run dg run hello-world --watch",
|
|
531
531
|
),
|
|
@@ -293,7 +293,7 @@ def _initialised(record: Record) -> RenderableType | None:
|
|
|
293
293
|
f"\n [bold]{token}[/]"
|
|
294
294
|
"\n\nStart the instance in a second terminal here; it keeps running:"
|
|
295
295
|
"\n [bold]uv sync[/]"
|
|
296
|
-
"\n [bold]uv run dg dev
|
|
296
|
+
"\n [bold]uv run dg dev[/]"
|
|
297
297
|
f"\nThe UI is at http://127.0.0.1:3333, and {admin} logs in with the password you gave."
|
|
298
298
|
"\n\nThen apply the example here, and run it:"
|
|
299
299
|
"\n [bold]uv run dg apply[/]"
|
|
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
|
{dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/pyproject.toml.tmpl
RENAMED
|
File without changes
|
{dirigent_cli-0.9.3 → dirigent_cli-0.9.4}/src/dirigent_cli/templates/pack/test_plugin.py.tmpl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|