bindai-cli 0.2.1__tar.gz → 0.2.2__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.
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/PKG-INFO +1 -1
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/pyproject.toml +1 -1
- bindai_cli-0.2.2/src/bindai_cli/__init__.py +1 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/workflow.py +5 -5
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/PKG-INFO +1 -1
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/SOURCES.txt +2 -1
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_app.py +1 -1
- bindai_cli-0.2.2/tests/test_workflow.py +32 -0
- bindai_cli-0.2.1/src/bindai_cli/__init__.py +0 -1
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/README.md +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/setup.cfg +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/__main__.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/app.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/__init__.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/add.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/config.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/connections.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/doctor.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/inspect.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/new.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/run.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/template.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/commands/version.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/__init__.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/agent.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/directories.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/knowledge.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/memory.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/pyproject.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/tool.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/generators/workflow.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/inspectors/project.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/.env.example +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/.gitignore +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/LICENSE +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/README.md +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/__pycache__/main.cpython-314.pyc +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/agents/__pycache__/assistant.cpython-314.pyc +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/agents/assistant.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/bindai.toml +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/knowledge/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/main.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/memory/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/requirements.txt +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/templates/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/tests/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/tools/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/tools/__pycache__/echo.cpython-314.pyc +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/tools/echo.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/scaffolds/basic/workflows/.gitkeep +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/templates/installer.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/templates/models.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/templates/registry.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/templates/validator.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/templates/workflow-basic/template.json +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/utils/config.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/utils/providers.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/utils/scaffold.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/workflows/graph.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli/workflows/validator.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/dependency_links.txt +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/entry_points.txt +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/requires.txt +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/src/bindai_cli.egg-info/top_level.txt +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_config.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_connections.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_doctor.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_new.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_run.py +0 -0
- {bindai_cli-0.2.1 → bindai_cli-0.2.2}/tests/test_templates.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.2"
|
|
@@ -27,8 +27,8 @@ def resolve_workflow(
|
|
|
27
27
|
|
|
28
28
|
@app.command("run")
|
|
29
29
|
def run(
|
|
30
|
-
workflow: str
|
|
31
|
-
|
|
30
|
+
workflow: str = typer.Argument(
|
|
31
|
+
...,
|
|
32
32
|
help="Workflow entrypoint.",
|
|
33
33
|
),
|
|
34
34
|
):
|
|
@@ -74,13 +74,13 @@ def validate(
|
|
|
74
74
|
print()
|
|
75
75
|
|
|
76
76
|
for error in errors:
|
|
77
|
-
print(f"[red]
|
|
77
|
+
print(f"[red]✗ {error}[/red]")
|
|
78
78
|
|
|
79
79
|
raise typer.Exit(1)
|
|
80
80
|
|
|
81
81
|
print()
|
|
82
82
|
|
|
83
|
-
print("[green]
|
|
83
|
+
print("[green]✓ Workflow is valid.[/green]")
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
@app.command("graph")
|
|
@@ -109,4 +109,4 @@ def graph(
|
|
|
109
109
|
WorkflowGraph.generate(
|
|
110
110
|
path,
|
|
111
111
|
)
|
|
112
|
-
)
|
|
112
|
+
)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from bindai_cli.app import app
|
|
4
|
+
from typer.testing import CliRunner
|
|
5
|
+
|
|
6
|
+
runner = CliRunner()
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def test_workflow_run_requires_workflow_path(
|
|
10
|
+
tmp_path: Path,
|
|
11
|
+
monkeypatch,
|
|
12
|
+
):
|
|
13
|
+
monkeypatch.chdir(tmp_path)
|
|
14
|
+
|
|
15
|
+
calls = []
|
|
16
|
+
|
|
17
|
+
def fake_run(*args, **kwargs):
|
|
18
|
+
calls.append((args, kwargs))
|
|
19
|
+
|
|
20
|
+
monkeypatch.setattr(
|
|
21
|
+
"bindai_cli.commands.workflow.subprocess.run",
|
|
22
|
+
fake_run,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
result = runner.invoke(
|
|
26
|
+
app,
|
|
27
|
+
["workflow", "run"],
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
assert result.exit_code != 0
|
|
31
|
+
assert "Missing argument" in result.output
|
|
32
|
+
assert calls == []
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.1"
|
|
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
|
|
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
|
|
File without changes
|