@code0-tech/tucana 0.0.76 → 0.0.78
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.
- package/dist/aquila.cjs.js +1 -1
- package/dist/aquila.es.js +738 -209
- package/dist/pb/_generated/aquila.action_pb.d.ts +345 -4
- package/dist/pb/_generated/sagittarius_gateway.flow_pb.client.d.ts +43 -0
- package/dist/pb/_generated/sagittarius_gateway.flow_pb.d.ts +110 -0
- package/dist/pb/_generated/sagittarius_gateway.module_pb.client.d.ts +59 -0
- package/dist/pb/_generated/sagittarius_gateway.module_pb.d.ts +137 -0
- package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.client.d.ts +27 -0
- package/dist/pb/_generated/sagittarius_gateway.runtime_status_pb.d.ts +51 -0
- package/dist/pb/_generated/sagittarius_gateway.test_execution_pb.client.d.ts +43 -0
- package/dist/pb/_generated/{sagittarius.text_execution_pb.d.ts → sagittarius_gateway.test_execution_pb.d.ts} +45 -11
- package/dist/pb/_generated/sagittarius_rails.flow_pb.client.d.ts +31 -0
- package/dist/pb/_generated/{sagittarius.flow_pb.d.ts → sagittarius_rails.flow_pb.d.ts} +5 -14
- package/dist/pb/_generated/{sagittarius.module_pb.client.d.ts → sagittarius_rails.module_pb.client.d.ts} +3 -3
- package/dist/pb/_generated/{sagittarius.module_pb.d.ts → sagittarius_rails.module_pb.d.ts} +7 -7
- package/dist/pb/_generated/{sagittarius.runtime_status_pb.client.d.ts → sagittarius_rails.runtime_status_pb.client.d.ts} +3 -3
- package/dist/pb/_generated/{sagittarius.runtime_status_pb.d.ts → sagittarius_rails.runtime_status_pb.d.ts} +5 -5
- package/dist/pb/_generated/sagittarius_rails.test_execution_pb.client.d.ts +27 -0
- package/dist/pb/_generated/sagittarius_rails.test_execution_pb.d.ts +51 -0
- package/dist/pb/_generated/sagittarius_rails.token_pb.client.d.ts +31 -0
- package/dist/pb/_generated/sagittarius_rails.token_pb.d.ts +93 -0
- package/dist/pb/_generated/shared.flow_pb.d.ts +42 -26
- package/dist/pb/_generated/shared.struct_pb.d.ts +1 -1
- package/dist/pb/sagittarius_gateway.d.ts +8 -0
- package/dist/pb/sagittarius_rails.d.ts +10 -0
- package/dist/{rpc-interceptor-giFADd4b.cjs → rpc-interceptor-D-IMsC9l.cjs} +1 -1
- package/dist/{rpc-interceptor-d3qh7P9n.js → rpc-interceptor-D0l4GO-c.js} +1 -1
- package/dist/sagittarius_gateway.cjs.js +1 -0
- package/dist/sagittarius_gateway.d.ts +2 -0
- package/dist/sagittarius_gateway.es.js +793 -0
- package/dist/sagittarius_rails.cjs.js +1 -0
- package/dist/sagittarius_rails.d.ts +2 -0
- package/dist/sagittarius_rails.es.js +558 -0
- package/dist/shared.cjs.js +1 -1
- package/dist/shared.es.js +3 -4
- package/dist/shared.function_pb-BxQgyP8l.cjs +2 -0
- package/dist/{shared.function_pb-Caz-4jvi.js → shared.function_pb-CPUNe7pa.js} +1537 -485
- package/dist/shared.runtime_status_pb-5unRZGw5.js +1650 -0
- package/dist/{shared.runtime_status_pb-BEEvFfe8.cjs → shared.runtime_status_pb-BlKabFnb.cjs} +1 -1
- package/dist/velorum.cjs.js +1 -1
- package/dist/velorum.es.js +114 -115
- package/package.json +13 -7
- package/dist/pb/_generated/sagittarius.flow_pb.client.d.ts +0 -27
- package/dist/pb/_generated/sagittarius.ping_pb.client.d.ts +0 -27
- package/dist/pb/_generated/sagittarius.ping_pb.d.ts +0 -26
- package/dist/pb/_generated/sagittarius.text_execution_pb.client.d.ts +0 -27
- package/dist/pb/sagittarius.d.ts +0 -10
- package/dist/sagittarius.cjs.js +0 -1
- package/dist/sagittarius.d.ts +0 -2
- package/dist/sagittarius.es.js +0 -553
- package/dist/shared.flow_pb-DdVuFKPW.js +0 -1019
- package/dist/shared.flow_pb-clFvPGyv.cjs +0 -1
- package/dist/shared.function_pb-C8cj-NCz.cjs +0 -2
- package/dist/shared.runtime_status_pb-D7hH22xO.js +0 -1650
package/dist/velorum.es.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var u = new class extends a {
|
|
1
|
+
import { L as e, N as t, O as n, P as r, R as i, r as a, t as o, u as s } from "./shared.function_pb-CPUNe7pa.js";
|
|
2
|
+
import { n as c, t as l } from "./rpc-interceptor-D0l4GO-c.js";
|
|
3
|
+
var u = new class extends t {
|
|
5
4
|
constructor() {
|
|
6
5
|
super("velorum.PromptRequest", [
|
|
7
6
|
{
|
|
@@ -28,7 +27,7 @@ var u = new class extends a {
|
|
|
28
27
|
name: "functions",
|
|
29
28
|
kind: "message",
|
|
30
29
|
repeat: 2,
|
|
31
|
-
T: () =>
|
|
30
|
+
T: () => o
|
|
32
31
|
},
|
|
33
32
|
{
|
|
34
33
|
no: 5,
|
|
@@ -42,55 +41,55 @@ var u = new class extends a {
|
|
|
42
41
|
name: "flow_types",
|
|
43
42
|
kind: "message",
|
|
44
43
|
repeat: 2,
|
|
45
|
-
T: () =>
|
|
44
|
+
T: () => a
|
|
46
45
|
}
|
|
47
46
|
]);
|
|
48
47
|
}
|
|
49
48
|
create(e) {
|
|
50
49
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
51
|
-
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 &&
|
|
50
|
+
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 && r(this, t, e), t;
|
|
52
51
|
}
|
|
53
|
-
internalBinaryRead(
|
|
54
|
-
let c = s ?? this.create(), l =
|
|
55
|
-
for (;
|
|
56
|
-
let [
|
|
57
|
-
switch (
|
|
52
|
+
internalBinaryRead(t, r, i, s) {
|
|
53
|
+
let c = s ?? this.create(), l = t.pos + r;
|
|
54
|
+
for (; t.pos < l;) {
|
|
55
|
+
let [r, s] = t.tag();
|
|
56
|
+
switch (r) {
|
|
58
57
|
case 1:
|
|
59
|
-
c.prompt =
|
|
58
|
+
c.prompt = t.string();
|
|
60
59
|
break;
|
|
61
60
|
case 2:
|
|
62
|
-
c.projectId =
|
|
61
|
+
c.projectId = t.int64().toBigInt();
|
|
63
62
|
break;
|
|
64
63
|
case 3:
|
|
65
|
-
c.modelIdentifier =
|
|
64
|
+
c.modelIdentifier = t.string();
|
|
66
65
|
break;
|
|
67
66
|
case 4:
|
|
68
|
-
c.functions.push(
|
|
67
|
+
c.functions.push(o.internalBinaryRead(t, t.uint32(), i));
|
|
69
68
|
break;
|
|
70
69
|
case 5:
|
|
71
|
-
c.dataTypes.push(n.internalBinaryRead(
|
|
70
|
+
c.dataTypes.push(n.internalBinaryRead(t, t.uint32(), i));
|
|
72
71
|
break;
|
|
73
72
|
case 6:
|
|
74
|
-
c.flowTypes.push(
|
|
73
|
+
c.flowTypes.push(a.internalBinaryRead(t, t.uint32(), i));
|
|
75
74
|
break;
|
|
76
75
|
default:
|
|
77
|
-
let l =
|
|
78
|
-
if (l === "throw") throw new globalThis.Error(`Unknown field ${
|
|
79
|
-
let u =
|
|
80
|
-
l !== !1 && (l === !0 ?
|
|
76
|
+
let l = i.readUnknownField;
|
|
77
|
+
if (l === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${s}) for ${this.typeName}`);
|
|
78
|
+
let u = t.skip(s);
|
|
79
|
+
l !== !1 && (l === !0 ? e.onRead : l)(this.typeName, c, r, s, u);
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
82
|
return c;
|
|
84
83
|
}
|
|
85
|
-
internalBinaryWrite(
|
|
86
|
-
|
|
87
|
-
for (let
|
|
88
|
-
for (let
|
|
89
|
-
for (let
|
|
84
|
+
internalBinaryWrite(t, r, s) {
|
|
85
|
+
t.prompt !== "" && r.tag(1, i.LengthDelimited).string(t.prompt), t.projectId !== 0n && r.tag(2, i.Varint).int64(t.projectId), t.modelIdentifier !== "" && r.tag(3, i.LengthDelimited).string(t.modelIdentifier);
|
|
86
|
+
for (let e = 0; e < t.functions.length; e++) o.internalBinaryWrite(t.functions[e], r.tag(4, i.LengthDelimited).fork(), s).join();
|
|
87
|
+
for (let e = 0; e < t.dataTypes.length; e++) n.internalBinaryWrite(t.dataTypes[e], r.tag(5, i.LengthDelimited).fork(), s).join();
|
|
88
|
+
for (let e = 0; e < t.flowTypes.length; e++) a.internalBinaryWrite(t.flowTypes[e], r.tag(6, i.LengthDelimited).fork(), s).join();
|
|
90
89
|
let c = s.writeUnknownFields;
|
|
91
|
-
return c !== !1 && (c == 1 ?
|
|
90
|
+
return c !== !1 && (c == 1 ? e.onWrite : c)(this.typeName, t, r), r;
|
|
92
91
|
}
|
|
93
|
-
}(), d = new class extends
|
|
92
|
+
}(), d = new class extends t {
|
|
94
93
|
constructor() {
|
|
95
94
|
super("velorum.FlowRequest", [
|
|
96
95
|
{
|
|
@@ -123,7 +122,7 @@ var u = new class extends a {
|
|
|
123
122
|
name: "functions",
|
|
124
123
|
kind: "message",
|
|
125
124
|
repeat: 2,
|
|
126
|
-
T: () =>
|
|
125
|
+
T: () => o
|
|
127
126
|
},
|
|
128
127
|
{
|
|
129
128
|
no: 6,
|
|
@@ -137,58 +136,58 @@ var u = new class extends a {
|
|
|
137
136
|
name: "flow_types",
|
|
138
137
|
kind: "message",
|
|
139
138
|
repeat: 2,
|
|
140
|
-
T: () =>
|
|
139
|
+
T: () => a
|
|
141
140
|
}
|
|
142
141
|
]);
|
|
143
142
|
}
|
|
144
143
|
create(e) {
|
|
145
144
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
146
|
-
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 &&
|
|
145
|
+
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 && r(this, t, e), t;
|
|
147
146
|
}
|
|
148
|
-
internalBinaryRead(
|
|
149
|
-
let l = c ?? this.create(), u =
|
|
150
|
-
for (;
|
|
151
|
-
let [
|
|
152
|
-
switch (
|
|
147
|
+
internalBinaryRead(t, r, i, c) {
|
|
148
|
+
let l = c ?? this.create(), u = t.pos + r;
|
|
149
|
+
for (; t.pos < u;) {
|
|
150
|
+
let [r, c] = t.tag();
|
|
151
|
+
switch (r) {
|
|
153
152
|
case 1:
|
|
154
|
-
l.prompt =
|
|
153
|
+
l.prompt = t.string();
|
|
155
154
|
break;
|
|
156
155
|
case 2:
|
|
157
|
-
l.flow = s.internalBinaryRead(
|
|
156
|
+
l.flow = s.internalBinaryRead(t, t.uint32(), i, l.flow);
|
|
158
157
|
break;
|
|
159
158
|
case 3:
|
|
160
|
-
l.projectId =
|
|
159
|
+
l.projectId = t.int64().toBigInt();
|
|
161
160
|
break;
|
|
162
161
|
case 4:
|
|
163
|
-
l.modelIdentifier =
|
|
162
|
+
l.modelIdentifier = t.string();
|
|
164
163
|
break;
|
|
165
164
|
case 5:
|
|
166
|
-
l.functions.push(
|
|
165
|
+
l.functions.push(o.internalBinaryRead(t, t.uint32(), i));
|
|
167
166
|
break;
|
|
168
167
|
case 6:
|
|
169
|
-
l.dataTypes.push(n.internalBinaryRead(
|
|
168
|
+
l.dataTypes.push(n.internalBinaryRead(t, t.uint32(), i));
|
|
170
169
|
break;
|
|
171
170
|
case 7:
|
|
172
|
-
l.flowTypes.push(
|
|
171
|
+
l.flowTypes.push(a.internalBinaryRead(t, t.uint32(), i));
|
|
173
172
|
break;
|
|
174
173
|
default:
|
|
175
|
-
let u =
|
|
176
|
-
if (u === "throw") throw new globalThis.Error(`Unknown field ${
|
|
177
|
-
let d =
|
|
178
|
-
u !== !1 && (u === !0 ?
|
|
174
|
+
let u = i.readUnknownField;
|
|
175
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${c}) for ${this.typeName}`);
|
|
176
|
+
let d = t.skip(c);
|
|
177
|
+
u !== !1 && (u === !0 ? e.onRead : u)(this.typeName, l, r, c, d);
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
180
|
return l;
|
|
182
181
|
}
|
|
183
|
-
internalBinaryWrite(
|
|
184
|
-
|
|
185
|
-
for (let
|
|
186
|
-
for (let
|
|
187
|
-
for (let
|
|
182
|
+
internalBinaryWrite(t, r, c) {
|
|
183
|
+
t.prompt !== "" && r.tag(1, i.LengthDelimited).string(t.prompt), t.flow && s.internalBinaryWrite(t.flow, r.tag(2, i.LengthDelimited).fork(), c).join(), t.projectId !== 0n && r.tag(3, i.Varint).int64(t.projectId), t.modelIdentifier !== "" && r.tag(4, i.LengthDelimited).string(t.modelIdentifier);
|
|
184
|
+
for (let e = 0; e < t.functions.length; e++) o.internalBinaryWrite(t.functions[e], r.tag(5, i.LengthDelimited).fork(), c).join();
|
|
185
|
+
for (let e = 0; e < t.dataTypes.length; e++) n.internalBinaryWrite(t.dataTypes[e], r.tag(6, i.LengthDelimited).fork(), c).join();
|
|
186
|
+
for (let e = 0; e < t.flowTypes.length; e++) a.internalBinaryWrite(t.flowTypes[e], r.tag(7, i.LengthDelimited).fork(), c).join();
|
|
188
187
|
let l = c.writeUnknownFields;
|
|
189
|
-
return l !== !1 && (l == 1 ?
|
|
188
|
+
return l !== !1 && (l == 1 ? e.onWrite : l)(this.typeName, t, r), r;
|
|
190
189
|
}
|
|
191
|
-
}(), f = new class extends
|
|
190
|
+
}(), f = new class extends t {
|
|
192
191
|
constructor() {
|
|
193
192
|
super("velorum.FlowResponse", [
|
|
194
193
|
{
|
|
@@ -215,35 +214,35 @@ var u = new class extends a {
|
|
|
215
214
|
}
|
|
216
215
|
create(e) {
|
|
217
216
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
218
|
-
return t.cachedUntil = 0n, t.usage = 0n, e !== void 0 &&
|
|
217
|
+
return t.cachedUntil = 0n, t.usage = 0n, e !== void 0 && r(this, t, e), t;
|
|
219
218
|
}
|
|
220
|
-
internalBinaryRead(
|
|
221
|
-
let a = i ?? this.create(), o =
|
|
222
|
-
for (;
|
|
223
|
-
let [n, i] =
|
|
219
|
+
internalBinaryRead(t, n, r, i) {
|
|
220
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
221
|
+
for (; t.pos < o;) {
|
|
222
|
+
let [n, i] = t.tag();
|
|
224
223
|
switch (n) {
|
|
225
224
|
case 1:
|
|
226
|
-
a.flow = s.internalBinaryRead(
|
|
225
|
+
a.flow = s.internalBinaryRead(t, t.uint32(), r, a.flow);
|
|
227
226
|
break;
|
|
228
227
|
case 2:
|
|
229
|
-
a.cachedUntil =
|
|
228
|
+
a.cachedUntil = t.int64().toBigInt();
|
|
230
229
|
break;
|
|
231
230
|
case 3:
|
|
232
|
-
a.usage =
|
|
231
|
+
a.usage = t.int64().toBigInt();
|
|
233
232
|
break;
|
|
234
233
|
default:
|
|
235
234
|
let o = r.readUnknownField;
|
|
236
235
|
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
237
|
-
let c =
|
|
238
|
-
o !== !1 && (o === !0 ?
|
|
236
|
+
let c = t.skip(i);
|
|
237
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, c);
|
|
239
238
|
}
|
|
240
239
|
}
|
|
241
240
|
return a;
|
|
242
241
|
}
|
|
243
|
-
internalBinaryWrite(n, r
|
|
244
|
-
|
|
245
|
-
let a =
|
|
246
|
-
return a !== !1 && (a == 1 ?
|
|
242
|
+
internalBinaryWrite(t, n, r) {
|
|
243
|
+
t.flow && s.internalBinaryWrite(t.flow, n.tag(1, i.LengthDelimited).fork(), r).join(), t.cachedUntil !== 0n && n.tag(2, i.Varint).int64(t.cachedUntil), t.usage !== 0n && n.tag(3, i.Varint).int64(t.usage);
|
|
244
|
+
let a = r.writeUnknownFields;
|
|
245
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
|
|
247
246
|
}
|
|
248
247
|
}(), p = new c("velorum.GenerateService", [{
|
|
249
248
|
name: "Prompt",
|
|
@@ -269,33 +268,33 @@ var u = new class extends a {
|
|
|
269
268
|
}
|
|
270
269
|
}, h = /* @__PURE__ */ function(e) {
|
|
271
270
|
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.EXPLAIN = 1] = "EXPLAIN", e[e.GENERATE = 2] = "GENERATE", e;
|
|
272
|
-
}({}), g = new class extends
|
|
271
|
+
}({}), g = new class extends t {
|
|
273
272
|
constructor() {
|
|
274
273
|
super("velorum.ModelsRequest", []);
|
|
275
274
|
}
|
|
276
275
|
create(e) {
|
|
277
276
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
278
|
-
return e !== void 0 &&
|
|
277
|
+
return e !== void 0 && r(this, t, e), t;
|
|
279
278
|
}
|
|
280
|
-
internalBinaryRead(
|
|
281
|
-
let a = i ?? this.create(), o =
|
|
282
|
-
for (;
|
|
283
|
-
let [n, i] =
|
|
279
|
+
internalBinaryRead(t, n, r, i) {
|
|
280
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
281
|
+
for (; t.pos < o;) {
|
|
282
|
+
let [n, i] = t.tag();
|
|
284
283
|
switch (n) {
|
|
285
284
|
default:
|
|
286
285
|
let o = r.readUnknownField;
|
|
287
286
|
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
288
|
-
let s =
|
|
289
|
-
o !== !1 && (o === !0 ?
|
|
287
|
+
let s = t.skip(i);
|
|
288
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
290
289
|
}
|
|
291
290
|
}
|
|
292
291
|
return a;
|
|
293
292
|
}
|
|
294
|
-
internalBinaryWrite(
|
|
293
|
+
internalBinaryWrite(t, n, r) {
|
|
295
294
|
let i = r.writeUnknownFields;
|
|
296
|
-
return i !== !1 && (i == 1 ?
|
|
295
|
+
return i !== !1 && (i == 1 ? e.onWrite : i)(this.typeName, t, n), n;
|
|
297
296
|
}
|
|
298
|
-
}(), _ = new class extends
|
|
297
|
+
}(), _ = new class extends t {
|
|
299
298
|
constructor() {
|
|
300
299
|
super("velorum.Model", [
|
|
301
300
|
{
|
|
@@ -327,45 +326,45 @@ var u = new class extends a {
|
|
|
327
326
|
}
|
|
328
327
|
create(e) {
|
|
329
328
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
330
|
-
return t.identifier = "", t.name = "", t.tokenCost = 0, t.type = [], e !== void 0 &&
|
|
329
|
+
return t.identifier = "", t.name = "", t.tokenCost = 0, t.type = [], e !== void 0 && r(this, t, e), t;
|
|
331
330
|
}
|
|
332
|
-
internalBinaryRead(n, r,
|
|
333
|
-
let o = a ?? this.create(), s =
|
|
334
|
-
for (;
|
|
335
|
-
let [
|
|
336
|
-
switch (
|
|
331
|
+
internalBinaryRead(t, n, r, a) {
|
|
332
|
+
let o = a ?? this.create(), s = t.pos + n;
|
|
333
|
+
for (; t.pos < s;) {
|
|
334
|
+
let [n, a] = t.tag();
|
|
335
|
+
switch (n) {
|
|
337
336
|
case 1:
|
|
338
|
-
o.identifier =
|
|
337
|
+
o.identifier = t.string();
|
|
339
338
|
break;
|
|
340
339
|
case 2:
|
|
341
|
-
o.name =
|
|
340
|
+
o.name = t.string();
|
|
342
341
|
break;
|
|
343
342
|
case 3:
|
|
344
|
-
o.tokenCost =
|
|
343
|
+
o.tokenCost = t.float();
|
|
345
344
|
break;
|
|
346
345
|
case 4:
|
|
347
|
-
if (a ===
|
|
348
|
-
else o.type.push(
|
|
346
|
+
if (a === i.LengthDelimited) for (let e = t.int32() + t.pos; t.pos < e;) o.type.push(t.int32());
|
|
347
|
+
else o.type.push(t.int32());
|
|
349
348
|
break;
|
|
350
349
|
default:
|
|
351
|
-
let s =
|
|
352
|
-
if (s === "throw") throw new globalThis.Error(`Unknown field ${
|
|
353
|
-
let c =
|
|
354
|
-
s !== !1 && (s === !0 ?
|
|
350
|
+
let s = r.readUnknownField;
|
|
351
|
+
if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);
|
|
352
|
+
let c = t.skip(a);
|
|
353
|
+
s !== !1 && (s === !0 ? e.onRead : s)(this.typeName, o, n, a, c);
|
|
355
354
|
}
|
|
356
355
|
}
|
|
357
356
|
return o;
|
|
358
357
|
}
|
|
359
|
-
internalBinaryWrite(n, r
|
|
360
|
-
if (
|
|
361
|
-
|
|
362
|
-
for (let e = 0; e <
|
|
363
|
-
|
|
358
|
+
internalBinaryWrite(t, n, r) {
|
|
359
|
+
if (t.identifier !== "" && n.tag(1, i.LengthDelimited).string(t.identifier), t.name !== "" && n.tag(2, i.LengthDelimited).string(t.name), t.tokenCost !== 0 && n.tag(3, i.Bit32).float(t.tokenCost), t.type.length) {
|
|
360
|
+
n.tag(4, i.LengthDelimited).fork();
|
|
361
|
+
for (let e = 0; e < t.type.length; e++) n.int32(t.type[e]);
|
|
362
|
+
n.join();
|
|
364
363
|
}
|
|
365
|
-
let a =
|
|
366
|
-
return a !== !1 && (a == 1 ?
|
|
364
|
+
let a = r.writeUnknownFields;
|
|
365
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
|
|
367
366
|
}
|
|
368
|
-
}(), v = new class extends
|
|
367
|
+
}(), v = new class extends t {
|
|
369
368
|
constructor() {
|
|
370
369
|
super("velorum.ModelsResponse", [{
|
|
371
370
|
no: 1,
|
|
@@ -377,29 +376,29 @@ var u = new class extends a {
|
|
|
377
376
|
}
|
|
378
377
|
create(e) {
|
|
379
378
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
380
|
-
return t.models = [], e !== void 0 &&
|
|
379
|
+
return t.models = [], e !== void 0 && r(this, t, e), t;
|
|
381
380
|
}
|
|
382
|
-
internalBinaryRead(
|
|
383
|
-
let a = i ?? this.create(), o =
|
|
384
|
-
for (;
|
|
385
|
-
let [n, i] =
|
|
381
|
+
internalBinaryRead(t, n, r, i) {
|
|
382
|
+
let a = i ?? this.create(), o = t.pos + n;
|
|
383
|
+
for (; t.pos < o;) {
|
|
384
|
+
let [n, i] = t.tag();
|
|
386
385
|
switch (n) {
|
|
387
386
|
case 1:
|
|
388
|
-
a.models.push(_.internalBinaryRead(
|
|
387
|
+
a.models.push(_.internalBinaryRead(t, t.uint32(), r));
|
|
389
388
|
break;
|
|
390
389
|
default:
|
|
391
390
|
let o = r.readUnknownField;
|
|
392
391
|
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
393
|
-
let s =
|
|
394
|
-
o !== !1 && (o === !0 ?
|
|
392
|
+
let s = t.skip(i);
|
|
393
|
+
o !== !1 && (o === !0 ? e.onRead : o)(this.typeName, a, n, i, s);
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
396
|
return a;
|
|
398
397
|
}
|
|
399
|
-
internalBinaryWrite(n, r
|
|
400
|
-
for (let
|
|
401
|
-
let a =
|
|
402
|
-
return a !== !1 && (a == 1 ?
|
|
398
|
+
internalBinaryWrite(t, n, r) {
|
|
399
|
+
for (let e = 0; e < t.models.length; e++) _.internalBinaryWrite(t.models[e], n.tag(1, i.LengthDelimited).fork(), r).join();
|
|
400
|
+
let a = r.writeUnknownFields;
|
|
401
|
+
return a !== !1 && (a == 1 ? e.onWrite : a)(this.typeName, t, n), n;
|
|
403
402
|
}
|
|
404
403
|
}(), y = new c("velorum.InfoService", [{
|
|
405
404
|
name: "Models",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/tucana",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.78",
|
|
4
4
|
"description": "Code0 GRPC Protocol",
|
|
5
5
|
"homepage": "https://github.com/code0-tech/tucana#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"scripts": {
|
|
17
17
|
"build": "vite build",
|
|
18
18
|
"generate:aquila": "protoc --ts_opt=add_pb_suffix --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/aquila --proto_path=../../proto/shared ../../proto/aquila/*.proto",
|
|
19
|
-
"generate:
|
|
19
|
+
"generate:sagittarius_gateway": "protoc --ts_opt=add_pb_suffix --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/sagittarius_gateway --proto_path=../../proto/shared ../../proto/sagittarius_gateway/*.proto",
|
|
20
|
+
"generate:sagittarius_rails": "protoc --ts_opt=add_pb_suffix --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/sagittarius_rails --proto_path=../../proto/shared ../../proto/sagittarius_rails/*.proto",
|
|
20
21
|
"generate:velorum": "protoc --ts_opt=add_pb_suffix --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/velorum --proto_path=../../proto/shared ../../proto/velorum/*.proto",
|
|
21
22
|
"generate:shared": "protoc --ts_opt=add_pb_suffix --ts_opt=generate_dependencies --ts_out=pb/_generated --proto_path=../../proto/shared ../../proto/shared/*.proto",
|
|
22
|
-
"generate": "npm run clean && npm run generate:shared && npm run generate:
|
|
23
|
+
"generate": "npm run clean && npm run generate:shared && npm run generate:sagittarius_gateway && npm run generate:sagittarius_rails && npm run generate:aquila && npm run generate:velorum && npm run generate:exports",
|
|
23
24
|
"generate:exports": "node scripts/generateExports.mjs",
|
|
24
25
|
"clean": "rm -rf pb/_generated/*.js && rm -rf pb/_generated/*.ts && rm -rf helpers/*.js"
|
|
25
26
|
},
|
|
@@ -48,10 +49,15 @@
|
|
|
48
49
|
"import": "./dist/aquila.es.js",
|
|
49
50
|
"require": "./dist/aquila.cjs.js"
|
|
50
51
|
},
|
|
51
|
-
"./
|
|
52
|
-
"types": "./dist/
|
|
53
|
-
"import": "./dist/
|
|
54
|
-
"require": "./dist/
|
|
52
|
+
"./sagittarius_gateway": {
|
|
53
|
+
"types": "./dist/sagittarius_gateway.d.ts",
|
|
54
|
+
"import": "./dist/sagittarius_gateway.es.js",
|
|
55
|
+
"require": "./dist/sagittarius_gateway.cjs.js"
|
|
56
|
+
},
|
|
57
|
+
"./sagittarius_rails": {
|
|
58
|
+
"types": "./dist/sagittarius_rails.d.ts",
|
|
59
|
+
"import": "./dist/sagittarius_rails.es.js",
|
|
60
|
+
"require": "./dist/sagittarius_rails.cjs.js"
|
|
55
61
|
},
|
|
56
62
|
"./velorum": {
|
|
57
63
|
"types": "./dist/velorum.d.ts",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RpcTransport, ServiceInfo, ServerStreamingCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
-
import { FlowResponse, FlowLogonRequest } from './sagittarius.flow_pb';
|
|
3
|
-
/**
|
|
4
|
-
* @generated from protobuf service sagittarius.FlowService
|
|
5
|
-
*/
|
|
6
|
-
export interface IFlowServiceClient {
|
|
7
|
-
/**
|
|
8
|
-
* @generated from protobuf rpc: Update
|
|
9
|
-
*/
|
|
10
|
-
update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf service sagittarius.FlowService
|
|
14
|
-
*/
|
|
15
|
-
export declare class FlowServiceClient implements IFlowServiceClient, ServiceInfo {
|
|
16
|
-
private readonly _transport;
|
|
17
|
-
typeName: string;
|
|
18
|
-
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
19
|
-
options: {
|
|
20
|
-
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
21
|
-
};
|
|
22
|
-
constructor(_transport: RpcTransport);
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf rpc: Update
|
|
25
|
-
*/
|
|
26
|
-
update(input: FlowLogonRequest, options?: RpcOptions): ServerStreamingCall<FlowLogonRequest, FlowResponse>;
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
-
import { PingMessage } from './sagittarius.ping_pb';
|
|
3
|
-
/**
|
|
4
|
-
* @generated from protobuf service sagittarius.PingService
|
|
5
|
-
*/
|
|
6
|
-
export interface IPingServiceClient {
|
|
7
|
-
/**
|
|
8
|
-
* @generated from protobuf rpc: Ping
|
|
9
|
-
*/
|
|
10
|
-
ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf service sagittarius.PingService
|
|
14
|
-
*/
|
|
15
|
-
export declare class PingServiceClient implements IPingServiceClient, ServiceInfo {
|
|
16
|
-
private readonly _transport;
|
|
17
|
-
typeName: string;
|
|
18
|
-
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
19
|
-
options: {
|
|
20
|
-
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
21
|
-
};
|
|
22
|
-
constructor(_transport: RpcTransport);
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf rpc: Ping
|
|
25
|
-
*/
|
|
26
|
-
ping(input: PingMessage, options?: RpcOptions): UnaryCall<PingMessage, PingMessage>;
|
|
27
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ServiceType } from '@protobuf-ts/runtime-rpc';
|
|
2
|
-
import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
|
|
3
|
-
/**
|
|
4
|
-
* @generated from protobuf message sagittarius.PingMessage
|
|
5
|
-
*/
|
|
6
|
-
export interface PingMessage {
|
|
7
|
-
/**
|
|
8
|
-
* @generated from protobuf field: int64 ping_id = 1
|
|
9
|
-
*/
|
|
10
|
-
pingId: bigint;
|
|
11
|
-
}
|
|
12
|
-
declare class PingMessage$Type extends MessageType<PingMessage> {
|
|
13
|
-
constructor();
|
|
14
|
-
create(value?: PartialMessage<PingMessage>): PingMessage;
|
|
15
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PingMessage): PingMessage;
|
|
16
|
-
internalBinaryWrite(message: PingMessage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @generated MessageType for protobuf message sagittarius.PingMessage
|
|
20
|
-
*/
|
|
21
|
-
export declare const PingMessage: PingMessage$Type;
|
|
22
|
-
/**
|
|
23
|
-
* @generated ServiceType for protobuf service sagittarius.PingService
|
|
24
|
-
*/
|
|
25
|
-
export declare const PingService: ServiceType;
|
|
26
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { RpcTransport, ServiceInfo, DuplexStreamingCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
|
|
2
|
-
import { ExecutionLogonResponse, ExecutionLogonRequest } from './sagittarius.text_execution_pb';
|
|
3
|
-
/**
|
|
4
|
-
* @generated from protobuf service sagittarius.ExecutionService
|
|
5
|
-
*/
|
|
6
|
-
export interface IExecutionServiceClient {
|
|
7
|
-
/**
|
|
8
|
-
* @generated from protobuf rpc: Test
|
|
9
|
-
*/
|
|
10
|
-
test(options?: RpcOptions): DuplexStreamingCall<ExecutionLogonRequest, ExecutionLogonResponse>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @generated from protobuf service sagittarius.ExecutionService
|
|
14
|
-
*/
|
|
15
|
-
export declare class ExecutionServiceClient implements IExecutionServiceClient, ServiceInfo {
|
|
16
|
-
private readonly _transport;
|
|
17
|
-
typeName: string;
|
|
18
|
-
methods: import('@protobuf-ts/runtime-rpc').MethodInfo<any, any>[];
|
|
19
|
-
options: {
|
|
20
|
-
[extensionName: string]: import('@protobuf-ts/runtime').JsonValue;
|
|
21
|
-
};
|
|
22
|
-
constructor(_transport: RpcTransport);
|
|
23
|
-
/**
|
|
24
|
-
* @generated from protobuf rpc: Test
|
|
25
|
-
*/
|
|
26
|
-
test(options?: RpcOptions): DuplexStreamingCall<ExecutionLogonRequest, ExecutionLogonResponse>;
|
|
27
|
-
}
|
package/dist/pb/sagittarius.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './_generated/sagittarius.flow_pb.client.js';
|
|
2
|
-
export * from './_generated/sagittarius.flow_pb.js';
|
|
3
|
-
export * from './_generated/sagittarius.module_pb.client.js';
|
|
4
|
-
export * from './_generated/sagittarius.module_pb.js';
|
|
5
|
-
export * from './_generated/sagittarius.ping_pb.client.js';
|
|
6
|
-
export * from './_generated/sagittarius.ping_pb.js';
|
|
7
|
-
export * from './_generated/sagittarius.runtime_status_pb.client.js';
|
|
8
|
-
export * from './_generated/sagittarius.runtime_status_pb.js';
|
|
9
|
-
export * from './_generated/sagittarius.text_execution_pb.client.js';
|
|
10
|
-
export * from './_generated/sagittarius.text_execution_pb.js';
|
package/dist/sagittarius.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./shared.function_pb-C8cj-NCz.cjs"),t=require("./shared.runtime_status_pb-BEEvFfe8.cjs"),n=require("./shared.flow_pb-clFvPGyv.cjs"),r=require("./rpc-interceptor-giFADd4b.cjs");var i=new class extends e.v{constructor(){super(`sagittarius.FlowLogonRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},a=new class extends e.v{constructor(){super(`sagittarius.FlowResponse`,[{no:1,name:`updated_flow`,kind:`message`,oneof:`data`,T:()=>n.h},{no:2,name:`deleted_flow_id`,kind:`scalar`,oneof:`data`,T:3,L:0},{no:3,name:`flows`,kind:`message`,oneof:`data`,T:()=>n.i},{no:4,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>t.s}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(r,i,a,o){let s=o??this.create(),c=r.pos+i;for(;r.pos<c;){let[i,o]=r.tag();switch(i){case 1:s.data={oneofKind:`updatedFlow`,updatedFlow:n.h.internalBinaryRead(r,r.uint32(),a,s.data.updatedFlow)};break;case 2:s.data={oneofKind:`deletedFlowId`,deletedFlowId:r.int64().toBigInt()};break;case 3:s.data={oneofKind:`flows`,flows:n.i.internalBinaryRead(r,r.uint32(),a,s.data.flows)};break;case 4:s.data={oneofKind:`moduleConfigurations`,moduleConfigurations:t.s.internalBinaryRead(r,r.uint32(),a,s.data.moduleConfigurations)};break;default:let c=a.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${i} (wire type ${o}) for ${this.typeName}`);let l=r.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,i,o,l)}}return s}internalBinaryWrite(r,i,a){r.data.oneofKind===`updatedFlow`&&n.h.internalBinaryWrite(r.data.updatedFlow,i.tag(1,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`deletedFlowId`&&i.tag(2,e.C.Varint).int64(r.data.deletedFlowId),r.data.oneofKind===`flows`&&n.i.internalBinaryWrite(r.data.flows,i.tag(3,e.C.LengthDelimited).fork(),a).join(),r.data.oneofKind===`moduleConfigurations`&&t.s.internalBinaryWrite(r.data.moduleConfigurations,i.tag(4,e.C.LengthDelimited).fork(),a).join();let o=a.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,r,i),i}},o=new r.n(`sagittarius.FlowService`,[{name:`Update`,serverStreaming:!0,options:{},I:i,O:a}]),s=class{constructor(e){this._transport=e,this.typeName=o.typeName,this.methods=o.methods,this.options=o.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`serverStreaming`,this._transport,n,i,e)}},c=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>t.i},{no:2,name:`available_defintition_soruces`,kind:`scalar`,repeat:2,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],n.availableDefintitionSoruces=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.modules.push(t.i.internalBinaryRead(n,n.uint32(),i));break;case 2:o.availableDefintitionSoruces.push(n.string());break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.modules.length;a++)t.i.internalBinaryWrite(n.modules[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();for(let t=0;t<n.availableDefintitionSoruces.length;t++)r.tag(2,e.C.LengthDelimited).string(n.availableDefintitionSoruces[t]);let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},l=new class extends e.v{constructor(){super(`sagittarius.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.b}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.b.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.b.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},u=new r.n(`sagittarius.ModuleService`,[{name:`Update`,options:{},I:c,O:l}]),d=class{constructor(e){this._transport=e,this.typeName=u.typeName,this.methods=u.methods,this.options=u.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},f=new class extends e.v{constructor(){super(`sagittarius.PingMessage`,[{no:1,name:`ping_id`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.pingId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.pingId=t.int64().toBigInt();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.pingId!==0n&&n.tag(1,e.C.Varint).int64(t.pingId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new r.n(`sagittarius.PingService`,[{name:`Ping`,options:{},I:f,O:f}]),m=class{constructor(e){this._transport=e,this.typeName=p.typeName,this.methods=p.methods,this.options=p.options}ping(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},h=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateRequest`,[{no:1,name:`status`,kind:`message`,T:()=>t.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.status=t.t.internalBinaryRead(n,n.uint32(),i,o.status);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.status&&t.t.internalBinaryWrite(n.status,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.v{constructor(){super(`sagittarius.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8},{no:2,name:`error`,kind:`message`,T:()=>t.b}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.success=n.bool();break;case 2:o.error=t.b.internalBinaryRead(n,n.uint32(),i,o.error);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.success!==!1&&r.tag(1,e.C.Varint).bool(n.success),n.error&&t.b.internalBinaryWrite(n.error,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},_=new r.n(`sagittarius.RuntimeStatusService`,[{name:`Update`,options:{},I:h,O:g}]),v=class{constructor(e){this._transport=e,this.typeName=_.typeName,this.methods=_.methods,this.options=_.options}update(e,t){let n=this.methods[0],i=this._transport.mergeOptions(t);return r.t(`unary`,this._transport,n,i,e)}},y=new class extends e.v{constructor(){super(`sagittarius.Logon`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},b=new class extends e.v{constructor(){super(`sagittarius.TestExecutionRequest`,[{no:1,name:`flow_id`,kind:`scalar`,T:3,L:0},{no:2,name:`execution_identifier`,kind:`scalar`,T:9},{no:3,name:`body`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowId=0n,n.executionIdentifier=``,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.flowId=t.int64().toBigInt();break;case 2:a.executionIdentifier=t.string();break;case 3:a.body=e.u.internalBinaryRead(t,t.uint32(),r,a.body);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flowId!==0n&&n.tag(1,e.C.Varint).int64(t.flowId),t.executionIdentifier!==``&&n.tag(2,e.C.LengthDelimited).string(t.executionIdentifier),t.body&&e.u.internalBinaryWrite(t.body,n.tag(3,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},x=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>y},{no:2,name:`response`,kind:`message`,oneof:`data`,T:()=>t.h}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.data={oneofKind:`logon`,logon:y.internalBinaryRead(n,n.uint32(),i,o.data.logon)};break;case 2:o.data={oneofKind:`response`,response:t.h.internalBinaryRead(n,n.uint32(),i,o.data.response)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.data.oneofKind===`logon`&&y.internalBinaryWrite(n.data.logon,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.data.oneofKind===`response`&&t.h.internalBinaryWrite(n.data.response,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},S=new class extends e.v{constructor(){super(`sagittarius.ExecutionLogonResponse`,[{no:1,name:`request`,kind:`message`,T:()=>b}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.request=b.internalBinaryRead(t,t.uint32(),r,a.request);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.request&&b.internalBinaryWrite(t.request,n.tag(1,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},C=new r.n(`sagittarius.ExecutionService`,[{name:`Test`,serverStreaming:!0,clientStreaming:!0,options:{},I:x,O:S}]),w=class{constructor(e){this._transport=e,this.typeName=C.typeName,this.methods=C.methods,this.options=C.options}test(e){let t=this.methods[0],n=this._transport.mergeOptions(e);return r.t(`duplex`,this._transport,t,n)}};exports.ExecutionLogonRequest=x,exports.ExecutionLogonResponse=S,exports.ExecutionService=C,exports.ExecutionServiceClient=w,exports.FlowLogonRequest=i,exports.FlowResponse=a,exports.FlowService=o,exports.FlowServiceClient=s,exports.Logon=y,exports.ModuleService=u,exports.ModuleServiceClient=d,exports.ModuleUpdateRequest=c,exports.ModuleUpdateResponse=l,exports.PingMessage=f,exports.PingService=p,exports.PingServiceClient=m,exports.RuntimeStatusService=_,exports.RuntimeStatusServiceClient=v,exports.RuntimeStatusUpdateRequest=h,exports.RuntimeStatusUpdateResponse=g,exports.TestExecutionRequest=b;
|
package/dist/sagittarius.d.ts
DELETED