soorma-core 0.3.0__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.
- soorma/__init__.py +138 -0
- soorma/agents/__init__.py +17 -0
- soorma/agents/base.py +523 -0
- soorma/agents/planner.py +391 -0
- soorma/agents/tool.py +373 -0
- soorma/agents/worker.py +385 -0
- soorma/ai/event_toolkit.py +281 -0
- soorma/ai/tools.py +280 -0
- soorma/cli/__init__.py +7 -0
- soorma/cli/commands/__init__.py +3 -0
- soorma/cli/commands/dev.py +780 -0
- soorma/cli/commands/init.py +717 -0
- soorma/cli/main.py +52 -0
- soorma/context.py +832 -0
- soorma/events.py +496 -0
- soorma/models.py +24 -0
- soorma/registry/client.py +186 -0
- soorma/utils/schema_utils.py +209 -0
- soorma_core-0.3.0.dist-info/METADATA +454 -0
- soorma_core-0.3.0.dist-info/RECORD +23 -0
- soorma_core-0.3.0.dist-info/WHEEL +4 -0
- soorma_core-0.3.0.dist-info/entry_points.txt +3 -0
- soorma_core-0.3.0.dist-info/licenses/LICENSE.txt +21 -0
soorma/cli/main.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Soorma CLI - Main entry point.
|
|
3
|
+
|
|
4
|
+
Commands:
|
|
5
|
+
soorma init <name> - Scaffold a new agent project
|
|
6
|
+
soorma dev - Start local development stack (Registry + NATS)
|
|
7
|
+
soorma deploy - Deploy to Soorma Cloud (coming soon)
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import typer
|
|
11
|
+
from typing import Optional
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
from .commands import init, dev
|
|
15
|
+
|
|
16
|
+
app = typer.Typer(
|
|
17
|
+
name="soorma",
|
|
18
|
+
help="Soorma CLI - Build and deploy AI agents with the DisCo architecture.",
|
|
19
|
+
no_args_is_help=True,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
# Register commands
|
|
23
|
+
app.command(name="init", help="Scaffold a new agent project.")(init.init_project)
|
|
24
|
+
app.command(name="dev", help="Start local development stack (Registry + NATS).")(dev.dev_stack)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@app.command()
|
|
28
|
+
def deploy():
|
|
29
|
+
"""
|
|
30
|
+
Deploy your agent to Soorma Cloud.
|
|
31
|
+
"""
|
|
32
|
+
typer.echo("🚀 Deploy command coming soon!")
|
|
33
|
+
typer.echo("Visit https://soorma.ai to join the waitlist for Soorma Cloud.")
|
|
34
|
+
raise typer.Exit(0)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@app.command()
|
|
38
|
+
def version():
|
|
39
|
+
"""
|
|
40
|
+
Show the Soorma CLI version.
|
|
41
|
+
"""
|
|
42
|
+
from soorma import __version__
|
|
43
|
+
typer.echo(f"Soorma Core v{__version__}")
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def main():
|
|
47
|
+
"""Entry point for the CLI."""
|
|
48
|
+
app()
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if __name__ == "__main__":
|
|
52
|
+
main()
|