multiagentos 0.4.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.
Files changed (122) hide show
  1. agents/__init__.py +1 -0
  2. agents/catalog.py +52 -0
  3. agents/registry.py +11 -0
  4. core/__init__.py +38 -0
  5. core/artifacts.py +47 -0
  6. core/chat_agent_bridge.py +280 -0
  7. core/chat_agent_registry.py +61 -0
  8. core/chat_agent_router.py +85 -0
  9. core/chat_session.py +62 -0
  10. core/contracts/__init__.py +22 -0
  11. core/contracts/agent.py +21 -0
  12. core/contracts/ai.py +25 -0
  13. core/contracts/capability.py +44 -0
  14. core/contracts/chat_agent.py +34 -0
  15. core/contracts/checkpoint.py +78 -0
  16. core/contracts/discovery.py +30 -0
  17. core/contracts/execution.py +28 -0
  18. core/contracts/github.py +74 -0
  19. core/contracts/handoff.py +56 -0
  20. core/contracts/health.py +206 -0
  21. core/contracts/human_review.py +20 -0
  22. core/contracts/ide.py +113 -0
  23. core/contracts/mcp.py +76 -0
  24. core/contracts/model_runtime.py +25 -0
  25. core/contracts/planning.py +25 -0
  26. core/contracts/profile.py +66 -0
  27. core/contracts/quota.py +62 -0
  28. core/contracts/repository.py +34 -0
  29. core/contracts/resume.py +55 -0
  30. core/contracts/runtime.py +19 -0
  31. core/contracts/vyrelon_runtime.py +118 -0
  32. core/contracts/work_unit.py +48 -0
  33. core/delegation.py +33 -0
  34. core/handoff.py +68 -0
  35. core/lifecycle.py +85 -0
  36. core/multi_agent_workflow.py +574 -0
  37. core/orchestrator.py +51 -0
  38. core/planning.py +22 -0
  39. core/registry.py +44 -0
  40. core/routing.py +195 -0
  41. core/state.py +155 -0
  42. installer/__init__.py +1 -0
  43. installer/init.py +71 -0
  44. integrations/__init__.py +0 -0
  45. integrations/github/__init__.py +3 -0
  46. integrations/github/gateway.py +164 -0
  47. integrations/openai/__init__.py +1 -0
  48. integrations/openai/chat_agent.py +147 -0
  49. multiagentos/__init__.py +1 -0
  50. multiagentos/cli.py +759 -0
  51. multiagentos-0.4.0.dist-info/METADATA +7 -0
  52. multiagentos-0.4.0.dist-info/RECORD +122 -0
  53. multiagentos-0.4.0.dist-info/WHEEL +5 -0
  54. multiagentos-0.4.0.dist-info/entry_points.txt +2 -0
  55. multiagentos-0.4.0.dist-info/top_level.txt +7 -0
  56. profiles/__init__.py +1 -0
  57. profiles/common.py +11 -0
  58. profiles/detector.py +67 -0
  59. profiles/registry.py +46 -0
  60. profiles/resolver.py +63 -0
  61. runtime/__init__.py +5 -0
  62. runtime/agent/__init__.py +1 -0
  63. runtime/agent/ide.py +74 -0
  64. runtime/agent/model.py +197 -0
  65. runtime/agent/model_backed.py +49 -0
  66. runtime/agent/process.py +21 -0
  67. runtime/builtin_tools.py +57 -0
  68. runtime/capability.py +143 -0
  69. runtime/chat_adapter_registry.py +43 -0
  70. runtime/chat_config.py +57 -0
  71. runtime/chat_execution.py +52 -0
  72. runtime/config/__init__.py +1 -0
  73. runtime/config/loader.py +67 -0
  74. runtime/discovery.py +334 -0
  75. runtime/execution_config.py +71 -0
  76. runtime/execution_registry.py +50 -0
  77. runtime/git.py +84 -0
  78. runtime/github.py +56 -0
  79. runtime/github_probe.py +23 -0
  80. runtime/health.py +14 -0
  81. runtime/ide/__init__.py +6 -0
  82. runtime/ide/bridge.py +198 -0
  83. runtime/ide/registry.py +24 -0
  84. runtime/ide/runtime.py +35 -0
  85. runtime/local/__init__.py +18 -0
  86. runtime/local/filesystem.py +58 -0
  87. runtime/local/patch.py +79 -0
  88. runtime/local/path_security.py +31 -0
  89. runtime/local/permissions.py +20 -0
  90. runtime/local/process.py +56 -0
  91. runtime/local/shell.py +97 -0
  92. runtime/mcp/__init__.py +7 -0
  93. runtime/mcp/client.py +120 -0
  94. runtime/mcp/config.py +36 -0
  95. runtime/mcp/policy.py +57 -0
  96. runtime/mcp/proxy.py +30 -0
  97. runtime/mcp/server.py +137 -0
  98. runtime/mcp/session.py +19 -0
  99. runtime/model/__init__.py +5 -0
  100. runtime/model/ai_runtime.py +165 -0
  101. runtime/model/cli.py +49 -0
  102. runtime/model/config.py +98 -0
  103. runtime/model/credentials.py +42 -0
  104. runtime/model/factory.py +82 -0
  105. runtime/model/http.py +78 -0
  106. runtime/model/invoker.py +16 -0
  107. runtime/model/materializer.py +101 -0
  108. runtime/model/native.py +244 -0
  109. runtime/model/providers.py +55 -0
  110. runtime/model/registry.py +26 -0
  111. runtime/model/runtime_loader.py +51 -0
  112. runtime/model_control.py +136 -0
  113. runtime/multi_agent.py +142 -0
  114. runtime/policy.py +28 -0
  115. runtime/process.py +41 -0
  116. runtime/quota.py +259 -0
  117. runtime/repository.py +103 -0
  118. runtime/repository_tools.py +62 -0
  119. runtime/status.py +87 -0
  120. runtime/tool_calling.py +134 -0
  121. runtime/validation.py +121 -0
  122. runtime/vyrelon.py +1557 -0
runtime/validation.py ADDED
@@ -0,0 +1,121 @@
1
+ """Provider-neutral validation runtime for VYRELON."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ from dataclasses import dataclass, field
7
+ from pathlib import Path
8
+ from typing import Iterable
9
+
10
+ from runtime.local.shell import PersistentShellRuntime
11
+ from runtime.policy import ExecutionPolicy
12
+
13
+
14
+ @dataclass(frozen=True)
15
+ class ValidationStep:
16
+ id: str
17
+ command: str
18
+ kind: str = "test"
19
+ required: bool = True
20
+ timeout: float = 120.0
21
+
22
+
23
+ @dataclass(frozen=True)
24
+ class ValidationResult:
25
+ step_id: str
26
+ command: str
27
+ kind: str
28
+ returncode: int
29
+ stdout: str
30
+ stderr: str
31
+ passed: bool
32
+ required: bool
33
+
34
+ @property
35
+ def evidence(self) -> dict[str, object]:
36
+ return {
37
+ "step_id": self.step_id,
38
+ "command": self.command,
39
+ "kind": self.kind,
40
+ "returncode": self.returncode,
41
+ "stdout": self.stdout,
42
+ "stderr": self.stderr,
43
+ "passed": self.passed,
44
+ "required": self.required,
45
+ }
46
+
47
+
48
+ @dataclass(frozen=True)
49
+ class ValidationReport:
50
+ project_root: str
51
+ results: tuple[ValidationResult, ...]
52
+ passed: bool
53
+ metadata: dict[str, object] = field(default_factory=dict)
54
+
55
+ @property
56
+ def evidence(self) -> dict[str, object]:
57
+ return {
58
+ "project_root": self.project_root,
59
+ "passed": self.passed,
60
+ "results": [result.evidence for result in self.results],
61
+ "metadata": dict(self.metadata),
62
+ }
63
+
64
+ def persist(self, path: Path) -> Path:
65
+ path.parent.mkdir(parents=True, exist_ok=True)
66
+ path.write_text(json.dumps(self.evidence, indent=2, ensure_ascii=False) + "\n")
67
+ return path
68
+
69
+
70
+ class ValidationRuntime:
71
+ """Execute deterministic project validation through VYRELON's local tool boundary."""
72
+
73
+ def __init__(self, policy: ExecutionPolicy | None = None) -> None:
74
+ self.policy = policy or ExecutionPolicy()
75
+
76
+ def run(
77
+ self,
78
+ project_root: Path,
79
+ steps: Iterable[ValidationStep],
80
+ *,
81
+ persist_evidence: bool = True,
82
+ ) -> ValidationReport:
83
+ shell = PersistentShellRuntime(str(project_root), policy=self.policy)
84
+ results: list[ValidationResult] = []
85
+
86
+ for step in steps:
87
+ try:
88
+ output = shell.run(step.command, timeout=step.timeout)
89
+ result = ValidationResult(
90
+ step_id=step.id,
91
+ command=step.command,
92
+ kind=step.kind,
93
+ returncode=output.returncode,
94
+ stdout=output.stdout,
95
+ stderr=output.stderr,
96
+ passed=output.returncode == 0,
97
+ required=step.required,
98
+ )
99
+ except Exception as exc:
100
+ result = ValidationResult(
101
+ step_id=step.id,
102
+ command=step.command,
103
+ kind=step.kind,
104
+ returncode=-1,
105
+ stdout="",
106
+ stderr=str(exc),
107
+ passed=False,
108
+ required=step.required,
109
+ )
110
+ results.append(result)
111
+
112
+ passed = all(result.passed for result in results if result.required)
113
+ report = ValidationReport(
114
+ project_root=str(project_root),
115
+ results=tuple(results),
116
+ passed=passed,
117
+ metadata={"runtime": "vyrelon-validation"},
118
+ )
119
+ if persist_evidence:
120
+ report.persist(project_root / ".multiagentos" / "evidence" / "validation.json")
121
+ return report