@code0-tech/tucana 0.0.48 → 0.0.50

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.
@@ -0,0 +1,126 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_status.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
+ // @generated from protobuf file "sagittarius.runtime_status.proto" (package "sagittarius", syntax proto3)
6
+ // tslint:disable
7
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
+ import { WireType } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
+ import { MessageType } from "@protobuf-ts/runtime";
12
+ import { ExecutionRuntimeStatus } from "./shared.runtime_status_pb";
13
+ import { AdapterRuntimeStatus } from "./shared.runtime_status_pb";
14
+ // @generated message type with reflection information, may provide speed optimized methods
15
+ class RuntimeStatusUpdateRequest$Type extends MessageType {
16
+ constructor() {
17
+ super("sagittarius.RuntimeStatusUpdateRequest", [
18
+ { no: 1, name: "adapter_runtime_status", kind: "message", oneof: "status", T: () => AdapterRuntimeStatus },
19
+ { no: 2, name: "execution_runtime_status", kind: "message", oneof: "status", T: () => ExecutionRuntimeStatus }
20
+ ]);
21
+ }
22
+ create(value) {
23
+ const message = globalThis.Object.create((this.messagePrototype));
24
+ message.status = { oneofKind: undefined };
25
+ if (value !== undefined)
26
+ reflectionMergePartial(this, message, value);
27
+ return message;
28
+ }
29
+ internalBinaryRead(reader, length, options, target) {
30
+ let message = target ?? this.create(), end = reader.pos + length;
31
+ while (reader.pos < end) {
32
+ let [fieldNo, wireType] = reader.tag();
33
+ switch (fieldNo) {
34
+ case /* shared.AdapterRuntimeStatus adapter_runtime_status */ 1:
35
+ message.status = {
36
+ oneofKind: "adapterRuntimeStatus",
37
+ adapterRuntimeStatus: AdapterRuntimeStatus.internalBinaryRead(reader, reader.uint32(), options, message.status.adapterRuntimeStatus)
38
+ };
39
+ break;
40
+ case /* shared.ExecutionRuntimeStatus execution_runtime_status */ 2:
41
+ message.status = {
42
+ oneofKind: "executionRuntimeStatus",
43
+ executionRuntimeStatus: ExecutionRuntimeStatus.internalBinaryRead(reader, reader.uint32(), options, message.status.executionRuntimeStatus)
44
+ };
45
+ break;
46
+ default:
47
+ let u = options.readUnknownField;
48
+ if (u === "throw")
49
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
50
+ let d = reader.skip(wireType);
51
+ if (u !== false)
52
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
53
+ }
54
+ }
55
+ return message;
56
+ }
57
+ internalBinaryWrite(message, writer, options) {
58
+ /* shared.AdapterRuntimeStatus adapter_runtime_status = 1; */
59
+ if (message.status.oneofKind === "adapterRuntimeStatus")
60
+ AdapterRuntimeStatus.internalBinaryWrite(message.status.adapterRuntimeStatus, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
61
+ /* shared.ExecutionRuntimeStatus execution_runtime_status = 2; */
62
+ if (message.status.oneofKind === "executionRuntimeStatus")
63
+ ExecutionRuntimeStatus.internalBinaryWrite(message.status.executionRuntimeStatus, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
64
+ let u = options.writeUnknownFields;
65
+ if (u !== false)
66
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
67
+ return writer;
68
+ }
69
+ }
70
+ /**
71
+ * @generated MessageType for protobuf message sagittarius.RuntimeStatusUpdateRequest
72
+ */
73
+ export const RuntimeStatusUpdateRequest = new RuntimeStatusUpdateRequest$Type();
74
+ // @generated message type with reflection information, may provide speed optimized methods
75
+ class RuntimeStatusUpdateResponse$Type extends MessageType {
76
+ constructor() {
77
+ super("sagittarius.RuntimeStatusUpdateResponse", [
78
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
79
+ ]);
80
+ }
81
+ create(value) {
82
+ const message = globalThis.Object.create((this.messagePrototype));
83
+ message.success = false;
84
+ if (value !== undefined)
85
+ reflectionMergePartial(this, message, value);
86
+ return message;
87
+ }
88
+ internalBinaryRead(reader, length, options, target) {
89
+ let message = target ?? this.create(), end = reader.pos + length;
90
+ while (reader.pos < end) {
91
+ let [fieldNo, wireType] = reader.tag();
92
+ switch (fieldNo) {
93
+ case /* bool success */ 1:
94
+ message.success = reader.bool();
95
+ break;
96
+ default:
97
+ let u = options.readUnknownField;
98
+ if (u === "throw")
99
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
100
+ let d = reader.skip(wireType);
101
+ if (u !== false)
102
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
103
+ }
104
+ }
105
+ return message;
106
+ }
107
+ internalBinaryWrite(message, writer, options) {
108
+ /* bool success = 1; */
109
+ if (message.success !== false)
110
+ writer.tag(1, WireType.Varint).bool(message.success);
111
+ let u = options.writeUnknownFields;
112
+ if (u !== false)
113
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
114
+ return writer;
115
+ }
116
+ }
117
+ /**
118
+ * @generated MessageType for protobuf message sagittarius.RuntimeStatusUpdateResponse
119
+ */
120
+ export const RuntimeStatusUpdateResponse = new RuntimeStatusUpdateResponse$Type();
121
+ /**
122
+ * @generated ServiceType for protobuf service sagittarius.RuntimeStatusService
123
+ */
124
+ export const RuntimeStatusService = new ServiceType("sagittarius.RuntimeStatusService", [
125
+ { name: "Update", options: {}, I: RuntimeStatusUpdateRequest, O: RuntimeStatusUpdateResponse }
126
+ ]);
@@ -0,0 +1,32 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import type { RuntimeUsageResponse } from "./sagittarius.runtime_usage_pb";
7
+ import type { RuntimeUsageRequest } from "./sagittarius.runtime_usage_pb";
8
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
9
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
10
+ /**
11
+ * @generated from protobuf service sagittarius.RuntimeUsageService
12
+ */
13
+ export interface IRuntimeUsageServiceClient {
14
+ /**
15
+ * @generated from protobuf rpc: Update
16
+ */
17
+ update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
18
+ }
19
+ /**
20
+ * @generated from protobuf service sagittarius.RuntimeUsageService
21
+ */
22
+ export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, ServiceInfo {
23
+ private readonly _transport;
24
+ typeName: any;
25
+ methods: any;
26
+ options: any;
27
+ constructor(_transport: RpcTransport);
28
+ /**
29
+ * @generated from protobuf rpc: Update
30
+ */
31
+ update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
32
+ }
@@ -0,0 +1,23 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import { RuntimeUsageService } from "./sagittarius.runtime_usage_pb";
5
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
6
+ /**
7
+ * @generated from protobuf service sagittarius.RuntimeUsageService
8
+ */
9
+ export class RuntimeUsageServiceClient {
10
+ constructor(_transport) {
11
+ this._transport = _transport;
12
+ this.typeName = RuntimeUsageService.typeName;
13
+ this.methods = RuntimeUsageService.methods;
14
+ this.options = RuntimeUsageService.options;
15
+ }
16
+ /**
17
+ * @generated from protobuf rpc: Update
18
+ */
19
+ update(input, options) {
20
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
21
+ return stackIntercept("unary", this._transport, method, opt, input);
22
+ }
23
+ }
@@ -0,0 +1,53 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
7
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
8
+ import type { PartialMessage } from "@protobuf-ts/runtime";
9
+ import { MessageType } from "@protobuf-ts/runtime";
10
+ import { RuntimeUsage } from "./shared.runtime_usage_pb";
11
+ /**
12
+ * @generated from protobuf message sagittarius.RuntimeUsageRequest
13
+ */
14
+ export interface RuntimeUsageRequest {
15
+ /**
16
+ * @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
17
+ */
18
+ runtimeUsage: RuntimeUsage[];
19
+ }
20
+ /**
21
+ * @generated from protobuf message sagittarius.RuntimeUsageResponse
22
+ */
23
+ export interface RuntimeUsageResponse {
24
+ /**
25
+ * @generated from protobuf field: bool success = 1
26
+ */
27
+ success: boolean;
28
+ }
29
+ declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
30
+ constructor();
31
+ create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
32
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
33
+ internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
34
+ }
35
+ /**
36
+ * @generated MessageType for protobuf message sagittarius.RuntimeUsageRequest
37
+ */
38
+ export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
39
+ declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
40
+ constructor();
41
+ create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
42
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
43
+ internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
44
+ }
45
+ /**
46
+ * @generated MessageType for protobuf message sagittarius.RuntimeUsageResponse
47
+ */
48
+ export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
49
+ /**
50
+ * @generated ServiceType for protobuf service sagittarius.RuntimeUsageService
51
+ */
52
+ export declare const RuntimeUsageService: any;
53
+ export {};
@@ -0,0 +1,112 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
2
+ // @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
3
+ // tslint:disable
4
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix,output_javascript_es2020
5
+ // @generated from protobuf file "sagittarius.runtime_usage.proto" (package "sagittarius", syntax proto3)
6
+ // tslint:disable
7
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
8
+ import { WireType } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
11
+ import { MessageType } from "@protobuf-ts/runtime";
12
+ import { RuntimeUsage } from "./shared.runtime_usage_pb";
13
+ // @generated message type with reflection information, may provide speed optimized methods
14
+ class RuntimeUsageRequest$Type extends MessageType {
15
+ constructor() {
16
+ super("sagittarius.RuntimeUsageRequest", [
17
+ { no: 1, name: "runtime_usage", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RuntimeUsage }
18
+ ]);
19
+ }
20
+ create(value) {
21
+ const message = globalThis.Object.create((this.messagePrototype));
22
+ message.runtimeUsage = [];
23
+ if (value !== undefined)
24
+ reflectionMergePartial(this, message, value);
25
+ return message;
26
+ }
27
+ internalBinaryRead(reader, length, options, target) {
28
+ let message = target ?? this.create(), end = reader.pos + length;
29
+ while (reader.pos < end) {
30
+ let [fieldNo, wireType] = reader.tag();
31
+ switch (fieldNo) {
32
+ case /* repeated shared.RuntimeUsage runtime_usage */ 1:
33
+ message.runtimeUsage.push(RuntimeUsage.internalBinaryRead(reader, reader.uint32(), options));
34
+ break;
35
+ default:
36
+ let u = options.readUnknownField;
37
+ if (u === "throw")
38
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
39
+ let d = reader.skip(wireType);
40
+ if (u !== false)
41
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
42
+ }
43
+ }
44
+ return message;
45
+ }
46
+ internalBinaryWrite(message, writer, options) {
47
+ /* repeated shared.RuntimeUsage runtime_usage = 1; */
48
+ for (let i = 0; i < message.runtimeUsage.length; i++)
49
+ RuntimeUsage.internalBinaryWrite(message.runtimeUsage[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
50
+ let u = options.writeUnknownFields;
51
+ if (u !== false)
52
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
53
+ return writer;
54
+ }
55
+ }
56
+ /**
57
+ * @generated MessageType for protobuf message sagittarius.RuntimeUsageRequest
58
+ */
59
+ export const RuntimeUsageRequest = new RuntimeUsageRequest$Type();
60
+ // @generated message type with reflection information, may provide speed optimized methods
61
+ class RuntimeUsageResponse$Type extends MessageType {
62
+ constructor() {
63
+ super("sagittarius.RuntimeUsageResponse", [
64
+ { no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
65
+ ]);
66
+ }
67
+ create(value) {
68
+ const message = globalThis.Object.create((this.messagePrototype));
69
+ message.success = false;
70
+ if (value !== undefined)
71
+ reflectionMergePartial(this, message, value);
72
+ return message;
73
+ }
74
+ internalBinaryRead(reader, length, options, target) {
75
+ let message = target ?? this.create(), end = reader.pos + length;
76
+ while (reader.pos < end) {
77
+ let [fieldNo, wireType] = reader.tag();
78
+ switch (fieldNo) {
79
+ case /* bool success */ 1:
80
+ message.success = reader.bool();
81
+ break;
82
+ default:
83
+ let u = options.readUnknownField;
84
+ if (u === "throw")
85
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
86
+ let d = reader.skip(wireType);
87
+ if (u !== false)
88
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
89
+ }
90
+ }
91
+ return message;
92
+ }
93
+ internalBinaryWrite(message, writer, options) {
94
+ /* bool success = 1; */
95
+ if (message.success !== false)
96
+ writer.tag(1, WireType.Varint).bool(message.success);
97
+ let u = options.writeUnknownFields;
98
+ if (u !== false)
99
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
100
+ return writer;
101
+ }
102
+ }
103
+ /**
104
+ * @generated MessageType for protobuf message sagittarius.RuntimeUsageResponse
105
+ */
106
+ export const RuntimeUsageResponse = new RuntimeUsageResponse$Type();
107
+ /**
108
+ * @generated ServiceType for protobuf service sagittarius.RuntimeUsageService
109
+ */
110
+ export const RuntimeUsageService = new ServiceType("sagittarius.RuntimeUsageService", [
111
+ { name: "Update", options: {}, I: RuntimeUsageRequest, O: RuntimeUsageResponse }
112
+ ]);
@@ -55,6 +55,77 @@ export interface TestExecutionResponse {
55
55
  * @generated from protobuf message sagittarius.Log
56
56
  */
57
57
  export interface Log {
58
+ /**
59
+ * @generated from protobuf oneof: kind
60
+ */
61
+ kind: {
62
+ oneofKind: "applicationLog";
63
+ /**
64
+ * @generated from protobuf field: sagittarius.ApplicationLog application_log = 1
65
+ */
66
+ applicationLog: ApplicationLog;
67
+ } | {
68
+ oneofKind: "successLog";
69
+ /**
70
+ * @generated from protobuf field: sagittarius.SuccessLog success_log = 2
71
+ */
72
+ successLog: SuccessLog;
73
+ } | {
74
+ oneofKind: "errorLog";
75
+ /**
76
+ * @generated from protobuf field: sagittarius.RuntimeErrorLog error_log = 3
77
+ */
78
+ errorLog: RuntimeErrorLog;
79
+ } | {
80
+ oneofKind: undefined;
81
+ };
82
+ }
83
+ /**
84
+ * @generated from protobuf message sagittarius.SuccessLog
85
+ */
86
+ export interface SuccessLog {
87
+ /**
88
+ * @generated from protobuf field: int64 node_id = 1
89
+ */
90
+ nodeId: bigint;
91
+ /**
92
+ * @generated from protobuf field: shared.Value result = 2
93
+ */
94
+ result?: Value;
95
+ /**
96
+ * @generated from protobuf field: repeated shared.Value parameter = 3
97
+ */
98
+ parameter: Value[];
99
+ /**
100
+ * @generated from protobuf field: string timestamp = 4
101
+ */
102
+ timestamp: string;
103
+ }
104
+ /**
105
+ * @generated from protobuf message sagittarius.RuntimeErrorLog
106
+ */
107
+ export interface RuntimeErrorLog {
108
+ /**
109
+ * @generated from protobuf field: int64 node_id = 1
110
+ */
111
+ nodeId: bigint;
112
+ /**
113
+ * @generated from protobuf field: string error = 2
114
+ */
115
+ error: string;
116
+ /**
117
+ * @generated from protobuf field: repeated shared.Value parameter = 3
118
+ */
119
+ parameter: Value[];
120
+ /**
121
+ * @generated from protobuf field: string timestamp = 4
122
+ */
123
+ timestamp: string;
124
+ }
125
+ /**
126
+ * @generated from protobuf message sagittarius.ApplicationLog
127
+ */
128
+ export interface ApplicationLog {
58
129
  /**
59
130
  * @generated from protobuf field: string message = 1
60
131
  */
@@ -145,6 +216,36 @@ declare class Log$Type extends MessageType<Log> {
145
216
  * @generated MessageType for protobuf message sagittarius.Log
146
217
  */
147
218
  export declare const Log: Log$Type;
219
+ declare class SuccessLog$Type extends MessageType<SuccessLog> {
220
+ constructor();
221
+ create(value?: PartialMessage<SuccessLog>): SuccessLog;
222
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SuccessLog): SuccessLog;
223
+ internalBinaryWrite(message: SuccessLog, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
224
+ }
225
+ /**
226
+ * @generated MessageType for protobuf message sagittarius.SuccessLog
227
+ */
228
+ export declare const SuccessLog: SuccessLog$Type;
229
+ declare class RuntimeErrorLog$Type extends MessageType<RuntimeErrorLog> {
230
+ constructor();
231
+ create(value?: PartialMessage<RuntimeErrorLog>): RuntimeErrorLog;
232
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeErrorLog): RuntimeErrorLog;
233
+ internalBinaryWrite(message: RuntimeErrorLog, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
234
+ }
235
+ /**
236
+ * @generated MessageType for protobuf message sagittarius.RuntimeErrorLog
237
+ */
238
+ export declare const RuntimeErrorLog: RuntimeErrorLog$Type;
239
+ declare class ApplicationLog$Type extends MessageType<ApplicationLog> {
240
+ constructor();
241
+ create(value?: PartialMessage<ApplicationLog>): ApplicationLog;
242
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApplicationLog): ApplicationLog;
243
+ internalBinaryWrite(message: ApplicationLog, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
244
+ }
245
+ /**
246
+ * @generated MessageType for protobuf message sagittarius.ApplicationLog
247
+ */
248
+ export declare const ApplicationLog: ApplicationLog$Type;
148
249
  declare class ExecutionLogonRequest$Type extends MessageType<ExecutionLogonRequest> {
149
250
  constructor();
150
251
  create(value?: PartialMessage<ExecutionLogonRequest>): ExecutionLogonRequest;