@code0-tech/tucana 0.0.80 → 0.0.82
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 +546 -476
- package/dist/pb/_generated/aquila.action_pb.d.ts +107 -54
- package/dist/pb/_generated/shared.flow_pb.d.ts +70 -2
- package/dist/{rpc-interceptor-D0l4GO-c.js → rpc-interceptor-DG-L-abM.js} +1 -1
- package/dist/{rpc-interceptor-D-IMsC9l.cjs → rpc-interceptor-DZzmQmGJ.cjs} +1 -1
- package/dist/sagittarius_gateway.cjs.js +1 -1
- package/dist/sagittarius_gateway.es.js +313 -313
- package/dist/sagittarius_rails.cjs.js +1 -1
- package/dist/sagittarius_rails.es.js +191 -191
- package/dist/shared.cjs.js +1 -1
- package/dist/shared.es.js +3 -3
- package/dist/{shared.function_pb-CPUNe7pa.js → shared.function_pb-BgHMLoxn.js} +467 -379
- package/dist/shared.function_pb-Cs0BROjh.cjs +2 -0
- package/dist/{shared.runtime_status_pb-v763gk52.cjs → shared.runtime_status_pb-CU9pDTDp.cjs} +1 -1
- package/dist/shared.runtime_status_pb-ZBVZ8Ohf.js +1686 -0
- package/dist/velorum.cjs.js +1 -1
- package/dist/velorum.es.js +116 -116
- package/package.json +1 -1
- package/dist/shared.function_pb-BxQgyP8l.cjs +0 -2
- package/dist/shared.runtime_status_pb-CP15pmbi.js +0 -1686
package/dist/velorum.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./shared.function_pb-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./shared.function_pb-Cs0BROjh.cjs"),t=require("./rpc-interceptor-DZzmQmGJ.cjs");var n=new class extends e.F{constructor(){super(`velorum.PromptRequest`,[{no:1,name:`prompt`,kind:`scalar`,T:9},{no:2,name:`project_id`,kind:`scalar`,T:3,L:0},{no:3,name:`model_identifier`,kind:`scalar`,T:9},{no:4,name:`functions`,kind:`message`,repeat:2,T:()=>e.t},{no:5,name:`data_types`,kind:`message`,repeat:2,T:()=>e.A},{no:6,name:`flow_types`,kind:`message`,repeat:2,T:()=>e.r}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.prompt=``,n.projectId=0n,n.modelIdentifier=``,n.functions=[],n.dataTypes=[],n.flowTypes=[],t!==void 0&&e.I(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.prompt=t.string();break;case 2:a.projectId=t.int64().toBigInt();break;case 3:a.modelIdentifier=t.string();break;case 4:a.functions.push(e.t.internalBinaryRead(t,t.uint32(),r));break;case 5:a.dataTypes.push(e.A.internalBinaryRead(t,t.uint32(),r));break;case 6:a.flowTypes.push(e.r.internalBinaryRead(t,t.uint32(),r));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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.prompt!==``&&n.tag(1,e.B.LengthDelimited).string(t.prompt),t.projectId!==0n&&n.tag(2,e.B.Varint).int64(t.projectId),t.modelIdentifier!==``&&n.tag(3,e.B.LengthDelimited).string(t.modelIdentifier);for(let i=0;i<t.functions.length;i++)e.t.internalBinaryWrite(t.functions[i],n.tag(4,e.B.LengthDelimited).fork(),r).join();for(let i=0;i<t.dataTypes.length;i++)e.A.internalBinaryWrite(t.dataTypes[i],n.tag(5,e.B.LengthDelimited).fork(),r).join();for(let i=0;i<t.flowTypes.length;i++)e.r.internalBinaryWrite(t.flowTypes[i],n.tag(6,e.B.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},r=new class extends e.F{constructor(){super(`velorum.FlowRequest`,[{no:1,name:`prompt`,kind:`scalar`,T:9},{no:2,name:`flow`,kind:`message`,T:()=>e.u},{no:3,name:`project_id`,kind:`scalar`,T:3,L:0},{no:4,name:`model_identifier`,kind:`scalar`,T:9},{no:5,name:`functions`,kind:`message`,repeat:2,T:()=>e.t},{no:6,name:`data_types`,kind:`message`,repeat:2,T:()=>e.A},{no:7,name:`flow_types`,kind:`message`,repeat:2,T:()=>e.r}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.prompt=``,n.projectId=0n,n.modelIdentifier=``,n.functions=[],n.dataTypes=[],n.flowTypes=[],t!==void 0&&e.I(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.prompt=t.string();break;case 2:a.flow=e.u.internalBinaryRead(t,t.uint32(),r,a.flow);break;case 3:a.projectId=t.int64().toBigInt();break;case 4:a.modelIdentifier=t.string();break;case 5:a.functions.push(e.t.internalBinaryRead(t,t.uint32(),r));break;case 6:a.dataTypes.push(e.A.internalBinaryRead(t,t.uint32(),r));break;case 7:a.flowTypes.push(e.r.internalBinaryRead(t,t.uint32(),r));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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.prompt!==``&&n.tag(1,e.B.LengthDelimited).string(t.prompt),t.flow&&e.u.internalBinaryWrite(t.flow,n.tag(2,e.B.LengthDelimited).fork(),r).join(),t.projectId!==0n&&n.tag(3,e.B.Varint).int64(t.projectId),t.modelIdentifier!==``&&n.tag(4,e.B.LengthDelimited).string(t.modelIdentifier);for(let i=0;i<t.functions.length;i++)e.t.internalBinaryWrite(t.functions[i],n.tag(5,e.B.LengthDelimited).fork(),r).join();for(let i=0;i<t.dataTypes.length;i++)e.A.internalBinaryWrite(t.dataTypes[i],n.tag(6,e.B.LengthDelimited).fork(),r).join();for(let i=0;i<t.flowTypes.length;i++)e.r.internalBinaryWrite(t.flowTypes[i],n.tag(7,e.B.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.F{constructor(){super(`velorum.FlowResponse`,[{no:1,name:`flow`,kind:`message`,T:()=>e.u},{no:2,name:`cached_until`,kind:`scalar`,T:3,L:0},{no:3,name:`usage`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.cachedUntil=0n,n.usage=0n,t!==void 0&&e.I(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.flow=e.u.internalBinaryRead(t,t.uint32(),r,a.flow);break;case 2:a.cachedUntil=t.int64().toBigInt();break;case 3:a.usage=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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.flow&&e.u.internalBinaryWrite(t.flow,n.tag(1,e.B.LengthDelimited).fork(),r).join(),t.cachedUntil!==0n&&n.tag(2,e.B.Varint).int64(t.cachedUntil),t.usage!==0n&&n.tag(3,e.B.Varint).int64(t.usage);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},a=new t.n(`velorum.GenerateService`,[{name:`Prompt`,options:{},I:n,O:i},{name:`Flow`,options:{},I:r,O:i}]),o=class{constructor(e){this._transport=e,this.typeName=a.typeName,this.methods=a.methods,this.options=a.options}prompt(e,n){let r=this.methods[0],i=this._transport.mergeOptions(n);return t.t(`unary`,this._transport,r,i,e)}flow(e,n){let r=this.methods[1],i=this._transport.mergeOptions(n);return t.t(`unary`,this._transport,r,i,e)}},s=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.EXPLAIN=1]=`EXPLAIN`,e[e.GENERATE=2]=`GENERATE`,e}({}),c=new class extends e.F{constructor(){super(`velorum.ModelsRequest`,[])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.I(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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},l=new class extends e.F{constructor(){super(`velorum.Model`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`name`,kind:`scalar`,T:9},{no:3,name:`token_cost`,kind:`scalar`,T:2},{no:4,name:`type`,kind:`enum`,repeat:1,T:()=>[`velorum.Model.ModelType`,s]}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.name=``,n.tokenCost=0,n.type=[],t!==void 0&&e.I(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.identifier=t.string();break;case 2:a.name=t.string();break;case 3:a.tokenCost=t.float();break;case 4:if(i===e.B.LengthDelimited)for(let e=t.int32()+t.pos;t.pos<e;)a.type.push(t.int32());else a.type.push(t.int32());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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){if(t.identifier!==``&&n.tag(1,e.B.LengthDelimited).string(t.identifier),t.name!==``&&n.tag(2,e.B.LengthDelimited).string(t.name),t.tokenCost!==0&&n.tag(3,e.B.Bit32).float(t.tokenCost),t.type.length){n.tag(4,e.B.LengthDelimited).fork();for(let e=0;e<t.type.length;e++)n.int32(t.type[e]);n.join()}let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},u=new class extends e.F{constructor(){super(`velorum.ModelsResponse`,[{no:1,name:`models`,kind:`message`,repeat:2,T:()=>l}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.models=[],t!==void 0&&e.I(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.models.push(l.internalBinaryRead(t,t.uint32(),r));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.z.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){for(let i=0;i<t.models.length;i++)l.internalBinaryWrite(t.models[i],n.tag(1,e.B.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.z.onWrite:i)(this.typeName,t,n),n}},d=new t.n(`velorum.InfoService`,[{name:`Models`,options:{},I:c,O:u}]),f=class{constructor(e){this._transport=e,this.typeName=d.typeName,this.methods=d.methods,this.options=d.options}models(e,n){let r=this.methods[0],i=this._transport.mergeOptions(n);return t.t(`unary`,this._transport,r,i,e)}};exports.FlowRequest=r,exports.FlowResponse=i,exports.GenerateService=a,exports.GenerateServiceClient=o,exports.InfoService=d,exports.InfoServiceClient=f,exports.Model=l,exports.Model_ModelType=s,exports.ModelsRequest=c,exports.ModelsResponse=u,exports.PromptRequest=n;
|
package/dist/velorum.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as c, t as l } from "./rpc-interceptor-
|
|
3
|
-
var u = new class extends
|
|
1
|
+
import { A as e, B as t, F as n, I as r, r as i, t as a, u as o, z as s } from "./shared.function_pb-BgHMLoxn.js";
|
|
2
|
+
import { n as c, t as l } from "./rpc-interceptor-DG-L-abM.js";
|
|
3
|
+
var u = new class extends n {
|
|
4
4
|
constructor() {
|
|
5
5
|
super("velorum.PromptRequest", [
|
|
6
6
|
{
|
|
@@ -27,21 +27,21 @@ var u = new class extends t {
|
|
|
27
27
|
name: "functions",
|
|
28
28
|
kind: "message",
|
|
29
29
|
repeat: 2,
|
|
30
|
-
T: () =>
|
|
30
|
+
T: () => a
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
no: 5,
|
|
34
34
|
name: "data_types",
|
|
35
35
|
kind: "message",
|
|
36
36
|
repeat: 2,
|
|
37
|
-
T: () =>
|
|
37
|
+
T: () => e
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
no: 6,
|
|
41
41
|
name: "flow_types",
|
|
42
42
|
kind: "message",
|
|
43
43
|
repeat: 2,
|
|
44
|
-
T: () =>
|
|
44
|
+
T: () => i
|
|
45
45
|
}
|
|
46
46
|
]);
|
|
47
47
|
}
|
|
@@ -49,11 +49,11 @@ var u = new class extends t {
|
|
|
49
49
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
50
50
|
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 && r(this, t, e), t;
|
|
51
51
|
}
|
|
52
|
-
internalBinaryRead(t,
|
|
53
|
-
let c =
|
|
52
|
+
internalBinaryRead(t, n, r, o) {
|
|
53
|
+
let c = o ?? this.create(), l = t.pos + n;
|
|
54
54
|
for (; t.pos < l;) {
|
|
55
|
-
let [
|
|
56
|
-
switch (
|
|
55
|
+
let [n, o] = t.tag();
|
|
56
|
+
switch (n) {
|
|
57
57
|
case 1:
|
|
58
58
|
c.prompt = t.string();
|
|
59
59
|
break;
|
|
@@ -64,32 +64,32 @@ var u = new class extends t {
|
|
|
64
64
|
c.modelIdentifier = t.string();
|
|
65
65
|
break;
|
|
66
66
|
case 4:
|
|
67
|
-
c.functions.push(
|
|
67
|
+
c.functions.push(a.internalBinaryRead(t, t.uint32(), r));
|
|
68
68
|
break;
|
|
69
69
|
case 5:
|
|
70
|
-
c.dataTypes.push(
|
|
70
|
+
c.dataTypes.push(e.internalBinaryRead(t, t.uint32(), r));
|
|
71
71
|
break;
|
|
72
72
|
case 6:
|
|
73
|
-
c.flowTypes.push(
|
|
73
|
+
c.flowTypes.push(i.internalBinaryRead(t, t.uint32(), r));
|
|
74
74
|
break;
|
|
75
75
|
default:
|
|
76
|
-
let l =
|
|
77
|
-
if (l === "throw") throw new globalThis.Error(`Unknown field ${
|
|
78
|
-
let u = t.skip(
|
|
79
|
-
l !== !1 && (l === !0 ?
|
|
76
|
+
let l = r.readUnknownField;
|
|
77
|
+
if (l === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${o}) for ${this.typeName}`);
|
|
78
|
+
let u = t.skip(o);
|
|
79
|
+
l !== !1 && (l === !0 ? s.onRead : l)(this.typeName, c, n, o, u);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
return c;
|
|
83
83
|
}
|
|
84
|
-
internalBinaryWrite(
|
|
85
|
-
|
|
86
|
-
for (let e = 0; e <
|
|
87
|
-
for (let
|
|
88
|
-
for (let e = 0; e <
|
|
89
|
-
let c =
|
|
90
|
-
return c !== !1 && (c == 1 ?
|
|
84
|
+
internalBinaryWrite(n, r, o) {
|
|
85
|
+
n.prompt !== "" && r.tag(1, t.LengthDelimited).string(n.prompt), n.projectId !== 0n && r.tag(2, t.Varint).int64(n.projectId), n.modelIdentifier !== "" && r.tag(3, t.LengthDelimited).string(n.modelIdentifier);
|
|
86
|
+
for (let e = 0; e < n.functions.length; e++) a.internalBinaryWrite(n.functions[e], r.tag(4, t.LengthDelimited).fork(), o).join();
|
|
87
|
+
for (let i = 0; i < n.dataTypes.length; i++) e.internalBinaryWrite(n.dataTypes[i], r.tag(5, t.LengthDelimited).fork(), o).join();
|
|
88
|
+
for (let e = 0; e < n.flowTypes.length; e++) i.internalBinaryWrite(n.flowTypes[e], r.tag(6, t.LengthDelimited).fork(), o).join();
|
|
89
|
+
let c = o.writeUnknownFields;
|
|
90
|
+
return c !== !1 && (c == 1 ? s.onWrite : c)(this.typeName, n, r), r;
|
|
91
91
|
}
|
|
92
|
-
}(), d = new class extends
|
|
92
|
+
}(), d = new class extends n {
|
|
93
93
|
constructor() {
|
|
94
94
|
super("velorum.FlowRequest", [
|
|
95
95
|
{
|
|
@@ -102,7 +102,7 @@ var u = new class extends t {
|
|
|
102
102
|
no: 2,
|
|
103
103
|
name: "flow",
|
|
104
104
|
kind: "message",
|
|
105
|
-
T: () =>
|
|
105
|
+
T: () => o
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
no: 3,
|
|
@@ -122,21 +122,21 @@ var u = new class extends t {
|
|
|
122
122
|
name: "functions",
|
|
123
123
|
kind: "message",
|
|
124
124
|
repeat: 2,
|
|
125
|
-
T: () =>
|
|
125
|
+
T: () => a
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
no: 6,
|
|
129
129
|
name: "data_types",
|
|
130
130
|
kind: "message",
|
|
131
131
|
repeat: 2,
|
|
132
|
-
T: () =>
|
|
132
|
+
T: () => e
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
no: 7,
|
|
136
136
|
name: "flow_types",
|
|
137
137
|
kind: "message",
|
|
138
138
|
repeat: 2,
|
|
139
|
-
T: () =>
|
|
139
|
+
T: () => i
|
|
140
140
|
}
|
|
141
141
|
]);
|
|
142
142
|
}
|
|
@@ -144,16 +144,16 @@ var u = new class extends t {
|
|
|
144
144
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
145
145
|
return t.prompt = "", t.projectId = 0n, t.modelIdentifier = "", t.functions = [], t.dataTypes = [], t.flowTypes = [], e !== void 0 && r(this, t, e), t;
|
|
146
146
|
}
|
|
147
|
-
internalBinaryRead(t,
|
|
148
|
-
let l = c ?? this.create(), u = t.pos +
|
|
147
|
+
internalBinaryRead(t, n, r, c) {
|
|
148
|
+
let l = c ?? this.create(), u = t.pos + n;
|
|
149
149
|
for (; t.pos < u;) {
|
|
150
|
-
let [
|
|
151
|
-
switch (
|
|
150
|
+
let [n, c] = t.tag();
|
|
151
|
+
switch (n) {
|
|
152
152
|
case 1:
|
|
153
153
|
l.prompt = t.string();
|
|
154
154
|
break;
|
|
155
155
|
case 2:
|
|
156
|
-
l.flow =
|
|
156
|
+
l.flow = o.internalBinaryRead(t, t.uint32(), r, l.flow);
|
|
157
157
|
break;
|
|
158
158
|
case 3:
|
|
159
159
|
l.projectId = t.int64().toBigInt();
|
|
@@ -162,39 +162,39 @@ var u = new class extends t {
|
|
|
162
162
|
l.modelIdentifier = t.string();
|
|
163
163
|
break;
|
|
164
164
|
case 5:
|
|
165
|
-
l.functions.push(
|
|
165
|
+
l.functions.push(a.internalBinaryRead(t, t.uint32(), r));
|
|
166
166
|
break;
|
|
167
167
|
case 6:
|
|
168
|
-
l.dataTypes.push(
|
|
168
|
+
l.dataTypes.push(e.internalBinaryRead(t, t.uint32(), r));
|
|
169
169
|
break;
|
|
170
170
|
case 7:
|
|
171
|
-
l.flowTypes.push(
|
|
171
|
+
l.flowTypes.push(i.internalBinaryRead(t, t.uint32(), r));
|
|
172
172
|
break;
|
|
173
173
|
default:
|
|
174
|
-
let u =
|
|
175
|
-
if (u === "throw") throw new globalThis.Error(`Unknown field ${
|
|
174
|
+
let u = r.readUnknownField;
|
|
175
|
+
if (u === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${c}) for ${this.typeName}`);
|
|
176
176
|
let d = t.skip(c);
|
|
177
|
-
u !== !1 && (u === !0 ?
|
|
177
|
+
u !== !1 && (u === !0 ? s.onRead : u)(this.typeName, l, n, c, d);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
return l;
|
|
181
181
|
}
|
|
182
|
-
internalBinaryWrite(
|
|
183
|
-
|
|
184
|
-
for (let e = 0; e <
|
|
185
|
-
for (let
|
|
186
|
-
for (let e = 0; e <
|
|
182
|
+
internalBinaryWrite(n, r, c) {
|
|
183
|
+
n.prompt !== "" && r.tag(1, t.LengthDelimited).string(n.prompt), n.flow && o.internalBinaryWrite(n.flow, r.tag(2, t.LengthDelimited).fork(), c).join(), n.projectId !== 0n && r.tag(3, t.Varint).int64(n.projectId), n.modelIdentifier !== "" && r.tag(4, t.LengthDelimited).string(n.modelIdentifier);
|
|
184
|
+
for (let e = 0; e < n.functions.length; e++) a.internalBinaryWrite(n.functions[e], r.tag(5, t.LengthDelimited).fork(), c).join();
|
|
185
|
+
for (let i = 0; i < n.dataTypes.length; i++) e.internalBinaryWrite(n.dataTypes[i], r.tag(6, t.LengthDelimited).fork(), c).join();
|
|
186
|
+
for (let e = 0; e < n.flowTypes.length; e++) i.internalBinaryWrite(n.flowTypes[e], r.tag(7, t.LengthDelimited).fork(), c).join();
|
|
187
187
|
let l = c.writeUnknownFields;
|
|
188
|
-
return l !== !1 && (l == 1 ?
|
|
188
|
+
return l !== !1 && (l == 1 ? s.onWrite : l)(this.typeName, n, r), r;
|
|
189
189
|
}
|
|
190
|
-
}(), f = new class extends
|
|
190
|
+
}(), f = new class extends n {
|
|
191
191
|
constructor() {
|
|
192
192
|
super("velorum.FlowResponse", [
|
|
193
193
|
{
|
|
194
194
|
no: 1,
|
|
195
195
|
name: "flow",
|
|
196
196
|
kind: "message",
|
|
197
|
-
T: () =>
|
|
197
|
+
T: () => o
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
no: 2,
|
|
@@ -216,33 +216,33 @@ var u = new class extends t {
|
|
|
216
216
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
217
217
|
return t.cachedUntil = 0n, t.usage = 0n, e !== void 0 && r(this, t, e), t;
|
|
218
218
|
}
|
|
219
|
-
internalBinaryRead(t, n, r
|
|
220
|
-
let
|
|
221
|
-
for (;
|
|
222
|
-
let [
|
|
223
|
-
switch (
|
|
219
|
+
internalBinaryRead(e, t, n, r) {
|
|
220
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
221
|
+
for (; e.pos < a;) {
|
|
222
|
+
let [t, r] = e.tag();
|
|
223
|
+
switch (t) {
|
|
224
224
|
case 1:
|
|
225
|
-
|
|
225
|
+
i.flow = o.internalBinaryRead(e, e.uint32(), n, i.flow);
|
|
226
226
|
break;
|
|
227
227
|
case 2:
|
|
228
|
-
|
|
228
|
+
i.cachedUntil = e.int64().toBigInt();
|
|
229
229
|
break;
|
|
230
230
|
case 3:
|
|
231
|
-
|
|
231
|
+
i.usage = e.int64().toBigInt();
|
|
232
232
|
break;
|
|
233
233
|
default:
|
|
234
|
-
let
|
|
235
|
-
if (
|
|
236
|
-
let c =
|
|
237
|
-
|
|
234
|
+
let a = n.readUnknownField;
|
|
235
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
236
|
+
let c = e.skip(r);
|
|
237
|
+
a !== !1 && (a === !0 ? s.onRead : a)(this.typeName, i, t, r, c);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return i;
|
|
241
241
|
}
|
|
242
|
-
internalBinaryWrite(
|
|
243
|
-
|
|
244
|
-
let
|
|
245
|
-
return
|
|
242
|
+
internalBinaryWrite(e, n, r) {
|
|
243
|
+
e.flow && o.internalBinaryWrite(e.flow, n.tag(1, t.LengthDelimited).fork(), r).join(), e.cachedUntil !== 0n && n.tag(2, t.Varint).int64(e.cachedUntil), e.usage !== 0n && n.tag(3, t.Varint).int64(e.usage);
|
|
244
|
+
let i = r.writeUnknownFields;
|
|
245
|
+
return i !== !1 && (i == 1 ? s.onWrite : i)(this.typeName, e, n), n;
|
|
246
246
|
}
|
|
247
247
|
}(), p = new c("velorum.GenerateService", [{
|
|
248
248
|
name: "Prompt",
|
|
@@ -268,7 +268,7 @@ var u = new class extends t {
|
|
|
268
268
|
}
|
|
269
269
|
}, h = /* @__PURE__ */ function(e) {
|
|
270
270
|
return e[e.UNKNOWN = 0] = "UNKNOWN", e[e.EXPLAIN = 1] = "EXPLAIN", e[e.GENERATE = 2] = "GENERATE", e;
|
|
271
|
-
}({}), g = new class extends
|
|
271
|
+
}({}), g = new class extends n {
|
|
272
272
|
constructor() {
|
|
273
273
|
super("velorum.ModelsRequest", []);
|
|
274
274
|
}
|
|
@@ -276,25 +276,25 @@ var u = new class extends t {
|
|
|
276
276
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
277
277
|
return e !== void 0 && r(this, t, e), t;
|
|
278
278
|
}
|
|
279
|
-
internalBinaryRead(t, n, r
|
|
280
|
-
let
|
|
281
|
-
for (;
|
|
282
|
-
let [
|
|
283
|
-
switch (
|
|
279
|
+
internalBinaryRead(e, t, n, r) {
|
|
280
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
281
|
+
for (; e.pos < a;) {
|
|
282
|
+
let [t, r] = e.tag();
|
|
283
|
+
switch (t) {
|
|
284
284
|
default:
|
|
285
|
-
let
|
|
286
|
-
if (
|
|
287
|
-
let
|
|
288
|
-
|
|
285
|
+
let a = n.readUnknownField;
|
|
286
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
287
|
+
let o = e.skip(r);
|
|
288
|
+
a !== !1 && (a === !0 ? s.onRead : a)(this.typeName, i, t, r, o);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
return
|
|
291
|
+
return i;
|
|
292
292
|
}
|
|
293
|
-
internalBinaryWrite(t, n
|
|
294
|
-
let
|
|
295
|
-
return
|
|
293
|
+
internalBinaryWrite(e, t, n) {
|
|
294
|
+
let r = n.writeUnknownFields;
|
|
295
|
+
return r !== !1 && (r == 1 ? s.onWrite : r)(this.typeName, e, t), t;
|
|
296
296
|
}
|
|
297
|
-
}(), _ = new class extends
|
|
297
|
+
}(), _ = new class extends n {
|
|
298
298
|
constructor() {
|
|
299
299
|
super("velorum.Model", [
|
|
300
300
|
{
|
|
@@ -328,43 +328,43 @@ var u = new class extends t {
|
|
|
328
328
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
329
329
|
return t.identifier = "", t.name = "", t.tokenCost = 0, t.type = [], e !== void 0 && r(this, t, e), t;
|
|
330
330
|
}
|
|
331
|
-
internalBinaryRead(
|
|
332
|
-
let
|
|
333
|
-
for (;
|
|
334
|
-
let [n,
|
|
331
|
+
internalBinaryRead(e, n, r, i) {
|
|
332
|
+
let a = i ?? this.create(), o = e.pos + n;
|
|
333
|
+
for (; e.pos < o;) {
|
|
334
|
+
let [n, i] = e.tag();
|
|
335
335
|
switch (n) {
|
|
336
336
|
case 1:
|
|
337
|
-
|
|
337
|
+
a.identifier = e.string();
|
|
338
338
|
break;
|
|
339
339
|
case 2:
|
|
340
|
-
|
|
340
|
+
a.name = e.string();
|
|
341
341
|
break;
|
|
342
342
|
case 3:
|
|
343
|
-
|
|
343
|
+
a.tokenCost = e.float();
|
|
344
344
|
break;
|
|
345
345
|
case 4:
|
|
346
|
-
if (
|
|
347
|
-
else
|
|
346
|
+
if (i === t.LengthDelimited) for (let t = e.int32() + e.pos; e.pos < t;) a.type.push(e.int32());
|
|
347
|
+
else a.type.push(e.int32());
|
|
348
348
|
break;
|
|
349
349
|
default:
|
|
350
|
-
let
|
|
351
|
-
if (
|
|
352
|
-
let c =
|
|
353
|
-
|
|
350
|
+
let o = r.readUnknownField;
|
|
351
|
+
if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
|
|
352
|
+
let c = e.skip(i);
|
|
353
|
+
o !== !1 && (o === !0 ? s.onRead : o)(this.typeName, a, n, i, c);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return a;
|
|
357
357
|
}
|
|
358
|
-
internalBinaryWrite(
|
|
359
|
-
if (
|
|
360
|
-
n.tag(4,
|
|
361
|
-
for (let
|
|
358
|
+
internalBinaryWrite(e, n, r) {
|
|
359
|
+
if (e.identifier !== "" && n.tag(1, t.LengthDelimited).string(e.identifier), e.name !== "" && n.tag(2, t.LengthDelimited).string(e.name), e.tokenCost !== 0 && n.tag(3, t.Bit32).float(e.tokenCost), e.type.length) {
|
|
360
|
+
n.tag(4, t.LengthDelimited).fork();
|
|
361
|
+
for (let t = 0; t < e.type.length; t++) n.int32(e.type[t]);
|
|
362
362
|
n.join();
|
|
363
363
|
}
|
|
364
|
-
let
|
|
365
|
-
return
|
|
364
|
+
let i = r.writeUnknownFields;
|
|
365
|
+
return i !== !1 && (i == 1 ? s.onWrite : i)(this.typeName, e, n), n;
|
|
366
366
|
}
|
|
367
|
-
}(), v = new class extends
|
|
367
|
+
}(), v = new class extends n {
|
|
368
368
|
constructor() {
|
|
369
369
|
super("velorum.ModelsResponse", [{
|
|
370
370
|
no: 1,
|
|
@@ -378,27 +378,27 @@ var u = new class extends t {
|
|
|
378
378
|
let t = globalThis.Object.create(this.messagePrototype);
|
|
379
379
|
return t.models = [], e !== void 0 && r(this, t, e), t;
|
|
380
380
|
}
|
|
381
|
-
internalBinaryRead(t, n, r
|
|
382
|
-
let
|
|
383
|
-
for (;
|
|
384
|
-
let [
|
|
385
|
-
switch (
|
|
381
|
+
internalBinaryRead(e, t, n, r) {
|
|
382
|
+
let i = r ?? this.create(), a = e.pos + t;
|
|
383
|
+
for (; e.pos < a;) {
|
|
384
|
+
let [t, r] = e.tag();
|
|
385
|
+
switch (t) {
|
|
386
386
|
case 1:
|
|
387
|
-
|
|
387
|
+
i.models.push(_.internalBinaryRead(e, e.uint32(), n));
|
|
388
388
|
break;
|
|
389
389
|
default:
|
|
390
|
-
let
|
|
391
|
-
if (
|
|
392
|
-
let
|
|
393
|
-
|
|
390
|
+
let a = n.readUnknownField;
|
|
391
|
+
if (a === "throw") throw new globalThis.Error(`Unknown field ${t} (wire type ${r}) for ${this.typeName}`);
|
|
392
|
+
let o = e.skip(r);
|
|
393
|
+
a !== !1 && (a === !0 ? s.onRead : a)(this.typeName, i, t, r, o);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
return
|
|
396
|
+
return i;
|
|
397
397
|
}
|
|
398
|
-
internalBinaryWrite(
|
|
399
|
-
for (let
|
|
400
|
-
let
|
|
401
|
-
return
|
|
398
|
+
internalBinaryWrite(e, n, r) {
|
|
399
|
+
for (let i = 0; i < e.models.length; i++) _.internalBinaryWrite(e.models[i], n.tag(1, t.LengthDelimited).fork(), r).join();
|
|
400
|
+
let i = r.writeUnknownFields;
|
|
401
|
+
return i !== !1 && (i == 1 ? s.onWrite : i)(this.typeName, e, n), n;
|
|
402
402
|
}
|
|
403
403
|
}(), y = new c("velorum.InfoService", [{
|
|
404
404
|
name: "Models",
|