@code0-tech/tucana 0.0.74 → 0.0.76

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.
Files changed (31) hide show
  1. package/dist/aquila.cjs.js +1 -1
  2. package/dist/aquila.es.js +67 -151
  3. package/dist/pb/_generated/sagittarius.module_pb.d.ts +6 -0
  4. package/dist/pb/_generated/shared.execution_result_pb.d.ts +3 -3
  5. package/dist/pb/_generated/shared.flow_pb.d.ts +37 -6
  6. package/dist/pb/_generated/shared.module_pb.d.ts +8 -0
  7. package/dist/pb/aquila.d.ts +0 -2
  8. package/dist/pb/sagittarius.d.ts +0 -2
  9. package/dist/pb/shared.d.ts +0 -1
  10. package/dist/{rpc-interceptor-az_TTCBK.js → rpc-interceptor-d3qh7P9n.js} +10 -10
  11. package/dist/{rpc-interceptor-DOeBkZHU.cjs → rpc-interceptor-giFADd4b.cjs} +1 -1
  12. package/dist/sagittarius.cjs.js +1 -1
  13. package/dist/sagittarius.es.js +121 -203
  14. package/dist/shared.cjs.js +1 -1
  15. package/dist/shared.es.js +4 -4
  16. package/dist/{shared.flow_pb-C4ewDq2u.js → shared.flow_pb-DdVuFKPW.js} +179 -117
  17. package/dist/{shared.flow_pb-DrDw61IF.cjs → shared.flow_pb-clFvPGyv.cjs} +1 -1
  18. package/dist/shared.function_pb-C8cj-NCz.cjs +2 -0
  19. package/dist/{shared.function_pb-e1jkWYE_.js → shared.function_pb-Caz-4jvi.js} +1131 -1131
  20. package/dist/shared.runtime_status_pb-BEEvFfe8.cjs +1 -0
  21. package/dist/{shared.runtime_usage_pb-KU8kpcxp.js → shared.runtime_status_pb-D7hH22xO.js} +29 -56
  22. package/dist/velorum.cjs.js +1 -1
  23. package/dist/velorum.es.js +3 -3
  24. package/package.json +1 -1
  25. package/dist/pb/_generated/aquila.runtime_usage_pb.client.d.ts +0 -27
  26. package/dist/pb/_generated/aquila.runtime_usage_pb.d.ts +0 -46
  27. package/dist/pb/_generated/sagittarius.runtime_usage_pb.client.d.ts +0 -27
  28. package/dist/pb/_generated/sagittarius.runtime_usage_pb.d.ts +0 -51
  29. package/dist/pb/_generated/shared.runtime_usage_pb.d.ts +0 -25
  30. package/dist/shared.function_pb-BErnwHWO.cjs +0 -2
  31. package/dist/shared.runtime_usage_pb-BWGBeR-4.cjs +0 -1
@@ -0,0 +1 @@
1
+ const e=require("./shared.function_pb-C8cj-NCz.cjs");var t=new class extends e.v{constructor(){super(`shared.ServiceError`,[{no:1,name:`message`,kind:`scalar`,T:9},{no:2,name:`details`,kind:`message`,repeat:2,T:()=>n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.message=``,n.details=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,r,i,a){let o=a??this.create(),s=t.pos+r;for(;t.pos<s;){let[r,a]=t.tag();switch(r){case 1:o.message=t.string();break;case 2:o.details.push(n.internalBinaryRead(t,t.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=t.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(t,r,i){t.message!==``&&r.tag(1,e.C.LengthDelimited).string(t.message);for(let a=0;a<t.details.length;a++)n.internalBinaryWrite(t.details[a],r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,t,r),r}},n=new class extends e.v{constructor(){super(`shared.ServiceErrorDetails`,[{no:1,name:`active_model_error`,kind:`message`,oneof:`kind`,T:()=>r}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.kind={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,i,a){let o=a??this.create(),s=t.pos+n;for(;t.pos<s;){let[n,a]=t.tag();switch(n){case 1:o.kind={oneofKind:`activeModelError`,activeModelError:r.internalBinaryRead(t,t.uint32(),i,o.kind.activeModelError)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);let c=t.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,n,a,c)}}return o}internalBinaryWrite(t,n,i){t.kind.oneofKind===`activeModelError`&&r.internalBinaryWrite(t.kind.activeModelError,n.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,t,n),n}},r=new class extends e.v{constructor(){super(`shared.ServiceActiveModelError`,[{no:1,name:`attribute`,kind:`scalar`,T:9},{no:2,name:`type`,kind:`scalar`,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.attribute=``,n.type=``,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.attribute=t.string();break;case 2:a.type=t.string();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.attribute!==``&&n.tag(1,e.C.LengthDelimited).string(t.attribute),t.type!==``&&n.tag(2,e.C.LengthDelimited).string(t.type);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.v{constructor(){super(`shared.Error`,[{no:1,name:`code`,kind:`scalar`,T:9},{no:2,name:`category`,kind:`scalar`,T:9},{no:3,name:`message`,kind:`scalar`,T:9},{no:4,name:`timestamp`,kind:`scalar`,T:3,L:0},{no:5,name:`version`,kind:`scalar`,T:9},{no:6,name:`dependencies`,kind:`map`,K:9,V:{kind:`scalar`,T:9}},{no:7,name:`details`,kind:`message`,T:()=>e.l}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.code=``,n.category=``,n.message=``,n.timestamp=0n,n.version=``,n.dependencies={},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.code=t.string();break;case 2:a.category=t.string();break;case 3:a.message=t.string();break;case 4:a.timestamp=t.int64().toBigInt();break;case 5:a.version=t.string();break;case 6:this.binaryReadMap6(a.dependencies,t,r);break;case 7:a.details=e.l.internalBinaryRead(t,t.uint32(),r,a.details);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}binaryReadMap6(e,t,n){let r=t.uint32(),i=t.pos+r,a,o;for(;t.pos<i;){let[e,n]=t.tag();switch(e){case 1:a=t.string();break;case 2:o=t.string();break;default:throw new globalThis.Error(`unknown map entry field for shared.Error.dependencies`)}}e[a??``]=o??``}internalBinaryWrite(t,n,r){t.code!==``&&n.tag(1,e.C.LengthDelimited).string(t.code),t.category!==``&&n.tag(2,e.C.LengthDelimited).string(t.category),t.message!==``&&n.tag(3,e.C.LengthDelimited).string(t.message),t.timestamp!==0n&&n.tag(4,e.C.Varint).int64(t.timestamp),t.version!==``&&n.tag(5,e.C.LengthDelimited).string(t.version);for(let r of globalThis.Object.keys(t.dependencies))n.tag(6,e.C.LengthDelimited).fork().tag(1,e.C.LengthDelimited).string(r).tag(2,e.C.LengthDelimited).string(t.dependencies[r]).join();t.details&&e.l.internalBinaryWrite(t.details,n.tag(7,e.C.LengthDelimited).fork(),r).join();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(`shared.NodeParameterNodeExecutionResult`,[{no:5,name:`value`,kind:`message`,T:()=>e.u}])}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 5:a.value=e.u.internalBinaryRead(t,t.uint32(),r,a.value);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.value&&e.u.internalBinaryWrite(t.value,n.tag(5,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},o=new class extends e.v{constructor(){super(`shared.NodeExecutionResult`,[{no:1,name:`node_id`,kind:`scalar`,oneof:`id`,T:3,L:0},{no:2,name:`function_identifier`,kind:`scalar`,oneof:`id`,T:9},{no:3,name:`started_at`,kind:`scalar`,T:3,L:0},{no:4,name:`finished_at`,kind:`scalar`,T:3,L:0},{no:5,name:`parameter_results`,kind:`message`,repeat:2,T:()=>a},{no:6,name:`success`,kind:`message`,oneof:`result`,T:()=>e.u},{no:7,name:`error`,kind:`message`,oneof:`result`,T:()=>i}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.id={oneofKind:void 0},n.startedAt=0n,n.finishedAt=0n,n.parameterResults=[],n.result={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,o){let s=o??this.create(),c=t.pos+n;for(;t.pos<c;){let[n,o]=t.tag();switch(n){case 1:s.id={oneofKind:`nodeId`,nodeId:t.int64().toBigInt()};break;case 2:s.id={oneofKind:`functionIdentifier`,functionIdentifier:t.string()};break;case 3:s.startedAt=t.int64().toBigInt();break;case 4:s.finishedAt=t.int64().toBigInt();break;case 5:s.parameterResults.push(a.internalBinaryRead(t,t.uint32(),r));break;case 6:s.result={oneofKind:`success`,success:e.u.internalBinaryRead(t,t.uint32(),r,s.result.success)};break;case 7:s.result={oneofKind:`error`,error:i.internalBinaryRead(t,t.uint32(),r,s.result.error)};break;default:let c=r.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${o}) for ${this.typeName}`);let l=t.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,n,o,l)}}return s}internalBinaryWrite(t,n,r){t.id.oneofKind===`nodeId`&&n.tag(1,e.C.Varint).int64(t.id.nodeId),t.id.oneofKind===`functionIdentifier`&&n.tag(2,e.C.LengthDelimited).string(t.id.functionIdentifier),t.startedAt!==0n&&n.tag(3,e.C.Varint).int64(t.startedAt),t.finishedAt!==0n&&n.tag(4,e.C.Varint).int64(t.finishedAt);for(let i=0;i<t.parameterResults.length;i++)a.internalBinaryWrite(t.parameterResults[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();t.result.oneofKind===`success`&&e.u.internalBinaryWrite(t.result.success,n.tag(6,e.C.LengthDelimited).fork(),r).join(),t.result.oneofKind===`error`&&i.internalBinaryWrite(t.result.error,n.tag(7,e.C.LengthDelimited).fork(),r).join();let o=r.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,t,n),n}},s=new class extends e.v{constructor(){super(`shared.ExecutionResult`,[{no:1,name:`execution_identifier`,kind:`scalar`,T:9},{no:2,name:`flow_id`,kind:`scalar`,T:3,L:0},{no:3,name:`started_at`,kind:`scalar`,T:3,L:0},{no:4,name:`finished_at`,kind:`scalar`,T:3,L:0},{no:5,name:`input`,kind:`message`,T:()=>e.u},{no:6,name:`node_execution_results`,kind:`message`,repeat:2,T:()=>o},{no:7,name:`success`,kind:`message`,oneof:`result`,T:()=>e.u},{no:8,name:`error`,kind:`message`,oneof:`result`,T:()=>i}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.executionIdentifier=``,n.flowId=0n,n.startedAt=0n,n.finishedAt=0n,n.nodeExecutionResults=[],n.result={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,a){let s=a??this.create(),c=t.pos+n;for(;t.pos<c;){let[n,a]=t.tag();switch(n){case 1:s.executionIdentifier=t.string();break;case 2:s.flowId=t.int64().toBigInt();break;case 3:s.startedAt=t.int64().toBigInt();break;case 4:s.finishedAt=t.int64().toBigInt();break;case 5:s.input=e.u.internalBinaryRead(t,t.uint32(),r,s.input);break;case 6:s.nodeExecutionResults.push(o.internalBinaryRead(t,t.uint32(),r));break;case 7:s.result={oneofKind:`success`,success:e.u.internalBinaryRead(t,t.uint32(),r,s.result.success)};break;case 8:s.result={oneofKind:`error`,error:i.internalBinaryRead(t,t.uint32(),r,s.result.error)};break;default:let c=r.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${a}) for ${this.typeName}`);let l=t.skip(a);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,n,a,l)}}return s}internalBinaryWrite(t,n,r){t.executionIdentifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.executionIdentifier),t.flowId!==0n&&n.tag(2,e.C.Varint).int64(t.flowId),t.startedAt!==0n&&n.tag(3,e.C.Varint).int64(t.startedAt),t.finishedAt!==0n&&n.tag(4,e.C.Varint).int64(t.finishedAt),t.input&&e.u.internalBinaryWrite(t.input,n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.nodeExecutionResults.length;i++)o.internalBinaryWrite(t.nodeExecutionResults[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();t.result.oneofKind===`success`&&e.u.internalBinaryWrite(t.result.success,n.tag(7,e.C.LengthDelimited).fork(),r).join(),t.result.oneofKind===`error`&&i.internalBinaryWrite(t.result.error,n.tag(8,e.C.LengthDelimited).fork(),r).join();let a=r.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,t,n),n}},c=new class extends e.v{constructor(){super(`shared.RuntimeFunctionDefinition`,[{no:1,name:`runtime_name`,kind:`scalar`,T:9},{no:2,name:`runtime_parameter_definitions`,kind:`message`,repeat:2,T:()=>l},{no:3,name:`signature`,kind:`scalar`,T:9},{no:4,name:`throws_error`,kind:`scalar`,T:8},{no:5,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:6,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:7,name:`documentation`,kind:`message`,repeat:2,T:()=>e._},{no:8,name:`deprecation_message`,kind:`message`,repeat:2,T:()=>e._},{no:9,name:`display_message`,kind:`message`,repeat:2,T:()=>e._},{no:10,name:`alias`,kind:`message`,repeat:2,T:()=>e._},{no:11,name:`linked_data_type_identifiers`,kind:`scalar`,repeat:2,T:9},{no:12,name:`version`,kind:`scalar`,T:9},{no:13,name:`display_icon`,kind:`scalar`,T:9},{no:14,name:`definition_source`,kind:`scalar`,T:9},{no:15,name:`design`,kind:`scalar`,opt:!0,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeName=``,n.runtimeParameterDefinitions=[],n.signature=``,n.throwsError=!1,n.name=[],n.description=[],n.documentation=[],n.deprecationMessage=[],n.displayMessage=[],n.alias=[],n.linkedDataTypeIdentifiers=[],n.version=``,n.displayIcon=``,n.definitionSource=``,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.runtimeName=t.string();break;case 2:a.runtimeParameterDefinitions.push(l.internalBinaryRead(t,t.uint32(),r));break;case 3:a.signature=t.string();break;case 4:a.throwsError=t.bool();break;case 5:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 6:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 7:a.documentation.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 8:a.deprecationMessage.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 9:a.displayMessage.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 10:a.alias.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 11:a.linkedDataTypeIdentifiers.push(t.string());break;case 12:a.version=t.string();break;case 13:a.displayIcon=t.string();break;case 14:a.definitionSource=t.string();break;case 15:a.design=t.string();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.runtimeName!==``&&n.tag(1,e.C.LengthDelimited).string(t.runtimeName);for(let i=0;i<t.runtimeParameterDefinitions.length;i++)l.internalBinaryWrite(t.runtimeParameterDefinitions[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();t.signature!==``&&n.tag(3,e.C.LengthDelimited).string(t.signature),t.throwsError!==!1&&n.tag(4,e.C.Varint).bool(t.throwsError);for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.documentation.length;i++)e._.internalBinaryWrite(t.documentation[i],n.tag(7,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.deprecationMessage.length;i++)e._.internalBinaryWrite(t.deprecationMessage[i],n.tag(8,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.displayMessage.length;i++)e._.internalBinaryWrite(t.displayMessage[i],n.tag(9,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.alias.length;i++)e._.internalBinaryWrite(t.alias[i],n.tag(10,e.C.LengthDelimited).fork(),r).join();for(let r=0;r<t.linkedDataTypeIdentifiers.length;r++)n.tag(11,e.C.LengthDelimited).string(t.linkedDataTypeIdentifiers[r]);t.version!==``&&n.tag(12,e.C.LengthDelimited).string(t.version),t.displayIcon!==``&&n.tag(13,e.C.LengthDelimited).string(t.displayIcon),t.definitionSource!==``&&n.tag(14,e.C.LengthDelimited).string(t.definitionSource),t.design!==void 0&&n.tag(15,e.C.LengthDelimited).string(t.design);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},l=new class extends e.v{constructor(){super(`shared.RuntimeParameterDefinition`,[{no:1,name:`runtime_name`,kind:`scalar`,T:9},{no:2,name:`default_value`,kind:`message`,T:()=>e.u},{no:3,name:`optional`,kind:`scalar`,opt:!0,T:8},{no:4,name:`hidden`,kind:`scalar`,opt:!0,T:8},{no:5,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:6,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:7,name:`documentation`,kind:`message`,repeat:2,T:()=>e._}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeName=``,n.name=[],n.description=[],n.documentation=[],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.runtimeName=t.string();break;case 2:a.defaultValue=e.u.internalBinaryRead(t,t.uint32(),r,a.defaultValue);break;case 3:a.optional=t.bool();break;case 4:a.hidden=t.bool();break;case 5:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 6:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 7:a.documentation.push(e._.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.runtimeName!==``&&n.tag(1,e.C.LengthDelimited).string(t.runtimeName),t.defaultValue&&e.u.internalBinaryWrite(t.defaultValue,n.tag(2,e.C.LengthDelimited).fork(),r).join(),t.optional!==void 0&&n.tag(3,e.C.Varint).bool(t.optional),t.hidden!==void 0&&n.tag(4,e.C.Varint).bool(t.hidden);for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.documentation.length;i++)e._.internalBinaryWrite(t.documentation[i],n.tag(7,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},u=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.NONE=1]=`NONE`,e[e.PROJECT=2]=`PROJECT`,e}({}),d=new class extends e.v{constructor(){super(`shared.RuntimeFlowType`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`runtime_settings`,kind:`message`,repeat:2,T:()=>f},{no:3,name:`editable`,kind:`scalar`,T:8},{no:4,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:5,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:6,name:`documentation`,kind:`message`,repeat:2,T:()=>e._},{no:7,name:`display_message`,kind:`message`,repeat:2,T:()=>e._},{no:8,name:`alias`,kind:`message`,repeat:2,T:()=>e._},{no:9,name:`version`,kind:`scalar`,T:9},{no:10,name:`display_icon`,kind:`scalar`,T:9},{no:11,name:`definition_source`,kind:`scalar`,opt:!0,T:9},{no:12,name:`linked_data_type_identifiers`,kind:`scalar`,repeat:2,T:9},{no:13,name:`signature`,kind:`scalar`,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.runtimeSettings=[],n.editable=!1,n.name=[],n.description=[],n.documentation=[],n.displayMessage=[],n.alias=[],n.version=``,n.displayIcon=``,n.linkedDataTypeIdentifiers=[],n.signature=``,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.identifier=t.string();break;case 2:a.runtimeSettings.push(f.internalBinaryRead(t,t.uint32(),r));break;case 3:a.editable=t.bool();break;case 4:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 5:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 6:a.documentation.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 7:a.displayMessage.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 8:a.alias.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 9:a.version=t.string();break;case 10:a.displayIcon=t.string();break;case 11:a.definitionSource=t.string();break;case 12:a.linkedDataTypeIdentifiers.push(t.string());break;case 13:a.signature=t.string();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.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier);for(let i=0;i<t.runtimeSettings.length;i++)f.internalBinaryWrite(t.runtimeSettings[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();t.editable!==!1&&n.tag(3,e.C.Varint).bool(t.editable);for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(4,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.documentation.length;i++)e._.internalBinaryWrite(t.documentation[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.displayMessage.length;i++)e._.internalBinaryWrite(t.displayMessage[i],n.tag(7,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.alias.length;i++)e._.internalBinaryWrite(t.alias[i],n.tag(8,e.C.LengthDelimited).fork(),r).join();t.version!==``&&n.tag(9,e.C.LengthDelimited).string(t.version),t.displayIcon!==``&&n.tag(10,e.C.LengthDelimited).string(t.displayIcon),t.definitionSource!==void 0&&n.tag(11,e.C.LengthDelimited).string(t.definitionSource);for(let r=0;r<t.linkedDataTypeIdentifiers.length;r++)n.tag(12,e.C.LengthDelimited).string(t.linkedDataTypeIdentifiers[r]);t.signature!==``&&n.tag(13,e.C.LengthDelimited).string(t.signature);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},f=new class extends e.v{constructor(){super(`shared.RuntimeFlowTypeSetting`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`unique`,kind:`enum`,T:()=>[`shared.RuntimeFlowTypeSetting.UniquenessScope`,u]},{no:3,name:`default_value`,kind:`message`,T:()=>e.u},{no:4,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:5,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:6,name:`optional`,kind:`scalar`,opt:!0,T:8},{no:7,name:`hidden`,kind:`scalar`,opt:!0,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.unique=0,n.name=[],n.description=[],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.identifier=t.string();break;case 2:a.unique=t.int32();break;case 3:a.defaultValue=e.u.internalBinaryRead(t,t.uint32(),r,a.defaultValue);break;case 4:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 5:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 6:a.optional=t.bool();break;case 7:a.hidden=t.bool();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.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier),t.unique!==0&&n.tag(2,e.C.Varint).int32(t.unique),t.defaultValue&&e.u.internalBinaryWrite(t.defaultValue,n.tag(3,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(4,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();t.optional!==void 0&&n.tag(6,e.C.Varint).bool(t.optional),t.hidden!==void 0&&n.tag(7,e.C.Varint).bool(t.hidden);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new class extends e.v{constructor(){super(`shared.Module`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:3,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:4,name:`documentation`,kind:`scalar`,T:9},{no:5,name:`author`,kind:`scalar`,T:9},{no:6,name:`icon`,kind:`scalar`,T:9},{no:7,name:`version`,kind:`scalar`,T:9},{no:9,name:`flow_types`,kind:`message`,repeat:2,T:()=>e.r},{no:10,name:`runtime_flow_types`,kind:`message`,repeat:2,T:()=>d},{no:11,name:`function_definitions`,kind:`message`,repeat:2,T:()=>e.t},{no:12,name:`runtime_function_definitions`,kind:`message`,repeat:2,T:()=>c},{no:13,name:`definition_data_types`,kind:`message`,repeat:2,T:()=>e.p},{no:14,name:`configurations`,kind:`message`,repeat:2,T:()=>y},{no:15,name:`definitions`,kind:`message`,repeat:2,T:()=>m},{no:16,name:`definition_source`,kind:`scalar`,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.name=[],n.description=[],n.documentation=``,n.author=``,n.icon=``,n.version=``,n.flowTypes=[],n.runtimeFlowTypes=[],n.functionDefinitions=[],n.runtimeFunctionDefinitions=[],n.definitionDataTypes=[],n.configurations=[],n.definitions=[],n.definitionSource=``,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.identifier=t.string();break;case 2:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 3:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 4:a.documentation=t.string();break;case 5:a.author=t.string();break;case 6:a.icon=t.string();break;case 7:a.version=t.string();break;case 9:a.flowTypes.push(e.r.internalBinaryRead(t,t.uint32(),r));break;case 10:a.runtimeFlowTypes.push(d.internalBinaryRead(t,t.uint32(),r));break;case 11:a.functionDefinitions.push(e.t.internalBinaryRead(t,t.uint32(),r));break;case 12:a.runtimeFunctionDefinitions.push(c.internalBinaryRead(t,t.uint32(),r));break;case 13:a.definitionDataTypes.push(e.p.internalBinaryRead(t,t.uint32(),r));break;case 14:a.configurations.push(y.internalBinaryRead(t,t.uint32(),r));break;case 15:a.definitions.push(m.internalBinaryRead(t,t.uint32(),r));break;case 16:a.definitionSource=t.string();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.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier);for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(3,e.C.LengthDelimited).fork(),r).join();t.documentation!==``&&n.tag(4,e.C.LengthDelimited).string(t.documentation),t.author!==``&&n.tag(5,e.C.LengthDelimited).string(t.author),t.icon!==``&&n.tag(6,e.C.LengthDelimited).string(t.icon),t.version!==``&&n.tag(7,e.C.LengthDelimited).string(t.version);for(let i=0;i<t.flowTypes.length;i++)e.r.internalBinaryWrite(t.flowTypes[i],n.tag(9,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.runtimeFlowTypes.length;i++)d.internalBinaryWrite(t.runtimeFlowTypes[i],n.tag(10,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.functionDefinitions.length;i++)e.t.internalBinaryWrite(t.functionDefinitions[i],n.tag(11,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.runtimeFunctionDefinitions.length;i++)c.internalBinaryWrite(t.runtimeFunctionDefinitions[i],n.tag(12,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.definitionDataTypes.length;i++)e.p.internalBinaryWrite(t.definitionDataTypes[i],n.tag(13,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.configurations.length;i++)y.internalBinaryWrite(t.configurations[i],n.tag(14,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.definitions.length;i++)m.internalBinaryWrite(t.definitions[i],n.tag(15,e.C.LengthDelimited).fork(),r).join();t.definitionSource!==``&&n.tag(16,e.C.LengthDelimited).string(t.definitionSource);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},m=new class extends e.v{constructor(){super(`shared.ModuleDefinition`,[{no:1,name:`flow_type_identifier`,kind:`scalar`,repeat:2,T:9},{no:2,name:`endpoint`,kind:`message`,oneof:`value`,T:()=>h}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.flowTypeIdentifier=[],n.value={oneofKind:void 0},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.flowTypeIdentifier.push(t.string());break;case 2:a.value={oneofKind:`endpoint`,endpoint:h.internalBinaryRead(t,t.uint32(),r,a.value.endpoint)};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){for(let r=0;r<t.flowTypeIdentifier.length;r++)n.tag(1,e.C.LengthDelimited).string(t.flowTypeIdentifier[r]);t.value.oneofKind===`endpoint`&&h.internalBinaryWrite(t.value.endpoint,n.tag(2,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},h=new class extends e.v{constructor(){super(`shared.Endpoint`,[{no:1,name:`host`,kind:`scalar`,T:9},{no:2,name:`port`,kind:`scalar`,T:3,L:0},{no:3,name:`endpoint`,kind:`scalar`,T:9},{no:4,name:`protocol`,kind:`scalar`,T:9}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.host=``,n.port=0n,n.endpoint=``,n.protocol=``,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.host=t.string();break;case 2:a.port=t.int64().toBigInt();break;case 3:a.endpoint=t.string();break;case 4:a.protocol=t.string();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.host!==``&&n.tag(1,e.C.LengthDelimited).string(t.host),t.port!==0n&&n.tag(2,e.C.Varint).int64(t.port),t.endpoint!==``&&n.tag(3,e.C.LengthDelimited).string(t.endpoint),t.protocol!==``&&n.tag(4,e.C.LengthDelimited).string(t.protocol);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},g=new class extends e.v{constructor(){super(`shared.ModuleConfiguration`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`value`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,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.identifier=t.string();break;case 2:a.value=e.u.internalBinaryRead(t,t.uint32(),r,a.value);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.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier),t.value&&e.u.internalBinaryWrite(t.value,n.tag(2,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},_=new class extends e.v{constructor(){super(`shared.ModuleProjectConfigurations`,[{no:1,name:`project_id`,kind:`scalar`,T:3,L:0},{no:2,name:`module_configurations`,kind:`message`,repeat:2,T:()=>g}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.projectId=0n,n.moduleConfigurations=[],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.projectId=t.int64().toBigInt();break;case 2:a.moduleConfigurations.push(g.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.projectId!==0n&&n.tag(1,e.C.Varint).int64(t.projectId);for(let i=0;i<t.moduleConfigurations.length;i++)g.internalBinaryWrite(t.moduleConfigurations[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},v=new class extends e.v{constructor(){super(`shared.ModuleConfigurations`,[{no:1,name:`module_identifier`,kind:`scalar`,T:9},{no:2,name:`module_configurations`,kind:`message`,repeat:2,T:()=>_}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.moduleIdentifier=``,n.moduleConfigurations=[],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.moduleIdentifier=t.string();break;case 2:a.moduleConfigurations.push(_.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.moduleIdentifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.moduleIdentifier);for(let i=0;i<t.moduleConfigurations.length;i++)_.internalBinaryWrite(t.moduleConfigurations[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},y=new class extends e.v{constructor(){super(`shared.ModuleConfigurationDefinition`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`name`,kind:`message`,repeat:2,T:()=>e._},{no:3,name:`description`,kind:`message`,repeat:2,T:()=>e._},{no:4,name:`type`,kind:`scalar`,T:9},{no:5,name:`linked_data_type_identifiers`,kind:`scalar`,repeat:2,T:9},{no:6,name:`default_value`,kind:`message`,T:()=>e.u},{no:7,name:`optional`,kind:`scalar`,opt:!0,T:8},{no:8,name:`hidden`,kind:`scalar`,opt:!0,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.name=[],n.description=[],n.type=``,n.linkedDataTypeIdentifiers=[],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.identifier=t.string();break;case 2:a.name.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 3:a.description.push(e._.internalBinaryRead(t,t.uint32(),r));break;case 4:a.type=t.string();break;case 5:a.linkedDataTypeIdentifiers.push(t.string());break;case 6:a.defaultValue=e.u.internalBinaryRead(t,t.uint32(),r,a.defaultValue);break;case 7:a.optional=t.bool();break;case 8:a.hidden=t.bool();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.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier);for(let i=0;i<t.name.length;i++)e._.internalBinaryWrite(t.name[i],n.tag(2,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.description.length;i++)e._.internalBinaryWrite(t.description[i],n.tag(3,e.C.LengthDelimited).fork(),r).join();t.type!==``&&n.tag(4,e.C.LengthDelimited).string(t.type);for(let r=0;r<t.linkedDataTypeIdentifiers.length;r++)n.tag(5,e.C.LengthDelimited).string(t.linkedDataTypeIdentifiers[r]);t.defaultValue&&e.u.internalBinaryWrite(t.defaultValue,n.tag(6,e.C.LengthDelimited).fork(),r).join(),t.optional!==void 0&&n.tag(7,e.C.Varint).bool(t.optional),t.hidden!==void 0&&n.tag(8,e.C.Varint).bool(t.hidden);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},b=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.NOT_RESPONDING=1]=`NOT_RESPONDING`,e[e.NOT_READY=2]=`NOT_READY`,e[e.RUNNING=3]=`RUNNING`,e[e.STOPPED=4]=`STOPPED`,e}({}),x=new class extends e.v{constructor(){super(`shared.ModuleStatus`,[{no:1,name:`identifier`,kind:`scalar`,T:9},{no:2,name:`timestamp`,kind:`scalar`,T:3,L:0},{no:3,name:`status`,kind:`enum`,T:()=>[`shared.ModuleStatus.StatusVariant`,b]}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.timestamp=0n,n.status=0,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.identifier=t.string();break;case 2:a.timestamp=t.int64().toBigInt();break;case 3:a.status=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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier),t.timestamp!==0n&&n.tag(2,e.C.Varint).int64(t.timestamp),t.status!==0&&n.tag(3,e.C.Varint).int32(t.status);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}};Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return r}});
@@ -1,4 +1,4 @@
1
- import { C as e, S as t, _ as n, l as r, p as i, r as a, t as o, u as s, v as c, y as l } from "./shared.function_pb-e1jkWYE_.js";
1
+ import { C as e, S as t, _ as n, l as r, p as i, r as a, t as o, u as s, v as c, y as l } from "./shared.function_pb-Caz-4jvi.js";
2
2
  var u = new class extends c {
3
3
  constructor() {
4
4
  super("shared.ServiceError", [{
@@ -288,11 +288,10 @@ var u = new class extends c {
288
288
  },
289
289
  {
290
290
  no: 2,
291
- name: "function_id",
291
+ name: "function_identifier",
292
292
  kind: "scalar",
293
293
  oneof: "id",
294
- T: 3,
295
- L: 0
294
+ T: 9
296
295
  },
297
296
  {
298
297
  no: 3,
@@ -348,8 +347,8 @@ var u = new class extends c {
348
347
  break;
349
348
  case 2:
350
349
  a.id = {
351
- oneofKind: "functionId",
352
- functionId: e.int64().toBigInt()
350
+ oneofKind: "functionIdentifier",
351
+ functionIdentifier: e.string()
353
352
  };
354
353
  break;
355
354
  case 3:
@@ -383,7 +382,7 @@ var u = new class extends c {
383
382
  return a;
384
383
  }
385
384
  internalBinaryWrite(n, r, i) {
386
- n.id.oneofKind === "nodeId" && r.tag(1, e.Varint).int64(n.id.nodeId), n.id.oneofKind === "functionId" && r.tag(2, e.Varint).int64(n.id.functionId), n.startedAt !== 0n && r.tag(3, e.Varint).int64(n.startedAt), n.finishedAt !== 0n && r.tag(4, e.Varint).int64(n.finishedAt);
385
+ n.id.oneofKind === "nodeId" && r.tag(1, e.Varint).int64(n.id.nodeId), n.id.oneofKind === "functionIdentifier" && r.tag(2, e.LengthDelimited).string(n.id.functionIdentifier), n.startedAt !== 0n && r.tag(3, e.Varint).int64(n.startedAt), n.finishedAt !== 0n && r.tag(4, e.Varint).int64(n.finishedAt);
387
386
  for (let t = 0; t < n.parameterResults.length; t++) m.internalBinaryWrite(n.parameterResults[t], r.tag(5, e.LengthDelimited).fork(), i).join();
388
387
  n.result.oneofKind === "success" && s.internalBinaryWrite(n.result.success, r.tag(6, e.LengthDelimited).fork(), i).join(), n.result.oneofKind === "error" && p.internalBinaryWrite(n.result.error, r.tag(7, e.LengthDelimited).fork(), i).join();
389
388
  let a = i.writeUnknownFields;
@@ -1142,12 +1141,18 @@ var u = new class extends c {
1142
1141
  kind: "message",
1143
1142
  repeat: 2,
1144
1143
  T: () => C
1144
+ },
1145
+ {
1146
+ no: 16,
1147
+ name: "definition_source",
1148
+ kind: "scalar",
1149
+ T: 9
1145
1150
  }
1146
1151
  ]);
1147
1152
  }
1148
1153
  create(e) {
1149
1154
  let t = globalThis.Object.create(this.messagePrototype);
1150
- return t.identifier = "", t.name = [], t.description = [], t.documentation = "", t.author = "", t.icon = "", t.version = "", t.flowTypes = [], t.runtimeFlowTypes = [], t.functionDefinitions = [], t.runtimeFunctionDefinitions = [], t.definitionDataTypes = [], t.configurations = [], t.definitions = [], e !== void 0 && l(this, t, e), t;
1155
+ return t.identifier = "", t.name = [], t.description = [], t.documentation = "", t.author = "", t.icon = "", t.version = "", t.flowTypes = [], t.runtimeFlowTypes = [], t.functionDefinitions = [], t.runtimeFunctionDefinitions = [], t.definitionDataTypes = [], t.configurations = [], t.definitions = [], t.definitionSource = "", e !== void 0 && l(this, t, e), t;
1151
1156
  }
1152
1157
  internalBinaryRead(e, r, s, c) {
1153
1158
  let l = c ?? this.create(), u = e.pos + r;
@@ -1196,6 +1201,9 @@ var u = new class extends c {
1196
1201
  case 15:
1197
1202
  l.definitions.push(C.internalBinaryRead(e, e.uint32(), s));
1198
1203
  break;
1204
+ case 16:
1205
+ l.definitionSource = e.string();
1206
+ break;
1199
1207
  default:
1200
1208
  let u = s.readUnknownField;
1201
1209
  if (u === "throw") throw new globalThis.Error(`Unknown field ${r} (wire type ${c}) for ${this.typeName}`);
@@ -1217,6 +1225,7 @@ var u = new class extends c {
1217
1225
  for (let t = 0; t < r.definitionDataTypes.length; t++) i.internalBinaryWrite(r.definitionDataTypes[t], s.tag(13, e.LengthDelimited).fork(), c).join();
1218
1226
  for (let t = 0; t < r.configurations.length; t++) O.internalBinaryWrite(r.configurations[t], s.tag(14, e.LengthDelimited).fork(), c).join();
1219
1227
  for (let t = 0; t < r.definitions.length; t++) C.internalBinaryWrite(r.definitions[t], s.tag(15, e.LengthDelimited).fork(), c).join();
1228
+ r.definitionSource !== "" && s.tag(16, e.LengthDelimited).string(r.definitionSource);
1220
1229
  let l = c.writeUnknownFields;
1221
1230
  return l !== !1 && (l == 1 ? t.onWrite : l)(this.typeName, r, s), s;
1222
1231
  }
@@ -1290,12 +1299,18 @@ var u = new class extends c {
1290
1299
  name: "endpoint",
1291
1300
  kind: "scalar",
1292
1301
  T: 9
1302
+ },
1303
+ {
1304
+ no: 4,
1305
+ name: "protocol",
1306
+ kind: "scalar",
1307
+ T: 9
1293
1308
  }
1294
1309
  ]);
1295
1310
  }
1296
1311
  create(e) {
1297
1312
  let t = globalThis.Object.create(this.messagePrototype);
1298
- return t.host = "", t.port = 0n, t.endpoint = "", e !== void 0 && l(this, t, e), t;
1313
+ return t.host = "", t.port = 0n, t.endpoint = "", t.protocol = "", e !== void 0 && l(this, t, e), t;
1299
1314
  }
1300
1315
  internalBinaryRead(e, n, r, i) {
1301
1316
  let a = i ?? this.create(), o = e.pos + n;
@@ -1311,6 +1326,9 @@ var u = new class extends c {
1311
1326
  case 3:
1312
1327
  a.endpoint = e.string();
1313
1328
  break;
1329
+ case 4:
1330
+ a.protocol = e.string();
1331
+ break;
1314
1332
  default:
1315
1333
  let o = r.readUnknownField;
1316
1334
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
@@ -1321,7 +1339,7 @@ var u = new class extends c {
1321
1339
  return a;
1322
1340
  }
1323
1341
  internalBinaryWrite(n, r, i) {
1324
- n.host !== "" && r.tag(1, e.LengthDelimited).string(n.host), n.port !== 0n && r.tag(2, e.Varint).int64(n.port), n.endpoint !== "" && r.tag(3, e.LengthDelimited).string(n.endpoint);
1342
+ n.host !== "" && r.tag(1, e.LengthDelimited).string(n.host), n.port !== 0n && r.tag(2, e.Varint).int64(n.port), n.endpoint !== "" && r.tag(3, e.LengthDelimited).string(n.endpoint), n.protocol !== "" && r.tag(4, e.LengthDelimited).string(n.protocol);
1325
1343
  let a = i.writeUnknownFields;
1326
1344
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
1327
1345
  }
@@ -1627,51 +1645,6 @@ var u = new class extends c {
1627
1645
  let a = i.writeUnknownFields;
1628
1646
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
1629
1647
  }
1630
- }(), j = new class extends c {
1631
- constructor() {
1632
- super("shared.RuntimeUsage", [{
1633
- no: 1,
1634
- name: "flow_id",
1635
- kind: "scalar",
1636
- T: 3,
1637
- L: 0
1638
- }, {
1639
- no: 2,
1640
- name: "duration",
1641
- kind: "scalar",
1642
- T: 3,
1643
- L: 0
1644
- }]);
1645
- }
1646
- create(e) {
1647
- let t = globalThis.Object.create(this.messagePrototype);
1648
- return t.flowId = 0n, t.duration = 0n, e !== void 0 && l(this, t, e), t;
1649
- }
1650
- internalBinaryRead(e, n, r, i) {
1651
- let a = i ?? this.create(), o = e.pos + n;
1652
- for (; e.pos < o;) {
1653
- let [n, i] = e.tag();
1654
- switch (n) {
1655
- case 1:
1656
- a.flowId = e.int64().toBigInt();
1657
- break;
1658
- case 2:
1659
- a.duration = e.int64().toBigInt();
1660
- break;
1661
- default:
1662
- let o = r.readUnknownField;
1663
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
1664
- let s = e.skip(i);
1665
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
1666
- }
1667
- }
1668
- return a;
1669
- }
1670
- internalBinaryWrite(n, r, i) {
1671
- n.flowId !== 0n && r.tag(1, e.Varint).int64(n.flowId), n.duration !== 0n && r.tag(2, e.Varint).int64(n.duration);
1672
- let a = i.writeUnknownFields;
1673
- return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
1674
- }
1675
1648
  }();
1676
1649
  //#endregion
1677
- export { d as S, h as _, S as a, f as b, D as c, b as d, x as f, g, v as h, w as i, C as l, _ as m, A as n, T as o, y as p, k as r, O as s, j as t, E as u, m as v, u as x, p as y };
1650
+ export { m as _, T as a, u as b, C as c, x as d, y as f, h as g, g as h, S as i, E as l, v as m, k as n, O as o, _ as p, w as r, D as s, A as t, b as u, p as v, d as x, f as y };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-BErnwHWO.cjs`),t=require(`./shared.flow_pb-DrDw61IF.cjs`),n=require(`./rpc-interceptor-DOeBkZHU.cjs`);var r=new class extends e.v{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.p},{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.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.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.p.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.prompt!==``&&n.tag(1,e.C.LengthDelimited).string(t.prompt),t.projectId!==0n&&n.tag(2,e.C.Varint).int64(t.projectId),t.modelIdentifier!==``&&n.tag(3,e.C.LengthDelimited).string(t.modelIdentifier);for(let i=0;i<t.functions.length;i++)e.t.internalBinaryWrite(t.functions[i],n.tag(4,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.dataTypes.length;i++)e.p.internalBinaryWrite(t.dataTypes[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.flowTypes.length;i++)e.r.internalBinaryWrite(t.flowTypes[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.v{constructor(){super(`velorum.FlowRequest`,[{no:1,name:`prompt`,kind:`scalar`,T:9},{no:2,name:`flow`,kind:`message`,T:()=>t.a},{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.p},{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.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.prompt=n.string();break;case 2:o.flow=t.a.internalBinaryRead(n,n.uint32(),i,o.flow);break;case 3:o.projectId=n.int64().toBigInt();break;case 4:o.modelIdentifier=n.string();break;case 5:o.functions.push(e.t.internalBinaryRead(n,n.uint32(),i));break;case 6:o.dataTypes.push(e.p.internalBinaryRead(n,n.uint32(),i));break;case 7:o.flowTypes.push(e.r.internalBinaryRead(n,n.uint32(),i));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.prompt!==``&&r.tag(1,e.C.LengthDelimited).string(n.prompt),n.flow&&t.a.internalBinaryWrite(n.flow,r.tag(2,e.C.LengthDelimited).fork(),i).join(),n.projectId!==0n&&r.tag(3,e.C.Varint).int64(n.projectId),n.modelIdentifier!==``&&r.tag(4,e.C.LengthDelimited).string(n.modelIdentifier);for(let t=0;t<n.functions.length;t++)e.t.internalBinaryWrite(n.functions[t],r.tag(5,e.C.LengthDelimited).fork(),i).join();for(let t=0;t<n.dataTypes.length;t++)e.p.internalBinaryWrite(n.dataTypes[t],r.tag(6,e.C.LengthDelimited).fork(),i).join();for(let t=0;t<n.flowTypes.length;t++)e.r.internalBinaryWrite(n.flowTypes[t],r.tag(7,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},a=new class extends e.v{constructor(){super(`velorum.FlowResponse`,[{no:1,name:`flow`,kind:`message`,T:()=>t.a},{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.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.flow=t.a.internalBinaryRead(n,n.uint32(),i,o.flow);break;case 2:o.cachedUntil=n.int64().toBigInt();break;case 3:o.usage=n.int64().toBigInt();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.flow&&t.a.internalBinaryWrite(n.flow,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.cachedUntil!==0n&&r.tag(2,e.C.Varint).int64(n.cachedUntil),n.usage!==0n&&r.tag(3,e.C.Varint).int64(n.usage);let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},o=new n.n(`velorum.GenerateService`,[{name:`Prompt`,options:{},I:r,O:a},{name:`Flow`,options:{},I:i,O:a}]),s=class{constructor(e){this._transport=e,this.typeName=o.typeName,this.methods=o.methods,this.options=o.options}prompt(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}flow(e,t){let r=this.methods[1],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},c=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.EXPLAIN=1]=`EXPLAIN`,e[e.GENERATE=2]=`GENERATE`,e}({}),l=new class extends e.v{constructor(){super(`velorum.ModelsRequest`,[])}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}},u=new class extends e.v{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`,c]}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.name=``,n.tokenCost=0,n.type=[],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.identifier=t.string();break;case 2:a.name=t.string();break;case 3:a.tokenCost=t.float();break;case 4:if(i===e.C.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){if(t.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier),t.name!==``&&n.tag(2,e.C.LengthDelimited).string(t.name),t.tokenCost!==0&&n.tag(3,e.C.Bit32).float(t.tokenCost),t.type.length){n.tag(4,e.C.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.S.onWrite:i)(this.typeName,t,n),n}},d=new class extends e.v{constructor(){super(`velorum.ModelsResponse`,[{no:1,name:`models`,kind:`message`,repeat:2,T:()=>u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.models=[],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.models.push(u.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){for(let i=0;i<t.models.length;i++)u.internalBinaryWrite(t.models[i],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}},f=new n.n(`velorum.InfoService`,[{name:`Models`,options:{},I:l,O:d}]),p=class{constructor(e){this._transport=e,this.typeName=f.typeName,this.methods=f.methods,this.options=f.options}models(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}};exports.FlowRequest=i,exports.FlowResponse=a,exports.GenerateService=o,exports.GenerateServiceClient=s,exports.InfoService=f,exports.InfoServiceClient=p,exports.Model=u,exports.Model_ModelType=c,exports.ModelsRequest=l,exports.ModelsResponse=d,exports.PromptRequest=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./shared.function_pb-C8cj-NCz.cjs"),t=require("./shared.flow_pb-clFvPGyv.cjs"),n=require("./rpc-interceptor-giFADd4b.cjs");var r=new class extends e.v{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.p},{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.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.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.p.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.prompt!==``&&n.tag(1,e.C.LengthDelimited).string(t.prompt),t.projectId!==0n&&n.tag(2,e.C.Varint).int64(t.projectId),t.modelIdentifier!==``&&n.tag(3,e.C.LengthDelimited).string(t.modelIdentifier);for(let i=0;i<t.functions.length;i++)e.t.internalBinaryWrite(t.functions[i],n.tag(4,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.dataTypes.length;i++)e.p.internalBinaryWrite(t.dataTypes[i],n.tag(5,e.C.LengthDelimited).fork(),r).join();for(let i=0;i<t.flowTypes.length;i++)e.r.internalBinaryWrite(t.flowTypes[i],n.tag(6,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.v{constructor(){super(`velorum.FlowRequest`,[{no:1,name:`prompt`,kind:`scalar`,T:9},{no:2,name:`flow`,kind:`message`,T:()=>t.a},{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.p},{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.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.prompt=n.string();break;case 2:o.flow=t.a.internalBinaryRead(n,n.uint32(),i,o.flow);break;case 3:o.projectId=n.int64().toBigInt();break;case 4:o.modelIdentifier=n.string();break;case 5:o.functions.push(e.t.internalBinaryRead(n,n.uint32(),i));break;case 6:o.dataTypes.push(e.p.internalBinaryRead(n,n.uint32(),i));break;case 7:o.flowTypes.push(e.r.internalBinaryRead(n,n.uint32(),i));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.prompt!==``&&r.tag(1,e.C.LengthDelimited).string(n.prompt),n.flow&&t.a.internalBinaryWrite(n.flow,r.tag(2,e.C.LengthDelimited).fork(),i).join(),n.projectId!==0n&&r.tag(3,e.C.Varint).int64(n.projectId),n.modelIdentifier!==``&&r.tag(4,e.C.LengthDelimited).string(n.modelIdentifier);for(let t=0;t<n.functions.length;t++)e.t.internalBinaryWrite(n.functions[t],r.tag(5,e.C.LengthDelimited).fork(),i).join();for(let t=0;t<n.dataTypes.length;t++)e.p.internalBinaryWrite(n.dataTypes[t],r.tag(6,e.C.LengthDelimited).fork(),i).join();for(let t=0;t<n.flowTypes.length;t++)e.r.internalBinaryWrite(n.flowTypes[t],r.tag(7,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},a=new class extends e.v{constructor(){super(`velorum.FlowResponse`,[{no:1,name:`flow`,kind:`message`,T:()=>t.a},{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.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.flow=t.a.internalBinaryRead(n,n.uint32(),i,o.flow);break;case 2:o.cachedUntil=n.int64().toBigInt();break;case 3:o.usage=n.int64().toBigInt();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.flow&&t.a.internalBinaryWrite(n.flow,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.cachedUntil!==0n&&r.tag(2,e.C.Varint).int64(n.cachedUntil),n.usage!==0n&&r.tag(3,e.C.Varint).int64(n.usage);let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},o=new n.n(`velorum.GenerateService`,[{name:`Prompt`,options:{},I:r,O:a},{name:`Flow`,options:{},I:i,O:a}]),s=class{constructor(e){this._transport=e,this.typeName=o.typeName,this.methods=o.methods,this.options=o.options}prompt(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}flow(e,t){let r=this.methods[1],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},c=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.EXPLAIN=1]=`EXPLAIN`,e[e.GENERATE=2]=`GENERATE`,e}({}),l=new class extends e.v{constructor(){super(`velorum.ModelsRequest`,[])}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}},u=new class extends e.v{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`,c]}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.identifier=``,n.name=``,n.tokenCost=0,n.type=[],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.identifier=t.string();break;case 2:a.name=t.string();break;case 3:a.tokenCost=t.float();break;case 4:if(i===e.C.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){if(t.identifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.identifier),t.name!==``&&n.tag(2,e.C.LengthDelimited).string(t.name),t.tokenCost!==0&&n.tag(3,e.C.Bit32).float(t.tokenCost),t.type.length){n.tag(4,e.C.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.S.onWrite:i)(this.typeName,t,n),n}},d=new class extends e.v{constructor(){super(`velorum.ModelsResponse`,[{no:1,name:`models`,kind:`message`,repeat:2,T:()=>u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.models=[],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.models.push(u.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.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){for(let i=0;i<t.models.length;i++)u.internalBinaryWrite(t.models[i],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}},f=new n.n(`velorum.InfoService`,[{name:`Models`,options:{},I:l,O:d}]),p=class{constructor(e){this._transport=e,this.typeName=f.typeName,this.methods=f.methods,this.options=f.options}models(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}};exports.FlowRequest=i,exports.FlowResponse=a,exports.GenerateService=o,exports.GenerateServiceClient=s,exports.InfoService=f,exports.InfoServiceClient=p,exports.Model=u,exports.Model_ModelType=c,exports.ModelsRequest=l,exports.ModelsResponse=d,exports.PromptRequest=r;
@@ -1,6 +1,6 @@
1
- import { C as e, S as t, p as n, r, t as i, v as a, y as o } from "./shared.function_pb-e1jkWYE_.js";
2
- import { a as s } from "./shared.flow_pb-C4ewDq2u.js";
3
- import { n as c, t as l } from "./rpc-interceptor-az_TTCBK.js";
1
+ import { C as e, S as t, p as n, r, t as i, v as a, y as o } from "./shared.function_pb-Caz-4jvi.js";
2
+ import { a as s } from "./shared.flow_pb-DdVuFKPW.js";
3
+ import { n as c, t as l } from "./rpc-interceptor-d3qh7P9n.js";
4
4
  var u = new class extends a {
5
5
  constructor() {
6
6
  super("velorum.PromptRequest", [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/tucana",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "Code0 GRPC Protocol",
5
5
  "homepage": "https://github.com/code0-tech/tucana#readme",
6
6
  "bugs": {
@@ -1,27 +0,0 @@
1
- import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
2
- import { RuntimeUsageResponse, RuntimeUsageRequest } from './aquila.runtime_usage_pb';
3
- /**
4
- * @generated from protobuf service aquila.RuntimeUsageService
5
- */
6
- export interface IRuntimeUsageServiceClient {
7
- /**
8
- * @generated from protobuf rpc: Update
9
- */
10
- update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
11
- }
12
- /**
13
- * @generated from protobuf service aquila.RuntimeUsageService
14
- */
15
- export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, 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: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
27
- }
@@ -1,46 +0,0 @@
1
- import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
- import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
- import { RuntimeUsage } from './shared.runtime_usage_pb';
4
- /**
5
- * @generated from protobuf message aquila.RuntimeUsageRequest
6
- */
7
- export interface RuntimeUsageRequest {
8
- /**
9
- * @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
10
- */
11
- runtimeUsage: RuntimeUsage[];
12
- }
13
- /**
14
- * @generated from protobuf message aquila.RuntimeUsageResponse
15
- */
16
- export interface RuntimeUsageResponse {
17
- /**
18
- * @generated from protobuf field: bool success = 1
19
- */
20
- success: boolean;
21
- }
22
- declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
23
- constructor();
24
- create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
25
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
26
- internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
27
- }
28
- /**
29
- * @generated MessageType for protobuf message aquila.RuntimeUsageRequest
30
- */
31
- export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
32
- declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
33
- constructor();
34
- create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
35
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
36
- internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
37
- }
38
- /**
39
- * @generated MessageType for protobuf message aquila.RuntimeUsageResponse
40
- */
41
- export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
42
- /**
43
- * @generated ServiceType for protobuf service aquila.RuntimeUsageService
44
- */
45
- export declare const RuntimeUsageService: ServiceType;
46
- export {};
@@ -1,27 +0,0 @@
1
- import { RpcTransport, ServiceInfo, UnaryCall, RpcOptions } from '@protobuf-ts/runtime-rpc';
2
- import { RuntimeUsageResponse, RuntimeUsageRequest } from './sagittarius.runtime_usage_pb';
3
- /**
4
- * @generated from protobuf service sagittarius.RuntimeUsageService
5
- */
6
- export interface IRuntimeUsageServiceClient {
7
- /**
8
- * @generated from protobuf rpc: Update
9
- */
10
- update(input: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
11
- }
12
- /**
13
- * @generated from protobuf service sagittarius.RuntimeUsageService
14
- */
15
- export declare class RuntimeUsageServiceClient implements IRuntimeUsageServiceClient, 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: RuntimeUsageRequest, options?: RpcOptions): UnaryCall<RuntimeUsageRequest, RuntimeUsageResponse>;
27
- }
@@ -1,51 +0,0 @@
1
- import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
- import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
- import { ServiceError } from './shared.errors_pb';
4
- import { RuntimeUsage } from './shared.runtime_usage_pb';
5
- /**
6
- * @generated from protobuf message sagittarius.RuntimeUsageRequest
7
- */
8
- export interface RuntimeUsageRequest {
9
- /**
10
- * @generated from protobuf field: repeated shared.RuntimeUsage runtime_usage = 1
11
- */
12
- runtimeUsage: RuntimeUsage[];
13
- }
14
- /**
15
- * @generated from protobuf message sagittarius.RuntimeUsageResponse
16
- */
17
- export interface RuntimeUsageResponse {
18
- /**
19
- * @generated from protobuf field: bool success = 1
20
- */
21
- success: boolean;
22
- /**
23
- * @generated from protobuf field: optional shared.ServiceError error = 2
24
- */
25
- error?: ServiceError;
26
- }
27
- declare class RuntimeUsageRequest$Type extends MessageType<RuntimeUsageRequest> {
28
- constructor();
29
- create(value?: PartialMessage<RuntimeUsageRequest>): RuntimeUsageRequest;
30
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageRequest): RuntimeUsageRequest;
31
- internalBinaryWrite(message: RuntimeUsageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
32
- }
33
- /**
34
- * @generated MessageType for protobuf message sagittarius.RuntimeUsageRequest
35
- */
36
- export declare const RuntimeUsageRequest: RuntimeUsageRequest$Type;
37
- declare class RuntimeUsageResponse$Type extends MessageType<RuntimeUsageResponse> {
38
- constructor();
39
- create(value?: PartialMessage<RuntimeUsageResponse>): RuntimeUsageResponse;
40
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsageResponse): RuntimeUsageResponse;
41
- internalBinaryWrite(message: RuntimeUsageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
42
- }
43
- /**
44
- * @generated MessageType for protobuf message sagittarius.RuntimeUsageResponse
45
- */
46
- export declare const RuntimeUsageResponse: RuntimeUsageResponse$Type;
47
- /**
48
- * @generated ServiceType for protobuf service sagittarius.RuntimeUsageService
49
- */
50
- export declare const RuntimeUsageService: ServiceType;
51
- export {};
@@ -1,25 +0,0 @@
1
- import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
2
- /**
3
- * @generated from protobuf message shared.RuntimeUsage
4
- */
5
- export interface RuntimeUsage {
6
- /**
7
- * @generated from protobuf field: int64 flow_id = 1
8
- */
9
- flowId: bigint;
10
- /**
11
- * @generated from protobuf field: int64 duration = 2
12
- */
13
- duration: bigint;
14
- }
15
- declare class RuntimeUsage$Type extends MessageType<RuntimeUsage> {
16
- constructor();
17
- create(value?: PartialMessage<RuntimeUsage>): RuntimeUsage;
18
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RuntimeUsage): RuntimeUsage;
19
- internalBinaryWrite(message: RuntimeUsage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
20
- }
21
- /**
22
- * @generated MessageType for protobuf message shared.RuntimeUsage
23
- */
24
- export declare const RuntimeUsage: RuntimeUsage$Type;
25
- export {};