kotharcomputing 0.89.2__tar.gz → 0.91.0__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.
- {kotharcomputing-0.89.2/src/kotharcomputing.egg-info → kotharcomputing-0.91.0}/PKG-INFO +1 -1
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/pyproject.toml +1 -1
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/__init__.py +14 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/executions.py +39 -5
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0/src/kotharcomputing.egg-info}/PKG-INFO +1 -1
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/tests/test_public_api.py +7 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/LICENSE +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/README.md +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/setup.cfg +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/agents.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/ai.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/aleph_language_server.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/api_tokens.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/client.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/common.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/credits.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/errors.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/fetch.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/files.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/jobs.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/py.typed +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/runtimes.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/service_prices.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/subscribe_user.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/subscribe_workspace.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/subscriptions.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/users.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/workspaces.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/SOURCES.txt +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/dependency_links.txt +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/requires.txt +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/top_level.txt +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/tests/test_fetch_auth_headers.py +0 -0
- {kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/tests/test_fetch_url_building.py +0 -0
|
@@ -78,15 +78,22 @@ from .credits import (
|
|
|
78
78
|
from .errors import KOTHAR_ERROR_TYPE_BASE_URL, KotharApiError
|
|
79
79
|
from .executions import (
|
|
80
80
|
ExecuteArgs,
|
|
81
|
+
ExecuteCommonArgs,
|
|
81
82
|
ExecuteResult,
|
|
83
|
+
ExecuteScriptArgs,
|
|
84
|
+
ExecuteTestArgs,
|
|
82
85
|
Execution,
|
|
86
|
+
ExecutionCommon,
|
|
83
87
|
ExecutionControl,
|
|
84
88
|
ExecutionEnded,
|
|
85
89
|
ExecutionError,
|
|
86
90
|
ExecutionMessage,
|
|
87
91
|
ExecutionOutput,
|
|
88
92
|
ExecutionScriptArgs,
|
|
93
|
+
ExecutionScript,
|
|
89
94
|
ExecutionStarted,
|
|
95
|
+
ExecutionTest,
|
|
96
|
+
ExecutionTestResults,
|
|
90
97
|
SystemMetrics,
|
|
91
98
|
SystemMetricSample,
|
|
92
99
|
SystemMetricSeries,
|
|
@@ -208,15 +215,22 @@ __all__ = [
|
|
|
208
215
|
"KotharApiError",
|
|
209
216
|
# Executions
|
|
210
217
|
"ExecuteArgs",
|
|
218
|
+
"ExecuteCommonArgs",
|
|
211
219
|
"ExecuteResult",
|
|
220
|
+
"ExecuteScriptArgs",
|
|
221
|
+
"ExecuteTestArgs",
|
|
212
222
|
"Execution",
|
|
223
|
+
"ExecutionCommon",
|
|
213
224
|
"ExecutionControl",
|
|
214
225
|
"ExecutionEnded",
|
|
215
226
|
"ExecutionError",
|
|
216
227
|
"ExecutionMessage",
|
|
217
228
|
"ExecutionOutput",
|
|
218
229
|
"ExecutionScriptArgs",
|
|
230
|
+
"ExecutionScript",
|
|
219
231
|
"ExecutionStarted",
|
|
232
|
+
"ExecutionTest",
|
|
233
|
+
"ExecutionTestResults",
|
|
220
234
|
"SystemMetrics",
|
|
221
235
|
"SystemMetricSample",
|
|
222
236
|
"SystemMetricSeries",
|
|
@@ -28,25 +28,36 @@ class SystemMetrics(TypedDict):
|
|
|
28
28
|
metrics: list[SystemMetricSeries]
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class ExecutionCommon(TypedDict):
|
|
32
32
|
id: str
|
|
33
33
|
userId: str
|
|
34
34
|
agentId: str
|
|
35
35
|
runtimeId: str
|
|
36
36
|
workspaceId: str
|
|
37
37
|
timestamp: float
|
|
38
|
-
path: NotRequired[str]
|
|
39
38
|
timeout: NotRequired[str]
|
|
40
39
|
maxThreads: NotRequired[int]
|
|
41
40
|
maxMemoryMb: NotRequired[int]
|
|
42
41
|
executionArgs: NotRequired[ExecutionScriptArgs]
|
|
43
42
|
|
|
44
43
|
|
|
45
|
-
class
|
|
46
|
-
|
|
44
|
+
class ExecutionScript(ExecutionCommon):
|
|
45
|
+
mode: Literal["script"]
|
|
46
|
+
path: NotRequired[str]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class ExecutionTest(ExecutionCommon):
|
|
50
|
+
mode: Literal["test"]
|
|
51
|
+
paths: list[str]
|
|
52
|
+
filters: NotRequired[list[str]]
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Execution: TypeAlias = ExecutionScript | ExecutionTest
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class ExecuteCommonArgs(TypedDict):
|
|
47
59
|
agentId: str
|
|
48
60
|
runtimeId: NotRequired[str]
|
|
49
|
-
path: NotRequired[str]
|
|
50
61
|
dependencies: NotRequired[list[str]]
|
|
51
62
|
timeout: NotRequired[str]
|
|
52
63
|
maxThreads: NotRequired[int]
|
|
@@ -54,6 +65,21 @@ class ExecuteArgs(TypedDict):
|
|
|
54
65
|
executionArgs: NotRequired[ExecutionScriptArgs]
|
|
55
66
|
|
|
56
67
|
|
|
68
|
+
class ExecuteScriptArgs(ExecuteCommonArgs):
|
|
69
|
+
content: str
|
|
70
|
+
mode: NotRequired[Literal["script"]]
|
|
71
|
+
path: NotRequired[str]
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class ExecuteTestArgs(ExecuteCommonArgs):
|
|
75
|
+
mode: Literal["test"]
|
|
76
|
+
paths: list[str]
|
|
77
|
+
filters: NotRequired[list[str]]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
ExecuteArgs: TypeAlias = ExecuteScriptArgs | ExecuteTestArgs
|
|
81
|
+
|
|
82
|
+
|
|
57
83
|
class ExecutionStarted(TypedDict):
|
|
58
84
|
type: Literal["agent:execution:started"]
|
|
59
85
|
executionId: str
|
|
@@ -68,6 +94,13 @@ class ExecutionOutput(TypedDict):
|
|
|
68
94
|
lines: list[str]
|
|
69
95
|
|
|
70
96
|
|
|
97
|
+
class ExecutionTestResults(TypedDict):
|
|
98
|
+
type: Literal["agent:execution:test-results"]
|
|
99
|
+
executionId: str
|
|
100
|
+
timestamp: float
|
|
101
|
+
ctrf: dict[str, object]
|
|
102
|
+
|
|
103
|
+
|
|
71
104
|
class ExecutionEnded(TypedDict):
|
|
72
105
|
type: Literal["agent:execution:ended"]
|
|
73
106
|
executionId: str
|
|
@@ -96,6 +129,7 @@ class ExecutionControl(TypedDict):
|
|
|
96
129
|
ExecutionMessage: TypeAlias = (
|
|
97
130
|
ExecutionStarted
|
|
98
131
|
| ExecutionOutput
|
|
132
|
+
| ExecutionTestResults
|
|
99
133
|
| ExecutionEnded
|
|
100
134
|
| ExecutionError
|
|
101
135
|
| ExecutionControl
|
|
@@ -90,15 +90,22 @@ def test_package_import_and_public_exports() -> None:
|
|
|
90
90
|
"KotharApiError",
|
|
91
91
|
# Executions
|
|
92
92
|
"ExecuteArgs",
|
|
93
|
+
"ExecuteCommonArgs",
|
|
93
94
|
"ExecuteResult",
|
|
95
|
+
"ExecuteScriptArgs",
|
|
96
|
+
"ExecuteTestArgs",
|
|
94
97
|
"Execution",
|
|
98
|
+
"ExecutionCommon",
|
|
95
99
|
"ExecutionControl",
|
|
96
100
|
"ExecutionEnded",
|
|
97
101
|
"ExecutionError",
|
|
98
102
|
"ExecutionMessage",
|
|
99
103
|
"ExecutionOutput",
|
|
100
104
|
"ExecutionScriptArgs",
|
|
105
|
+
"ExecutionScript",
|
|
101
106
|
"ExecutionStarted",
|
|
107
|
+
"ExecutionTest",
|
|
108
|
+
"ExecutionTestResults",
|
|
102
109
|
"SystemMetrics",
|
|
103
110
|
"SystemMetricSample",
|
|
104
111
|
"SystemMetricSeries",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/aleph_language_server.py
RENAMED
|
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
|
{kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing/subscribe_workspace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{kotharcomputing-0.89.2 → kotharcomputing-0.91.0}/src/kotharcomputing.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|