cap-sdk-python 2.0.7__tar.gz → 2.0.12__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.
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/PKG-INFO +6 -6
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/README.md +3 -3
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap/client.py +1 -1
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap/pb/__init__.py +1 -1
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/alert_pb2.py +7 -7
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/alert_pb2_grpc.py +1 -1
- cap_sdk_python-2.0.12/cap/pb/cordum/agent/v1/buspacket_pb2.py +41 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/buspacket_pb2_grpc.py +1 -1
- cap_sdk_python-2.0.12/cap/pb/cordum/agent/v1/heartbeat_pb2.py +41 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/heartbeat_pb2_grpc.py +1 -1
- cap_sdk_python-2.0.12/cap/pb/cordum/agent/v1/job_pb2.py +67 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/job_pb2_grpc.py +1 -1
- cap_sdk_python-2.0.12/cap/pb/cordum/agent/v1/safety_pb2.py +68 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/safety_pb2_grpc.py +44 -44
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap/worker.py +1 -1
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap_sdk_python.egg-info/PKG-INFO +6 -6
- cap_sdk_python-2.0.12/cap_sdk_python.egg-info/SOURCES.txt +26 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/pyproject.toml +3 -3
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/tests/test_sdk.py +2 -2
- cap_sdk_python-2.0.7/cap/pb/coretex/agent/v1/buspacket_pb2.py +0 -41
- cap_sdk_python-2.0.7/cap/pb/coretex/agent/v1/heartbeat_pb2.py +0 -41
- cap_sdk_python-2.0.7/cap/pb/coretex/agent/v1/job_pb2.py +0 -67
- cap_sdk_python-2.0.7/cap/pb/coretex/agent/v1/safety_pb2.py +0 -62
- cap_sdk_python-2.0.7/cap_sdk_python.egg-info/SOURCES.txt +0 -26
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap/__init__.py +0 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap/bus.py +0 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/__init__.py +0 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/__init__.py +0 -0
- {cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/__init__.py +0 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap_sdk_python.egg-info/dependency_links.txt +0 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap_sdk_python.egg-info/requires.txt +0 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/cap_sdk_python.egg-info/top_level.txt +0 -0
- {cap_sdk_python-2.0.7 → cap_sdk_python-2.0.12}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cap-sdk-python
|
|
3
|
-
Version: 2.0.
|
|
4
|
-
Summary: CAP (
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
3
|
+
Version: 2.0.12
|
|
4
|
+
Summary: CAP (Cordum Agent Protocol) Python SDK
|
|
5
|
+
Project-URL: Homepage, https://github.com/cordum-io/cap
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: protobuf>=4.25.0
|
|
@@ -20,7 +20,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
20
20
|
-I../../proto \
|
|
21
21
|
--python_out=./cap/pb \
|
|
22
22
|
--grpc_python_out=./cap/pb \
|
|
23
|
-
../../proto/
|
|
23
|
+
../../proto/cordum/agent/v1/*.proto
|
|
24
24
|
```
|
|
25
25
|
(Or run `./tools/make_protos.sh` from repo root with `CAP_RUN_PY=1` and copy `/python` into `sdk/python/cap/pb` if you want vendored stubs.)
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
33
33
|
```python
|
|
34
34
|
import asyncio
|
|
35
35
|
from cap import worker
|
|
36
|
-
from cap.pb.
|
|
36
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
37
37
|
|
|
38
38
|
async def handle(req: job_pb2.JobRequest):
|
|
39
39
|
return job_pb2.JobResult(
|
|
@@ -51,7 +51,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
51
51
|
import asyncio
|
|
52
52
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
53
53
|
from cap import client
|
|
54
|
-
from cap.pb.
|
|
54
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
55
55
|
import nats
|
|
56
56
|
|
|
57
57
|
async def main():
|
|
@@ -9,7 +9,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
9
9
|
-I../../proto \
|
|
10
10
|
--python_out=./cap/pb \
|
|
11
11
|
--grpc_python_out=./cap/pb \
|
|
12
|
-
../../proto/
|
|
12
|
+
../../proto/cordum/agent/v1/*.proto
|
|
13
13
|
```
|
|
14
14
|
(Or run `./tools/make_protos.sh` from repo root with `CAP_RUN_PY=1` and copy `/python` into `sdk/python/cap/pb` if you want vendored stubs.)
|
|
15
15
|
|
|
@@ -22,7 +22,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
22
22
|
```python
|
|
23
23
|
import asyncio
|
|
24
24
|
from cap import worker
|
|
25
|
-
from cap.pb.
|
|
25
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
26
26
|
|
|
27
27
|
async def handle(req: job_pb2.JobRequest):
|
|
28
28
|
return job_pb2.JobResult(
|
|
@@ -40,7 +40,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
40
40
|
import asyncio
|
|
41
41
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
42
42
|
from cap import client
|
|
43
|
-
from cap.pb.
|
|
43
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
44
44
|
import nats
|
|
45
45
|
|
|
46
46
|
async def main():
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from google.protobuf import timestamp_pb2
|
|
2
|
-
from cap.pb.
|
|
2
|
+
from cap.pb.cordum.agent.v1 import buspacket_pb2
|
|
3
3
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
4
4
|
from cryptography.hazmat.primitives import hashes
|
|
5
5
|
from typing import Optional
|
{cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/alert_pb2.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source:
|
|
4
|
+
# source: cordum/agent/v1/alert.proto
|
|
5
5
|
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
@@ -15,7 +15,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
15
15
|
31,
|
|
16
16
|
1,
|
|
17
17
|
'',
|
|
18
|
-
'
|
|
18
|
+
'cordum/agent/v1/alert.proto'
|
|
19
19
|
)
|
|
20
20
|
# @@protoc_insertion_point(imports)
|
|
21
21
|
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x63ordum/agent/v1/alert.proto\x12\x0f\x63ordum.agent.v1\"N\n\x0bSystemAlert\x12\r\n\x05level\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x11\n\tcomponent\x18\x03 \x01(\t\x12\x0c\n\x04\x63ode\x18\x04 \x01(\tB\x7f\n\x16io.cordum.cap.agent.v1P\x01Z+github.com/cordum-io/cap/v2/cordum/agent/v1\xaa\x02\x0f\x43ordum.Agent.V1\xca\x02\x0f\x63ordum\\Agent\\V1\xea\x02\x11\x43ordum::Agent::V1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, '
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cordum.agent.v1.alert_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\
|
|
35
|
-
_globals['_SYSTEMALERT']._serialized_start=
|
|
36
|
-
_globals['_SYSTEMALERT']._serialized_end=
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026io.cordum.cap.agent.v1P\001Z+github.com/cordum-io/cap/v2/cordum/agent/v1\252\002\017Cordum.Agent.V1\312\002\017cordum\\Agent\\V1\352\002\021Cordum::Agent::V1'
|
|
35
|
+
_globals['_SYSTEMALERT']._serialized_start=48
|
|
36
|
+
_globals['_SYSTEMALERT']._serialized_end=126
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -17,7 +17,7 @@ except ImportError:
|
|
|
17
17
|
if _version_not_supported:
|
|
18
18
|
raise RuntimeError(
|
|
19
19
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ ' but the generated code in
|
|
20
|
+
+ ' but the generated code in cordum/agent/v1/alert_pb2_grpc.py depends on'
|
|
21
21
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
22
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
23
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cordum/agent/v1/buspacket.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'cordum/agent/v1/buspacket.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from cordum.agent.v1 import job_pb2 as cordum_dot_agent_dot_v1_dot_job__pb2
|
|
27
|
+
from cordum.agent.v1 import heartbeat_pb2 as cordum_dot_agent_dot_v1_dot_heartbeat__pb2
|
|
28
|
+
from cordum.agent.v1 import alert_pb2 as cordum_dot_agent_dot_v1_dot_alert__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63ordum/agent/v1/buspacket.proto\x12\x0f\x63ordum.agent.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x19\x63ordum/agent/v1/job.proto\x1a\x1f\x63ordum/agent/v1/heartbeat.proto\x1a\x1b\x63ordum/agent/v1/alert.proto\"\xc6\x03\n\tBusPacket\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x11\n\tsender_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10protocol_version\x18\x04 \x01(\x05\x12\x32\n\x0bjob_request\x18\n \x01(\x0b\x32\x1b.cordum.agent.v1.JobRequestH\x00\x12\x30\n\njob_result\x18\x0b \x01(\x0b\x32\x1a.cordum.agent.v1.JobResultH\x00\x12/\n\theartbeat\x18\x0c \x01(\x0b\x32\x1a.cordum.agent.v1.HeartbeatH\x00\x12-\n\x05\x61lert\x18\r \x01(\x0b\x32\x1c.cordum.agent.v1.SystemAlertH\x00\x12\x34\n\x0cjob_progress\x18\x0f \x01(\x0b\x32\x1c.cordum.agent.v1.JobProgressH\x00\x12\x30\n\njob_cancel\x18\x10 \x01(\x0b\x32\x1a.cordum.agent.v1.JobCancelH\x00\x12\x11\n\tsignature\x18\x0e \x01(\x0c\x42\t\n\x07payloadB\x7f\n\x16io.cordum.cap.agent.v1P\x01Z+github.com/cordum-io/cap/v2/cordum/agent/v1\xaa\x02\x0f\x43ordum.Agent.V1\xca\x02\x0f\x63ordum\\Agent\\V1\xea\x02\x11\x43ordum::Agent::V1b\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cordum.agent.v1.buspacket_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026io.cordum.cap.agent.v1P\001Z+github.com/cordum-io/cap/v2/cordum/agent/v1\252\002\017Cordum.Agent.V1\312\002\017cordum\\Agent\\V1\352\002\021Cordum::Agent::V1'
|
|
39
|
+
_globals['_BUSPACKET']._serialized_start=175
|
|
40
|
+
_globals['_BUSPACKET']._serialized_end=629
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -17,7 +17,7 @@ except ImportError:
|
|
|
17
17
|
if _version_not_supported:
|
|
18
18
|
raise RuntimeError(
|
|
19
19
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ ' but the generated code in
|
|
20
|
+
+ ' but the generated code in cordum/agent/v1/buspacket_pb2_grpc.py depends on'
|
|
21
21
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
22
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
23
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cordum/agent/v1/heartbeat.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'cordum/agent/v1/heartbeat.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63ordum/agent/v1/heartbeat.proto\x12\x0f\x63ordum.agent.v1\"\xa2\x02\n\tHeartbeat\x12\x11\n\tworker_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x10\n\x08\x63pu_load\x18\x04 \x01(\x02\x12\x17\n\x0fgpu_utilization\x18\x05 \x01(\x02\x12\x13\n\x0b\x61\x63tive_jobs\x18\x06 \x01(\x05\x12\x14\n\x0c\x63\x61pabilities\x18\x07 \x03(\t\x12\x0c\n\x04pool\x18\x0b \x01(\t\x12\x19\n\x11max_parallel_jobs\x18\x0c \x01(\x05\x12\x36\n\x06labels\x18\r \x03(\x0b\x32&.cordum.agent.v1.Heartbeat.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x7f\n\x16io.cordum.cap.agent.v1P\x01Z+github.com/cordum-io/cap/v2/cordum/agent/v1\xaa\x02\x0f\x43ordum.Agent.V1\xca\x02\x0f\x63ordum\\Agent\\V1\xea\x02\x11\x43ordum::Agent::V1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cordum.agent.v1.heartbeat_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026io.cordum.cap.agent.v1P\001Z+github.com/cordum-io/cap/v2/cordum/agent/v1\252\002\017Cordum.Agent.V1\312\002\017cordum\\Agent\\V1\352\002\021Cordum::Agent::V1'
|
|
35
|
+
_globals['_HEARTBEAT_LABELSENTRY']._loaded_options = None
|
|
36
|
+
_globals['_HEARTBEAT_LABELSENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_HEARTBEAT']._serialized_start=53
|
|
38
|
+
_globals['_HEARTBEAT']._serialized_end=343
|
|
39
|
+
_globals['_HEARTBEAT_LABELSENTRY']._serialized_start=298
|
|
40
|
+
_globals['_HEARTBEAT_LABELSENTRY']._serialized_end=343
|
|
41
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -17,7 +17,7 @@ except ImportError:
|
|
|
17
17
|
if _version_not_supported:
|
|
18
18
|
raise RuntimeError(
|
|
19
19
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ ' but the generated code in
|
|
20
|
+
+ ' but the generated code in cordum/agent/v1/heartbeat_pb2_grpc.py depends on'
|
|
21
21
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
22
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
23
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cordum/agent/v1/job.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'cordum/agent/v1/job.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63ordum/agent/v1/job.proto\x12\x0f\x63ordum.agent.v1\"l\n\x0c\x43ontextHints\x12\x18\n\x10max_input_tokens\x18\x01 \x01(\x05\x12\x1b\n\x13\x61llow_summarization\x18\x02 \x01(\x08\x12\x17\n\x0f\x61llow_retrieval\x18\x03 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\"l\n\x06\x42udget\x12\x18\n\x10max_input_tokens\x18\x01 \x01(\x03\x12\x19\n\x11max_output_tokens\x18\x02 \x01(\x03\x12\x18\n\x10max_total_tokens\x18\x03 \x01(\x03\x12\x13\n\x0b\x64\x65\x61\x64line_ms\x18\x04 \x01(\x03\"\xae\x02\n\x0bJobMetadata\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x10\n\x08\x61\x63tor_id\x18\x02 \x01(\t\x12.\n\nactor_type\x18\x03 \x01(\x0e\x32\x1a.cordum.agent.v1.ActorType\x12\x17\n\x0fidempotency_key\x18\x04 \x01(\t\x12\x12\n\ncapability\x18\x05 \x01(\t\x12\x11\n\trisk_tags\x18\x06 \x03(\t\x12\x10\n\x08requires\x18\x07 \x03(\t\x12\x0f\n\x07pack_id\x18\x08 \x01(\t\x12\x38\n\x06labels\x18\t \x03(\x0b\x32(.cordum.agent.v1.JobMetadata.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd2\x04\n\nJobRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12.\n\x08priority\x18\x03 \x01(\x0e\x32\x1c.cordum.agent.v1.JobPriority\x12\x13\n\x0b\x63ontext_ptr\x18\x04 \x01(\t\x12\x12\n\nadapter_id\x18\x05 \x01(\t\x12\x31\n\x03\x65nv\x18\x06 \x03(\x0b\x32$.cordum.agent.v1.JobRequest.EnvEntry\x12\x15\n\rparent_job_id\x18\x07 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x08 \x01(\t\x12\x12\n\nstep_index\x18\t \x01(\x05\x12\x11\n\tmemory_id\x18\n \x01(\t\x12\x34\n\rcontext_hints\x18\x0b \x01(\x0b\x32\x1d.cordum.agent.v1.ContextHints\x12\'\n\x06\x62udget\x18\x0c \x01(\x0b\x32\x17.cordum.agent.v1.Budget\x12\x11\n\ttenant_id\x18\r \x01(\t\x12\x14\n\x0cprincipal_id\x18\x0e \x01(\t\x12\x37\n\x06labels\x18\x0f \x03(\x0b\x32\'.cordum.agent.v1.JobRequest.LabelsEntry\x12*\n\x04meta\x18\x10 \x01(\x0b\x32\x1c.cordum.agent.v1.JobMetadata\x1a*\n\x08\x45nvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc6\x01\n\tJobResult\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12*\n\x06status\x18\x02 \x01(\x0e\x32\x1a.cordum.agent.v1.JobStatus\x12\x12\n\nresult_ptr\x18\x03 \x01(\t\x12\x11\n\tworker_id\x18\x04 \x01(\t\x12\x14\n\x0c\x65xecution_ms\x18\x05 \x01(\x03\x12\x12\n\nerror_code\x18\x06 \x01(\t\x12\x15\n\rerror_message\x18\x07 \x01(\t\x12\x15\n\rartifact_ptrs\x18\x08 \x03(\t\"\xa7\x01\n\x0bJobProgress\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x0f\n\x07step_id\x18\x02 \x01(\t\x12\x0f\n\x07percent\x18\x03 \x01(\x05\x12\x0f\n\x07message\x18\x04 \x01(\t\x12\x12\n\nresult_ptr\x18\x05 \x01(\t\x12\x15\n\rartifact_ptrs\x18\x06 \x03(\t\x12*\n\x06status\x18\x07 \x01(\x0e\x32\x1a.cordum.agent.v1.JobStatus\"A\n\tJobCancel\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x14\n\x0crequested_by\x18\x03 \x01(\t*|\n\x0bJobPriority\x12\x1c\n\x18JOB_PRIORITY_UNSPECIFIED\x10\x00\x12\x1c\n\x18JOB_PRIORITY_INTERACTIVE\x10\x01\x12\x16\n\x12JOB_PRIORITY_BATCH\x10\x02\x12\x19\n\x15JOB_PRIORITY_CRITICAL\x10\x03*\x86\x02\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x18\n\x14JOB_STATUS_SCHEDULED\x10\x02\x12\x19\n\x15JOB_STATUS_DISPATCHED\x10\x03\x12\x16\n\x12JOB_STATUS_RUNNING\x10\x04\x12\x18\n\x14JOB_STATUS_SUCCEEDED\x10\x05\x12\x15\n\x11JOB_STATUS_FAILED\x10\x06\x12\x18\n\x14JOB_STATUS_CANCELLED\x10\x07\x12\x15\n\x11JOB_STATUS_DENIED\x10\x08\x12\x16\n\x12JOB_STATUS_TIMEOUT\x10\t*U\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TOR_TYPE_HUMAN\x10\x01\x12\x16\n\x12\x41\x43TOR_TYPE_SERVICE\x10\x02\x42\x7f\n\x16io.cordum.cap.agent.v1P\x01Z+github.com/cordum-io/cap/v2/cordum/agent/v1\xaa\x02\x0f\x43ordum.Agent.V1\xca\x02\x0f\x63ordum\\Agent\\V1\xea\x02\x11\x43ordum::Agent::V1b\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cordum.agent.v1.job_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026io.cordum.cap.agent.v1P\001Z+github.com/cordum-io/cap/v2/cordum/agent/v1\252\002\017Cordum.Agent.V1\312\002\017cordum\\Agent\\V1\352\002\021Cordum::Agent::V1'
|
|
35
|
+
_globals['_JOBMETADATA_LABELSENTRY']._loaded_options = None
|
|
36
|
+
_globals['_JOBMETADATA_LABELSENTRY']._serialized_options = b'8\001'
|
|
37
|
+
_globals['_JOBREQUEST_ENVENTRY']._loaded_options = None
|
|
38
|
+
_globals['_JOBREQUEST_ENVENTRY']._serialized_options = b'8\001'
|
|
39
|
+
_globals['_JOBREQUEST_LABELSENTRY']._loaded_options = None
|
|
40
|
+
_globals['_JOBREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
41
|
+
_globals['_JOBPRIORITY']._serialized_start=1606
|
|
42
|
+
_globals['_JOBPRIORITY']._serialized_end=1730
|
|
43
|
+
_globals['_JOBSTATUS']._serialized_start=1733
|
|
44
|
+
_globals['_JOBSTATUS']._serialized_end=1995
|
|
45
|
+
_globals['_ACTORTYPE']._serialized_start=1997
|
|
46
|
+
_globals['_ACTORTYPE']._serialized_end=2082
|
|
47
|
+
_globals['_CONTEXTHINTS']._serialized_start=46
|
|
48
|
+
_globals['_CONTEXTHINTS']._serialized_end=154
|
|
49
|
+
_globals['_BUDGET']._serialized_start=156
|
|
50
|
+
_globals['_BUDGET']._serialized_end=264
|
|
51
|
+
_globals['_JOBMETADATA']._serialized_start=267
|
|
52
|
+
_globals['_JOBMETADATA']._serialized_end=569
|
|
53
|
+
_globals['_JOBMETADATA_LABELSENTRY']._serialized_start=524
|
|
54
|
+
_globals['_JOBMETADATA_LABELSENTRY']._serialized_end=569
|
|
55
|
+
_globals['_JOBREQUEST']._serialized_start=572
|
|
56
|
+
_globals['_JOBREQUEST']._serialized_end=1166
|
|
57
|
+
_globals['_JOBREQUEST_ENVENTRY']._serialized_start=1077
|
|
58
|
+
_globals['_JOBREQUEST_ENVENTRY']._serialized_end=1119
|
|
59
|
+
_globals['_JOBREQUEST_LABELSENTRY']._serialized_start=524
|
|
60
|
+
_globals['_JOBREQUEST_LABELSENTRY']._serialized_end=569
|
|
61
|
+
_globals['_JOBRESULT']._serialized_start=1169
|
|
62
|
+
_globals['_JOBRESULT']._serialized_end=1367
|
|
63
|
+
_globals['_JOBPROGRESS']._serialized_start=1370
|
|
64
|
+
_globals['_JOBPROGRESS']._serialized_end=1537
|
|
65
|
+
_globals['_JOBCANCEL']._serialized_start=1539
|
|
66
|
+
_globals['_JOBCANCEL']._serialized_end=1604
|
|
67
|
+
# @@protoc_insertion_point(module_scope)
|
{cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/job_pb2_grpc.py
RENAMED
|
@@ -17,7 +17,7 @@ except ImportError:
|
|
|
17
17
|
if _version_not_supported:
|
|
18
18
|
raise RuntimeError(
|
|
19
19
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
-
+ ' but the generated code in
|
|
20
|
+
+ ' but the generated code in cordum/agent/v1/job_pb2_grpc.py depends on'
|
|
21
21
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
22
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
23
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: cordum/agent/v1/safety.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'cordum/agent/v1/safety.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from cordum.agent.v1 import job_pb2 as cordum_dot_agent_dot_v1_dot_job__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x63ordum/agent/v1/safety.proto\x12\x0f\x63ordum.agent.v1\x1a\x19\x63ordum/agent/v1/job.proto\"\x93\x03\n\x12PolicyCheckRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0e\n\x06tenant\x18\x03 \x01(\t\x12.\n\x08priority\x18\x04 \x01(\x0e\x32\x1c.cordum.agent.v1.JobPriority\x12\x16\n\x0e\x65stimated_cost\x18\x05 \x01(\x01\x12\'\n\x06\x62udget\x18\x06 \x01(\x0b\x32\x17.cordum.agent.v1.Budget\x12\x14\n\x0cprincipal_id\x18\x07 \x01(\t\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.cordum.agent.v1.PolicyCheckRequest.LabelsEntry\x12\x11\n\tmemory_id\x18\t \x01(\t\x12\x18\n\x10\x65\x66\x66\x65\x63tive_config\x18\n \x01(\x0c\x12*\n\x04meta\x18\x0b \x01(\x0b\x32\x1c.cordum.agent.v1.JobMetadata\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x11\x42udgetConstraints\x12\x16\n\x0emax_runtime_ms\x18\x01 \x01(\x03\x12\x13\n\x0bmax_retries\x18\x02 \x01(\x05\x12\x1a\n\x12max_artifact_bytes\x18\x03 \x01(\x03\x12\x1b\n\x13max_concurrent_jobs\x18\x04 \x01(\x05\"j\n\x0eSandboxProfile\x12\x10\n\x08isolated\x18\x01 \x01(\x08\x12\x19\n\x11network_allowlist\x18\x02 \x03(\t\x12\x14\n\x0c\x66s_read_only\x18\x03 \x03(\t\x12\x15\n\rfs_read_write\x18\x04 \x03(\t\"G\n\x14ToolchainConstraints\x12\x15\n\rallowed_tools\x18\x01 \x03(\t\x12\x18\n\x10\x61llowed_commands\x18\x02 \x03(\t\"P\n\x0f\x44iffConstraints\x12\x11\n\tmax_files\x18\x01 \x01(\x05\x12\x11\n\tmax_lines\x18\x02 \x01(\x05\x12\x17\n\x0f\x64\x65ny_path_globs\x18\x03 \x03(\t\"\xfd\x01\n\x11PolicyConstraints\x12\x33\n\x07\x62udgets\x18\x01 \x01(\x0b\x32\".cordum.agent.v1.BudgetConstraints\x12\x30\n\x07sandbox\x18\x02 \x01(\x0b\x32\x1f.cordum.agent.v1.SandboxProfile\x12\x38\n\ttoolchain\x18\x03 \x01(\x0b\x32%.cordum.agent.v1.ToolchainConstraints\x12.\n\x04\x64iff\x18\x04 \x01(\x0b\x32 .cordum.agent.v1.DiffConstraints\x12\x17\n\x0fredaction_level\x18\x05 \x01(\t\"\x8a\x02\n\x11PolicyRemediation\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07summary\x18\x03 \x01(\t\x12\x19\n\x11replacement_topic\x18\x04 \x01(\t\x12\x1e\n\x16replacement_capability\x18\x05 \x01(\t\x12\x45\n\nadd_labels\x18\x06 \x03(\x0b\x32\x31.cordum.agent.v1.PolicyRemediation.AddLabelsEntry\x12\x15\n\rremove_labels\x18\x07 \x03(\t\x1a\x30\n\x0e\x41\x64\x64LabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc2\x02\n\x13PolicyCheckResponse\x12/\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32\x1d.cordum.agent.v1.DecisionType\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x1c\n\x14redacted_context_ptr\x18\x03 \x01(\t\x12\x17\n\x0fpolicy_snapshot\x18\x04 \x01(\t\x12\x0f\n\x07rule_id\x18\x05 \x01(\t\x12\x37\n\x0b\x63onstraints\x18\x06 \x01(\x0b\x32\".cordum.agent.v1.PolicyConstraints\x12\x19\n\x11\x61pproval_required\x18\x07 \x01(\x08\x12\x14\n\x0c\x61pproval_ref\x18\x08 \x01(\t\x12\x38\n\x0cremediations\x18\t \x03(\x0b\x32\".cordum.agent.v1.PolicyRemediation\"\x16\n\x14ListSnapshotsRequest\"*\n\x15ListSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t*\xc5\x01\n\x0c\x44\x65\x63isionType\x12\x1d\n\x19\x44\x45\x43ISION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x44\x45\x43ISION_TYPE_ALLOW\x10\x01\x12\x16\n\x12\x44\x45\x43ISION_TYPE_DENY\x10\x02\x12\x1f\n\x1b\x44\x45\x43ISION_TYPE_REQUIRE_HUMAN\x10\x03\x12\x1a\n\x16\x44\x45\x43ISION_TYPE_THROTTLE\x10\x04\x12(\n$DECISION_TYPE_ALLOW_WITH_CONSTRAINTS\x10\x05\x32\xc6\x03\n\x0cSafetyKernel\x12R\n\x05\x43heck\x12#.cordum.agent.v1.PolicyCheckRequest\x1a$.cordum.agent.v1.PolicyCheckResponse\x12U\n\x08\x45valuate\x12#.cordum.agent.v1.PolicyCheckRequest\x1a$.cordum.agent.v1.PolicyCheckResponse\x12T\n\x07\x45xplain\x12#.cordum.agent.v1.PolicyCheckRequest\x1a$.cordum.agent.v1.PolicyCheckResponse\x12U\n\x08Simulate\x12#.cordum.agent.v1.PolicyCheckRequest\x1a$.cordum.agent.v1.PolicyCheckResponse\x12^\n\rListSnapshots\x12%.cordum.agent.v1.ListSnapshotsRequest\x1a&.cordum.agent.v1.ListSnapshotsResponseB\x7f\n\x16io.cordum.cap.agent.v1P\x01Z+github.com/cordum-io/cap/v2/cordum/agent/v1\xaa\x02\x0f\x43ordum.Agent.V1\xca\x02\x0f\x63ordum\\Agent\\V1\xea\x02\x11\x43ordum::Agent::V1b\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cordum.agent.v1.safety_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\026io.cordum.cap.agent.v1P\001Z+github.com/cordum-io/cap/v2/cordum/agent/v1\252\002\017Cordum.Agent.V1\312\002\017cordum\\Agent\\V1\352\002\021Cordum::Agent::V1'
|
|
36
|
+
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._loaded_options = None
|
|
37
|
+
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_POLICYREMEDIATION_ADDLABELSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_POLICYREMEDIATION_ADDLABELSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_DECISIONTYPE']._serialized_start=1787
|
|
41
|
+
_globals['_DECISIONTYPE']._serialized_end=1984
|
|
42
|
+
_globals['_POLICYCHECKREQUEST']._serialized_start=77
|
|
43
|
+
_globals['_POLICYCHECKREQUEST']._serialized_end=480
|
|
44
|
+
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_start=435
|
|
45
|
+
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_end=480
|
|
46
|
+
_globals['_BUDGETCONSTRAINTS']._serialized_start=482
|
|
47
|
+
_globals['_BUDGETCONSTRAINTS']._serialized_end=603
|
|
48
|
+
_globals['_SANDBOXPROFILE']._serialized_start=605
|
|
49
|
+
_globals['_SANDBOXPROFILE']._serialized_end=711
|
|
50
|
+
_globals['_TOOLCHAINCONSTRAINTS']._serialized_start=713
|
|
51
|
+
_globals['_TOOLCHAINCONSTRAINTS']._serialized_end=784
|
|
52
|
+
_globals['_DIFFCONSTRAINTS']._serialized_start=786
|
|
53
|
+
_globals['_DIFFCONSTRAINTS']._serialized_end=866
|
|
54
|
+
_globals['_POLICYCONSTRAINTS']._serialized_start=869
|
|
55
|
+
_globals['_POLICYCONSTRAINTS']._serialized_end=1122
|
|
56
|
+
_globals['_POLICYREMEDIATION']._serialized_start=1125
|
|
57
|
+
_globals['_POLICYREMEDIATION']._serialized_end=1391
|
|
58
|
+
_globals['_POLICYREMEDIATION_ADDLABELSENTRY']._serialized_start=1343
|
|
59
|
+
_globals['_POLICYREMEDIATION_ADDLABELSENTRY']._serialized_end=1391
|
|
60
|
+
_globals['_POLICYCHECKRESPONSE']._serialized_start=1394
|
|
61
|
+
_globals['_POLICYCHECKRESPONSE']._serialized_end=1716
|
|
62
|
+
_globals['_LISTSNAPSHOTSREQUEST']._serialized_start=1718
|
|
63
|
+
_globals['_LISTSNAPSHOTSREQUEST']._serialized_end=1740
|
|
64
|
+
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_start=1742
|
|
65
|
+
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_end=1784
|
|
66
|
+
_globals['_SAFETYKERNEL']._serialized_start=1987
|
|
67
|
+
_globals['_SAFETYKERNEL']._serialized_end=2441
|
|
68
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import grpc
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
|
-
from
|
|
6
|
+
from cordum.agent.v1 import safety_pb2 as cordum_dot_agent_dot_v1_dot_safety__pb2
|
|
7
7
|
|
|
8
8
|
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
9
|
GRPC_VERSION = grpc.__version__
|
|
@@ -18,7 +18,7 @@ except ImportError:
|
|
|
18
18
|
if _version_not_supported:
|
|
19
19
|
raise RuntimeError(
|
|
20
20
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
-
+ ' but the generated code in
|
|
21
|
+
+ ' but the generated code in cordum/agent/v1/safety_pb2_grpc.py depends on'
|
|
22
22
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
23
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
24
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -36,29 +36,29 @@ class SafetyKernelStub(object):
|
|
|
36
36
|
channel: A grpc.Channel.
|
|
37
37
|
"""
|
|
38
38
|
self.Check = channel.unary_unary(
|
|
39
|
-
'/
|
|
40
|
-
request_serializer=
|
|
41
|
-
response_deserializer=
|
|
39
|
+
'/cordum.agent.v1.SafetyKernel/Check',
|
|
40
|
+
request_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
41
|
+
response_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
42
42
|
_registered_method=True)
|
|
43
43
|
self.Evaluate = channel.unary_unary(
|
|
44
|
-
'/
|
|
45
|
-
request_serializer=
|
|
46
|
-
response_deserializer=
|
|
44
|
+
'/cordum.agent.v1.SafetyKernel/Evaluate',
|
|
45
|
+
request_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
46
|
+
response_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
47
47
|
_registered_method=True)
|
|
48
48
|
self.Explain = channel.unary_unary(
|
|
49
|
-
'/
|
|
50
|
-
request_serializer=
|
|
51
|
-
response_deserializer=
|
|
49
|
+
'/cordum.agent.v1.SafetyKernel/Explain',
|
|
50
|
+
request_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
51
|
+
response_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
52
52
|
_registered_method=True)
|
|
53
53
|
self.Simulate = channel.unary_unary(
|
|
54
|
-
'/
|
|
55
|
-
request_serializer=
|
|
56
|
-
response_deserializer=
|
|
54
|
+
'/cordum.agent.v1.SafetyKernel/Simulate',
|
|
55
|
+
request_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
56
|
+
response_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
57
57
|
_registered_method=True)
|
|
58
58
|
self.ListSnapshots = channel.unary_unary(
|
|
59
|
-
'/
|
|
60
|
-
request_serializer=
|
|
61
|
-
response_deserializer=
|
|
59
|
+
'/cordum.agent.v1.SafetyKernel/ListSnapshots',
|
|
60
|
+
request_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsRequest.SerializeToString,
|
|
61
|
+
response_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsResponse.FromString,
|
|
62
62
|
_registered_method=True)
|
|
63
63
|
|
|
64
64
|
|
|
@@ -101,34 +101,34 @@ def add_SafetyKernelServicer_to_server(servicer, server):
|
|
|
101
101
|
rpc_method_handlers = {
|
|
102
102
|
'Check': grpc.unary_unary_rpc_method_handler(
|
|
103
103
|
servicer.Check,
|
|
104
|
-
request_deserializer=
|
|
105
|
-
response_serializer=
|
|
104
|
+
request_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.FromString,
|
|
105
|
+
response_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.SerializeToString,
|
|
106
106
|
),
|
|
107
107
|
'Evaluate': grpc.unary_unary_rpc_method_handler(
|
|
108
108
|
servicer.Evaluate,
|
|
109
|
-
request_deserializer=
|
|
110
|
-
response_serializer=
|
|
109
|
+
request_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.FromString,
|
|
110
|
+
response_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.SerializeToString,
|
|
111
111
|
),
|
|
112
112
|
'Explain': grpc.unary_unary_rpc_method_handler(
|
|
113
113
|
servicer.Explain,
|
|
114
|
-
request_deserializer=
|
|
115
|
-
response_serializer=
|
|
114
|
+
request_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.FromString,
|
|
115
|
+
response_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.SerializeToString,
|
|
116
116
|
),
|
|
117
117
|
'Simulate': grpc.unary_unary_rpc_method_handler(
|
|
118
118
|
servicer.Simulate,
|
|
119
|
-
request_deserializer=
|
|
120
|
-
response_serializer=
|
|
119
|
+
request_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.FromString,
|
|
120
|
+
response_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.SerializeToString,
|
|
121
121
|
),
|
|
122
122
|
'ListSnapshots': grpc.unary_unary_rpc_method_handler(
|
|
123
123
|
servicer.ListSnapshots,
|
|
124
|
-
request_deserializer=
|
|
125
|
-
response_serializer=
|
|
124
|
+
request_deserializer=cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsRequest.FromString,
|
|
125
|
+
response_serializer=cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsResponse.SerializeToString,
|
|
126
126
|
),
|
|
127
127
|
}
|
|
128
128
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
129
|
-
'
|
|
129
|
+
'cordum.agent.v1.SafetyKernel', rpc_method_handlers)
|
|
130
130
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
131
|
-
server.add_registered_method_handlers('
|
|
131
|
+
server.add_registered_method_handlers('cordum.agent.v1.SafetyKernel', rpc_method_handlers)
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
# This class is part of an EXPERIMENTAL API.
|
|
@@ -150,9 +150,9 @@ class SafetyKernel(object):
|
|
|
150
150
|
return grpc.experimental.unary_unary(
|
|
151
151
|
request,
|
|
152
152
|
target,
|
|
153
|
-
'/
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
'/cordum.agent.v1.SafetyKernel/Check',
|
|
154
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
155
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
156
156
|
options,
|
|
157
157
|
channel_credentials,
|
|
158
158
|
insecure,
|
|
@@ -177,9 +177,9 @@ class SafetyKernel(object):
|
|
|
177
177
|
return grpc.experimental.unary_unary(
|
|
178
178
|
request,
|
|
179
179
|
target,
|
|
180
|
-
'/
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
'/cordum.agent.v1.SafetyKernel/Evaluate',
|
|
181
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
182
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
183
183
|
options,
|
|
184
184
|
channel_credentials,
|
|
185
185
|
insecure,
|
|
@@ -204,9 +204,9 @@ class SafetyKernel(object):
|
|
|
204
204
|
return grpc.experimental.unary_unary(
|
|
205
205
|
request,
|
|
206
206
|
target,
|
|
207
|
-
'/
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
'/cordum.agent.v1.SafetyKernel/Explain',
|
|
208
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
209
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
210
210
|
options,
|
|
211
211
|
channel_credentials,
|
|
212
212
|
insecure,
|
|
@@ -231,9 +231,9 @@ class SafetyKernel(object):
|
|
|
231
231
|
return grpc.experimental.unary_unary(
|
|
232
232
|
request,
|
|
233
233
|
target,
|
|
234
|
-
'/
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
'/cordum.agent.v1.SafetyKernel/Simulate',
|
|
235
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckRequest.SerializeToString,
|
|
236
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.PolicyCheckResponse.FromString,
|
|
237
237
|
options,
|
|
238
238
|
channel_credentials,
|
|
239
239
|
insecure,
|
|
@@ -258,9 +258,9 @@ class SafetyKernel(object):
|
|
|
258
258
|
return grpc.experimental.unary_unary(
|
|
259
259
|
request,
|
|
260
260
|
target,
|
|
261
|
-
'/
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
'/cordum.agent.v1.SafetyKernel/ListSnapshots',
|
|
262
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsRequest.SerializeToString,
|
|
263
|
+
cordum_dot_agent_dot_v1_dot_safety__pb2.ListSnapshotsResponse.FromString,
|
|
264
264
|
options,
|
|
265
265
|
channel_credentials,
|
|
266
266
|
insecure,
|
|
@@ -2,7 +2,7 @@ import asyncio
|
|
|
2
2
|
from typing import Callable, Awaitable, Dict
|
|
3
3
|
|
|
4
4
|
from google.protobuf import timestamp_pb2
|
|
5
|
-
from cap.pb.
|
|
5
|
+
from cap.pb.cordum.agent.v1 import buspacket_pb2, job_pb2
|
|
6
6
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
7
7
|
from cryptography.hazmat.primitives import hashes
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cap-sdk-python
|
|
3
|
-
Version: 2.0.
|
|
4
|
-
Summary: CAP (
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
3
|
+
Version: 2.0.12
|
|
4
|
+
Summary: CAP (Cordum Agent Protocol) Python SDK
|
|
5
|
+
Project-URL: Homepage, https://github.com/cordum-io/cap
|
|
6
6
|
Requires-Python: >=3.9
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: protobuf>=4.25.0
|
|
@@ -20,7 +20,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
20
20
|
-I../../proto \
|
|
21
21
|
--python_out=./cap/pb \
|
|
22
22
|
--grpc_python_out=./cap/pb \
|
|
23
|
-
../../proto/
|
|
23
|
+
../../proto/cordum/agent/v1/*.proto
|
|
24
24
|
```
|
|
25
25
|
(Or run `./tools/make_protos.sh` from repo root with `CAP_RUN_PY=1` and copy `/python` into `sdk/python/cap/pb` if you want vendored stubs.)
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
33
33
|
```python
|
|
34
34
|
import asyncio
|
|
35
35
|
from cap import worker
|
|
36
|
-
from cap.pb.
|
|
36
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
37
37
|
|
|
38
38
|
async def handle(req: job_pb2.JobRequest):
|
|
39
39
|
return job_pb2.JobResult(
|
|
@@ -51,7 +51,7 @@ Asyncio-first SDK with NATS helpers for CAP workers and clients.
|
|
|
51
51
|
import asyncio
|
|
52
52
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
53
53
|
from cap import client
|
|
54
|
-
from cap.pb.
|
|
54
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
55
55
|
import nats
|
|
56
56
|
|
|
57
57
|
async def main():
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
cap/__init__.py
|
|
4
|
+
cap/bus.py
|
|
5
|
+
cap/client.py
|
|
6
|
+
cap/worker.py
|
|
7
|
+
cap/pb/__init__.py
|
|
8
|
+
cap/pb/cordum/__init__.py
|
|
9
|
+
cap/pb/cordum/agent/__init__.py
|
|
10
|
+
cap/pb/cordum/agent/v1/__init__.py
|
|
11
|
+
cap/pb/cordum/agent/v1/alert_pb2.py
|
|
12
|
+
cap/pb/cordum/agent/v1/alert_pb2_grpc.py
|
|
13
|
+
cap/pb/cordum/agent/v1/buspacket_pb2.py
|
|
14
|
+
cap/pb/cordum/agent/v1/buspacket_pb2_grpc.py
|
|
15
|
+
cap/pb/cordum/agent/v1/heartbeat_pb2.py
|
|
16
|
+
cap/pb/cordum/agent/v1/heartbeat_pb2_grpc.py
|
|
17
|
+
cap/pb/cordum/agent/v1/job_pb2.py
|
|
18
|
+
cap/pb/cordum/agent/v1/job_pb2_grpc.py
|
|
19
|
+
cap/pb/cordum/agent/v1/safety_pb2.py
|
|
20
|
+
cap/pb/cordum/agent/v1/safety_pb2_grpc.py
|
|
21
|
+
cap_sdk_python.egg-info/PKG-INFO
|
|
22
|
+
cap_sdk_python.egg-info/SOURCES.txt
|
|
23
|
+
cap_sdk_python.egg-info/dependency_links.txt
|
|
24
|
+
cap_sdk_python.egg-info/requires.txt
|
|
25
|
+
cap_sdk_python.egg-info/top_level.txt
|
|
26
|
+
tests/test_sdk.py
|
|
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cap-sdk-python"
|
|
7
|
-
version = "2.0.
|
|
8
|
-
description = "CAP (
|
|
7
|
+
version = "2.0.12"
|
|
8
|
+
description = "CAP (Cordum Agent Protocol) Python SDK"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
dependencies = [
|
|
@@ -15,7 +15,7 @@ dependencies = [
|
|
|
15
15
|
]
|
|
16
16
|
|
|
17
17
|
[project.urls]
|
|
18
|
-
Homepage = "https://github.com/
|
|
18
|
+
Homepage = "https://github.com/cordum-io/cap"
|
|
19
19
|
|
|
20
20
|
[tool.setuptools.packages.find]
|
|
21
21
|
where = ["."]
|
|
@@ -16,7 +16,7 @@ sys.path.append(os.path.join(_sdk_root, "cap", "pb"))
|
|
|
16
16
|
from cryptography.hazmat.primitives.asymmetric import ec
|
|
17
17
|
from cryptography.hazmat.primitives import hashes
|
|
18
18
|
|
|
19
|
-
from cap.pb.
|
|
19
|
+
from cap.pb.cordum.agent.v1 import job_pb2
|
|
20
20
|
from cap import client
|
|
21
21
|
from cap import worker
|
|
22
22
|
|
|
@@ -88,7 +88,7 @@ class TestSDK(unittest.TestCase):
|
|
|
88
88
|
self.assertEqual(subj, worker.SUBJECT_RESULT)
|
|
89
89
|
|
|
90
90
|
# Verify the signature of the result
|
|
91
|
-
from cap.pb.
|
|
91
|
+
from cap.pb.cordum.agent.v1 import buspacket_pb2
|
|
92
92
|
result_packet = buspacket_pb2.BusPacket()
|
|
93
93
|
result_packet.ParseFromString(data)
|
|
94
94
|
signature = result_packet.signature
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: coretex/agent/v1/buspacket.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'coretex/agent/v1/buspacket.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
-
from coretex.agent.v1 import job_pb2 as coretex_dot_agent_dot_v1_dot_job__pb2
|
|
27
|
-
from coretex.agent.v1 import heartbeat_pb2 as coretex_dot_agent_dot_v1_dot_heartbeat__pb2
|
|
28
|
-
from coretex.agent.v1 import alert_pb2 as coretex_dot_agent_dot_v1_dot_alert__pb2
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n coretex/agent/v1/buspacket.proto\x12\x10\x63oretex.agent.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1a\x63oretex/agent/v1/job.proto\x1a coretex/agent/v1/heartbeat.proto\x1a\x1c\x63oretex/agent/v1/alert.proto\"\xcc\x03\n\tBusPacket\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12\x11\n\tsender_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10protocol_version\x18\x04 \x01(\x05\x12\x33\n\x0bjob_request\x18\n \x01(\x0b\x32\x1c.coretex.agent.v1.JobRequestH\x00\x12\x31\n\njob_result\x18\x0b \x01(\x0b\x32\x1b.coretex.agent.v1.JobResultH\x00\x12\x30\n\theartbeat\x18\x0c \x01(\x0b\x32\x1b.coretex.agent.v1.HeartbeatH\x00\x12.\n\x05\x61lert\x18\r \x01(\x0b\x32\x1d.coretex.agent.v1.SystemAlertH\x00\x12\x35\n\x0cjob_progress\x18\x0f \x01(\x0b\x32\x1d.coretex.agent.v1.JobProgressH\x00\x12\x31\n\njob_cancel\x18\x10 \x01(\x0b\x32\x1b.coretex.agent.v1.JobCancelH\x00\x12\x11\n\tsignature\x18\x0e \x01(\x0c\x42\t\n\x07payloadB\x84\x01\n\x17\x61i.coretex.cap.agent.v1P\x01Z,github.com/coretexos/cap/v2/coretex/agent/v1\xaa\x02\x10\x63oretex.Agent.V1\xca\x02\x10\x63oretex\\Agent\\V1\xea\x02\x12\x63oretex::Agent::V1b\x06proto3')
|
|
32
|
-
|
|
33
|
-
_globals = globals()
|
|
34
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coretex.agent.v1.buspacket_pb2', _globals)
|
|
36
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
38
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\027ai.coretex.cap.agent.v1P\001Z,github.com/coretexos/cap/v2/coretex/agent/v1\252\002\020coretex.Agent.V1\312\002\020coretex\\Agent\\V1\352\002\022coretex::Agent::V1'
|
|
39
|
-
_globals['_BUSPACKET']._serialized_start=180
|
|
40
|
-
_globals['_BUSPACKET']._serialized_end=640
|
|
41
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: coretex/agent/v1/heartbeat.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'coretex/agent/v1/heartbeat.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n coretex/agent/v1/heartbeat.proto\x12\x10\x63oretex.agent.v1\"\xa3\x02\n\tHeartbeat\x12\x11\n\tworker_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x10\n\x08\x63pu_load\x18\x04 \x01(\x02\x12\x17\n\x0fgpu_utilization\x18\x05 \x01(\x02\x12\x13\n\x0b\x61\x63tive_jobs\x18\x06 \x01(\x05\x12\x14\n\x0c\x63\x61pabilities\x18\x07 \x03(\t\x12\x0c\n\x04pool\x18\x0b \x01(\t\x12\x19\n\x11max_parallel_jobs\x18\x0c \x01(\x05\x12\x37\n\x06labels\x18\r \x03(\x0b\x32\'.coretex.agent.v1.Heartbeat.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x84\x01\n\x17\x61i.coretex.cap.agent.v1P\x01Z,github.com/coretexos/cap/v2/coretex/agent/v1\xaa\x02\x10\x63oretex.Agent.V1\xca\x02\x10\x63oretex\\Agent\\V1\xea\x02\x12\x63oretex::Agent::V1b\x06proto3')
|
|
28
|
-
|
|
29
|
-
_globals = globals()
|
|
30
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coretex.agent.v1.heartbeat_pb2', _globals)
|
|
32
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\027ai.coretex.cap.agent.v1P\001Z,github.com/coretexos/cap/v2/coretex/agent/v1\252\002\020coretex.Agent.V1\312\002\020coretex\\Agent\\V1\352\002\022coretex::Agent::V1'
|
|
35
|
-
_globals['_HEARTBEAT_LABELSENTRY']._loaded_options = None
|
|
36
|
-
_globals['_HEARTBEAT_LABELSENTRY']._serialized_options = b'8\001'
|
|
37
|
-
_globals['_HEARTBEAT']._serialized_start=55
|
|
38
|
-
_globals['_HEARTBEAT']._serialized_end=346
|
|
39
|
-
_globals['_HEARTBEAT_LABELSENTRY']._serialized_start=301
|
|
40
|
-
_globals['_HEARTBEAT_LABELSENTRY']._serialized_end=346
|
|
41
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: coretex/agent/v1/job.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'coretex/agent/v1/job.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x63oretex/agent/v1/job.proto\x12\x10\x63oretex.agent.v1\"l\n\x0c\x43ontextHints\x12\x18\n\x10max_input_tokens\x18\x01 \x01(\x05\x12\x1b\n\x13\x61llow_summarization\x18\x02 \x01(\x08\x12\x17\n\x0f\x61llow_retrieval\x18\x03 \x01(\x08\x12\x0c\n\x04tags\x18\x04 \x03(\t\"l\n\x06\x42udget\x12\x18\n\x10max_input_tokens\x18\x01 \x01(\x03\x12\x19\n\x11max_output_tokens\x18\x02 \x01(\x03\x12\x18\n\x10max_total_tokens\x18\x03 \x01(\x03\x12\x13\n\x0b\x64\x65\x61\x64line_ms\x18\x04 \x01(\x03\"\xb0\x02\n\x0bJobMetadata\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x10\n\x08\x61\x63tor_id\x18\x02 \x01(\t\x12/\n\nactor_type\x18\x03 \x01(\x0e\x32\x1b.coretex.agent.v1.ActorType\x12\x17\n\x0fidempotency_key\x18\x04 \x01(\t\x12\x12\n\ncapability\x18\x05 \x01(\t\x12\x11\n\trisk_tags\x18\x06 \x03(\t\x12\x10\n\x08requires\x18\x07 \x03(\t\x12\x0f\n\x07pack_id\x18\x08 \x01(\t\x12\x39\n\x06labels\x18\t \x03(\x0b\x32).coretex.agent.v1.JobMetadata.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd8\x04\n\nJobRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12/\n\x08priority\x18\x03 \x01(\x0e\x32\x1d.coretex.agent.v1.JobPriority\x12\x13\n\x0b\x63ontext_ptr\x18\x04 \x01(\t\x12\x12\n\nadapter_id\x18\x05 \x01(\t\x12\x32\n\x03\x65nv\x18\x06 \x03(\x0b\x32%.coretex.agent.v1.JobRequest.EnvEntry\x12\x15\n\rparent_job_id\x18\x07 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x08 \x01(\t\x12\x12\n\nstep_index\x18\t \x01(\x05\x12\x11\n\tmemory_id\x18\n \x01(\t\x12\x35\n\rcontext_hints\x18\x0b \x01(\x0b\x32\x1e.coretex.agent.v1.ContextHints\x12(\n\x06\x62udget\x18\x0c \x01(\x0b\x32\x18.coretex.agent.v1.Budget\x12\x11\n\ttenant_id\x18\r \x01(\t\x12\x14\n\x0cprincipal_id\x18\x0e \x01(\t\x12\x38\n\x06labels\x18\x0f \x03(\x0b\x32(.coretex.agent.v1.JobRequest.LabelsEntry\x12+\n\x04meta\x18\x10 \x01(\x0b\x32\x1d.coretex.agent.v1.JobMetadata\x1a*\n\x08\x45nvEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc7\x01\n\tJobResult\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12+\n\x06status\x18\x02 \x01(\x0e\x32\x1b.coretex.agent.v1.JobStatus\x12\x12\n\nresult_ptr\x18\x03 \x01(\t\x12\x11\n\tworker_id\x18\x04 \x01(\t\x12\x14\n\x0c\x65xecution_ms\x18\x05 \x01(\x03\x12\x12\n\nerror_code\x18\x06 \x01(\t\x12\x15\n\rerror_message\x18\x07 \x01(\t\x12\x15\n\rartifact_ptrs\x18\x08 \x03(\t\"\xa8\x01\n\x0bJobProgress\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x0f\n\x07step_id\x18\x02 \x01(\t\x12\x0f\n\x07percent\x18\x03 \x01(\x05\x12\x0f\n\x07message\x18\x04 \x01(\t\x12\x12\n\nresult_ptr\x18\x05 \x01(\t\x12\x15\n\rartifact_ptrs\x18\x06 \x03(\t\x12+\n\x06status\x18\x07 \x01(\x0e\x32\x1b.coretex.agent.v1.JobStatus\"A\n\tJobCancel\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x14\n\x0crequested_by\x18\x03 \x01(\t*|\n\x0bJobPriority\x12\x1c\n\x18JOB_PRIORITY_UNSPECIFIED\x10\x00\x12\x1c\n\x18JOB_PRIORITY_INTERACTIVE\x10\x01\x12\x16\n\x12JOB_PRIORITY_BATCH\x10\x02\x12\x19\n\x15JOB_PRIORITY_CRITICAL\x10\x03*\x86\x02\n\tJobStatus\x12\x1a\n\x16JOB_STATUS_UNSPECIFIED\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x18\n\x14JOB_STATUS_SCHEDULED\x10\x02\x12\x19\n\x15JOB_STATUS_DISPATCHED\x10\x03\x12\x16\n\x12JOB_STATUS_RUNNING\x10\x04\x12\x18\n\x14JOB_STATUS_SUCCEEDED\x10\x05\x12\x15\n\x11JOB_STATUS_FAILED\x10\x06\x12\x18\n\x14JOB_STATUS_CANCELLED\x10\x07\x12\x15\n\x11JOB_STATUS_DENIED\x10\x08\x12\x16\n\x12JOB_STATUS_TIMEOUT\x10\t*U\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x41\x43TOR_TYPE_HUMAN\x10\x01\x12\x16\n\x12\x41\x43TOR_TYPE_SERVICE\x10\x02\x42\x84\x01\n\x17\x61i.coretex.cap.agent.v1P\x01Z,github.com/coretexos/cap/v2/coretex/agent/v1\xaa\x02\x10\x63oretex.Agent.V1\xca\x02\x10\x63oretex\\Agent\\V1\xea\x02\x12\x63oretex::Agent::V1b\x06proto3')
|
|
28
|
-
|
|
29
|
-
_globals = globals()
|
|
30
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coretex.agent.v1.job_pb2', _globals)
|
|
32
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\027ai.coretex.cap.agent.v1P\001Z,github.com/coretexos/cap/v2/coretex/agent/v1\252\002\020coretex.Agent.V1\312\002\020coretex\\Agent\\V1\352\002\022coretex::Agent::V1'
|
|
35
|
-
_globals['_JOBMETADATA_LABELSENTRY']._loaded_options = None
|
|
36
|
-
_globals['_JOBMETADATA_LABELSENTRY']._serialized_options = b'8\001'
|
|
37
|
-
_globals['_JOBREQUEST_ENVENTRY']._loaded_options = None
|
|
38
|
-
_globals['_JOBREQUEST_ENVENTRY']._serialized_options = b'8\001'
|
|
39
|
-
_globals['_JOBREQUEST_LABELSENTRY']._loaded_options = None
|
|
40
|
-
_globals['_JOBREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
41
|
-
_globals['_JOBPRIORITY']._serialized_start=1618
|
|
42
|
-
_globals['_JOBPRIORITY']._serialized_end=1742
|
|
43
|
-
_globals['_JOBSTATUS']._serialized_start=1745
|
|
44
|
-
_globals['_JOBSTATUS']._serialized_end=2007
|
|
45
|
-
_globals['_ACTORTYPE']._serialized_start=2009
|
|
46
|
-
_globals['_ACTORTYPE']._serialized_end=2094
|
|
47
|
-
_globals['_CONTEXTHINTS']._serialized_start=48
|
|
48
|
-
_globals['_CONTEXTHINTS']._serialized_end=156
|
|
49
|
-
_globals['_BUDGET']._serialized_start=158
|
|
50
|
-
_globals['_BUDGET']._serialized_end=266
|
|
51
|
-
_globals['_JOBMETADATA']._serialized_start=269
|
|
52
|
-
_globals['_JOBMETADATA']._serialized_end=573
|
|
53
|
-
_globals['_JOBMETADATA_LABELSENTRY']._serialized_start=528
|
|
54
|
-
_globals['_JOBMETADATA_LABELSENTRY']._serialized_end=573
|
|
55
|
-
_globals['_JOBREQUEST']._serialized_start=576
|
|
56
|
-
_globals['_JOBREQUEST']._serialized_end=1176
|
|
57
|
-
_globals['_JOBREQUEST_ENVENTRY']._serialized_start=1087
|
|
58
|
-
_globals['_JOBREQUEST_ENVENTRY']._serialized_end=1129
|
|
59
|
-
_globals['_JOBREQUEST_LABELSENTRY']._serialized_start=528
|
|
60
|
-
_globals['_JOBREQUEST_LABELSENTRY']._serialized_end=573
|
|
61
|
-
_globals['_JOBRESULT']._serialized_start=1179
|
|
62
|
-
_globals['_JOBRESULT']._serialized_end=1378
|
|
63
|
-
_globals['_JOBPROGRESS']._serialized_start=1381
|
|
64
|
-
_globals['_JOBPROGRESS']._serialized_end=1549
|
|
65
|
-
_globals['_JOBCANCEL']._serialized_start=1551
|
|
66
|
-
_globals['_JOBCANCEL']._serialized_end=1616
|
|
67
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: coretex/agent/v1/safety.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'coretex/agent/v1/safety.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
from coretex.agent.v1 import job_pb2 as coretex_dot_agent_dot_v1_dot_job__pb2
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63oretex/agent/v1/safety.proto\x12\x10\x63oretex.agent.v1\x1a\x1a\x63oretex/agent/v1/job.proto\"\x97\x03\n\x12PolicyCheckRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\r\n\x05topic\x18\x02 \x01(\t\x12\x0e\n\x06tenant\x18\x03 \x01(\t\x12/\n\x08priority\x18\x04 \x01(\x0e\x32\x1d.coretex.agent.v1.JobPriority\x12\x16\n\x0e\x65stimated_cost\x18\x05 \x01(\x01\x12(\n\x06\x62udget\x18\x06 \x01(\x0b\x32\x18.coretex.agent.v1.Budget\x12\x14\n\x0cprincipal_id\x18\x07 \x01(\t\x12@\n\x06labels\x18\x08 \x03(\x0b\x32\x30.coretex.agent.v1.PolicyCheckRequest.LabelsEntry\x12\x11\n\tmemory_id\x18\t \x01(\t\x12\x18\n\x10\x65\x66\x66\x65\x63tive_config\x18\n \x01(\x0c\x12+\n\x04meta\x18\x0b \x01(\x0b\x32\x1d.coretex.agent.v1.JobMetadata\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x11\x42udgetConstraints\x12\x16\n\x0emax_runtime_ms\x18\x01 \x01(\x03\x12\x13\n\x0bmax_retries\x18\x02 \x01(\x05\x12\x1a\n\x12max_artifact_bytes\x18\x03 \x01(\x03\x12\x1b\n\x13max_concurrent_jobs\x18\x04 \x01(\x05\"j\n\x0eSandboxProfile\x12\x10\n\x08isolated\x18\x01 \x01(\x08\x12\x19\n\x11network_allowlist\x18\x02 \x03(\t\x12\x14\n\x0c\x66s_read_only\x18\x03 \x03(\t\x12\x15\n\rfs_read_write\x18\x04 \x03(\t\"G\n\x14ToolchainConstraints\x12\x15\n\rallowed_tools\x18\x01 \x03(\t\x12\x18\n\x10\x61llowed_commands\x18\x02 \x03(\t\"P\n\x0f\x44iffConstraints\x12\x11\n\tmax_files\x18\x01 \x01(\x05\x12\x11\n\tmax_lines\x18\x02 \x01(\x05\x12\x17\n\x0f\x64\x65ny_path_globs\x18\x03 \x03(\t\"\x81\x02\n\x11PolicyConstraints\x12\x34\n\x07\x62udgets\x18\x01 \x01(\x0b\x32#.coretex.agent.v1.BudgetConstraints\x12\x31\n\x07sandbox\x18\x02 \x01(\x0b\x32 .coretex.agent.v1.SandboxProfile\x12\x39\n\ttoolchain\x18\x03 \x01(\x0b\x32&.coretex.agent.v1.ToolchainConstraints\x12/\n\x04\x64iff\x18\x04 \x01(\x0b\x32!.coretex.agent.v1.DiffConstraints\x12\x17\n\x0fredaction_level\x18\x05 \x01(\t\"\x8a\x02\n\x13PolicyCheckResponse\x12\x30\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32\x1e.coretex.agent.v1.DecisionType\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x1c\n\x14redacted_context_ptr\x18\x03 \x01(\t\x12\x17\n\x0fpolicy_snapshot\x18\x04 \x01(\t\x12\x0f\n\x07rule_id\x18\x05 \x01(\t\x12\x38\n\x0b\x63onstraints\x18\x06 \x01(\x0b\x32#.coretex.agent.v1.PolicyConstraints\x12\x19\n\x11\x61pproval_required\x18\x07 \x01(\x08\x12\x14\n\x0c\x61pproval_ref\x18\x08 \x01(\t\"\x16\n\x14ListSnapshotsRequest\"*\n\x15ListSnapshotsResponse\x12\x11\n\tsnapshots\x18\x01 \x03(\t*\xc5\x01\n\x0c\x44\x65\x63isionType\x12\x1d\n\x19\x44\x45\x43ISION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x44\x45\x43ISION_TYPE_ALLOW\x10\x01\x12\x16\n\x12\x44\x45\x43ISION_TYPE_DENY\x10\x02\x12\x1f\n\x1b\x44\x45\x43ISION_TYPE_REQUIRE_HUMAN\x10\x03\x12\x1a\n\x16\x44\x45\x43ISION_TYPE_THROTTLE\x10\x04\x12(\n$DECISION_TYPE_ALLOW_WITH_CONSTRAINTS\x10\x05\x32\xd0\x03\n\x0cSafetyKernel\x12T\n\x05\x43heck\x12$.coretex.agent.v1.PolicyCheckRequest\x1a%.coretex.agent.v1.PolicyCheckResponse\x12W\n\x08\x45valuate\x12$.coretex.agent.v1.PolicyCheckRequest\x1a%.coretex.agent.v1.PolicyCheckResponse\x12V\n\x07\x45xplain\x12$.coretex.agent.v1.PolicyCheckRequest\x1a%.coretex.agent.v1.PolicyCheckResponse\x12W\n\x08Simulate\x12$.coretex.agent.v1.PolicyCheckRequest\x1a%.coretex.agent.v1.PolicyCheckResponse\x12`\n\rListSnapshots\x12&.coretex.agent.v1.ListSnapshotsRequest\x1a\'.coretex.agent.v1.ListSnapshotsResponseB\x84\x01\n\x17\x61i.coretex.cap.agent.v1P\x01Z,github.com/coretexos/cap/v2/coretex/agent/v1\xaa\x02\x10\x63oretex.Agent.V1\xca\x02\x10\x63oretex\\Agent\\V1\xea\x02\x12\x63oretex::Agent::V1b\x06proto3')
|
|
29
|
-
|
|
30
|
-
_globals = globals()
|
|
31
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'coretex.agent.v1.safety_pb2', _globals)
|
|
33
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
-
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\027ai.coretex.cap.agent.v1P\001Z,github.com/coretexos/cap/v2/coretex/agent/v1\252\002\020coretex.Agent.V1\312\002\020coretex\\Agent\\V1\352\002\022coretex::Agent::V1'
|
|
36
|
-
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._loaded_options = None
|
|
37
|
-
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_options = b'8\001'
|
|
38
|
-
_globals['_DECISIONTYPE']._serialized_start=1473
|
|
39
|
-
_globals['_DECISIONTYPE']._serialized_end=1670
|
|
40
|
-
_globals['_POLICYCHECKREQUEST']._serialized_start=80
|
|
41
|
-
_globals['_POLICYCHECKREQUEST']._serialized_end=487
|
|
42
|
-
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_start=442
|
|
43
|
-
_globals['_POLICYCHECKREQUEST_LABELSENTRY']._serialized_end=487
|
|
44
|
-
_globals['_BUDGETCONSTRAINTS']._serialized_start=489
|
|
45
|
-
_globals['_BUDGETCONSTRAINTS']._serialized_end=610
|
|
46
|
-
_globals['_SANDBOXPROFILE']._serialized_start=612
|
|
47
|
-
_globals['_SANDBOXPROFILE']._serialized_end=718
|
|
48
|
-
_globals['_TOOLCHAINCONSTRAINTS']._serialized_start=720
|
|
49
|
-
_globals['_TOOLCHAINCONSTRAINTS']._serialized_end=791
|
|
50
|
-
_globals['_DIFFCONSTRAINTS']._serialized_start=793
|
|
51
|
-
_globals['_DIFFCONSTRAINTS']._serialized_end=873
|
|
52
|
-
_globals['_POLICYCONSTRAINTS']._serialized_start=876
|
|
53
|
-
_globals['_POLICYCONSTRAINTS']._serialized_end=1133
|
|
54
|
-
_globals['_POLICYCHECKRESPONSE']._serialized_start=1136
|
|
55
|
-
_globals['_POLICYCHECKRESPONSE']._serialized_end=1402
|
|
56
|
-
_globals['_LISTSNAPSHOTSREQUEST']._serialized_start=1404
|
|
57
|
-
_globals['_LISTSNAPSHOTSREQUEST']._serialized_end=1426
|
|
58
|
-
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_start=1428
|
|
59
|
-
_globals['_LISTSNAPSHOTSRESPONSE']._serialized_end=1470
|
|
60
|
-
_globals['_SAFETYKERNEL']._serialized_start=1673
|
|
61
|
-
_globals['_SAFETYKERNEL']._serialized_end=2137
|
|
62
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
pyproject.toml
|
|
3
|
-
cap/__init__.py
|
|
4
|
-
cap/bus.py
|
|
5
|
-
cap/client.py
|
|
6
|
-
cap/worker.py
|
|
7
|
-
cap/pb/__init__.py
|
|
8
|
-
cap/pb/coretex/__init__.py
|
|
9
|
-
cap/pb/coretex/agent/__init__.py
|
|
10
|
-
cap/pb/coretex/agent/v1/__init__.py
|
|
11
|
-
cap/pb/coretex/agent/v1/alert_pb2.py
|
|
12
|
-
cap/pb/coretex/agent/v1/alert_pb2_grpc.py
|
|
13
|
-
cap/pb/coretex/agent/v1/buspacket_pb2.py
|
|
14
|
-
cap/pb/coretex/agent/v1/buspacket_pb2_grpc.py
|
|
15
|
-
cap/pb/coretex/agent/v1/heartbeat_pb2.py
|
|
16
|
-
cap/pb/coretex/agent/v1/heartbeat_pb2_grpc.py
|
|
17
|
-
cap/pb/coretex/agent/v1/job_pb2.py
|
|
18
|
-
cap/pb/coretex/agent/v1/job_pb2_grpc.py
|
|
19
|
-
cap/pb/coretex/agent/v1/safety_pb2.py
|
|
20
|
-
cap/pb/coretex/agent/v1/safety_pb2_grpc.py
|
|
21
|
-
cap_sdk_python.egg-info/PKG-INFO
|
|
22
|
-
cap_sdk_python.egg-info/SOURCES.txt
|
|
23
|
-
cap_sdk_python.egg-info/dependency_links.txt
|
|
24
|
-
cap_sdk_python.egg-info/requires.txt
|
|
25
|
-
cap_sdk_python.egg-info/top_level.txt
|
|
26
|
-
tests/test_sdk.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/__init__.py
RENAMED
|
File without changes
|
{cap_sdk_python-2.0.7/cap/pb/coretex → cap_sdk_python-2.0.12/cap/pb/cordum}/agent/v1/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|