@cursor/sdk 1.0.39 → 1.0.40
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/bundled/index.js +302 -278
- package/dist/bundled/sqlite.js +15 -15
- package/dist/cjs/18.js +1 -1
- package/dist/cjs/331.js +1 -0
- package/dist/cjs/448.js +1 -1
- package/dist/cjs/agent/options.d.ts +16 -0
- package/dist/cjs/agent/options.d.ts.map +1 -1
- package/dist/cjs/agent.d.ts +21 -0
- package/dist/cjs/agent.d.ts.map +1 -1
- package/dist/cjs/cloud-agent.d.ts +2 -1
- package/dist/cjs/cloud-agent.d.ts.map +1 -1
- package/dist/cjs/cloud-api-client.d.ts +2 -1
- package/dist/cjs/cloud-api-client.d.ts.map +1 -1
- package/dist/cjs/executor-common.d.ts +1 -1
- package/dist/cjs/executor-common.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/local-executor.d.ts +2 -0
- package/dist/cjs/local-executor.d.ts.map +1 -1
- package/dist/cjs/local-store-open-failure.d.ts +11 -0
- package/dist/cjs/local-store-open-failure.d.ts.map +1 -0
- package/dist/cjs/options.d.ts +16 -0
- package/dist/cjs/options.d.ts.map +1 -1
- package/dist/cjs/platform.d.ts +3 -1
- package/dist/cjs/platform.d.ts.map +1 -1
- package/dist/cjs/sqlite.js +1 -1
- package/dist/cjs/team-id.d.ts +12 -0
- package/dist/cjs/team-id.d.ts.map +1 -0
- package/dist/esm/18.js +1 -1
- package/dist/esm/331.js +1 -0
- package/dist/esm/448.js +1 -1
- package/dist/esm/agent/options.d.ts +16 -0
- package/dist/esm/agent/options.d.ts.map +1 -1
- package/dist/esm/agent.d.ts +21 -0
- package/dist/esm/agent.d.ts.map +1 -1
- package/dist/esm/cloud-agent.d.ts +2 -1
- package/dist/esm/cloud-agent.d.ts.map +1 -1
- package/dist/esm/cloud-api-client.d.ts +2 -1
- package/dist/esm/cloud-api-client.d.ts.map +1 -1
- package/dist/esm/executor-common.d.ts +1 -1
- package/dist/esm/executor-common.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/local-executor.d.ts +2 -0
- package/dist/esm/local-executor.d.ts.map +1 -1
- package/dist/esm/local-store-open-failure.d.ts +11 -0
- package/dist/esm/local-store-open-failure.d.ts.map +1 -0
- package/dist/esm/options.d.ts +16 -0
- package/dist/esm/options.d.ts.map +1 -1
- package/dist/esm/platform.d.ts +3 -1
- package/dist/esm/platform.d.ts.map +1 -1
- package/dist/esm/sqlite.js +1 -1
- package/dist/esm/team-id.d.ts +12 -0
- package/dist/esm/team-id.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/cjs/220.js +0 -1
- package/dist/esm/220.js +0 -1
package/dist/bundled/sqlite.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var vM=Object.create;var{getPrototypeOf:TM,defineProperty:rq,getOwnPropertyNames:RM}=Object;var yM=Object.prototype.hasOwnProperty;var YF=(Z,$,J)=>{J=Z!=null?vM(TM(Z)):{};let Y=$||!Z||!Z.__esModule?rq(J,"default",{value:Z,enumerable:!0}):J;for(let X of RM(Z))if(!yM.call(Y,X))rq(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var x6=(Z,$)=>{for(var J in $)rq(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var U=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as mM}from"@bufbuild/protobuf";function B(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function XF(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function _M(Z){if(Z==="?")return{opt:!0};if(Z==="*")return{repeated:!0};return Z===void 0?jM:{oneof:Z}}function SM(Z,$){let[J,...Y]=$,X=J.split("|"),z=[];for(let K=1;K<X.length;K++){let Q=X[K].split(" "),W=Number(Q[0]),D=Q[1],w=Q[2],f=Q[3],V=w.charAt(w.length-1);if(V==="?"||V==="*")f=V,w=w.slice(0,-1);let A=w.indexOf(",");if(A!==-1){z.push({no:W,name:D,kind:"map",K:Number(w.slice(0,A)),V:XF(Z,Y,w.slice(A+1))});continue}z.push(Object.assign({no:W,name:D},XF(Z,Y,w),_M(f)))}return z}function gM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function bM(Z){return typeof Reflect.get(Z,"$")==="function"&&typeof Reflect.get(Z,"$p")==="function"}function zF(Z){if(!bM(Z))throw TypeError(`${Z.name} has no compact message descriptor`);return Z}function dM(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function cM(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function L(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,Q;if(X===1){let w=cM(z);Q=Y.map((f)=>f[1]),K=Q.map((f)=>w+f)}else K=Y.map((w)=>w[1]),Q=X===void 0?dM(z,K):X;let W={},D=[];for(let w=0;w<Y.length;w++){let f=Y[w][0];W[Q[w]]=f,W[f]=Q[w],D.push({no:f,name:K[w]})}return Z.util.setEnumType(W,$+J,D),W}var jM,G;var k=U(()=>{jM={};G=class G extends mM{static get typeName(){let Z=zF(this);return B(Z,"typeName",Z.$p()+gM(Z.$()))}static get fields(){let Z=zF(this),$=Z.$(),J=Z.runtime,Y=()=>SM(J,$);return B(Z,"fields",J.util.newFieldList(Y))}}});import{Message as sp,proto3 as m}from"@bufbuild/protobuf";var zQ="agent.v1.",P0,M6,sq,KF,tq,p8,f9,V9,P9,A9,x9,M9,C9,h9,v9,T9,R9,y9;var HF=U(()=>{k();P0=class P0 extends G{static get runtime(){return B(this,"runtime",m)}static $p(){return zQ}};M6=L(m,zQ,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),sq=L(m,zQ,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),KF=L(m,zQ,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"],[6,"PROJECT_SESSION_MESSAGE"]],1),tq=L(m,zQ,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);p8=class p8 extends P0{constructor(Z){super();this.type={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new p8().fromBinary(Z,$)}static fromJson(Z,$){return new p8().fromJson(Z,$)}static fromJsonString(Z,$){return new p8().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(p8,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",f9,V9,y9,P9,A9,x9,C9,M9,h9,v9,T9,R9]}};f9=class f9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(f9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};V9=class V9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(V9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};P9=class P9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(P9,Z,$)}static $(){return["SubagentTypeExplore"]}};A9=class A9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(A9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};x9=class x9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(x9,Z,$)}static $(){return["SubagentTypeBash"]}};M9=class M9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(M9,Z,$)}static $(){return["SubagentTypeShell"]}};C9=class C9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(C9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};h9=class h9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(h9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};v9=class v9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(v9,Z,$)}static $(){return["SubagentTypeDebug"]}};T9=class T9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(T9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};R9=class R9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(R9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};y9=class y9 extends P0{constructor(Z){super();this.name="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new y9().fromBinary(Z,$)}static fromJson(Z,$){return new y9().fromJson(Z,$)}static fromJsonString(Z,$){return new y9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(y9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Zi,proto3 as I8}from"@bufbuild/protobuf";var SQ="agent.v1.",gQ,m9,j9,uM,S0,QF,qF;var bQ=U(()=>{k();gQ=class gQ extends G{static get runtime(){return B(this,"runtime",I8)}static $p(){return SQ}};m9=class m9 extends gQ{constructor(Z){super();I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(m9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};j9=class j9 extends gQ{constructor(Z){super();this.deny=[],this.allow=[],I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(j9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",uM,m9]}};uM=L(I8,SQ,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);S0=class S0 extends gQ{constructor(Z){super();this.type=QF.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=qF.UNSPECIFIED,this.additionalReadPaths=[],I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S0().fromBinary(Z,$)}static fromJson(Z,$){return new S0().fromJson(Z,$)}static fromJsonString(Z,$){return new S0().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(S0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*",QF,j9,qF]}};QF=L(I8,SQ,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),qF=L(I8,SQ,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as Xi,proto3 as v8,protoInt64 as WF}from"@bufbuild/protobuf";var lM="agent.v1.",KQ,i8,n8,N0,r0;var C6=U(()=>{k();KQ=class KQ extends G{static get runtime(){return B(this,"runtime",v8)}static $p(){return lM}};i8=class i8 extends KQ{constructor(Z){super();v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(i8,Z,$)}static $(){return["Range|1 start #0|2 end #0",n8]}};n8=class n8 extends KQ{constructor(Z){super();this.line=0,this.column=0,v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n8().fromBinary(Z,$)}static fromJson(Z,$){return new n8().fromJson(Z,$)}static fromJsonString(Z,$){return new n8().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(n8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};N0=class N0 extends KQ{constructor(Z){super();this.filePath="",this.sizeBytes=WF.zero,this.lineCount=WF.zero,v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N0().fromBinary(Z,$)}static fromJson(Z,$){return new N0().fromJson(Z,$)}static fromJsonString(Z,$){return new N0().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(N0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};r0=class r0 extends KQ{constructor(Z){super();this.requestId="",this.reason="",v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new r0().fromBinary(Z,$)}static fromJson(Z,$){return new r0().fromJson(Z,$)}static fromJsonString(Z,$){return new r0().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(r0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Qi,proto3 as oq}from"@bufbuild/protobuf";var pM="agent.v1.",NF,a8;var BF=U(()=>{k();NF=class NF extends G{static get runtime(){return B(this,"runtime",oq)}static $p(){return pM}};a8=class a8 extends NF{constructor(Z){super();this.hookEventName="",this.content="",oq.util.initPartial(Z,this)}static fromBinary(Z,$){return new a8().fromBinary(Z,$)}static fromJson(Z,$){return new a8().fromJson(Z,$)}static fromJsonString(Z,$){return new a8().fromJsonString(Z,$)}static equals(Z,$){return oq.util.equals(a8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Bi,proto3 as T,protoInt64 as iM}from"@bufbuild/protobuf";var T6="agent.v1.",$0,FF,nM,aM,_9,S9,g9,b9,d9,GF,c9,u9,l9,DF,h6,v6,p9,LF,i9,n9,a9,r9,s9,t9;var wF=U(()=>{bQ();C6();k();$0=class $0 extends G{static get runtime(){return B(this,"runtime",T)}static $p(){return T6}};FF=L(T,T6,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),nM=L(T,T6,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),aM=L(T,T6,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);_9=class _9 extends $0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(_9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",g9,b9]}};S9=class S9 extends $0{constructor(Z){super();this.type="",this.value="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(S9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};g9=class g9 extends $0{constructor(Z){super();this.name="",this.args=[],this.fullText="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(g9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",S9]}};b9=class b9 extends $0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(b9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};d9=class d9 extends $0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=GF.UNSPECIFIED,this.classificationFailed=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(d9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",c9,GF]}};GF=L(T,T6,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);c9=class c9 extends $0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(c9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};u9=class u9 extends $0{constructor(Z){super();this.pattern="",this.reason="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(u9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};l9=class l9 extends $0{constructor(Z){super();this.kind=DF.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(l9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",DF]}};DF=L(T,T6,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);h6=class h6 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=FF.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(h6,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?",_9,S0,FF,d9,u9,r0,l9]}};v6=class v6 extends $0{constructor(Z){super();this.result={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(v6,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",i9,n9,a9,r9,t9,s9,S0]}};p9=class p9 extends $0{constructor(Z){super();this.kind=LF.UNSPECIFIED,this.memoryLimitBytes=iM.zero,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(p9,Z,$)}static $(){return["ShellOomKill|1 kind #0|2 memory_limit_bytes 4",LF]}};LF=L(T,T6,"ShellOomKill.Kind",[[0,"UNSPECIFIED"],[1,"COMMAND_KILLED"],[2,"COMMAND_FAILED"],[3,"UNCONFIRMED"]],1);i9=class i9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new i9().fromBinary(Z,$)}static fromJson(Z,$){return new i9().fromJson(Z,$)}static fromJsonString(Z,$){return new i9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(i9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",N0,nM]}};n9=class n9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(n9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?|16 oom_kill #2?",N0,aM,p9]}};a9=class a9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(a9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};r9=class r9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(r9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};s9=class s9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new s9().fromBinary(Z,$)}static fromJson(Z,$){return new s9().fromJson(Z,$)}static fromJsonString(Z,$){return new s9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(s9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};t9=class t9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new t9().fromBinary(Z,$)}static fromJson(Z,$){return new t9().fromJson(Z,$)}static fromJsonString(Z,$){return new t9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(t9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as Ui,proto3 as eq}from"@bufbuild/protobuf";var rM="agent.v1.",UF,R6;var IF=U(()=>{wF();k();UF=class UF extends G{static get runtime(){return B(this,"runtime",eq)}static $p(){return rM}};R6=class R6 extends UF{constructor(Z){super();eq.util.initPartial(Z,this)}static fromBinary(Z,$){return new R6().fromBinary(Z,$)}static fromJson(Z,$){return new R6().fromJson(Z,$)}static fromJsonString(Z,$){return new R6().fromJsonString(Z,$)}static equals(Z,$){return eq.util.equals(R6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",h6,v6]}}});import{Message as fi,proto3 as r,protoInt64 as sM}from"@bufbuild/protobuf";var tM="agent.v1.",O8,y6,m6,o9,e9,Z7,$7,J7,Y7,X7;var OF=U(()=>{k();O8=class O8 extends G{static get runtime(){return B(this,"runtime",r)}static $p(){return tM}};y6=class y6 extends O8{constructor(Z){super();this.path="",this.toolCallId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new y6().fromBinary(Z,$)}static fromJson(Z,$){return new y6().fromJson(Z,$)}static fromJsonString(Z,$){return new y6().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(y6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};m6=class m6 extends O8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new m6().fromBinary(Z,$)}static fromJson(Z,$){return new m6().fromJson(Z,$)}static fromJsonString(Z,$){return new m6().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(m6,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",o9,e9,Z7,$7,J7,Y7,X7]}};o9=class o9 extends O8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=sM.zero,this.prevContent="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(o9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};e9=class e9 extends O8{constructor(Z){super();this.path="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(e9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};Z7=class Z7 extends O8{constructor(Z){super();this.path="",this.actualType="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(Z7,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};$7=class $7 extends O8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals($7,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};J7=class J7 extends O8{constructor(Z){super();this.path="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(J7,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};Y7=class Y7 extends O8{constructor(Z){super();this.path="",this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(Y7,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};X7=class X7 extends O8{constructor(Z){super();this.path="",this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(X7,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as xi,proto3 as ZW}from"@bufbuild/protobuf";var oM="agent.v1.",kF,j6;var EF=U(()=>{OF();k();kF=class kF extends G{static get runtime(){return B(this,"runtime",ZW)}static $p(){return oM}};j6=class j6 extends kF{constructor(Z){super();ZW.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return ZW.util.equals(j6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",y6,m6]}}});import{Message as Ti,proto3 as s0}from"@bufbuild/protobuf";var eM="agent.v1.",q7,z7,K7,H7,Q7,_6;var fF=U(()=>{k();q7=class q7 extends G{static get runtime(){return B(this,"runtime",s0)}static $p(){return eM}};z7=class z7 extends q7{constructor(Z){super();this.globPattern="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(z7,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};K7=class K7 extends q7{constructor(Z){super();this.result={case:void 0},s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(K7,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",Q7,H7]}};H7=class H7 extends q7{constructor(Z){super();this.error="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(H7,Z,$)}static $(){return["GlobToolError|1 error 9"]}};Q7=class Q7 extends q7{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(Q7,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};_6=class _6 extends q7{constructor(Z){super();s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _6().fromBinary(Z,$)}static fromJson(Z,$){return new _6().fromJson(Z,$)}static fromJsonString(Z,$){return new _6().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(_6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",z7,K7]}}});import{Message as ji,proto3 as d}from"@bufbuild/protobuf";var ZC="agent.v1.",g0,S6,g6,W7,N7,B7,F7,G7,D7,L7,w7,U7;var VF=U(()=>{bQ();k();g0=class g0 extends G{static get runtime(){return B(this,"runtime",d)}static $p(){return ZC}};S6=class S6 extends g0{constructor(Z){super();this.pattern="",this.toolCallId="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new S6().fromBinary(Z,$)}static fromJson(Z,$){return new S6().fromJson(Z,$)}static fromJsonString(Z,$){return new S6().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(S6,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",S0]}};g6=class g6 extends g0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new g6().fromBinary(Z,$)}static fromJson(Z,$){return new g6().fromJson(Z,$)}static fromJsonString(Z,$){return new g6().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(g6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",N7,W7]}};W7=class W7 extends g0{constructor(Z){super();this.error="",d.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(W7,Z,$)}static $(){return["GrepError|1 error 9"]}};N7=class N7 extends g0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(N7,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",B7]}};B7=class B7 extends g0{constructor(Z){super();this.result={case:void 0},d.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(B7,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",F7,D7,L7]}};F7=class F7 extends g0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(F7,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",G7]}};G7=class G7 extends g0{constructor(Z){super();this.file="",this.count=0,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(G7,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};D7=class D7 extends g0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(D7,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};L7=class L7 extends g0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(L7,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",w7]}};w7=class w7 extends g0{constructor(Z){super();this.file="",this.matches=[],d.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(w7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",U7]}};U7=class U7 extends g0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,d.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return d.util.equals(U7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as di,proto3 as $W}from"@bufbuild/protobuf";var $C="agent.v1.",PF,b6;var AF=U(()=>{VF();k();PF=class PF extends G{static get runtime(){return B(this,"runtime",$W)}static $p(){return $C}};b6=class b6 extends PF{constructor(Z){super();$W.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return $W.util.equals(b6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",S6,g6]}}});import{Message as ii,proto3 as A0}from"@bufbuild/protobuf";var MF="agent.v1.",d6,xF,I7,O7,k7,E7,f7,T8;var JW=U(()=>{k();d6=class d6 extends G{static get runtime(){return B(this,"runtime",A0)}static $p(){return MF}};xF=L(A0,MF,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);I7=class I7 extends d6{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(I7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};O7=class O7 extends d6{constructor(Z){super();this.globs=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(O7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};k7=class k7 extends d6{constructor(Z){super();this.description="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(k7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};E7=class E7 extends d6{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(E7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};f7=class f7 extends d6{constructor(Z){super();this.type={case:void 0},A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(f7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",I7,O7,k7,E7]}};T8=class T8 extends d6{constructor(Z){super();this.fullPath="",this.content="",this.source=xF.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",this.warnings=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new T8().fromBinary(Z,$)}static fromJson(Z,$){return new T8().fromJson(Z,$)}static fromJsonString(Z,$){return new T8().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(T8,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?|16 warnings 9*",f7,xF]}}});import{Message as si,proto3 as T0}from"@bufbuild/protobuf";var JC="agent.v1.",u6,c6,V7,P7,A7,x7,M7;var CF=U(()=>{JW();k();u6=class u6 extends G{static get runtime(){return B(this,"runtime",T0)}static $p(){return JC}};c6=class c6 extends u6{constructor(Z){super();T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c6().fromBinary(Z,$)}static fromJson(Z,$){return new c6().fromJson(Z,$)}static fromJsonString(Z,$){return new c6().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(c6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",V7,P7]}};V7=class V7 extends u6{constructor(Z){super();this.path="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(V7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};P7=class P7 extends u6{constructor(Z){super();this.result={case:void 0},T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(P7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",x7,M7]}};A7=class A7 extends u6{constructor(Z){super();this.startLine=0,this.endLine=0,T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(A7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};x7=class x7 extends u6{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(x7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",A7,T8]}};M7=class M7 extends u6{constructor(Z){super();this.errorMessage="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(M7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as $n,proto3 as b,protoInt64 as hF}from"@bufbuild/protobuf";var vF="agent.v1.",b0,YW,B0,l6,C7,h7,v7,T7,p6,R7,y7,m7,j7;var dQ=U(()=>{k();b0=class b0 extends G{static get runtime(){return B(this,"runtime",b)}static $p(){return vF}};YW=L(b,vF,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);B0=class B0 extends b0{constructor(Z){super();this.id="",this.content="",this.status=YW.UNSPECIFIED,this.createdAt=hF.zero,this.updatedAt=hF.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B0().fromBinary(Z,$)}static fromJson(Z,$){return new B0().fromJson(Z,$)}static fromJsonString(Z,$){return new B0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",YW]}};l6=class l6 extends b0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(l6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",C7,h7]}};C7=class C7 extends b0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(C7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",B0]}};h7=class h7 extends b0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(h7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",v7,T7]}};v7=class v7 extends b0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(v7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",B0]}};T7=class T7 extends b0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(T7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};p6=class p6 extends b0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(p6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",R7,y7]}};R7=class R7 extends b0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(R7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",YW]}};y7=class y7 extends b0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(y7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",m7,j7]}};m7=class m7 extends b0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(m7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",B0]}};j7=class j7 extends b0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(j7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as zn,proto3 as s}from"@bufbuild/protobuf";var YC="agent.v1.",k8,_7,S7,g7,b7,d7,c7,u7,l7,i6;var TF=U(()=>{k();k8=class k8 extends G{static get runtime(){return B(this,"runtime",s)}static $p(){return YC}};_7=class _7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(_7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};S7=class S7 extends k8{constructor(Z){super();this.result={case:void 0},s.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(S7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",g7,b7,d7,c7,u7,l7]}};g7=class g7 extends k8{constructor(Z){super();this.path="",this.afterFullFileContent="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(g7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};b7=class b7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(b7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};d7=class d7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(d7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};c7=class c7 extends k8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,s.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(c7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};u7=class u7 extends k8{constructor(Z){super();this.path="",this.reason="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(u7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};l7=class l7 extends k8{constructor(Z){super();this.path="",this.error="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(l7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};i6=class i6 extends k8{constructor(Z){super();s.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(i6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",_7,S7]}}});import{Message as qn,proto3 as p}from"@bufbuild/protobuf";var XC="agent.v1.",t0,n6,a6,p7,E8,i7,n7,a7,r7,s7,t7;var XW=U(()=>{bQ();k();t0=class t0 extends G{static get runtime(){return B(this,"runtime",p)}static $p(){return XC}};n6=class n6 extends t0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(n6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",S0]}};a6=class a6 extends t0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new a6().fromBinary(Z,$)}static fromJson(Z,$){return new a6().fromJson(Z,$)}static fromJsonString(Z,$){return new a6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(a6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",p7,n7,a7,r7]}};p7=class p7 extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(p7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",E8]}};E8=class E8 extends t0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new E8().fromBinary(Z,$)}static fromJson(Z,$){return new E8().fromJson(Z,$)}static fromJsonString(Z,$){return new E8().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(E8,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",E8,i7]}};i7=class i7 extends t0{constructor(Z){super();this.name="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(i7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",s7]}};n7=class n7 extends t0{constructor(Z){super();this.path="",this.error="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(n7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};a7=class a7 extends t0{constructor(Z){super();this.path="",this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(a7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};r7=class r7 extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(r7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",E8]}};s7=class s7 extends t0{constructor(Z){super();this.lastCommands=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(s7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",t7]}};t7=class t7 extends t0{constructor(Z){super();this.command="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(t7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as Gn,proto3 as zW}from"@bufbuild/protobuf";var zC="agent.v1.",RF,r6;var yF=U(()=>{XW();k();RF=class RF extends G{static get runtime(){return B(this,"runtime",zW)}static $p(){return zC}};r6=class r6 extends RF{constructor(Z){super();zW.util.initPartial(Z,this)}static fromBinary(Z,$){return new r6().fromBinary(Z,$)}static fromJson(Z,$){return new r6().fromJson(Z,$)}static fromJsonString(Z,$){return new r6().fromJsonString(Z,$)}static equals(Z,$){return zW.util.equals(r6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",n6,a6]}}});import{Message as In,proto3 as KC}from"@bufbuild/protobuf";var HC="agent.v1.",KW;var mF=U(()=>{k();KW=L(KC,HC,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as fn,proto3 as J0}from"@bufbuild/protobuf";var QC="agent.v1.",R8,s6,o7,e7,Z5,$5,J5,Y5,X5;var jF=U(()=>{mF();C6();k();R8=class R8 extends G{static get runtime(){return B(this,"runtime",J0)}static $p(){return QC}};s6=class s6 extends R8{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(s6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",o7,e7]}};o7=class o7 extends R8{constructor(Z){super();this.paths=[],J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(o7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};e7=class e7 extends R8{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(e7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",Z5,X5]}};Z5=class Z5 extends R8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(Z5,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",$5]}};$5=class $5 extends R8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals($5,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",J5]}};J5=class J5 extends R8{constructor(Z){super();this.severity=KW.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(J5,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",KW,Y5]}};Y5=class Y5 extends R8{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(Y5,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",n8]}};X5=class X5 extends R8{constructor(Z){super();this.errorMessage="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(X5,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as Cn,proto3 as h,protoInt64 as qC,Struct as WC,Value as NC}from"@bufbuild/protobuf";var BC="agent.v1.",u,t6,z5,K5,H5,Q5,r8,o6,e6,ZZ,$Z,JZ,q5,W5,N5,B5,YZ,XZ,F5,G5,D5,L5;var HW=U(()=>{C6();k();u=class u extends G{static get runtime(){return B(this,"runtime",h)}static $p(){return BC}};t6=class t6 extends u{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],this.argumentsRepaired=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t6().fromBinary(Z,$)}static fromJson(Z,$){return new t6().fromJson(Z,$)}static fromJsonString(Z,$){return new t6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t6,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*|11 arguments_repaired 8",NC,r0,z5]}};z5=class z5 extends u{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=qC.zero,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(z5,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};K5=class K5 extends u{constructor(Z){super();this.text="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(K5,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",N0]}};H5=class H5 extends u{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(H5,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};Q5=class Q5 extends u{constructor(Z){super();this.content={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(Q5,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",K5,H5]}};r8=class r8 extends u{constructor(Z){super();this.body="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new r8().fromBinary(Z,$)}static fromJson(Z,$){return new r8().fromJson(Z,$)}static fromJsonString(Z,$){return new r8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(r8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};o6=class o6 extends u{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*|5 result_meta #1",Q5,WC,r8]}};e6=class e6 extends u{constructor(Z){super();this.reason="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e6().fromBinary(Z,$)}static fromJson(Z,$){return new e6().fromJson(Z,$)}static fromJsonString(Z,$){return new e6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};ZZ=class ZZ extends u{constructor(Z){super();this.error="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(ZZ,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};$Z=class $Z extends u{constructor(Z){super();h.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals($Z,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};JZ=class JZ extends u{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new JZ().fromBinary(Z,$)}static fromJson(Z,$){return new JZ().fromJson(Z,$)}static fromJsonString(Z,$){return new JZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(JZ,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",W5,N5,B5]}};q5=class q5 extends u{constructor(Z){super();this.uri="",this.server="",this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(q5,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};W5=class W5 extends u{constructor(Z){super();this.resources=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new W5().fromBinary(Z,$)}static fromJson(Z,$){return new W5().fromJson(Z,$)}static fromJsonString(Z,$){return new W5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(W5,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",q5]}};N5=class N5 extends u{constructor(Z){super();this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(N5,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};B5=class B5 extends u{constructor(Z){super();this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(B5,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};YZ=class YZ extends u{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(YZ,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",r0]}};XZ=class XZ extends u{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(XZ,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",F5,G5,D5,L5]}};F5=class F5 extends u{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(F5,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?|10 meta_json 9?",N0]}};G5=class G5 extends u{constructor(Z){super();this.uri="",this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(G5,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};D5=class D5 extends u{constructor(Z){super();this.uri="",this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(D5,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};L5=class L5 extends u{constructor(Z){super();this.uri="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(L5,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as yn,proto3 as KZ}from"@bufbuild/protobuf";var FC="agent.v1.",cQ,w5,U5,zZ;var _F=U(()=>{HW();k();cQ=class cQ extends G{static get runtime(){return B(this,"runtime",KZ)}static $p(){return FC}};w5=class w5 extends cQ{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(w5,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",r8]}};U5=class U5 extends cQ{constructor(Z){super();this.result={case:void 0},KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(U5,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",o6,w5,e6,ZZ]}};zZ=class zZ extends cQ{constructor(Z){super();KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(zZ,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",t6,U5]}}});import{Message as gn,proto3 as F0}from"@bufbuild/protobuf";var GC="aiserver.v1.",s8,I5,HZ,QZ,qZ,O5,k5,E5;var SF=U(()=>{k();s8=class s8 extends G{static get runtime(){return B(this,"runtime",F0)}static $p(){return GC}};I5=class I5 extends s8{constructor(Z){super();this.line=0,this.column=0,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(I5,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};HZ=class HZ extends s8{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(HZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",I5]}};QZ=class QZ extends s8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(QZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};qZ=class qZ extends s8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(qZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",HZ,O5,QZ,E5]}};O5=class O5 extends s8{constructor(Z){super();this.ranges=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(O5,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",HZ]}};k5=class k5 extends s8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(k5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};E5=class E5 extends s8{constructor(Z){super();this.commits=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(E5,Z,$)}static $(){return["FileGit|1 commits #0*",k5]}}});import{Message as an,proto3 as QW,protoInt64 as rn}from"@bufbuild/protobuf";var DC="aiserver.v1.",gF,WZ;var bF=U(()=>{SF();k();gF=class gF extends G{static get runtime(){return B(this,"runtime",QW)}static $p(){return DC}};WZ=class WZ extends gF{constructor(Z){super();this.score=0,QW.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return QW.util.equals(WZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",qZ]}}});import{Message as Za,proto3 as o0}from"@bufbuild/protobuf";var LC="agent.v1.",x5,NZ,f5,V5,P5,A5;var dF=U(()=>{bF();k();x5=class x5 extends G{static get runtime(){return B(this,"runtime",o0)}static $p(){return LC}};NZ=class NZ extends x5{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(NZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",f5,V5]}};f5=class f5 extends x5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(f5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};V5=class V5 extends x5{constructor(Z){super();this.result={case:void 0},o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(V5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",P5,A5]}};P5=class P5 extends x5{constructor(Z){super();this.results="",this.codeResults=[],o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(P5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",WZ]}};A5=class A5 extends x5{constructor(Z){super();this.errorMessage="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(A5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as za,proto3 as G0}from"@bufbuild/protobuf";var wC="agent.v1.",t8,BZ,M5,C5,FZ,h5,v5,GZ;var cF=U(()=>{dQ();k();t8=class t8 extends G{static get runtime(){return B(this,"runtime",G0)}static $p(){return wC}};BZ=class BZ extends t8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(BZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",C5,FZ]}};M5=class M5 extends t8{constructor(Z){super();this.name="",this.todos=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M5().fromBinary(Z,$)}static fromJson(Z,$){return new M5().fromJson(Z,$)}static fromJsonString(Z,$){return new M5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(M5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",B0]}};C5=class C5 extends t8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(C5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",B0,M5]}};FZ=class FZ extends t8{constructor(Z){super();this.result={case:void 0},this.planUri="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(FZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",h5,v5]}};h5=class h5 extends t8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(h5,Z,$)}static $(){return["CreatePlanSuccess"]}};v5=class v5 extends t8{constructor(Z){super();this.error="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new v5().fromBinary(Z,$)}static fromJson(Z,$){return new v5().fromJson(Z,$)}static fromJsonString(Z,$){return new v5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(v5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};GZ=class GZ extends t8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GZ().fromBinary(Z,$)}static fromJson(Z,$){return new GZ().fromJson(Z,$)}static fromJsonString(Z,$){return new GZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(GZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",FZ]}}});import{Message as Wa,proto3 as i}from"@bufbuild/protobuf";var UC="agent.v1.",e0,T5,R5,y5,m5,j5,_5,DZ,LZ,S5,g5;var uF=U(()=>{k();e0=class e0 extends G{static get runtime(){return B(this,"runtime",i)}static $p(){return UC}};T5=class T5 extends e0{constructor(Z){super();this.searchTerm="",this.toolCallId="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(T5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};R5=class R5 extends e0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(R5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",y5,m5,j5]}};y5=class y5 extends e0{constructor(Z){super();this.references=[],i.util.initPartial(Z,this)}static fromBinary(Z,$){return new y5().fromBinary(Z,$)}static fromJson(Z,$){return new y5().fromJson(Z,$)}static fromJsonString(Z,$){return new y5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(y5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",_5]}};m5=class m5 extends e0{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(m5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};j5=class j5 extends e0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(j5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};_5=class _5 extends e0{constructor(Z){super();this.title="",this.url="",this.chunk="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(_5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};DZ=class DZ extends e0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new DZ().fromBinary(Z,$)}static fromJson(Z,$){return new DZ().fromJson(Z,$)}static fromJsonString(Z,$){return new DZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(DZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",T5,R5]}};LZ=class LZ extends e0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(LZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",S5,g5]}};S5=class S5 extends e0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new S5().fromBinary(Z,$)}static fromJson(Z,$){return new S5().fromJson(Z,$)}static fromJsonString(Z,$){return new S5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(S5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};g5=class g5 extends e0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new g5().fromBinary(Z,$)}static fromJson(Z,$){return new g5().fromJson(Z,$)}static fromJsonString(Z,$){return new g5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(g5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Ga,proto3 as HQ}from"@bufbuild/protobuf";var IC="agent.v1.",qW,wZ,UZ;var lF=U(()=>{HW();k();qW=class qW extends G{static get runtime(){return B(this,"runtime",HQ)}static $p(){return IC}};wZ=class wZ extends qW{constructor(Z){super();HQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return HQ.util.equals(wZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",$Z,JZ]}};UZ=class UZ extends qW{constructor(Z){super();HQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return HQ.util.equals(UZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",YZ,XZ]}}});import{Message as Ia,proto3 as x0}from"@bufbuild/protobuf";var iF="agent.v1.",kZ,IZ,b5,d5,c5,OZ,pF,u5;var nF=U(()=>{k();kZ=class kZ extends G{static get runtime(){return B(this,"runtime",x0)}static $p(){return iF}};IZ=class IZ extends kZ{constructor(Z){super();x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(IZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",b5,d5]}};b5=class b5 extends kZ{constructor(Z){super();this.agentId="",x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(b5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};d5=class d5 extends kZ{constructor(Z){super();this.result={case:void 0},x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(d5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",c5,u5]}};c5=class c5 extends kZ{constructor(Z){super();this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(c5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",OZ]}};OZ=class OZ extends kZ{constructor(Z){super();this.path="",this.changeType=pF.UNSPECIFIED,x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(OZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",pF]}};pF=L(x0,iF,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);u5=class u5 extends kZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(u5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",OZ]}}});import{Message as fa,proto3 as n}from"@bufbuild/protobuf";var OC="agent.v1.",Z8,EZ,fZ,l5,p5,i5,o8,n5,a5,r5,s5;var aF=U(()=>{k();Z8=class Z8 extends G{static get runtime(){return B(this,"runtime",n)}static $p(){return OC}};EZ=class EZ extends Z8{constructor(Z){super();n.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(EZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",fZ,o8]}};fZ=class fZ extends Z8{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(fZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",l5]}};l5=class l5 extends Z8{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(l5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",p5]}};p5=class p5 extends Z8{constructor(Z){super();this.id="",this.label="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(p5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};i5=class i5 extends Z8{constructor(Z){super();this.interactionId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(i5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};o8=class o8 extends Z8{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new o8().fromBinary(Z,$)}static fromJson(Z,$){return new o8().fromJson(Z,$)}static fromJsonString(Z,$){return new o8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(o8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",n5,r5,s5,i5]}};n5=class n5 extends Z8{constructor(Z){super();this.answers=[],n.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(n5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",a5]}};a5=class a5 extends Z8{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(a5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};r5=class r5 extends Z8{constructor(Z){super();this.errorMessage="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(r5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};s5=class s5 extends Z8{constructor(Z){super();this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(s5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as xa,proto3 as y8}from"@bufbuild/protobuf";var kC="agent.v1.",QQ,VZ,PZ,t5,o5;var rF=U(()=>{k();QQ=class QQ extends G{static get runtime(){return B(this,"runtime",y8)}static $p(){return kC}};VZ=class VZ extends QQ{constructor(Z){super();this.url="",this.toolCallId="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(VZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};PZ=class PZ extends QQ{constructor(Z){super();this.result={case:void 0},y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(PZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",t5,o5]}};t5=class t5 extends QQ{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(t5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};o5=class o5 extends QQ{constructor(Z){super();this.url="",this.error="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(o5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as va,proto3 as WW}from"@bufbuild/protobuf";var EC="agent.v1.",sF,AZ;var tF=U(()=>{rF();k();sF=class sF extends G{static get runtime(){return B(this,"runtime",WW)}static $p(){return EC}};AZ=class AZ extends sF{constructor(Z){super();WW.util.initPartial(Z,this)}static fromBinary(Z,$){return new AZ().fromBinary(Z,$)}static fromJson(Z,$){return new AZ().fromJson(Z,$)}static fromJsonString(Z,$){return new AZ().fromJsonString(Z,$)}static equals(Z,$){return WW.util.equals(AZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",VZ,PZ]}}});import{Message as ja,proto3 as t}from"@bufbuild/protobuf";var fC="agent.v1.",f8,e5,Z1,$1,J1,Y1,xZ,MZ,X1,z1;var oF=U(()=>{k();f8=class f8 extends G{static get runtime(){return B(this,"runtime",t)}static $p(){return fC}};e5=class e5 extends f8{constructor(Z){super();this.targetModeId="",this.toolCallId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(e5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};Z1=class Z1 extends f8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(Z1,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",$1,J1,Y1]}};$1=class $1 extends f8{constructor(Z){super();this.fromModeId="",this.toModeId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals($1,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};J1=class J1 extends f8{constructor(Z){super();this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(J1,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};Y1=class Y1 extends f8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(Y1,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};xZ=class xZ extends f8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(xZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",e5,Z1]}};MZ=class MZ extends f8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(MZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",X1,z1]}};X1=class X1 extends f8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(X1,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};z1=class z1 extends f8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(z1,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as ba,proto3 as Y0}from"@bufbuild/protobuf";var VC="agent.v1.",m8,K1,H1,Q1,q1,CZ,hZ,W1,N1;var eF=U(()=>{k();m8=class m8 extends G{static get runtime(){return B(this,"runtime",Y0)}static $p(){return VC}};K1=class K1 extends m8{constructor(Z){super();this.description="",this.referenceImagePaths=[],Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(K1,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};H1=class H1 extends m8{constructor(Z){super();this.result={case:void 0},Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(H1,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",Q1,q1]}};Q1=class Q1 extends m8{constructor(Z){super();this.filePath="",this.imageData="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(Q1,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};q1=class q1 extends m8{constructor(Z){super();this.error="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(q1,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};CZ=class CZ extends m8{constructor(Z){super();Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(CZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",K1,H1]}};hZ=class hZ extends m8{constructor(Z){super();this.result={case:void 0},Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(hZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",W1,N1]}};W1=class W1 extends m8{constructor(Z){super();this.description="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(W1,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};N1=class N1 extends m8{constructor(Z){super();this.reason="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(N1,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as la,proto3 as D0,protoInt64 as PC}from"@bufbuild/protobuf";var NW="agent.v1.",RZ,ZG,AC,vZ,TZ,B1,F1,G1,D1;var $G=U(()=>{k();RZ=class RZ extends G{static get runtime(){return B(this,"runtime",D0)}static $p(){return NW}};ZG=L(D0,NW,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),AC=L(D0,NW,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);vZ=class vZ extends RZ{constructor(Z){super();this.mode=ZG.UNSPECIFIED,this.toolCallId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(vZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",ZG]}};TZ=class TZ extends RZ{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(TZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",B1,F1,G1,D1]}};B1=class B1 extends RZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(B1,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};F1=class F1 extends RZ{constructor(Z){super();this.path="",this.recordingDurationMs=PC.zero,D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(F1,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",AC]}};G1=class G1 extends RZ{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G1().fromBinary(Z,$)}static fromJson(Z,$){return new G1().fromJson(Z,$)}static fromJsonString(Z,$){return new G1().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(G1,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};D1=class D1 extends RZ{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(D1,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as aa,proto3 as BW}from"@bufbuild/protobuf";var xC="agent.v1.",JG,yZ;var YG=U(()=>{$G();k();JG=class JG extends G{static get runtime(){return B(this,"runtime",BW)}static $p(){return xC}};yZ=class yZ extends JG{constructor(Z){super();BW.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return BW.util.equals(yZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",vZ,TZ]}}});import{Message as ea,proto3 as C}from"@bufbuild/protobuf";var qQ="agent.v1.",l,e8,XG,zG,KG,V8,L1,w1,U1,I1,O1,k1,E1,f1,V1,P1,A1,x1,M1,C1,h1,v1,T1,mZ,R1,jZ;var HG=U(()=>{k();l=class l extends G{static get runtime(){return B(this,"runtime",C)}static $p(){return qQ}};e8=L(C,qQ,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),XG=L(C,qQ,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),zG=L(C,qQ,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1),KG=L(C,qQ,"ComputerUseDriver",[[0,"UNSPECIFIED"],[1,"XDOTOOL"],[2,"NATIVE_X11"]],1);V8=class V8 extends l{constructor(Z){super();this.x=0,this.y=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V8().fromBinary(Z,$)}static fromJson(Z,$){return new V8().fromJson(Z,$)}static fromJsonString(Z,$){return new V8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};L1=class L1 extends l{constructor(Z){super();this.toolCallId="",this.actions=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new L1().fromBinary(Z,$)}static fromJson(Z,$){return new L1().fromJson(Z,$)}static fromJsonString(Z,$){return new L1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(L1,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?|10 native_x11_driver #1?|11 mark_monitor_busy 8?|9 full_resolution_screenshot 8?",U1,w1]}};w1=class w1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(w1,Z,$)}static $(){return["NativeX11Driver|1 typing_delay_ms 5?|2 allow_fallback 8?"]}};U1=class U1 extends l{constructor(Z){super();this.action={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(U1,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",I1,O1,k1,E1,f1,V1,P1,A1,x1,M1,C1]}};I1=class I1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(I1,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",V8]}};O1=class O1 extends l{constructor(Z){super();this.button=e8.UNSPECIFIED,this.count=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(O1,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",V8,e8]}};k1=class k1 extends l{constructor(Z){super();this.button=e8.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new k1().fromBinary(Z,$)}static fromJson(Z,$){return new k1().fromJson(Z,$)}static fromJsonString(Z,$){return new k1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(k1,Z,$)}static $(){return["MouseDownAction|1 button #0",e8]}};E1=class E1 extends l{constructor(Z){super();this.button=e8.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(E1,Z,$)}static $(){return["MouseUpAction|1 button #0",e8]}};f1=class f1 extends l{constructor(Z){super();this.path=[],this.button=e8.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(f1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",V8,e8]}};V1=class V1 extends l{constructor(Z){super();this.direction=XG.UNSPECIFIED,this.amount=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",V8,XG]}};P1=class P1 extends l{constructor(Z){super();this.text="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(P1,Z,$)}static $(){return["TypeAction|1 text 9"]}};A1=class A1 extends l{constructor(Z){super();this.key="",this.stroke=zG.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(A1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",zG]}};x1=class x1 extends l{constructor(Z){super();this.durationMs=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(x1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};M1=class M1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M1().fromBinary(Z,$)}static fromJson(Z,$){return new M1().fromJson(Z,$)}static fromJsonString(Z,$){return new M1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M1,Z,$)}static $(){return["ScreenshotAction"]}};C1=class C1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(C1,Z,$)}static $(){return["CursorPositionAction"]}};h1=class h1 extends l{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",v1,R1]}};v1=class v1 extends l{constructor(Z){super();this.actionCount=0,this.durationMs=0,this.typing=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(v1,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?|7 settle_ms 5?|9 driver #1?|10 monitor_busy_marked 8?|11 full_resolution_screenshot #2?|12 typing #3*",V8,KG,T1,mZ]}};T1=class T1 extends l{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=0,this.width=0,this.height=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new T1().fromBinary(Z,$)}static fromJson(Z,$){return new T1().fromJson(Z,$)}static fromJsonString(Z,$){return new T1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(T1,Z,$)}static $(){return["ComputerUseFullResolutionScreenshot|1 path 9|2 sha256 9|3 size_bytes 13|4 width 5|5 height 5"]}};mZ=class mZ extends l{constructor(Z){super();this.method="",this.chars=0,this.atoms=0,this.typedAtoms=0,this.aborted=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(mZ,Z,$)}static $(){return["ComputerUseTyping|1 method 9|2 chars 5|3 atoms 5|4 typed_atoms 5|5 aborted 8|6 check 9?|7 verified 5?|8 unchecked 9?|9 landing 9?"]}};R1=class R1 extends l{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,this.typing=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(R1,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?|7 driver #0?|8 monitor_busy_marked 8?|9 typing #1*",KG,mZ]}};jZ=class jZ extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(jZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",L1,h1]}}});import{Message as Yr,proto3 as j8}from"@bufbuild/protobuf";var MC="agent.v1.",WQ,_Z,SZ,y1,m1;var QG=U(()=>{k();WQ=class WQ extends G{static get runtime(){return B(this,"runtime",j8)}static $p(){return MC}};_Z=class _Z extends WQ{constructor(Z){super();this.shellId=0,this.chars="",j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(_Z,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};SZ=class SZ extends WQ{constructor(Z){super();this.result={case:void 0},j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(SZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",y1,m1]}};y1=class y1 extends WQ{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(y1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};m1=class m1 extends WQ{constructor(Z){super();this.error="",j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(m1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Hr,proto3 as FW}from"@bufbuild/protobuf";var CC="agent.v1.",qG,gZ;var WG=U(()=>{QG();k();qG=class qG extends G{static get runtime(){return B(this,"runtime",FW)}static $p(){return CC}};gZ=class gZ extends qG{constructor(Z){super();FW.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return FW.util.equals(gZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",_Z,SZ]}}});import{Message as Br,proto3 as $8}from"@bufbuild/protobuf";var hC="agent.v1.",b1,j1,_1,S1,g1,bZ;var NG=U(()=>{k();b1=class b1 extends G{static get runtime(){return B(this,"runtime",$8)}static $p(){return hC}};j1=class j1 extends b1{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(j1,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};_1=class _1 extends b1{constructor(Z){super();this.result={case:void 0},$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(_1,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",S1,g1]}};S1=class S1 extends b1{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(S1,Z,$)}static $(){return["ReflectSuccess"]}};g1=class g1 extends b1{constructor(Z){super();this.error="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(g1,Z,$)}static $(){return["ReflectError|1 error 9"]}};bZ=class bZ extends b1{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(bZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",j1,_1]}}});import{Message as Lr,proto3 as _8}from"@bufbuild/protobuf";var vC="agent.v1.",NQ,dZ,Z6,d1,cZ;var BG=U(()=>{k();NQ=class NQ extends G{static get runtime(){return B(this,"runtime",_8)}static $p(){return vC}};dZ=class dZ extends NQ{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dZ().fromBinary(Z,$)}static fromJson(Z,$){return new dZ().fromJson(Z,$)}static fromJsonString(Z,$){return new dZ().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(dZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};Z6=class Z6 extends NQ{constructor(Z){super();this.result={case:void 0},_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z6().fromBinary(Z,$)}static fromJson(Z,$){return new Z6().fromJson(Z,$)}static fromJsonString(Z,$){return new Z6().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(Z6,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",d1]}};d1=class d1 extends NQ{constructor(Z){super();_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(d1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};cZ=class cZ extends NQ{constructor(Z){super();_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(cZ,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",dZ,Z6]}}});import{Message as Or,proto3 as J8}from"@bufbuild/protobuf";var TC="agent.v1.",i1,c1,u1,l1,p1,uZ;var FG=U(()=>{k();i1=class i1 extends G{static get runtime(){return B(this,"runtime",J8)}static $p(){return TC}};c1=class c1 extends i1{constructor(Z){super();this.toolCallId="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(c1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};u1=class u1 extends i1{constructor(Z){super();this.result={case:void 0},J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(u1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",l1,p1]}};l1=class l1 extends i1{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(l1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};p1=class p1 extends i1{constructor(Z){super();this.error="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(p1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};uZ=class uZ extends i1{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(uZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",c1,u1]}}});import{Message as Vr,proto3 as Y8}from"@bufbuild/protobuf";var RC="agent.v1.",t1,n1,a1,r1,s1,lZ;var GG=U(()=>{k();t1=class t1 extends G{static get runtime(){return B(this,"runtime",Y8)}static $p(){return RC}};n1=class n1 extends t1{constructor(Z){super();this.toolCallId="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(n1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};a1=class a1 extends t1{constructor(Z){super();this.result={case:void 0},Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new a1().fromBinary(Z,$)}static fromJson(Z,$){return new a1().fromJson(Z,$)}static fromJsonString(Z,$){return new a1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(a1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",r1,s1]}};r1=class r1 extends t1{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(r1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};s1=class s1 extends t1{constructor(Z){super();this.error="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(s1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};lZ=class lZ extends t1{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lZ().fromBinary(Z,$)}static fromJson(Z,$){return new lZ().fromJson(Z,$)}static fromJsonString(Z,$){return new lZ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(lZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",n1,a1]}}});import{Message as Mr,proto3 as o}from"@bufbuild/protobuf";var yC="agent.v1.",P8,o1,e1,ZJ,$J,JJ,pZ,iZ,YJ,XJ;var DG=U(()=>{C6();k();P8=class P8 extends G{static get runtime(){return B(this,"runtime",o)}static $p(){return yC}};o1=class o1 extends P8{constructor(Z){super();this.url="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(o1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};e1=class e1 extends P8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(e1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",ZJ,$J,JJ]}};ZJ=class ZJ extends P8{constructor(Z){super();this.url="",this.markdown="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZJ().fromBinary(Z,$)}static fromJson(Z,$){return new ZJ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(ZJ,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",N0]}};$J=class $J extends P8{constructor(Z){super();this.url="",this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new $J().fromBinary(Z,$)}static fromJson(Z,$){return new $J().fromJson(Z,$)}static fromJsonString(Z,$){return new $J().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals($J,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};JJ=class JJ extends P8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(JJ,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};pZ=class pZ extends P8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(pZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",o1,e1]}};iZ=class iZ extends P8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(iZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",YJ,XJ]}};YJ=class YJ extends P8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(YJ,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};XJ=class XJ extends P8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(XJ,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Rr,proto3 as M0}from"@bufbuild/protobuf";var wG="agent.v1.",rZ,LG,nZ,zJ,KJ,HJ,QJ,aZ;var UG=U(()=>{k();rZ=class rZ extends G{static get runtime(){return B(this,"runtime",M0)}static $p(){return wG}};LG=L(M0,wG,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);nZ=class nZ extends rZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=LG.UNSPECIFIED,this.explanation="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(nZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",LG]}};zJ=class zJ extends rZ{constructor(Z){super();this.summary="",this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(zJ,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",nZ]}};KJ=class KJ extends rZ{constructor(Z){super();this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(KJ,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",nZ]}};HJ=class HJ extends rZ{constructor(Z){super();this.error="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(HJ,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};QJ=class QJ extends rZ{constructor(Z){super();this.result={case:void 0},M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(QJ,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",KJ,HJ]}};aZ=class aZ extends rZ{constructor(Z){super();M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(aZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",zJ,QJ]}}});import{Message as _r,proto3 as X8}from"@bufbuild/protobuf";var mC="agent.v1.",FJ,qJ,WJ,NJ,BJ,sZ;var IG=U(()=>{C6();k();FJ=class FJ extends G{static get runtime(){return B(this,"runtime",X8)}static $p(){return mC}};qJ=class qJ extends FJ{constructor(Z){super();this.filePaths=[],this.commitHashes=[],X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(qJ,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};WJ=class WJ extends FJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(WJ,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",NJ,BJ]}};NJ=class NJ extends FJ{constructor(Z){super();this.attributionText="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(NJ,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",N0]}};BJ=class BJ extends FJ{constructor(Z){super();this.error="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(BJ,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};sZ=class sZ extends FJ{constructor(Z){super();X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(sZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",qJ,WJ]}}});import{Message as cr,proto3 as R,protoInt64 as jC}from"@bufbuild/protobuf";var uQ="agent.v1.",e,OG,kG,EG,GJ,DJ,LJ,wJ,UJ,IJ,OJ,kJ,EJ,fJ,$6,VJ,PJ,AJ,xJ,MJ,CJ,tZ;var fG=U(()=>{k();e=class e extends G{static get runtime(){return B(this,"runtime",R)}static $p(){return uQ}};OG=L(R,uQ,"MergePrMode",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"AUTO"],[3,"DISABLE_AUTO"]],1),kG=L(R,uQ,"MergePrMethod",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"SQUASH"]],1),EG=L(R,uQ,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);GJ=class GJ extends e{constructor(Z){super();this.toolCallId="",this.action={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(GJ,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action|8 merge_pr #6 action|9 list_prs #7 action|10 get_pr #8 action",DJ,LJ,wJ,UJ,IJ,OJ,kJ,EJ,fJ]}};DJ=class DJ extends e{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(DJ,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};LJ=class LJ extends e{constructor(Z){super();this.addLabels=[],this.removeLabels=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(LJ,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};wJ=class wJ extends e{constructor(Z){super();this.body="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(wJ,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};UJ=class UJ extends e{constructor(Z){super();this.commentId=jC.zero,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(UJ,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};IJ=class IJ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(IJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};OJ=class OJ extends e{constructor(Z){super();this.status=EG.UNSPECIFIED,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(OJ,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",EG]}};kJ=class kJ extends e{constructor(Z){super();this.mode=OG.UNSPECIFIED,this.method=kG.UNSPECIFIED,this.expectedMemberHeadShas={},this.downstack=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(kJ,Z,$)}static $(){return["MergePrAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 mode #0|5 method #1|6 expected_head_sha 9?|7 expected_member_head_shas 9,9|8 downstack 8",OG,kG]}};EJ=class EJ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(EJ,Z,$)}static $(){return["ListPrsArgs|1 limit 5?"]}};fJ=class fJ extends e{constructor(Z){super();this.prUrl="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new fJ().fromBinary(Z,$)}static fromJson(Z,$){return new fJ().fromJson(Z,$)}static fromJsonString(Z,$){return new fJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(fJ,Z,$)}static $(){return["GetPrArgs|1 pr_url 9"]}};$6=class $6 extends e{constructor(Z){super();this.result={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new $6().fromBinary(Z,$)}static fromJson(Z,$){return new $6().fromJson(Z,$)}static fromJsonString(Z,$){return new $6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals($6,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result|6 read #5 result",PJ,AJ,xJ,MJ,CJ,VJ]}};VJ=class VJ extends e{constructor(Z){super();this.message="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(VJ,Z,$)}static $(){return["PrManagementRead|1 message 9"]}};PJ=class PJ extends e{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(PJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};AJ=class AJ extends e{constructor(Z){super();this.error="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(AJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};xJ=class xJ extends e{constructor(Z){super();this.reason="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(xJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};MJ=class MJ extends e{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new MJ().fromBinary(Z,$)}static fromJson(Z,$){return new MJ().fromJson(Z,$)}static fromJsonString(Z,$){return new MJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(MJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};CJ=class CJ extends e{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(CJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};tZ=class tZ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(tZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",GJ,$6]}}});import{Message as ir,proto3 as Z0}from"@bufbuild/protobuf";var _C="agent.v1.",A8,hJ,vJ,TJ,RJ,yJ,oZ,eZ,mJ,jJ;var VG=U(()=>{k();A8=class A8 extends G{static get runtime(){return B(this,"runtime",Z0)}static $p(){return _C}};hJ=class hJ extends A8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(hJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};vJ=class vJ extends A8{constructor(Z){super();this.result={case:void 0},Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vJ().fromBinary(Z,$)}static fromJson(Z,$){return new vJ().fromJson(Z,$)}static fromJsonString(Z,$){return new vJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(vJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",TJ,RJ,yJ]}};TJ=class TJ extends A8{constructor(Z){super();this.serverIdentifier="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TJ().fromBinary(Z,$)}static fromJson(Z,$){return new TJ().fromJson(Z,$)}static fromJsonString(Z,$){return new TJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(TJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};RJ=class RJ extends A8{constructor(Z){super();this.error="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new RJ().fromBinary(Z,$)}static fromJson(Z,$){return new RJ().fromJson(Z,$)}static fromJsonString(Z,$){return new RJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(RJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};yJ=class yJ extends A8{constructor(Z){super();this.reason="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(yJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};oZ=class oZ extends A8{constructor(Z){super();Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(oZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",hJ,vJ]}};eZ=class eZ extends A8{constructor(Z){super();this.result={case:void 0},Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(eZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",mJ,jJ]}};mJ=class mJ extends A8{constructor(Z){super();Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(mJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};jJ=class jJ extends A8{constructor(Z){super();this.reason="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(jJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as sr,proto3 as L0,protoInt64 as lQ}from"@bufbuild/protobuf";var SC="agent.v1.",J6,_J,Z$,$$,SJ,gJ,bJ,J$;var PG=U(()=>{k();J6=class J6 extends G{static get runtime(){return B(this,"runtime",L0)}static $p(){return SC}};_J=class _J extends J6{constructor(Z){super();this.taskId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _J().fromBinary(Z,$)}static fromJson(Z,$){return new _J().fromJson(Z,$)}static fromJsonString(Z,$){return new _J().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(_J,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};Z$=class Z$ extends J6{constructor(Z){super();this.taskId="",this.runtimeMs=lQ.zero,this.outputFilePath="",this.outputLength=lQ.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(Z$,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};$$=class $$ extends J6{constructor(Z){super();this.taskId="",this.runtimeMs=lQ.zero,this.outputFilePath="",this.outputLength=lQ.zero,this.regexRequested=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals($$,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};SJ=class SJ extends J6{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(SJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};gJ=class gJ extends J6{constructor(Z){super();this.awaitResult={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(gJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",Z$,$$]}};bJ=class bJ extends J6{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(bJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",Z$,$$,SJ,gJ]}};J$=class J$ extends J6{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(J$,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",_J,bJ]}}});import{Message as Zs,proto3 as z8}from"@bufbuild/protobuf";var gC="agent.v1.",pJ,dJ,cJ,uJ,lJ,Y$;var AG=U(()=>{k();pJ=class pJ extends G{static get runtime(){return B(this,"runtime",z8)}static $p(){return gC}};dJ=class dJ extends pJ{constructor(Z){super();this.filePath="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dJ().fromBinary(Z,$)}static fromJson(Z,$){return new dJ().fromJson(Z,$)}static fromJsonString(Z,$){return new dJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(dJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};cJ=class cJ extends pJ{constructor(Z){super();this.content="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cJ().fromBinary(Z,$)}static fromJson(Z,$){return new cJ().fromJson(Z,$)}static fromJsonString(Z,$){return new cJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(cJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};uJ=class uJ extends pJ{constructor(Z){super();this.errorMessage="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uJ().fromBinary(Z,$)}static fromJson(Z,$){return new uJ().fromJson(Z,$)}static fromJsonString(Z,$){return new uJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(uJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};lJ=class lJ extends pJ{constructor(Z){super();this.result={case:void 0},z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(lJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",cJ,uJ]}};Y$=class Y$ extends pJ{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(Y$,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",dJ,lJ]}}});import{Message as Xs,proto3 as K8}from"@bufbuild/protobuf";var bC="agent.v1.",sJ,iJ,nJ,aJ,rJ,X$;var xG=U(()=>{k();sJ=class sJ extends G{static get runtime(){return B(this,"runtime",K8)}static $p(){return bC}};iJ=class iJ extends sJ{constructor(Z){super();this.toolCallId="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(iJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};nJ=class nJ extends sJ{constructor(Z){super();this.result={case:void 0},K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new nJ().fromBinary(Z,$)}static fromJson(Z,$){return new nJ().fromJson(Z,$)}static fromJsonString(Z,$){return new nJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(nJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",aJ,rJ]}};aJ=class aJ extends sJ{constructor(Z){super();this.content="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(aJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};rJ=class rJ extends sJ{constructor(Z){super();this.error="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new rJ().fromBinary(Z,$)}static fromJson(Z,$){return new rJ().fromJson(Z,$)}static fromJsonString(Z,$){return new rJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(rJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};X$=class X$ extends sJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(X$,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",iJ,nJ]}}});import{Message as Qs,proto3 as H8}from"@bufbuild/protobuf";var dC="agent.v1.",$Y,tJ,oJ,eJ,ZY,z$;var MG=U(()=>{k();$Y=class $Y extends G{static get runtime(){return B(this,"runtime",H8)}static $p(){return dC}};tJ=class tJ extends $Y{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(tJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};oJ=class oJ extends $Y{constructor(Z){super();this.output="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oJ().fromBinary(Z,$)}static fromJson(Z,$){return new oJ().fromJson(Z,$)}static fromJsonString(Z,$){return new oJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(oJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};eJ=class eJ extends $Y{constructor(Z){super();this.errorMessage="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eJ().fromBinary(Z,$)}static fromJson(Z,$){return new eJ().fromJson(Z,$)}static fromJsonString(Z,$){return new eJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(eJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};ZY=class ZY extends $Y{constructor(Z){super();this.result={case:void 0},H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(ZY,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",oJ,eJ]}};z$=class z$ extends $Y{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",tJ,ZY]}}});import{Message as Bs,proto3 as Q8}from"@bufbuild/protobuf";var cC="agent.v1.",KY,JY,YY,XY,zY,K$;var CG=U(()=>{k();KY=class KY extends G{static get runtime(){return B(this,"runtime",Q8)}static $p(){return cC}};JY=class JY extends KY{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new JY().fromBinary(Z,$)}static fromJson(Z,$){return new JY().fromJson(Z,$)}static fromJsonString(Z,$){return new JY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(JY,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};YY=class YY extends KY{constructor(Z){super();this.currentStep="",this.messageIndex=0,Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(YY,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};XY=class XY extends KY{constructor(Z){super();this.error="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(XY,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};zY=class zY extends KY{constructor(Z){super();this.result={case:void 0},Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(zY,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",YY,XY]}};K$=class K$ extends KY{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(K$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",JY,zY]}}});import{Message as Ls,proto3 as q8}from"@bufbuild/protobuf";var uC="agent.v1.",NY,HY,QY,qY,WY,H$;var hG=U(()=>{k();NY=class NY extends G{static get runtime(){return B(this,"runtime",q8)}static $p(){return uC}};HY=class HY extends NY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new HY().fromBinary(Z,$)}static fromJson(Z,$){return new HY().fromJson(Z,$)}static fromJsonString(Z,$){return new HY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(HY,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};QY=class QY extends NY{constructor(Z){super();this.finalSummary="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new QY().fromBinary(Z,$)}static fromJson(Z,$){return new QY().fromJson(Z,$)}static fromJsonString(Z,$){return new QY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(QY,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};qY=class qY extends NY{constructor(Z){super();this.error="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(qY,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};WY=class WY extends NY{constructor(Z){super();this.result={case:void 0},q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(WY,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",QY,qY]}};H$=class H$ extends NY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(H$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",HY,WY]}}});import{Message as Os,proto3 as K0}from"@bufbuild/protobuf";var TG="agent.v1.",X6,vG,BY,FY,Q$,GY,DY,Y6,q$;var RG=U(()=>{k();X6=class X6 extends G{static get runtime(){return B(this,"runtime",K0)}static $p(){return TG}};vG=L(K0,TG,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);BY=class BY extends X6{constructor(Z){super();this.repoUrl="",this.ref="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(BY,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};FY=class FY extends X6{constructor(Z){super();this.installScript="",this.dockerfileContents="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(FY,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};Q$=class Q$ extends X6{constructor(Z){super();this.mode=vG.UNSPECIFIED,this.checkoutRefOverrides=[],K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(Q$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",FY,vG,BY]}};GY=class GY extends X6{constructor(Z){super();this.setupLogs="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(GY,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};DY=class DY extends X6{constructor(Z){super();this.errorMessage="",this.setupLogs="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(DY,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};Y6=class Y6 extends X6{constructor(Z){super();this.result={case:void 0},K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y6().fromBinary(Z,$)}static fromJson(Z,$){return new Y6().fromJson(Z,$)}static fromJsonString(Z,$){return new Y6().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(Y6,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",GY,DY]}};q$=class q$ extends X6{constructor(Z){super();this.associatedPodKey="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(q$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",Q$,Y6]}}});import{Message as Vs,proto3 as W8}from"@bufbuild/protobuf";var lC="agent.v1.",OY,LY,wY,UY,IY,W$;var yG=U(()=>{k();OY=class OY extends G{static get runtime(){return B(this,"runtime",W8)}static $p(){return lC}};LY=class LY extends OY{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(LY,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};wY=class wY extends OY{constructor(Z){super();this.result={case:void 0},W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(wY,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",UY,IY]}};UY=class UY extends OY{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(UY,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};IY=class IY extends OY{constructor(Z){super();this.error="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(IY,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};W$=class W$ extends OY{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(W$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",LY,wY]}}});import{Message as Ms,proto3 as w0}from"@bufbuild/protobuf";var pC="agent.v1.",z6,kY,EY,fY,VY,PY,AY,N$;var mG=U(()=>{k();z6=class z6 extends G{static get runtime(){return B(this,"runtime",w0)}static $p(){return pC}};kY=class kY extends z6{constructor(Z){super();this.checkName="",this.tldr="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kY().fromBinary(Z,$)}static fromJson(Z,$){return new kY().fromJson(Z,$)}static fromJsonString(Z,$){return new kY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(kY,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};EY=class EY extends z6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(EY,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};fY=class fY extends z6{constructor(Z){super();this.findings=[],this.toolCallId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fY().fromBinary(Z,$)}static fromJson(Z,$){return new fY().fromJson(Z,$)}static fromJsonString(Z,$){return new fY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(fY,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",kY,EY]}};VY=class VY extends z6{constructor(Z){super();this.message="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VY().fromBinary(Z,$)}static fromJson(Z,$){return new VY().fromJson(Z,$)}static fromJsonString(Z,$){return new VY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(VY,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};PY=class PY extends z6{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(PY,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};AY=class AY extends z6{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(AY,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",VY,PY]}};N$=class N$ extends z6{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(N$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",fY,AY]}}});import{Message as Ts,proto3 as U0,protoInt64 as iC}from"@bufbuild/protobuf";var nC="agent.v1.",K6,xY,MY,CY,hY,vY,TY,B$;var jG=U(()=>{k();K6=class K6 extends G{static get runtime(){return B(this,"runtime",U0)}static $p(){return nC}};xY=class xY extends K6{constructor(Z){super();this.content="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(xY,Z,$)}static $(){return["SendMessageText|1 content 9"]}};MY=class MY extends K6{constructor(Z){super();this.url="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(MY,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};CY=class CY extends K6{constructor(Z){super();this.message={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CY().fromBinary(Z,$)}static fromJson(Z,$){return new CY().fromJson(Z,$)}static fromJsonString(Z,$){return new CY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(CY,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message|3 reply_to 9?",xY,MY]}};hY=class hY extends K6{constructor(Z){super();this.timestamp=iC.zero,this.messageId="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(hY,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};vY=class vY extends K6{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(vY,Z,$)}static $(){return["SendMessageError|1 error 9"]}};TY=class TY extends K6{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TY().fromBinary(Z,$)}static fromJson(Z,$){return new TY().fromJson(Z,$)}static fromJsonString(Z,$){return new TY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(TY,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",hY,vY]}};B$=class B$ extends K6{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(B$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",CY,TY]}}});import{Message as js,proto3 as N8}from"@bufbuild/protobuf";var aC="agent.v1.",_Y,RY,yY,mY,jY,F$;var _G=U(()=>{k();_Y=class _Y extends G{static get runtime(){return B(this,"runtime",N8)}static $p(){return aC}};RY=class RY extends _Y{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(RY,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};yY=class yY extends _Y{constructor(Z){super();this.result={case:void 0},N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(yY,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",mY,jY]}};mY=class mY extends _Y{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(mY,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};jY=class jY extends _Y{constructor(Z){super();this.error="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(jY,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};F$=class F$ extends _Y{constructor(Z){super();N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(F$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",RY,yY]}}});import{Message as bs,proto3 as B8}from"@bufbuild/protobuf";var rC="agent.v1.",cY,SY,gY,bY,dY,G$;var SG=U(()=>{k();cY=class cY extends G{static get runtime(){return B(this,"runtime",B8)}static $p(){return rC}};SY=class SY extends cY{constructor(Z){super();this.message="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(SY,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};gY=class gY extends cY{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(gY,Z,$)}static $(){return["SendToUserSuccess"]}};bY=class bY extends cY{constructor(Z){super();this.error="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(bY,Z,$)}static $(){return["SendToUserError|1 error 9"]}};dY=class dY extends cY{constructor(Z){super();this.result={case:void 0},B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dY().fromBinary(Z,$)}static fromJson(Z,$){return new dY().fromJson(Z,$)}static fromJsonString(Z,$){return new dY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(dY,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",gY,bY]}};G$=class G$ extends cY{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(G$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",SY,dY]}}});import{Message as ls,proto3 as GW}from"@bufbuild/protobuf";var sC="agent.v1.",gG,H0;var uY=U(()=>{k();gG=class gG extends G{static get runtime(){return B(this,"runtime",GW)}static $p(){return sC}};H0=class H0 extends gG{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,GW.util.initPartial(Z,this)}static fromBinary(Z,$){return new H0().fromBinary(Z,$)}static fromJson(Z,$){return new H0().fromJson(Z,$)}static fromJsonString(Z,$){return new H0().fromJsonString(Z,$)}static equals(Z,$){return GW.util.equals(H0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as as,proto3 as F8}from"@bufbuild/protobuf";var tC="agent.v1.",aY,D$,lY,pY,iY,nY;var bG=U(()=>{uY();k();aY=class aY extends G{static get runtime(){return B(this,"runtime",F8)}static $p(){return tC}};D$=class D$ extends aY{constructor(Z){super();F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(D$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",lY,pY]}};lY=class lY extends aY{constructor(Z){super();this.path="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(lY,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};pY=class pY extends aY{constructor(Z){super();this.result={case:void 0},F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new pY().fromBinary(Z,$)}static fromJson(Z,$){return new pY().fromJson(Z,$)}static fromJsonString(Z,$){return new pY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(pY,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",iY,nY]}};iY=class iY extends aY{constructor(Z){super();this.output="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iY().fromBinary(Z,$)}static fromJson(Z,$){return new iY().fromJson(Z,$)}static fromJsonString(Z,$){return new iY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(iY,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",H0]}};nY=class nY extends aY{constructor(Z){super();this.error="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(nY,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as es,proto3 as G8}from"@bufbuild/protobuf";var oC="agent.v1.",eY,L$,rY,sY,tY,oY;var dG=U(()=>{uY();k();eY=class eY extends G{static get runtime(){return B(this,"runtime",G8)}static $p(){return oC}};L$=class L$ extends eY{constructor(Z){super();G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new L$().fromBinary(Z,$)}static fromJson(Z,$){return new L$().fromJson(Z,$)}static fromJsonString(Z,$){return new L$().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(L$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",rY,sY]}};rY=class rY extends eY{constructor(Z){super();this.command="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(rY,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};sY=class sY extends eY{constructor(Z){super();this.result={case:void 0},G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(sY,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",tY,oY]}};tY=class tY extends eY{constructor(Z){super();this.output="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(tY,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",H0]}};oY=class oY extends eY{constructor(Z){super();this.error="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(oY,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",H0]}}});import{Message as Xt,proto3 as I0}from"@bufbuild/protobuf";var eC="agent.v1.",H6,Z3,w$,$3,J3,Y3,X3,z3;var cG=U(()=>{k();H6=class H6 extends G{static get runtime(){return B(this,"runtime",I0)}static $p(){return eC}};Z3=class Z3 extends H6{constructor(Z){super();this.oldText="",this.newText="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(Z3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};w$=class w$ extends H6{constructor(Z){super();I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new w$().fromBinary(Z,$)}static fromJson(Z,$){return new w$().fromJson(Z,$)}static fromJsonString(Z,$){return new w$().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(w$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",$3,J3]}};$3=class $3 extends H6{constructor(Z){super();this.path="",this.edits=[],I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals($3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",Z3]}};J3=class J3 extends H6{constructor(Z){super();this.result={case:void 0},I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J3().fromBinary(Z,$)}static fromJson(Z,$){return new J3().fromJson(Z,$)}static fromJsonString(Z,$){return new J3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(J3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Y3,X3,z3]}};Y3=class Y3 extends H6{constructor(Z){super();this.output="",this.diff="",this.patch="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(Y3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};X3=class X3 extends H6{constructor(Z){super();this.error="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(X3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};z3=class z3 extends H6{constructor(Z){super();this.reason="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(z3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Qt,proto3 as R0}from"@bufbuild/protobuf";var Zh="agent.v1.",I$,U$,K3,H3,Q3,q3,W3;var uG=U(()=>{k();I$=class I$ extends G{static get runtime(){return B(this,"runtime",R0)}static $p(){return Zh}};U$=class U$ extends I${constructor(Z){super();R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(U$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",K3,H3]}};K3=class K3 extends I${constructor(Z){super();this.path="",this.content="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(K3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};H3=class H3 extends I${constructor(Z){super();this.result={case:void 0},R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(H3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Q3,q3,W3]}};Q3=class Q3 extends I${constructor(Z){super();this.output="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(Q3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};q3=class q3 extends I${constructor(Z){super();this.error="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(q3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};W3=class W3 extends I${constructor(Z){super();this.reason="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(W3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Bt,proto3 as D8}from"@bufbuild/protobuf";var $h="agent.v1.",D3,O$,N3,B3,F3,G3;var lG=U(()=>{uY();k();D3=class D3 extends G{static get runtime(){return B(this,"runtime",D8)}static $p(){return $h}};O$=class O$ extends D3{constructor(Z){super();D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(O$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",N3,B3]}};N3=class N3 extends D3{constructor(Z){super();this.pattern="",D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(N3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};B3=class B3 extends D3{constructor(Z){super();this.result={case:void 0},D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(B3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",F3,G3]}};F3=class F3 extends D3{constructor(Z){super();this.output="",this.linesTruncated=!1,D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(F3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",H0]}};G3=class G3 extends D3{constructor(Z){super();this.error="",D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(G3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as wt,proto3 as L8}from"@bufbuild/protobuf";var Jh="agent.v1.",O3,k$,L3,w3,U3,I3;var pG=U(()=>{uY();k();O3=class O3 extends G{static get runtime(){return B(this,"runtime",L8)}static $p(){return Jh}};k$=class k$ extends O3{constructor(Z){super();L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(k$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",L3,w3]}};L3=class L3 extends O3{constructor(Z){super();this.pattern="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new L3().fromBinary(Z,$)}static fromJson(Z,$){return new L3().fromJson(Z,$)}static fromJsonString(Z,$){return new L3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(L3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};w3=class w3 extends O3{constructor(Z){super();this.result={case:void 0},L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(w3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",U3,I3]}};U3=class U3 extends O3{constructor(Z){super();this.output="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new U3().fromBinary(Z,$)}static fromJson(Z,$){return new U3().fromJson(Z,$)}static fromJsonString(Z,$){return new U3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(U3,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",H0]}};I3=class I3 extends O3{constructor(Z){super();this.error="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new I3().fromBinary(Z,$)}static fromJson(Z,$){return new I3().fromJson(Z,$)}static fromJsonString(Z,$){return new I3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(I3,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as Et,proto3 as w8}from"@bufbuild/protobuf";var Yh="agent.v1.",P3,E$,k3,E3,f3,V3;var iG=U(()=>{uY();k();P3=class P3 extends G{static get runtime(){return B(this,"runtime",w8)}static $p(){return Yh}};E$=class E$ extends P3{constructor(Z){super();w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(E$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",k3,E3]}};k3=class k3 extends P3{constructor(Z){super();w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(k3,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};E3=class E3 extends P3{constructor(Z){super();this.result={case:void 0},w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(E3,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",f3,V3]}};f3=class f3 extends P3{constructor(Z){super();this.output="",w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(f3,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",H0]}};V3=class V3 extends P3{constructor(Z){super();this.error="",w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new V3().fromBinary(Z,$)}static fromJson(Z,$){return new V3().fromJson(Z,$)}static fromJsonString(Z,$){return new V3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(V3,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as xt,proto3 as j}from"@bufbuild/protobuf";var Xh="agent.v1.",Q0,f$,A3,x3,M3,C3,h3,v3,T3,R3,y3,V$,P$,m3,j3,_3;var nG=U(()=>{k();Q0=class Q0 extends G{static get runtime(){return B(this,"runtime",j)}static $p(){return Xh}};f$=class f$ extends Q0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(f$,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target|3 gitlab #1 target|4 bitbucket #2 target|5 azure_devops #3 target|6 reconnect 8?|7 repo_url 9?|8 instance_host 9?",C3,A3,x3,M3]}};A3=class A3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(A3,Z,$)}static $(){return["ConnectScmGitlab|1 instance_id 9?"]}};x3=class x3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(x3,Z,$)}static $(){return["ConnectScmBitbucket|1 instance_id 9?"]}};M3=class M3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(M3,Z,$)}static $(){return["ConnectScmAzureDevops"]}};C3=class C3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(C3,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",h3]}};h3=class h3 extends Q0{constructor(Z){super();this.owner="",this.repo="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(h3,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};v3=class v3 extends Q0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new v3().fromBinary(Z,$)}static fromJson(Z,$){return new v3().fromJson(Z,$)}static fromJsonString(Z,$){return new v3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(v3,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 scm_target 9?",T3,R3,y3]}};T3=class T3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(T3,Z,$)}static $(){return["ConnectScmSuccess"]}};R3=class R3 extends Q0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(R3,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};y3=class y3 extends Q0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(y3,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};V$=class V$ extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(V$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",f$,v3]}};P$=class P$ extends Q0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(P$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",m3,j3,_3]}};m3=class m3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new m3().fromBinary(Z,$)}static fromJson(Z,$){return new m3().fromJson(Z,$)}static fromJsonString(Z,$){return new m3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(m3,Z,$)}static $(){return["ConnectScmRequestResponse.Approved|1 scm_target 9?"]}};j3=class j3 extends Q0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(j3,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9|2 recorded_args #0?",f$]}};_3=class _3 extends Q0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(_3,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as vt,proto3 as d0,protoInt64 as zh}from"@bufbuild/protobuf";var rG="agent.v1.",d3,aG,A$,x$,S3,g3,b3;var sG=U(()=>{k();d3=class d3 extends G{static get runtime(){return B(this,"runtime",d0)}static $p(){return rG}};aG=L(d0,rG,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);A$=class A$ extends d3{constructor(Z){super();this.query="",this.toolCallId="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(A$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};x$=class x$ extends d3{constructor(Z){super();this.result={case:void 0},d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(x$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",S3,b3]}};S3=class S3 extends d3{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(S3,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",g3]}};g3=class g3 extends d3{constructor(Z){super();this.conversationId="",this.title="",this.source=aG.UNSPECIFIED,this.updatedAtMs=zh.zero,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(g3,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",aG]}};b3=class b3 extends d3{constructor(Z){super();this.error="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(b3,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as mt,proto3 as DW}from"@bufbuild/protobuf";var Kh="agent.v1.",tG,M$;var oG=U(()=>{sG();k();tG=class tG extends G{static get runtime(){return B(this,"runtime",DW)}static $p(){return Kh}};M$=class M$ extends tG{constructor(Z){super();DW.util.initPartial(Z,this)}static fromBinary(Z,$){return new M$().fromBinary(Z,$)}static fromJson(Z,$){return new M$().fromJson(Z,$)}static fromJsonString(Z,$){return new M$().fromJsonString(Z,$)}static equals(Z,$){return DW.util.equals(M$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",A$,x$]}}});import{Message as bt,proto3 as a}from"@bufbuild/protobuf";var eG="agent.v1.",x8,T$,c3,u3,C$,l3,h$,p3,i3,n3,v$;var ZD=U(()=>{k();x8=class x8 extends G{static get runtime(){return B(this,"runtime",a)}static $p(){return eG}};T$=L(a,eG,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);c3=class c3 extends x8{constructor(Z){super();this.objective="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new c3().fromBinary(Z,$)}static fromJson(Z,$){return new c3().fromJson(Z,$)}static fromJsonString(Z,$){return new c3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(c3,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};u3=class u3 extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(u3,Z,$)}static $(){return["CreateGoalSuccess"]}};C$=class C$ extends x8{constructor(Z){super();this.error="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(C$,Z,$)}static $(){return["GoalError|1 error 9"]}};l3=class l3 extends x8{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(l3,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",u3,C$]}};h$=class h$ extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(h$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",c3,l3]}};p3=class p3 extends x8{constructor(Z){super();this.status=T$.UNSPECIFIED,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(p3,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",T$]}};i3=class i3 extends x8{constructor(Z){super();this.status=T$.UNSPECIFIED,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(i3,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",T$]}};n3=class n3 extends x8{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(n3,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",i3,C$]}};v$=class v$ extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(v$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",p3,n3]}}});import{Message as lt,proto3 as F,protoInt64 as Q6}from"@bufbuild/protobuf";var LW="agent.v1.",E,JD,a3,r3,s3,t3,o3,R$,e3,ZX,$X,$D,JX,YX,y$,XX,zX,KX,HX,m$,QX,qX,WX,NX,j$,BX,FX,GX,DX,_$,LX,wX,UX,IX,S$,g$,b$,d$,OX,kX,EX,c$,u$,fX,VX,PX,AX,xX,l$,MX,CX,hX,vX,TX,RX,p$,yX,mX,jX,_X,SX,gX,bX,dX,i$,cX,uX,lX,pX,n$,iX,nX,aX,rX,sX,a$,tX,oX,eX,Zz,$z,r$;var YD=U(()=>{k();E=class E extends G{static get runtime(){return B(this,"runtime",F)}static $p(){return LW}};JD=L(F,LW,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);a3=class a3 extends E{constructor(Z){super();this.toolCallId="",this.agentIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(a3,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};r3=class r3 extends E{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=Q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(r3,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};s3=class s3 extends E{constructor(Z){super();this.workers=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(s3,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",r3]}};t3=class t3 extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new t3().fromBinary(Z,$)}static fromJson(Z,$){return new t3().fromJson(Z,$)}static fromJsonString(Z,$){return new t3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(t3,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};o3=class o3 extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(o3,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",s3,t3]}};R$=class R$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(R$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",a3,o3]}};e3=class e3 extends E{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",this.trackedTaskKeys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(e3,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?|7 tracked_task_keys 9*"]}};ZX=class ZX extends E{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ZX,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9|4 recipient #0?",$X]}};$X=class $X extends E{constructor(Z){super();this.kind=$D.UNSPECIFIED,this.id="",this.displayName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($X,Z,$)}static $(){return["SendToAgentRecipient|1 kind #0|2 id 9|3 display_name 9",$D]}};$D=L(F,LW,"SendToAgentRecipient.Kind",[[0,"UNSPECIFIED"],[1,"MAIN_BOT"],[2,"PROJECT_SESSION"]],1);JX=class JX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(JX,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};YX=class YX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(YX,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",ZX,JX]}};y$=class y$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new y$().fromBinary(Z,$)}static fromJson(Z,$){return new y$().fromJson(Z,$)}static fromJsonString(Z,$){return new y$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(y$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",e3,YX]}};XX=class XX extends E{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(XX,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};zX=class zX extends E{constructor(Z){super();this.transcript="",this.truncated=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(zX,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};KX=class KX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(KX,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};HX=class HX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(HX,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",zX,KX]}};m$=class m$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(m$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",XX,HX]}};QX=class QX extends E{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},this.trackedTaskKeys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(QX,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?|13 tracked_task_keys 9*|14 fork_from 9?|15 fork_turns 13?"]}};qX=class qX extends E{constructor(Z){super();this.agentId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(qX,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};WX=class WX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(WX,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",JD]}};NX=class NX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(NX,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",qX,WX]}};j$=class j$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",QX,NX]}};BX=class BX extends E{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(BX,Z,$)}static $(){return["CreateProjectArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?"]}};FX=class FX extends E{constructor(Z){super();this.agentId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(FX,Z,$)}static $(){return["CreateProjectSuccess|1 agent_id 9|2 message 9"]}};GX=class GX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(GX,Z,$)}static $(){return["CreateProjectError|1 error 9|2 placement_approval_state #0?",JD]}};DX=class DX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(DX,Z,$)}static $(){return["CreateProjectResult|1 success #0 result|2 error #1 result",FX,GX]}};_$=class _$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_$,Z,$)}static $(){return["CreateProjectToolCall|1 args #0|2 result #1",BX,DX]}};LX=class LX extends E{constructor(Z){super();this.toolCallId="",this.agentId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new LX().fromBinary(Z,$)}static fromJson(Z,$){return new LX().fromJson(Z,$)}static fromJsonString(Z,$){return new LX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(LX,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};wX=class wX extends E{constructor(Z){super();this.workerBcId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(wX,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};UX=class UX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(UX,Z,$)}static $(){return["StopAgentError|1 error 9"]}};IX=class IX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(IX,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",wX,UX]}};S$=class S$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(S$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",LX,IX]}};g$=class g$ extends E{constructor(Z){super();this.path="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(g$,Z,$)}static $(){return["TrackedTaskDocumentInput|1 path 9|2 label 9?"]}};b$=class b$ extends E{constructor(Z){super();this.url="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new b$().fromBinary(Z,$)}static fromJson(Z,$){return new b$().fromJson(Z,$)}static fromJsonString(Z,$){return new b$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(b$,Z,$)}static $(){return["TrackedTaskUrlInput|1 url 9|2 label 9?"]}};d$=class d$ extends E{constructor(Z){super();this.target={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(d$,Z,$)}static $(){return["TrackedTaskLinkInput|1 agent_id 9 target|2 pr_url 9 target|3 document #0 target|4 url #1 target",g$,b$]}};OX=class OX extends E{constructor(Z){super();this.url="",this.openedByAgentId="",this.countsForCompletion=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(OX,Z,$)}static $(){return["TrackedTaskPrLinkView|1 url 9|2 opened_by_agent_id 9|3 counts_for_completion 8"]}};kX=class kX extends E{constructor(Z){super();this.target={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(kX,Z,$)}static $(){return["TrackedTaskLinkView|1 agent_id 9 target|2 pr #0 target|3 document #1 target|4 url #2 target",OX,g$,b$]}};EX=class EX extends E{constructor(Z){super();this.key="",this.title="",this.statusId="",this.statusLabel="",this.owner="",this.parentKey="",this.links=[],this.updatedAtMs=Q6.zero,this.ownerSessionId="",this.version=Q6.zero,this.tag="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(EX,Z,$)}static $(){return["TrackedTaskView|1 key 9|2 title 9|3 status_id 9|4 status_label 9|5 owner 9|6 parent_key 9|7 links #0*|8 updated_at_ms 4|9 owner_session_id 9|10 version 4|11 tag 9",kX]}};c$=class c$ extends E{constructor(Z){super();this.id="",this.label="",this.category="",this.taskCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(c$,Z,$)}static $(){return["TrackedTaskStatusView|1 id 9|2 label 9|3 category 9|4 task_count 13"]}};u$=class u$ extends E{constructor(Z){super();this.id="",this.label="",this.color="",this.taskCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new u$().fromBinary(Z,$)}static fromJson(Z,$){return new u$().fromJson(Z,$)}static fromJsonString(Z,$){return new u$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(u$,Z,$)}static $(){return["TrackedTaskTagView|1 id 9|2 label 9|3 color 9|4 task_count 13"]}};fX=class fX extends E{constructor(Z){super();this.name="",this.sessionId="",this.isYou=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(fX,Z,$)}static $(){return["TrackedTaskMemberView|1 name 9|2 session_id 9|3 is_you 8"]}};VX=class VX extends E{constructor(Z){super();this.toolCallId="",this.keys=[],this.statusCategories=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(VX,Z,$)}static $(){return["ListTrackedTasksArgs|1 tool_call_id 9|2 keys 9*|3 status_categories 9*|4 owner 9?|5 linked_agent_id 9?"]}};PX=class PX extends E{constructor(Z){super();this.tasks=[],this.statuses=[],this.members=[],this.olderClosedCount=0,this.truncated=!1,this.matchingCount=0,this.message="",this.tags=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(PX,Z,$)}static $(){return["ListTrackedTasksSuccess|1 tasks #0*|2 statuses #1*|3 members #2*|4 older_closed_count 13|5 truncated 8|6 matching_count 13|7 message 9|8 tags #3*",EX,c$,fX,u$]}};AX=class AX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(AX,Z,$)}static $(){return["ListTrackedTasksError|1 error 9"]}};xX=class xX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(xX,Z,$)}static $(){return["ListTrackedTasksResult|1 success #0 result|2 error #1 result",PX,AX]}};l$=class l$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(l$,Z,$)}static $(){return["ListTrackedTasksToolCall|1 args #0|2 result #1",VX,xX]}};MX=class MX extends E{constructor(Z){super();this.title="",this.links=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(MX,Z,$)}static $(){return["NewTrackedTask|1 client_ref 9?|2 title 9|3 status 9?|4 owner 9?|5 parent 9?|6 links #0*|7 tag 9?",d$]}};CX=class CX extends E{constructor(Z){super();this.toolCallId="",this.tasks=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(CX,Z,$)}static $(){return["CreateTrackedTasksArgs|1 tool_call_id 9|2 tasks #0*",MX]}};hX=class hX extends E{constructor(Z){super();this.clientRef="",this.key="",this.version=Q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(hX,Z,$)}static $(){return["TrackedTaskCreated|1 client_ref 9|2 key 9|3 version 4"]}};vX=class vX extends E{constructor(Z){super();this.created=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(vX,Z,$)}static $(){return["CreateTrackedTasksSuccess|1 created #0*|2 message 9",hX]}};TX=class TX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(TX,Z,$)}static $(){return["CreateTrackedTasksError|1 error 9"]}};RX=class RX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(RX,Z,$)}static $(){return["CreateTrackedTasksResult|1 success #0 result|2 error #1 result",vX,TX]}};p$=class p$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(p$,Z,$)}static $(){return["CreateTrackedTasksToolCall|1 args #0|2 result #1",CX,RX]}};yX=class yX extends E{constructor(Z){super();this.anchor={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(yX,Z,$)}static $(){return["TrackedTaskPosition|1 before_key 9 anchor|2 after_key 9 anchor"]}};mX=class mX extends E{constructor(Z){super();this.key="",this.addLinks=[],this.removeLinks=[],this.version=Q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(mX,Z,$)}static $(){return["TrackedTaskUpdate|1 key 9|2 title 9?|3 status 9?|4 owner 9?|5 parent 9?|6 position #0?|7 add_links #1*|8 remove_links #1*|9 version 4|10 tag 9?",yX,d$]}};jX=class jX extends E{constructor(Z){super();this.toolCallId="",this.updates=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(jX,Z,$)}static $(){return["UpdateTrackedTasksArgs|1 tool_call_id 9|2 updates #0*",mX]}};_X=class _X extends E{constructor(Z){super();this.key="",this.field="",this.currentValue="",this.changedBy="",this.changedAtMs=Q6.zero,this.currentVersion=Q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_X,Z,$)}static $(){return["TrackedTaskConflict|1 key 9|2 field 9|3 current_value 9|4 changed_by 9|5 changed_at_ms 4|6 current_version 4"]}};SX=class SX extends E{constructor(Z){super();this.key="",this.version=Q6.zero,this.title="",this.statusLabel="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(SX,Z,$)}static $(){return["TrackedTaskUpdated|1 key 9|2 version 4|3 title 9|4 status_label 9"]}};gX=class gX extends E{constructor(Z){super();this.updated=[],this.conflicts=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(gX,Z,$)}static $(){return["UpdateTrackedTasksSuccess|1 updated #0*|2 conflicts #1*|3 message 9",SX,_X]}};bX=class bX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(bX,Z,$)}static $(){return["UpdateTrackedTasksError|1 error 9"]}};dX=class dX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(dX,Z,$)}static $(){return["UpdateTrackedTasksResult|1 success #0 result|2 error #1 result",gX,bX]}};i$=class i$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(i$,Z,$)}static $(){return["UpdateTrackedTasksToolCall|1 args #0|2 result #1",jX,dX]}};cX=class cX extends E{constructor(Z){super();this.toolCallId="",this.keys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(cX,Z,$)}static $(){return["DeleteTrackedTasksArgs|1 tool_call_id 9|2 keys 9*"]}};uX=class uX extends E{constructor(Z){super();this.deletedKeys=[],this.unparentedKeys=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(uX,Z,$)}static $(){return["DeleteTrackedTasksSuccess|1 deleted_keys 9*|2 unparented_keys 9*|3 message 9"]}};lX=class lX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(lX,Z,$)}static $(){return["DeleteTrackedTasksError|1 error 9"]}};pX=class pX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(pX,Z,$)}static $(){return["DeleteTrackedTasksResult|1 success #0 result|2 error #1 result",uX,lX]}};n$=class n$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(n$,Z,$)}static $(){return["DeleteTrackedTasksToolCall|1 args #0|2 result #1",cX,pX]}};iX=class iX extends E{constructor(Z){super();this.label="",this.category="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new iX().fromBinary(Z,$)}static fromJson(Z,$){return new iX().fromJson(Z,$)}static fromJsonString(Z,$){return new iX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(iX,Z,$)}static $(){return["TrackedTaskStatusInput|1 id 9?|2 label 9|3 icon 9?|4 category 9"]}};nX=class nX extends E{constructor(Z){super();this.toolCallId="",this.statuses=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(nX,Z,$)}static $(){return["UpdateTrackedTaskStatusesArgs|1 tool_call_id 9|2 statuses #0*",iX]}};aX=class aX extends E{constructor(Z){super();this.statuses=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(aX,Z,$)}static $(){return["UpdateTrackedTaskStatusesSuccess|1 statuses #0*|2 message 9",c$]}};rX=class rX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(rX,Z,$)}static $(){return["UpdateTrackedTaskStatusesError|1 error 9"]}};sX=class sX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(sX,Z,$)}static $(){return["UpdateTrackedTaskStatusesResult|1 success #0 result|2 error #1 result",aX,rX]}};a$=class a$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new a$().fromBinary(Z,$)}static fromJson(Z,$){return new a$().fromJson(Z,$)}static fromJsonString(Z,$){return new a$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(a$,Z,$)}static $(){return["UpdateTrackedTaskStatusesToolCall|1 args #0|2 result #1",nX,sX]}};tX=class tX extends E{constructor(Z){super();this.label="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(tX,Z,$)}static $(){return["TrackedTaskTagInput|1 id 9?|2 label 9|3 color 9?"]}};oX=class oX extends E{constructor(Z){super();this.toolCallId="",this.tags=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(oX,Z,$)}static $(){return["UpdateTrackedTaskTagsArgs|1 tool_call_id 9|2 tags #0*",tX]}};eX=class eX extends E{constructor(Z){super();this.tags=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(eX,Z,$)}static $(){return["UpdateTrackedTaskTagsSuccess|1 tags #0*|2 message 9",u$]}};Zz=class Zz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Zz,Z,$)}static $(){return["UpdateTrackedTaskTagsError|1 error 9"]}};$z=class $z extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($z,Z,$)}static $(){return["UpdateTrackedTaskTagsResult|1 success #0 result|2 error #1 result",eX,Zz]}};r$=class r$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new r$().fromBinary(Z,$)}static fromJson(Z,$){return new r$().fromJson(Z,$)}static fromJsonString(Z,$){return new r$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(r$,Z,$)}static $(){return["UpdateTrackedTaskTagsToolCall|1 args #0|2 result #1",oX,$z]}}});import{Message as at,proto3 as _}from"@bufbuild/protobuf";var wW="agent.v1.",C0,XD,zD,Jz,Yz,Xz,zz,Kz,Hz,Qz,s$,qz,Wz,Nz,Bz,t$;var KD=U(()=>{k();C0=class C0 extends G{static get runtime(){return B(this,"runtime",_)}static $p(){return wW}};XD=L(_,wW,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),zD=L(_,wW,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);Jz=class Jz extends C0{constructor(Z){super();this.line=0,this.character=0,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Jz,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};Yz=class Yz extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Yz,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",Jz]}};Xz=class Xz extends C0{constructor(Z){super();this.message="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Xz,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",Yz]}};zz=class zz extends C0{constructor(Z){super();this.contents="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(zz,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};Kz=class Kz extends C0{constructor(Z){super();this.canvasId="",this.url="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Kz,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};Hz=class Hz extends C0{constructor(Z){super();this.reason=XD.UNSPECIFIED,this.diagnostics=[],_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Hz,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",XD,Xz]}};Qz=class Qz extends C0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Qz,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",Kz,Hz]}};s$=class s$ extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new s$().fromBinary(Z,$)}static fromJson(Z,$){return new s$().fromJson(Z,$)}static fromJsonString(Z,$){return new s$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(s$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",zz,Qz]}};qz=class qz extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(qz,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};Wz=class Wz extends C0{constructor(Z){super();this.canvasId="",this.url="",this.source="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Wz,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};Nz=class Nz extends C0{constructor(Z){super();this.reason=zD.UNSPECIFIED,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Nz,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",zD]}};Bz=class Bz extends C0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Bz,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",Wz,Nz]}};t$=class t$ extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new t$().fromBinary(Z,$)}static fromJson(Z,$){return new t$().fromJson(Z,$)}static fromJsonString(Z,$){return new t$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(t$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",qz,Bz]}}});import{Message as ot,proto3 as y0}from"@bufbuild/protobuf";var Hh="agent.v1.",e$,Fz,Gz,Dz,Lz,wz,o$;var HD=U(()=>{k();e$=class e$ extends G{static get runtime(){return B(this,"runtime",y0)}static $p(){return Hh}};Fz=class Fz extends e${constructor(Z){super();this.prompt="",this.referenceImagePaths=[],this.keyframes=[],y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Fz,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?|8 last_frame_path 9?|9 keyframes #0*",Gz]}};Gz=class Gz extends e${constructor(Z){super();this.imagePath="",this.timestampSeconds=0,y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Gz,Z,$)}static $(){return["GenerateVideoKeyframe|1 image_path 9|2 timestamp_seconds 1"]}};Dz=class Dz extends e${constructor(Z){super();this.result={case:void 0},y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Dz,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",Lz,wz]}};Lz=class Lz extends e${constructor(Z){super();this.filePath="",this.durationSeconds=0,y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Lz,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};wz=class wz extends e${constructor(Z){super();this.error="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(wz,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};o$=class o$ extends e${constructor(Z){super();y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o$().fromBinary(Z,$)}static fromJson(Z,$){return new o$().fromJson(Z,$)}static fromJsonString(Z,$){return new o$().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(o$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",Fz,Dz]}}});import{Message as Jo,proto3 as O0}from"@bufbuild/protobuf";var Qh="agent.v1.",q6,Uz,Iz,Oz,kz,Ez,fz,Z9;var QD=U(()=>{k();q6=class q6 extends G{static get runtime(){return B(this,"runtime",O0)}static $p(){return Qh}};Uz=class Uz extends q6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Uz,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};Iz=class Iz extends q6{constructor(Z){super();this.result={case:void 0},O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Iz,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Oz,Ez,fz]}};Oz=class Oz extends q6{constructor(Z){super();this.answer="",this.citations=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Oz,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",kz]}};kz=class kz extends q6{constructor(Z){super();this.url="",this.title="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(kz,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};Ez=class Ez extends q6{constructor(Z){super();this.error="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Ez,Z,$)}static $(){return["XSearchError|1 error 9"]}};fz=class fz extends q6{constructor(Z){super();this.reason="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(fz,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};Z9=class Z9 extends q6{constructor(Z){super();O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z9().fromBinary(Z,$)}static fromJson(Z,$){return new Z9().fromJson(Z,$)}static fromJsonString(Z,$){return new Z9().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Z9,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",Uz,Iz]}}});import{Message as Ko,proto3 as m0,protoInt64 as qh}from"@bufbuild/protobuf";var Wh="agent.v1.",J9,Vz,Pz,Az,xz,Mz,$9;var qD=U(()=>{k();J9=class J9 extends G{static get runtime(){return B(this,"runtime",m0)}static $p(){return Wh}};Vz=class Vz extends J9{constructor(Z){super();this.toolCallId="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Vz,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?|3 section_id 9?|4 head_sha 9?|5 pr_url 9?"]}};Pz=class Pz extends J9{constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=qh.zero,this.isCurrent=!1,this.markdown="",this.source="",this.prUrl="",this.editedByBcId="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Pz,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9|8 source 9|9 pr_url 9|10 edited_by_bc_id 9"]}};Az=class Az extends J9{constructor(Z){super();this.revisions=[],m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Az,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*|2 section_id 9?",Pz]}};xz=class xz extends J9{constructor(Z){super();this.error="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(xz,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};Mz=class Mz extends J9{constructor(Z){super();this.result={case:void 0},m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Mz,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",Az,xz]}};$9=class $9 extends J9{constructor(Z){super();m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $9().fromBinary(Z,$)}static fromJson(Z,$){return new $9().fromJson(Z,$)}static fromJsonString(Z,$){return new $9().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals($9,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",Vz,Mz]}}});import{Message as Wo,proto3 as c0}from"@bufbuild/protobuf";var ND="agent.v1.",Rz,WD,Cz,hz,vz,Tz,Y9;var BD=U(()=>{k();Rz=class Rz extends G{static get runtime(){return B(this,"runtime",c0)}static $p(){return ND}};WD=L(c0,ND,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);Cz=class Cz extends Rz{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(Cz,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?|13 pr_url 9?"]}};hz=class hz extends Rz{constructor(Z){super();this.result={case:void 0},c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(hz,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",vz,Tz]}};vz=class vz extends Rz{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=WD.UNSPECIFIED,c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(vz,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",WD]}};Tz=class Tz extends Rz{constructor(Z){super();this.error="",c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(Tz,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};Y9=class Y9 extends Rz{constructor(Z){super();c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y9().fromBinary(Z,$)}static fromJson(Z,$){return new Y9().fromJson(Z,$)}static fromJsonString(Z,$){return new Y9().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(Y9,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",Cz,hz]}}});import{Message as Go,proto3 as UW}from"@bufbuild/protobuf";var Nh="agent.v1.",FD,X9;var GD=U(()=>{k();FD=class FD extends G{static get runtime(){return B(this,"runtime",UW)}static $p(){return Nh}};X9=class X9 extends FD{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],this.argumentHint="",this.disableUserInvocation=!1,UW.util.initPartial(Z,this)}static fromBinary(Z,$){return new X9().fromBinary(Z,$)}static fromJson(Z,$){return new X9().fromJson(Z,$)}static fromJsonString(Z,$){return new X9().fromJsonString(Z,$)}static equals(Z,$){return UW.util.equals(X9,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*|15 argument_hint 9|16 disable_user_invocation 8"]}}});import{Message as Uo,proto3 as O,protoInt64 as DD}from"@bufbuild/protobuf";var wD="agent.v1.",M,LD,yz,mz,jz,z9,_z,Sz,gz,bz,dz,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,oz,ez,ZK,$K,JK,YK,XK,zK,KK,HK,QK,qK,WK,NK,BK,FK,GK,DK,LK,wK,UK,IK,OK,kK,EK,K9,fK,VK,PK,AK,xK,MK,CK,hK,vK;var UD=U(()=>{C6();XW();JW();GD();k();M=class M extends G{static get runtime(){return B(this,"runtime",O)}static $p(){return wD}};LD=L(O,wD,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);yz=class yz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(yz,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",mz,z9,jz]}};mz=class mz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(mz,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};jz=class jz extends M{constructor(Z){super();this.width=0,this.height=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(jz,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};z9=class z9 extends M{constructor(Z){super();this.uploadId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new z9().fromBinary(Z,$)}static fromJson(Z,$){return new z9().fromJson(Z,$)}static fromJsonString(Z,$){return new z9().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(z9,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};_z=class _z extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(_z,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",Sz,z9]}};Sz=class Sz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(Sz,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};gz=class gz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(gz,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",bz,dz]}};bz=class bz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(bz,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};dz=class dz extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=DD.zero,this.refreshAfterUnixMs=DD.zero,this.conversationId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(dz,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};cz=class cz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(cz,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};uz=class uz extends M{constructor(Z){super();this.content="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(uz,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};lz=class lz extends M{constructor(Z){super();this.content="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(lz,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",i8]}};pz=class pz extends M{constructor(Z){super();this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(pz,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};iz=class iz extends M{constructor(Z){super();this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(iz,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",i8]}};nz=class nz extends M{constructor(Z){super();this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(nz,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",E8]}};az=class az extends M{constructor(Z){super();this.url="",this.uuid="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(az,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};rz=class rz extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(rz,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",T8]}};sz=class sz extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(sz,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};tz=class tz extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(tz,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};oz=class oz extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(oz,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};ez=class ez extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(ez,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};ZK=class ZK extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(ZK,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};$K=class $K extends M{constructor(Z){super();this.pluginId="",this.capabilityType=LD.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals($K,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",LD]}};JK=class JK extends M{constructor(Z){super();this.name="",this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(JK,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",$K]}};YK=class YK extends M{constructor(Z){super();this.docId="",this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(YK,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};XK=class XK extends M{constructor(Z){super();this.agentId="",this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(XK,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};zK=class zK extends M{constructor(Z){super();this.name="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(zK,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};KK=class KK extends M{constructor(Z){super();this.recentAgents=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(KK,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",zK]}};HK=class HK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(HK,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};QK=class QK extends M{constructor(Z){super();this.callFrames=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(QK,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",HK]}};qK=class qK extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(qK,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",QK]}};WK=class WK extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(WK,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};NK=class NK extends M{constructor(Z){super();this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(NK,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};BK=class BK extends M{constructor(Z){super();this.browserId="",this.url="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(BK,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};FK=class FK extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(FK,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",DK]}};GK=class GK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(GK,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};DK=class DK extends M{constructor(Z){super();this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(DK,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};LK=class LK extends M{constructor(Z){super();this.filesToPush=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(LK,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};wK=class wK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(wK,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};UK=class UK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(UK,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};IK=class IK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(IK,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};OK=class OK extends M{constructor(Z){super();this.remoteBranch="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new OK().fromBinary(Z,$)}static fromJson(Z,$){return new OK().fromJson(Z,$)}static fromJsonString(Z,$){return new OK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(OK,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};kK=class kK extends M{constructor(Z){super();this.params={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new kK().fromBinary(Z,$)}static fromJson(Z,$){return new kK().fromJson(Z,$)}static fromJsonString(Z,$){return new kK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(kK,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",FK,LK,wK,UK,OK,IK,GK,EK]}};EK=class EK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new EK().fromBinary(Z,$)}static fromJson(Z,$){return new EK().fromJson(Z,$)}static fromJsonString(Z,$){return new EK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(EK,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};K9=class K9 extends M{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new K9().fromBinary(Z,$)}static fromJson(Z,$){return new K9().fromJson(Z,$)}static fromJsonString(Z,$){return new K9().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(K9,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",yz,fK,cz,uz,lz,pz,iz,nz,az,rz,sz,tz,JK,YK,WK,qK,oz,XK,ZK,ez,NK,gz,BK,_z,X9,KK,kK]}};fK=class fK extends M{constructor(Z){super();this.data={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new fK().fromBinary(Z,$)}static fromJson(Z,$){return new fK().fromJson(Z,$)}static fromJsonString(Z,$){return new fK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(fK,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",VK,AK,MK,PK]}};VK=class VK extends M{constructor(Z){super();this.thread="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new VK().fromBinary(Z,$)}static fromJson(Z,$){return new VK().fromJson(Z,$)}static fromJsonString(Z,$){return new VK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(VK,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?|9 message_permalink 9?"]}};PK=class PK extends M{constructor(Z){super();this.thread="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new PK().fromBinary(Z,$)}static fromJson(Z,$){return new PK().fromJson(Z,$)}static fromJsonString(Z,$){return new PK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(PK,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};AK=class AK extends M{constructor(Z){super();this.title="",this.description="",this.comments="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new AK().fromBinary(Z,$)}static fromJson(Z,$){return new AK().fromJson(Z,$)}static fromJsonString(Z,$){return new AK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(AK,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?|5 code_tour_view #0?",xK]}};xK=class xK extends M{constructor(Z){super();this.headSha="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new xK().fromBinary(Z,$)}static fromJson(Z,$){return new xK().fromJson(Z,$)}static fromJsonString(Z,$){return new xK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(xK,Z,$)}static $(){return["InvocationContext.GithubPR.CodeTourView|1 head_sha 9|2 current_revision_id 9?|3 visible_section_id 9?|4 visible_step_id 9?|5 path_scope_prefix 9?"]}};MK=class MK extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new MK().fromBinary(Z,$)}static fromJson(Z,$){return new MK().fromJson(Z,$)}static fromJsonString(Z,$){return new MK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(MK,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",CK,vK]}};CK=class CK extends M{constructor(Z){super();this.path="",this.totalLines=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new CK().fromBinary(Z,$)}static fromJson(Z,$){return new CK().fromJson(Z,$)}static fromJsonString(Z,$){return new CK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(CK,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",hK]}};hK=class hK extends M{constructor(Z){super();this.line=0,this.text="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new hK().fromBinary(Z,$)}static fromJson(Z,$){return new hK().fromJson(Z,$)}static fromJsonString(Z,$){return new hK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(hK,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};vK=class vK extends M{constructor(Z){super();this.number=0,this.url="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new vK().fromBinary(Z,$)}static fromJson(Z,$){return new vK().fromJson(Z,$)}static fromJsonString(Z,$){return new vK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(vK,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as So,proto3 as N,protoInt64 as pQ}from"@bufbuild/protobuf";var M8="agent.v1.",P,BQ,ID,OD,kD,Bh,Fh,Gh,TK,H9,RK,yK,mK,jK,_K,SK,gK,bK,dK,cK,uK,lK,pK,iK,Q9,nK,aK,rK,sK,tK,S8,oK,eK,ZH,$H,JH,YH,XH,zH,KH,HH,QH,qH,WH,W6,NH,BH,ED,FH,GH,N6,B6,g8,DH,q9,LH,W9,F6,wH,UH,G6,IH,D6,OH,kH,EH,fH,VH,PH,N9,AH,xH,MH,CH,L6,w6,B9,U6,hH,vH,j0,TH,fD,RH,yH,mH;var iQ=U(()=>{HF();IF();EF();fF();AF();CF();dQ();TF();yF();jF();_F();dF();cF();uF();lF();nF();aF();tF();oF();eF();YG();HG();WG();NG();BG();FG();GG();DG();UG();IG();fG();VG();PG();AG();xG();MG();CG();hG();RG();yG();mG();jG();_G();SG();bG();dG();cG();uG();lG();pG();iG();nG();oG();ZD();YD();KD();HD();QD();qD();BD();BF();UD();k();P=class P extends G{static get runtime(){return B(this,"runtime",N)}static $p(){return M8}};BQ=L(N,M8,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),ID=L(N,M8,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),OD=L(N,M8,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"],[4,"CREATE_PROJECT"]],1),kD=L(N,M8,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),Bh=L(N,M8,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),Fh=L(N,M8,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1),Gh=L(N,M8,"ReplyAudience",[[0,"UNSPECIFIED"],[1,"USER"],[2,"AGENT"]],1);TK=class TK extends P{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=tq.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=M6.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new TK().fromBinary(Z,$)}static fromJson(Z,$){return new TK().fromJson(Z,$)}static fromJsonString(Z,$){return new TK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(TK,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",p8,tq,M6,H9]}};H9=class H9 extends P{constructor(Z){super();this.machine={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new H9().fromBinary(Z,$)}static fromJson(Z,$){return new H9().fromJson(Z,$)}static fromJsonString(Z,$){return new H9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(H9,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",RK,yK,mK,jK]}};RK=class RK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new RK().fromBinary(Z,$)}static fromJson(Z,$){return new RK().fromJson(Z,$)}static fromJsonString(Z,$){return new RK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(RK,Z,$)}static $(){return["SameMachineTarget"]}};yK=class yK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new yK().fromBinary(Z,$)}static fromJson(Z,$){return new yK().fromJson(Z,$)}static fromJsonString(Z,$){return new yK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(yK,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};mK=class mK extends P{constructor(Z){super();this.workerId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new mK().fromBinary(Z,$)}static fromJson(Z,$){return new mK().fromJson(Z,$)}static fromJsonString(Z,$){return new mK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(mK,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};jK=class jK extends P{constructor(Z){super();this.labels=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new jK().fromBinary(Z,$)}static fromJson(Z,$){return new jK().fromJson(Z,$)}static fromJsonString(Z,$){return new jK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(jK,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",_K]}};_K=class _K extends P{constructor(Z){super();this.key="",this.value="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new _K().fromBinary(Z,$)}static fromJson(Z,$){return new _K().fromJson(Z,$)}static fromJsonString(Z,$){return new _K().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(_K,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};SK=class SK extends P{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=sq.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new SK().fromBinary(Z,$)}static fromJson(Z,$){return new SK().fromJson(Z,$)}static fromJsonString(Z,$){return new SK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(SK,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",S8,sq]}};gK=class gK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new gK().fromBinary(Z,$)}static fromJson(Z,$){return new gK().fromJson(Z,$)}static fromJsonString(Z,$){return new gK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(gK,Z,$)}static $(){return["TaskError|1 error 9"]}};bK=class bK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new bK().fromBinary(Z,$)}static fromJson(Z,$){return new bK().fromJson(Z,$)}static fromJsonString(Z,$){return new bK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(bK,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",SK,gK]}};dK=class dK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new dK().fromBinary(Z,$)}static fromJson(Z,$){return new dK().fromJson(Z,$)}static fromJsonString(Z,$){return new dK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(dK,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",TK,bK]}};cK=class cK extends P{constructor(Z){super();this.path="",this.branchName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new cK().fromBinary(Z,$)}static fromJson(Z,$){return new cK().fromJson(Z,$)}static fromJsonString(Z,$){return new cK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(cK,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};uK=class uK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new uK().fromBinary(Z,$)}static fromJson(Z,$){return new uK().fromJson(Z,$)}static fromJsonString(Z,$){return new uK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(uK,Z,$)}static $(){return["SetActiveBranchSuccess"]}};lK=class lK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new lK().fromBinary(Z,$)}static fromJson(Z,$){return new lK().fromJson(Z,$)}static fromJsonString(Z,$){return new lK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(lK,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};pK=class pK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new pK().fromBinary(Z,$)}static fromJson(Z,$){return new pK().fromJson(Z,$)}static fromJsonString(Z,$){return new pK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(pK,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",uK,lK]}};iK=class iK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new iK().fromBinary(Z,$)}static fromJson(Z,$){return new iK().fromJson(Z,$)}static fromJsonString(Z,$){return new iK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(iK,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",cK,pK]}};Q9=class Q9 extends P{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q9().fromBinary(Z,$)}static fromJson(Z,$){return new Q9().fromJson(Z,$)}static fromJsonString(Z,$){return new Q9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Q9,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|51 replace_env_tool_call #42 tool|52 edit_pr_labels_tool_call #43 tool|53 record_ci_investigation_findings_tool_call #44 tool|55 send_message_tool_call #45 tool|56 fetch_cloud_agent_data_tool_call #46 tool|58 send_to_user_tool_call #47 tool|61 pi_read_tool_call #48 tool|62 pi_bash_tool_call #49 tool|63 pi_edit_tool_call #50 tool|64 pi_write_tool_call #51 tool|65 pi_grep_tool_call #52 tool|66 pi_find_tool_call #53 tool|67 pi_ls_tool_call #54 tool|68 connect_scm_tool_call #55 tool|69 search_conversations_tool_call #56 tool|70 create_goal_tool_call #57 tool|71 update_goal_tool_call #58 tool|73 get_agent_status_tool_call #59 tool|74 send_to_agent_tool_call #60 tool|75 read_agent_transcript_tool_call #61 tool|76 create_agent_tool_call #62 tool|77 stop_agent_tool_call #63 tool|79 write_canvas_tool_call #64 tool|80 read_canvas_tool_call #65 tool|81 generate_video_tool_call #66 tool|82 x_search_tool_call #67 tool|83 get_origin_pr_code_tour_tool_call #68 tool|84 update_origin_pr_code_tour_tool_call #69 tool|85 list_tracked_tasks_tool_call #70 tool|86 create_tracked_tasks_tool_call #71 tool|87 update_tracked_tasks_tool_call #72 tool|88 delete_tracked_tasks_tool_call #73 tool|89 update_tracked_task_statuses_tool_call #74 tool|90 create_project_tool_call #75 tool|91 update_tracked_task_tags_tool_call #76 tool|54 hook_additional_contexts #77*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",R6,j6,_6,b6,c6,l6,p6,i6,r6,s6,zZ,NZ,BZ,DZ,dK,wZ,UZ,IZ,EZ,AZ,xZ,CZ,yZ,jZ,gZ,bZ,cZ,tK,uZ,lZ,pZ,aZ,sZ,tZ,oZ,J$,Y$,X$,z$,iK,K$,H$,q$,W$,N$,B$,F$,G$,D$,L$,w$,U$,O$,k$,E$,V$,M$,h$,v$,R$,y$,m$,j$,S$,s$,t$,o$,Z9,$9,Y9,l$,p$,i$,n$,a$,_$,r$,a8]}};nK=class nK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new nK().fromBinary(Z,$)}static fromJson(Z,$){return new nK().fromJson(Z,$)}static fromJsonString(Z,$){return new nK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(nK,Z,$)}static $(){return["TruncatedToolCallArgs"]}};aK=class aK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new aK().fromBinary(Z,$)}static fromJson(Z,$){return new aK().fromJson(Z,$)}static fromJsonString(Z,$){return new aK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(aK,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};rK=class rK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new rK().fromBinary(Z,$)}static fromJson(Z,$){return new rK().fromJson(Z,$)}static fromJsonString(Z,$){return new rK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(rK,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};sK=class sK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new sK().fromBinary(Z,$)}static fromJson(Z,$){return new sK().fromJson(Z,$)}static fromJsonString(Z,$){return new sK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(sK,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",aK,rK]}};tK=class tK extends P{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new tK().fromBinary(Z,$)}static fromJson(Z,$){return new tK().fromJson(Z,$)}static fromJsonString(Z,$){return new tK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(tK,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",nK,sK,Q9]}};S8=class S8 extends P{constructor(Z){super();this.message={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new S8().fromBinary(Z,$)}static fromJson(Z,$){return new S8().fromJson(Z,$)}static fromJsonString(Z,$){return new S8().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(S8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",FH,Q9,GH]}};oK=class oK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new oK().fromBinary(Z,$)}static fromJson(Z,$){return new oK().fromJson(Z,$)}static fromJsonString(Z,$){return new oK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(oK,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};eK=class eK extends P{constructor(Z){super();this.parentToolCallId="",this.environment=M6.UNSPECIFIED,this.status=ID.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new eK().fromBinary(Z,$)}static fromJson(Z,$){return new eK().fromJson(Z,$)}static fromJsonString(Z,$){return new eK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(eK,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",M6,ID,KF]}};ZH=class ZH extends P{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=OD.UNSPECIFIED,this.backgrounded=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZH().fromBinary(Z,$)}static fromJson(Z,$){return new ZH().fromJson(Z,$)}static fromJsonString(Z,$){return new ZH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(ZH,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",OD]}};$H=class $H extends P{constructor(Z){super();this.id="",this.label="",this.source=kD.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $H().fromBinary(Z,$)}static fromJson(Z,$){return new $H().fromJson(Z,$)}static fromJsonString(Z,$){return new $H().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($H,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",kD]}};JH=class JH extends P{constructor(Z){super();this.id="",this.label="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new JH().fromBinary(Z,$)}static fromJson(Z,$){return new JH().fromJson(Z,$)}static fromJsonString(Z,$){return new JH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(JH,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};YH=class YH extends P{constructor(Z){super();this.nextMode=BQ.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new YH().fromBinary(Z,$)}static fromJson(Z,$){return new YH().fromJson(Z,$)}static fromJsonString(Z,$){return new YH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(YH,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",BQ,JH]}};XH=class XH extends P{constructor(Z){super();this.intent={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new XH().fromBinary(Z,$)}static fromJson(Z,$){return new XH().fromJson(Z,$)}static fromJsonString(Z,$){return new XH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(XH,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",$H,YH]}};zH=class zH extends P{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new zH().fromBinary(Z,$)}static fromJson(Z,$){return new zH().fromJson(Z,$)}static fromJsonString(Z,$){return new zH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(zH,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",yH]}};KH=class KH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new KH().fromBinary(Z,$)}static fromJson(Z,$){return new KH().fromJson(Z,$)}static fromJsonString(Z,$){return new KH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(KH,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};HH=class HH extends P{constructor(Z){super();this.planId="",this.planTitle="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new HH().fromBinary(Z,$)}static fromJson(Z,$){return new HH().fromJson(Z,$)}static fromJsonString(Z,$){return new HH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(HH,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};QH=class QH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new QH().fromBinary(Z,$)}static fromJson(Z,$){return new QH().fromJson(Z,$)}static fromJsonString(Z,$){return new QH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(QH,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",qH,WH]}};qH=class qH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new qH().fromBinary(Z,$)}static fromJson(Z,$){return new qH().fromJson(Z,$)}static fromJsonString(Z,$){return new qH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(qH,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};WH=class WH extends P{constructor(Z){super();this.storeDir="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new WH().fromBinary(Z,$)}static fromJson(Z,$){return new WH().fromJson(Z,$)}static fromJsonString(Z,$){return new WH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(WH,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};W6=class W6 extends P{constructor(Z){super();this.text="",this.messageId="",this.mode=BQ.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new W6().fromBinary(Z,$)}static fromJson(Z,$){return new W6().fromJson(Z,$)}static fromJsonString(Z,$){return new W6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(W6,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?|29 sender #9?|30 forked_context 9?|31 reply_to 9?|32 reply_audience #10?|33 reply_to_tool_call_id 9?|34 during_voice_call 8?|35 inherits_voice_call 8?|36 voice_calls_read_utterances 8?|37 summarized_tool_call_id 9?",K9,BQ,Bh,oK,HH,NH,a8,XH,QH,BH,Gh]}};NH=class NH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new NH().fromBinary(Z,$)}static fromJson(Z,$){return new NH().fromJson(Z,$)}static fromJsonString(Z,$){return new NH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(NH,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?|8 tool_call_id 9?",Fh,KH,zH]}};BH=class BH extends P{constructor(Z){super();this.kind=ED.UNSPECIFIED,this.id="",this.displayName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new BH().fromBinary(Z,$)}static fromJson(Z,$){return new BH().fromJson(Z,$)}static fromJsonString(Z,$){return new BH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(BH,Z,$)}static $(){return["MessageSender|1 kind #0|2 id 9|3 display_name 9",ED]}};ED=L(N,M8,"MessageSender.Kind",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"VOICE_CALL"],[3,"MAIN_BOT"],[4,"PROJECT"]],1);FH=class FH extends P{constructor(Z){super();this.text="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new FH().fromBinary(Z,$)}static fromJson(Z,$){return new FH().fromJson(Z,$)}static fromJsonString(Z,$){return new FH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(FH,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};GH=class GH extends P{constructor(Z){super();this.text="",this.durationMs=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new GH().fromBinary(Z,$)}static fromJson(Z,$){return new GH().fromJson(Z,$)}static fromJsonString(Z,$){return new GH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(GH,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};N6=class N6 extends P{constructor(Z){super();this.command="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N6().fromBinary(Z,$)}static fromJson(Z,$){return new N6().fromJson(Z,$)}static fromJsonString(Z,$){return new N6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};B6=class B6 extends P{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B6().fromBinary(Z,$)}static fromJson(Z,$){return new B6().fromJson(Z,$)}static fromJsonString(Z,$){return new B6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};g8=class g8 extends P{constructor(Z){super();this.turn={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new g8().fromBinary(Z,$)}static fromJson(Z,$){return new g8().fromJson(Z,$)}static fromJsonString(Z,$){return new g8().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(g8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",F6,G6]}};DH=class DH extends P{constructor(Z){super();this.plan="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new DH().fromBinary(Z,$)}static fromJson(Z,$){return new DH().fromJson(Z,$)}static fromJsonString(Z,$){return new DH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(DH,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};q9=class q9 extends P{constructor(Z){super();this.id="",this.path="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new q9().fromBinary(Z,$)}static fromJson(Z,$){return new q9().fromJson(Z,$)}static fromJsonString(Z,$){return new q9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(q9,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};LH=class LH extends P{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=T$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new LH().fromBinary(Z,$)}static fromJson(Z,$){return new LH().fromJson(Z,$)}static fromJsonString(Z,$){return new LH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(LH,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?|11 context_tokens_added 3?",T$]}};W9=class W9 extends P{constructor(Z){super();this.turn={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new W9().fromBinary(Z,$)}static fromJson(Z,$){return new W9().fromJson(Z,$)}static fromJsonString(Z,$){return new W9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(W9,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",wH,IH]}};F6=class F6 extends P{constructor(Z){super();this.steps=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new F6().fromBinary(Z,$)}static fromJson(Z,$){return new F6().fromJson(Z,$)}static fromJsonString(Z,$){return new F6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(F6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",W6,S8]}};wH=class wH extends P{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,this.assistantTextStepIndices=[],this.appSecretsRequestStepIndices=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new wH().fromBinary(Z,$)}static fromJson(Z,$){return new wH().fromJson(Z,$)}static fromJsonString(Z,$){return new wH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(wH,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8|13 assistant_text_step_indices 13*|14 assistant_text_steps_recorded 8?|15 app_secrets_request_step_indices 13*",ZH,UH]}};UH=class UH extends P{constructor(Z){super();this.remainingDelayCalls=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new UH().fromBinary(Z,$)}static fromJson(Z,$){return new UH().fromJson(Z,$)}static fromJsonString(Z,$){return new UH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(UH,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};G6=class G6 extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new G6().fromBinary(Z,$)}static fromJson(Z,$){return new G6().fromJson(Z,$)}static fromJsonString(Z,$){return new G6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(G6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",N6,B6]}};IH=class IH extends P{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),N.util.initPartial(Z,this)}static fromBinary(Z,$){return new IH().fromBinary(Z,$)}static fromJson(Z,$){return new IH().fromJson(Z,$)}static fromJsonString(Z,$){return new IH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(IH,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};D6=class D6 extends P{constructor(Z){super();this.summary="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new D6().fromBinary(Z,$)}static fromJson(Z,$){return new D6().fromJson(Z,$)}static fromJsonString(Z,$){return new D6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(D6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};OH=class OH extends P{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),N.util.initPartial(Z,this)}static fromBinary(Z,$){return new OH().fromBinary(Z,$)}static fromJson(Z,$){return new OH().fromJson(Z,$)}static fromJsonString(Z,$){return new OH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(OH,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};kH=class kH extends P{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new kH().fromBinary(Z,$)}static fromJson(Z,$){return new kH().fromJson(Z,$)}static fromJsonString(Z,$){return new kH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(kH,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};EH=class EH extends P{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new EH().fromBinary(Z,$)}static fromJson(Z,$){return new EH().fromJson(Z,$)}static fromJsonString(Z,$){return new EH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(EH,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",kH]}};fH=class fH extends P{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new fH().fromBinary(Z,$)}static fromJson(Z,$){return new fH().fromJson(Z,$)}static fromJsonString(Z,$){return new fH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(fH,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};VH=class VH extends P{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new VH().fromBinary(Z,$)}static fromJson(Z,$){return new VH().fromJson(Z,$)}static fromJsonString(Z,$){return new VH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(VH,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",fH]}};PH=class PH extends P{constructor(Z){super();this.schemaVersion=0,this.nodes=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new PH().fromBinary(Z,$)}static fromJson(Z,$){return new PH().fromJson(Z,$)}static fromJsonString(Z,$){return new PH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(PH,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",VH]}};N9=class N9 extends P{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N9,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?",EH,PH]}};AH=class AH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new AH().fromBinary(Z,$)}static fromJson(Z,$){return new AH().fromJson(Z,$)}static fromJsonString(Z,$){return new AH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(AH,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};xH=class xH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new xH().fromBinary(Z,$)}static fromJson(Z,$){return new xH().fromJson(Z,$)}static fromJsonString(Z,$){return new xH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(xH,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};MH=class MH extends P{constructor(Z){super();this.durationMs=pQ.zero,this.timestampMs=pQ.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new MH().fromBinary(Z,$)}static fromJson(Z,$){return new MH().fromJson(Z,$)}static fromJsonString(Z,$){return new MH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(MH,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};CH=class CH extends P{constructor(Z){super();this.completedTurnCountCapped=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new CH().fromBinary(Z,$)}static fromJson(Z,$){return new CH().fromJson(Z,$)}static fromJsonString(Z,$){return new CH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(CH,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};L6=class L6 extends P{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new L6().fromBinary(Z,$)}static fromJson(Z,$){return new L6().fromJson(Z,$)}static fromJsonString(Z,$){return new L6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(L6,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",g8,B0,N9,D6,DH,OH,AH,q9,w6,B9]}};w6=class w6 extends P{constructor(Z){super();this.step="",this.messageIndex=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new w6().fromBinary(Z,$)}static fromJson(Z,$){return new w6().fromJson(Z,$)}static fromJsonString(Z,$){return new w6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(w6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};B9=class B9 extends P{constructor(Z){super();this.history=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B9,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",w6]}};U6=class U6 extends P{constructor(Z){super();this.createdTimestampMs=pQ.zero,this.lastUsedTimestampMs=pQ.zero,this.environment=M6.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U6().fromBinary(Z,$)}static fromJson(Z,$){return new U6().fromJson(Z,$)}static fromJsonString(Z,$){return new U6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U6,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",j0,p8,M6,hH,H9]}};hH=class hH extends P{constructor(Z){super();this.bcId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new hH().fromBinary(Z,$)}static fromJson(Z,$){return new hH().fromJson(Z,$)}static fromJsonString(Z,$){return new hH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(hH,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};vH=class vH extends P{constructor(Z){super();this.repoPath="",this.branchName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new vH().fromBinary(Z,$)}static fromJson(Z,$){return new vH().fromJson(Z,$)}static fromJsonString(Z,$){return new vH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(vH,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};j0=class j0 extends P{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],this.mentionedAgentIds=[],this.voiceCallUtterances=[],this.voiceCallTimeTaskIds=[],this.writesVoiceCallUtterances=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j0().fromBinary(Z,$)}static fromJson(Z,$){return new j0().fromJson(Z,$)}static fromJsonString(Z,$){return new j0().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?|42 mentioned_agent_ids 9*|43 voice_call_utterances #12*|44 voice_call_pending_answer #13?|45 voice_call_time_task_ids 9*|46 writes_voice_call_utterances 8|47 voice_calls_read_utterances 8?",N9,BQ,xH,MH,U6,q9,vH,w6,B9,eK,LH,CH,TH,RH]}};TH=class TH extends P{constructor(Z){super();this.id="",this.kind=fD.UNSPECIFIED,this.text="",this.answersMessageIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new TH().fromBinary(Z,$)}static fromJson(Z,$){return new TH().fromJson(Z,$)}static fromJsonString(Z,$){return new TH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(TH,Z,$)}static $(){return["VoiceCallUtterance|1 id 9|2 kind #0|3 text 9|4 answers_message_ids 9*",fD]}};fD=L(N,M8,"VoiceCallUtterance.Kind",[[0,"UNSPECIFIED"],[1,"SEND"],[2,"TERMINAL"]],1);RH=class RH extends P{constructor(Z){super();this.messageIds=[],this.readsUtterances=!1,this.endedOnSend=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new RH().fromBinary(Z,$)}static fromJson(Z,$){return new RH().fromJson(Z,$)}static fromJsonString(Z,$){return new RH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(RH,Z,$)}static $(){return["VoiceCallPendingAnswer|1 message_ids 9*|2 reads_utterances 8|3 ended_on_send 8"]}};yH=class yH extends P{constructor(Z){super();this.id=0,this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new yH().fromBinary(Z,$)}static fromJson(Z,$){return new yH().fromJson(Z,$)}static fromJsonString(Z,$){return new yH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(yH,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",LZ,mH,MZ,GZ,Z6,iZ,$6,eZ,hZ,Y6,P$]}};mH=class mH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new mH().fromBinary(Z,$)}static fromJson(Z,$){return new mH().fromJson(Z,$)}static fromJsonString(Z,$){return new mH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(mH,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",o8]}}});class jH{}var I=q((_D)=>{Object.defineProperty(_D,"__esModule",{value:!0});_D.createNotification=_D.nextNotification=_D.errorNotification=_D.COMPLETE_NOTIFICATION=_D.isObservable=_D.isArrayLike=_D.isPromise=_D.readableStreamLikeToAsyncGenerator=_D.isFunction=_D.getObservableInputType=_D.ObservableInputType=_D.subscribeToArray=_D.fromPromise=_D.fromArrayLike=_D.from=_D.reportUnhandledError=_D.Observable=_D.operate=_D.config=_D.Subscriber=_D.Subscription=_D.UnsubscriptionError=void 0;class FQ extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
2
|
+
var _M=Object.create;var{getPrototypeOf:SM,defineProperty:tq,getOwnPropertyNames:gM}=Object;var bM=Object.prototype.hasOwnProperty;var zF=(Z,$,J)=>{J=Z!=null?_M(SM(Z)):{};let Y=$||!Z||!Z.__esModule?tq(J,"default",{value:Z,enumerable:!0}):J;for(let X of gM(Z))if(!bM.call(Y,X))tq(Y,X,{get:()=>Z[X],enumerable:!0});return Y};var q=(Z,$)=>()=>($||Z(($={exports:{}}).exports,$),$.exports);var x6=(Z,$)=>{for(var J in $)tq(Z,J,{get:$[J],enumerable:!0,configurable:!0,set:(Y)=>$[J]=()=>Y})};var U=(Z,$)=>()=>(Z&&($=Z(Z=0)),$);import{Message as cM}from"@bufbuild/protobuf";function B(Z,$,J){return Object.defineProperty(Z,$,{value:J,writable:!0,enumerable:!0,configurable:!0}),J}function KF(Z,$,J){if(J.charAt(0)!=="#")return{kind:"scalar",T:Number(J)};let Y=$[Number(J.slice(1))];return typeof Y==="function"?{kind:"message",T:Y}:{kind:"enum",T:Z.getEnumType(Y)}}function uM(Z){if(Z==="?")return{opt:!0};if(Z==="*")return{repeated:!0};return Z===void 0?dM:{oneof:Z}}function lM(Z,$){let[J,...Y]=$,X=J.split("|"),z=[];for(let K=1;K<X.length;K++){let Q=X[K].split(" "),W=Number(Q[0]),L=Q[1],D=Q[2],f=Q[3],V=D.charAt(D.length-1);if(V==="?"||V==="*")f=V,D=D.slice(0,-1);let A=D.indexOf(",");if(A!==-1){z.push({no:W,name:L,kind:"map",K:Number(D.slice(0,A)),V:KF(Z,Y,D.slice(A+1))});continue}z.push(Object.assign({no:W,name:L},KF(Z,Y,D),uM(f)))}return z}function pM(Z){let $=Z[0],J=$.indexOf("|");return J===-1?$:$.slice(0,J)}function iM(Z){return typeof Reflect.get(Z,"$")==="function"&&typeof Reflect.get(Z,"$p")==="function"}function HF(Z){if(!iM(Z))throw TypeError(`${Z.name} has no compact message descriptor`);return Z}function nM(Z,$){let J=(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,(X)=>"_"+X)).toLowerCase()+"_",Y=[];for(let X of $){if(!X.toLowerCase().startsWith(J))return $.slice();let z=X.slice(J.length);if(z===""||/^[0-9]/.test(z))return $.slice();Y.push(z)}return Y}function aM(Z){return(Z.charAt(0)+Z.slice(1).replace(/[A-Z]/g,($)=>"_"+$)).toUpperCase()+"_"}function w(Z,$,J,Y,X){let z=J.slice(J.lastIndexOf(".")+1),K,Q;if(X===1){let D=aM(z);Q=Y.map((f)=>f[1]),K=Q.map((f)=>D+f)}else K=Y.map((D)=>D[1]),Q=X===void 0?nM(z,K):X;let W={},L=[];for(let D=0;D<Y.length;D++){let f=Y[D][0];W[Q[D]]=f,W[f]=Q[D],L.push({no:f,name:K[D]})}return Z.util.setEnumType(W,$+J,L),W}var dM,G;var k=U(()=>{dM={};G=class G extends cM{static get typeName(){let Z=HF(this);return B(Z,"typeName",Z.$p()+pM(Z.$()))}static get fields(){let Z=HF(this),$=Z.$(),J=Z.runtime,Y=()=>lM(J,$);return B(Z,"fields",J.util.newFieldList(Y))}}});import{Message as Qi,proto3 as m}from"@bufbuild/protobuf";var zQ="agent.v1.",P0,M6,oq,QF,eq,i8,f9,V9,P9,A9,x9,M9,C9,h9,v9,T9,R9,y9;var qF=U(()=>{k();P0=class P0 extends G{static get runtime(){return B(this,"runtime",m)}static $p(){return zQ}};M6=w(m,zQ,"SubagentExecutionEnvironment",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD"]],1),oq=w(m,zQ,"SubagentBackgroundReason",[[0,"UNSPECIFIED"],[1,"AGENT_REQUEST"],[2,"USER_REQUEST"],[3,"QUEUED_FOLLOW_UP"]],1),QF=w(m,zQ,"BackgroundTaskCompletionReason",[[0,"UNSPECIFIED"],[1,"TASK_FINISHED"],[2,"TASK_PROGRESS"],[3,"WORKER_REPARENTED"],[4,"WORKER_MESSAGE"],[5,"WORKER_NEEDS_ATTENTION"],[6,"PROJECT_SESSION_MESSAGE"]],1),eq=w(m,zQ,"TaskMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"PLAN"]],1);i8=class i8 extends P0{constructor(Z){super();this.type={case:void 0},m.util.initPartial(Z,this)}static fromBinary(Z,$){return new i8().fromBinary(Z,$)}static fromJson(Z,$){return new i8().fromJson(Z,$)}static fromJsonString(Z,$){return new i8().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(i8,Z,$)}static $(){return["SubagentType|1 unspecified #0 type|2 computer_use #1 type|3 custom #2 type|4 explore #3 type|5 media_review #4 type|6 bash #5 type|7 browser_use #6 type|8 shell #7 type|9 vm_setup_helper #8 type|10 debug #9 type|11 cursor_guide #10 type|12 watch_video #11 type",f9,V9,y9,P9,A9,x9,C9,M9,h9,v9,T9,R9]}};f9=class f9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new f9().fromBinary(Z,$)}static fromJson(Z,$){return new f9().fromJson(Z,$)}static fromJsonString(Z,$){return new f9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(f9,Z,$)}static $(){return["SubagentTypeUnspecified"]}};V9=class V9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new V9().fromBinary(Z,$)}static fromJson(Z,$){return new V9().fromJson(Z,$)}static fromJsonString(Z,$){return new V9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(V9,Z,$)}static $(){return["SubagentTypeComputerUse"]}};P9=class P9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new P9().fromBinary(Z,$)}static fromJson(Z,$){return new P9().fromJson(Z,$)}static fromJsonString(Z,$){return new P9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(P9,Z,$)}static $(){return["SubagentTypeExplore"]}};A9=class A9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new A9().fromBinary(Z,$)}static fromJson(Z,$){return new A9().fromJson(Z,$)}static fromJsonString(Z,$){return new A9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(A9,Z,$)}static $(){return["SubagentTypeMediaReview"]}};x9=class x9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new x9().fromBinary(Z,$)}static fromJson(Z,$){return new x9().fromJson(Z,$)}static fromJsonString(Z,$){return new x9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(x9,Z,$)}static $(){return["SubagentTypeBash"]}};M9=class M9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new M9().fromBinary(Z,$)}static fromJson(Z,$){return new M9().fromJson(Z,$)}static fromJsonString(Z,$){return new M9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(M9,Z,$)}static $(){return["SubagentTypeShell"]}};C9=class C9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new C9().fromBinary(Z,$)}static fromJson(Z,$){return new C9().fromJson(Z,$)}static fromJsonString(Z,$){return new C9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(C9,Z,$)}static $(){return["SubagentTypeBrowserUse"]}};h9=class h9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new h9().fromBinary(Z,$)}static fromJson(Z,$){return new h9().fromJson(Z,$)}static fromJsonString(Z,$){return new h9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(h9,Z,$)}static $(){return["SubagentTypeVmSetupHelper"]}};v9=class v9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new v9().fromBinary(Z,$)}static fromJson(Z,$){return new v9().fromJson(Z,$)}static fromJsonString(Z,$){return new v9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(v9,Z,$)}static $(){return["SubagentTypeDebug"]}};T9=class T9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new T9().fromBinary(Z,$)}static fromJson(Z,$){return new T9().fromJson(Z,$)}static fromJsonString(Z,$){return new T9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(T9,Z,$)}static $(){return["SubagentTypeCursorGuide"]}};R9=class R9 extends P0{constructor(Z){super();m.util.initPartial(Z,this)}static fromBinary(Z,$){return new R9().fromBinary(Z,$)}static fromJson(Z,$){return new R9().fromJson(Z,$)}static fromJsonString(Z,$){return new R9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(R9,Z,$)}static $(){return["SubagentTypeWatchVideo"]}};y9=class y9 extends P0{constructor(Z){super();this.name="",m.util.initPartial(Z,this)}static fromBinary(Z,$){return new y9().fromBinary(Z,$)}static fromJson(Z,$){return new y9().fromJson(Z,$)}static fromJsonString(Z,$){return new y9().fromJsonString(Z,$)}static equals(Z,$){return m.util.equals(y9,Z,$)}static $(){return["SubagentTypeCustom|1 name 9"]}}});import{Message as Bi,proto3 as I8}from"@bufbuild/protobuf";var SQ="agent.v1.",gQ,m9,j9,rM,S0,WF,NF;var bQ=U(()=>{k();gQ=class gQ extends G{static get runtime(){return B(this,"runtime",I8)}static $p(){return SQ}};m9=class m9 extends gQ{constructor(Z){super();I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m9().fromBinary(Z,$)}static fromJson(Z,$){return new m9().fromJson(Z,$)}static fromJsonString(Z,$){return new m9().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(m9,Z,$)}static $(){return["NetworkPolicyLoggingConfig|1 decision_log_path 9?|2 log_format 9?"]}};j9=class j9 extends gQ{constructor(Z){super();this.deny=[],this.allow=[],I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j9().fromBinary(Z,$)}static fromJson(Z,$){return new j9().fromJson(Z,$)}static fromJsonString(Z,$){return new j9().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(j9,Z,$)}static $(){return["NetworkPolicy|1 version 13?|2 default_action #0?|3 deny 9*|4 allow 9*|5 logging #1?",rM,m9]}};rM=w(I8,SQ,"NetworkPolicy.DefaultAction",[[0,"UNSPECIFIED"],[1,"ALLOW"],[2,"DENY"]],1);S0=class S0 extends gQ{constructor(Z){super();this.type=WF.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=NF.UNSPECIFIED,this.additionalReadPaths=[],I8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S0().fromBinary(Z,$)}static fromJson(Z,$){return new S0().fromJson(Z,$)}static fromJsonString(Z,$){return new S0().fromJsonString(Z,$)}static equals(Z,$){return I8.util.equals(S0,Z,$)}static $(){return["SandboxPolicy|1 type #0|2 network_access 8?|3 additional_readwrite_paths 9*|4 additional_readonly_paths 9*|5 debug_output_dir 9?|7 disable_tmp_write 8?|8 allowlist_escalated 8?|9 enable_shared_build_cache 8?|10 network_policy #1?|11 network_policy_strict 8?|12 capture_denies 8?|13 skip_statsig_defaults 8?|14 read_boundary #2|15 additional_read_paths 9*",WF,j9,NF]}};WF=w(I8,SQ,"SandboxPolicy.Type",[[0,"UNSPECIFIED"],[1,"INSECURE_NONE"],[2,"WORKSPACE_READWRITE"],[3,"WORKSPACE_READONLY"]],1),NF=w(I8,SQ,"SandboxPolicy.ReadBoundaryMode",[[0,"UNSPECIFIED"],[1,"SYSTEM"],[2,"WORKSPACE"]],1)});import{Message as wi,proto3 as v8,protoInt64 as BF}from"@bufbuild/protobuf";var sM="agent.v1.",KQ,n8,a8,N0,r0;var C6=U(()=>{k();KQ=class KQ extends G{static get runtime(){return B(this,"runtime",v8)}static $p(){return sM}};n8=class n8 extends KQ{constructor(Z){super();v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n8().fromBinary(Z,$)}static fromJson(Z,$){return new n8().fromJson(Z,$)}static fromJsonString(Z,$){return new n8().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(n8,Z,$)}static $(){return["Range|1 start #0|2 end #0",a8]}};a8=class a8 extends KQ{constructor(Z){super();this.line=0,this.column=0,v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new a8().fromBinary(Z,$)}static fromJson(Z,$){return new a8().fromJson(Z,$)}static fromJsonString(Z,$){return new a8().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(a8,Z,$)}static $(){return["Position|1 line 13|2 column 13"]}};N0=class N0 extends KQ{constructor(Z){super();this.filePath="",this.sizeBytes=BF.zero,this.lineCount=BF.zero,v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N0().fromBinary(Z,$)}static fromJson(Z,$){return new N0().fromJson(Z,$)}static fromJsonString(Z,$){return new N0().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(N0,Z,$)}static $(){return["OutputLocation|1 file_path 9|2 size_bytes 3|3 line_count 3"]}};r0=class r0 extends KQ{constructor(Z){super();this.requestId="",this.reason="",v8.util.initPartial(Z,this)}static fromBinary(Z,$){return new r0().fromBinary(Z,$)}static fromJson(Z,$){return new r0().fromJson(Z,$)}static fromJsonString(Z,$){return new r0().fromJsonString(Z,$)}static equals(Z,$){return v8.util.equals(r0,Z,$)}static $(){return["SmartModeApproval|1 request_id 9|2 reason 9"]}}});import{Message as Oi,proto3 as ZW}from"@bufbuild/protobuf";var tM="agent.v1.",FF,r8;var GF=U(()=>{k();FF=class FF extends G{static get runtime(){return B(this,"runtime",ZW)}static $p(){return tM}};r8=class r8 extends FF{constructor(Z){super();this.hookEventName="",this.content="",ZW.util.initPartial(Z,this)}static fromBinary(Z,$){return new r8().fromBinary(Z,$)}static fromJson(Z,$){return new r8().fromJson(Z,$)}static fromJsonString(Z,$){return new r8().fromJsonString(Z,$)}static equals(Z,$){return ZW.util.equals(r8,Z,$)}static $(){return["HookAdditionalContext|1 hook_event_name 9|2 content 9"]}}});import{Message as Vi,proto3 as T,protoInt64 as oM}from"@bufbuild/protobuf";var T6="agent.v1.",$0,LF,eM,ZC,_9,S9,g9,b9,c9,wF,d9,u9,l9,DF,h6,v6,p9,UF,i9,n9,a9,r9,s9,t9;var IF=U(()=>{bQ();C6();k();$0=class $0 extends G{static get runtime(){return B(this,"runtime",T)}static $p(){return T6}};LF=w(T,T6,"TimeoutBehavior",[[0,"UNSPECIFIED"],[1,"CANCEL"],[2,"BACKGROUND"]],1),eM=w(T,T6,"ShellBackgroundReason",[[0,"UNSPECIFIED"],[1,"TIMEOUT"],[2,"USER_REQUEST"]],1),ZC=w(T,T6,"ShellAbortReason",[[0,"UNSPECIFIED"],[1,"USER_ABORT"],[2,"TIMEOUT"]],1);_9=class _9 extends $0{constructor(Z){super();this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new _9().fromBinary(Z,$)}static fromJson(Z,$){return new _9().fromJson(Z,$)}static fromJsonString(Z,$){return new _9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(_9,Z,$)}static $(){return["ShellCommandParsingResult|1 parsing_failed 8|2 executable_commands #0*|3 has_redirects 8|4 has_command_substitution 8|5 all_redirects_are_dev_null 8?|6 redirects #1*",g9,b9]}};S9=class S9 extends $0{constructor(Z){super();this.type="",this.value="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new S9().fromBinary(Z,$)}static fromJson(Z,$){return new S9().fromJson(Z,$)}static fromJsonString(Z,$){return new S9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(S9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommandArg|1 type 9|2 value 9"]}};g9=class g9 extends $0{constructor(Z){super();this.name="",this.args=[],this.fullText="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new g9().fromBinary(Z,$)}static fromJson(Z,$){return new g9().fromJson(Z,$)}static fromJsonString(Z,$){return new g9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(g9,Z,$)}static $(){return["ShellCommandParsingResult.ExecutableCommand|1 name 9|2 args #0*|3 full_text 9",S9]}};b9=class b9 extends $0{constructor(Z){super();this.operator="",this.destinationFds=[],this.targetNodeType="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new b9().fromBinary(Z,$)}static fromJson(Z,$){return new b9().fromJson(Z,$)}static fromJsonString(Z,$){return new b9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(b9,Z,$)}static $(){return["ShellCommandParsingResult.Redirect|1 operator 9|2 destination_fds 13*|3 target_node_type 9|4 target_text 9?"]}};c9=class c9 extends $0{constructor(Z){super();this.commands=[],this.suggestedSandboxMode=wF.UNSPECIFIED,this.classificationFailed=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new c9().fromBinary(Z,$)}static fromJson(Z,$){return new c9().fromJson(Z,$)}static fromJsonString(Z,$){return new c9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(c9,Z,$)}static $(){return["CommandClassifierResult|1 commands #0*|2 suggested_sandbox_mode #1|3 classification_failed 8",d9,wF]}};wF=w(T,T6,"CommandClassifierResult.SuggestedSandboxMode",[[0,"UNSPECIFIED"],[1,"SANDBOX"],[2,"NO_SANDBOX"],[3,"UNDETERMINED"]],1);d9=class d9 extends $0{constructor(Z){super();this.name="",this.arguments=[],this.subcommandTokens=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new d9().fromBinary(Z,$)}static fromJson(Z,$){return new d9().fromJson(Z,$)}static fromJsonString(Z,$){return new d9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(d9,Z,$)}static $(){return["CommandClassifierResult.ClassifiedCommand|1 name 9|2 arguments 9*|3 suggested_allowlist_entry 9?|4 subcommand_tokens 9*"]}};u9=class u9 extends $0{constructor(Z){super();this.pattern="",this.reason="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new u9().fromBinary(Z,$)}static fromJson(Z,$){return new u9().fromJson(Z,$)}static fromJsonString(Z,$){return new u9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(u9,Z,$)}static $(){return["ShellOutputNotificationConfig|1 pattern 9|2 reason 9|3 debounce 1?|4 notification_limit 5?"]}};l9=class l9 extends $0{constructor(Z){super();this.kind=DF.UNSPECIFIED,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new l9().fromBinary(Z,$)}static fromJson(Z,$){return new l9().fromJson(Z,$)}static fromJsonString(Z,$){return new l9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(l9,Z,$)}static $(){return["ShellHookApprovalRequirement|1 kind #0|2 reason 9?",DF]}};DF=w(T,T6,"ShellHookApprovalRequirement.Kind",[[0,"UNSPECIFIED"],[1,"FORCE_PROMPT"]],1);h6=class h6 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeout=0,this.toolCallId="",this.simpleCommands=[],this.hasInputRedirect=!1,this.hasOutputRedirect=!1,this.isBackground=!1,this.skipApproval=!1,this.timeoutBehavior=LF.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],T.util.initPartial(Z,this)}static fromBinary(Z,$){return new h6().fromBinary(Z,$)}static fromJson(Z,$){return new h6().fromJson(Z,$)}static fromJsonString(Z,$){return new h6().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(h6,Z,$)}static $(){return["ShellArgs|1 command 9|2 working_directory 9|3 timeout 5|4 tool_call_id 9|5 simple_commands 9*|6 has_input_redirect 8|7 has_output_redirect 8|8 parsing_result #0|9 requested_sandbox_policy #1?|10 file_output_threshold_bytes 4?|11 is_background 8|12 skip_approval 8|13 timeout_behavior #2|14 hard_timeout 5?|15 description 9?|16 classifier_result #3?|17 close_stdin 8|18 output_notification #4?|19 smart_mode_approval #5?|20 hook_approval_requirement #6?|21 conversation_id 9?|22 admin_command_denylist 9*|23 request_id 9?|24 secret_scope_id 9?",_9,S0,LF,c9,u9,r0,l9]}};v6=class v6 extends $0{constructor(Z){super();this.result={case:void 0},T.util.initPartial(Z,this)}static fromBinary(Z,$){return new v6().fromBinary(Z,$)}static fromJson(Z,$){return new v6().fromJson(Z,$)}static fromJsonString(Z,$){return new v6().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(v6,Z,$)}static $(){return["ShellResult|1 success #0 result|2 failure #1 result|3 timeout #2 result|4 rejected #3 result|5 spawn_error #4 result|7 permission_denied #5 result|101 sandbox_policy #6?|102 is_background 8?|103 terminals_folder 9?|104 pid 13?",i9,n9,a9,r9,t9,s9,S0]}};p9=class p9 extends $0{constructor(Z){super();this.kind=UF.UNSPECIFIED,this.memoryLimitBytes=oM.zero,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new p9().fromBinary(Z,$)}static fromJson(Z,$){return new p9().fromJson(Z,$)}static fromJsonString(Z,$){return new p9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(p9,Z,$)}static $(){return["ShellOomKill|1 kind #0|2 memory_limit_bytes 4",UF]}};UF=w(T,T6,"ShellOomKill.Kind",[[0,"UNSPECIFIED"],[1,"COMMAND_KILLED"],[2,"COMMAND_FAILED"],[3,"UNCONFIRMED"]],1);i9=class i9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new i9().fromBinary(Z,$)}static fromJson(Z,$){return new i9().fromJson(Z,$)}static fromJsonString(Z,$){return new i9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(i9,Z,$)}static $(){return["ShellSuccess|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 shell_id 13?|10 interleaved_output 9?|11 pid 13?|12 ms_to_wait 5?|13 local_execution_time_ms 5?|14 background_reason #1?|15 output_head 9?|16 output_tail 9?|17 elided_chars 13?",N0,eM]}};n9=class n9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new n9().fromBinary(Z,$)}static fromJson(Z,$){return new n9().fromJson(Z,$)}static fromJsonString(Z,$){return new n9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(n9,Z,$)}static $(){return["ShellFailure|1 command 9|2 working_directory 9|3 exit_code 5|4 signal 9|5 stdout 9|6 stderr 9|7 execution_time 5|8 output_location #0?|9 interleaved_output 9?|10 abort_reason #1?|11 aborted 8|12 local_execution_time_ms 5?|13 output_head 9?|14 output_tail 9?|15 elided_chars 13?|16 oom_kill #2?",N0,ZC,p9]}};a9=class a9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.timeoutMs=0,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new a9().fromBinary(Z,$)}static fromJson(Z,$){return new a9().fromJson(Z,$)}static fromJsonString(Z,$){return new a9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(a9,Z,$)}static $(){return["ShellTimeout|1 command 9|2 working_directory 9|3 timeout_ms 5"]}};r9=class r9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new r9().fromBinary(Z,$)}static fromJson(Z,$){return new r9().fromJson(Z,$)}static fromJsonString(Z,$){return new r9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(r9,Z,$)}static $(){return["ShellRejected|1 command 9|2 working_directory 9|3 reason 9|4 is_readonly 8"]}};s9=class s9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,T.util.initPartial(Z,this)}static fromBinary(Z,$){return new s9().fromBinary(Z,$)}static fromJson(Z,$){return new s9().fromJson(Z,$)}static fromJsonString(Z,$){return new s9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(s9,Z,$)}static $(){return["ShellPermissionDenied|1 command 9|2 working_directory 9|3 error 9|4 is_readonly 8"]}};t9=class t9 extends $0{constructor(Z){super();this.command="",this.workingDirectory="",this.error="",T.util.initPartial(Z,this)}static fromBinary(Z,$){return new t9().fromBinary(Z,$)}static fromJson(Z,$){return new t9().fromJson(Z,$)}static fromJsonString(Z,$){return new t9().fromJsonString(Z,$)}static equals(Z,$){return T.util.equals(t9,Z,$)}static $(){return["ShellSpawnError|1 command 9|2 working_directory 9|3 error 9"]}}});import{Message as hi,proto3 as $W}from"@bufbuild/protobuf";var $C="agent.v1.",OF,R6;var kF=U(()=>{IF();k();OF=class OF extends G{static get runtime(){return B(this,"runtime",$W)}static $p(){return $C}};R6=class R6 extends OF{constructor(Z){super();$W.util.initPartial(Z,this)}static fromBinary(Z,$){return new R6().fromBinary(Z,$)}static fromJson(Z,$){return new R6().fromJson(Z,$)}static fromJsonString(Z,$){return new R6().fromJsonString(Z,$)}static equals(Z,$){return $W.util.equals(R6,Z,$)}static $(){return["ShellToolCall|1 args #0|2 result #1|3 description 9?",h6,v6]}}});import{Message as mi,proto3 as r,protoInt64 as JC}from"@bufbuild/protobuf";var YC="agent.v1.",O8,y6,m6,o9,e9,Z7,$7,J7,Y7,X7;var EF=U(()=>{k();O8=class O8 extends G{static get runtime(){return B(this,"runtime",r)}static $p(){return YC}};y6=class y6 extends O8{constructor(Z){super();this.path="",this.toolCallId="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new y6().fromBinary(Z,$)}static fromJson(Z,$){return new y6().fromJson(Z,$)}static fromJsonString(Z,$){return new y6().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(y6,Z,$)}static $(){return["DeleteArgs|1 path 9|2 tool_call_id 9"]}};m6=class m6 extends O8{constructor(Z){super();this.result={case:void 0},r.util.initPartial(Z,this)}static fromBinary(Z,$){return new m6().fromBinary(Z,$)}static fromJson(Z,$){return new m6().fromJson(Z,$)}static fromJsonString(Z,$){return new m6().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(m6,Z,$)}static $(){return["DeleteResult|1 success #0 result|2 file_not_found #1 result|3 not_file #2 result|4 permission_denied #3 result|5 file_busy #4 result|6 rejected #5 result|7 error #6 result",o9,e9,Z7,$7,J7,Y7,X7]}};o9=class o9 extends O8{constructor(Z){super();this.path="",this.deletedFile="",this.fileSize=JC.zero,this.prevContent="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new o9().fromBinary(Z,$)}static fromJson(Z,$){return new o9().fromJson(Z,$)}static fromJsonString(Z,$){return new o9().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(o9,Z,$)}static $(){return["DeleteSuccess|1 path 9|2 deleted_file 9|3 file_size 3|4 prev_content 9"]}};e9=class e9 extends O8{constructor(Z){super();this.path="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new e9().fromBinary(Z,$)}static fromJson(Z,$){return new e9().fromJson(Z,$)}static fromJsonString(Z,$){return new e9().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(e9,Z,$)}static $(){return["DeleteFileNotFound|1 path 9"]}};Z7=class Z7 extends O8{constructor(Z){super();this.path="",this.actualType="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z7().fromBinary(Z,$)}static fromJson(Z,$){return new Z7().fromJson(Z,$)}static fromJsonString(Z,$){return new Z7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(Z7,Z,$)}static $(){return["DeleteNotFile|1 path 9|2 actual_type 9"]}};$7=class $7 extends O8{constructor(Z){super();this.path="",this.clientVisibleError="",this.isReadonly=!1,r.util.initPartial(Z,this)}static fromBinary(Z,$){return new $7().fromBinary(Z,$)}static fromJson(Z,$){return new $7().fromJson(Z,$)}static fromJsonString(Z,$){return new $7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals($7,Z,$)}static $(){return["DeletePermissionDenied|1 path 9|2 client_visible_error 9|3 is_readonly 8"]}};J7=class J7 extends O8{constructor(Z){super();this.path="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new J7().fromBinary(Z,$)}static fromJson(Z,$){return new J7().fromJson(Z,$)}static fromJsonString(Z,$){return new J7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(J7,Z,$)}static $(){return["DeleteFileBusy|1 path 9"]}};Y7=class Y7 extends O8{constructor(Z){super();this.path="",this.reason="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y7().fromBinary(Z,$)}static fromJson(Z,$){return new Y7().fromJson(Z,$)}static fromJsonString(Z,$){return new Y7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(Y7,Z,$)}static $(){return["DeleteRejected|1 path 9|2 reason 9"]}};X7=class X7 extends O8{constructor(Z){super();this.path="",this.error="",r.util.initPartial(Z,this)}static fromBinary(Z,$){return new X7().fromBinary(Z,$)}static fromJson(Z,$){return new X7().fromJson(Z,$)}static fromJsonString(Z,$){return new X7().fromJsonString(Z,$)}static equals(Z,$){return r.util.equals(X7,Z,$)}static $(){return["DeleteError|1 path 9|2 error 9"]}}});import{Message as gi,proto3 as JW}from"@bufbuild/protobuf";var XC="agent.v1.",fF,j6;var VF=U(()=>{EF();k();fF=class fF extends G{static get runtime(){return B(this,"runtime",JW)}static $p(){return XC}};j6=class j6 extends fF{constructor(Z){super();JW.util.initPartial(Z,this)}static fromBinary(Z,$){return new j6().fromBinary(Z,$)}static fromJson(Z,$){return new j6().fromJson(Z,$)}static fromJsonString(Z,$){return new j6().fromJsonString(Z,$)}static equals(Z,$){return JW.util.equals(j6,Z,$)}static $(){return["DeleteToolCall|1 args #0|2 result #1",y6,m6]}}});import{Message as li,proto3 as s0}from"@bufbuild/protobuf";var zC="agent.v1.",q7,z7,K7,H7,Q7,_6;var PF=U(()=>{k();q7=class q7 extends G{static get runtime(){return B(this,"runtime",s0)}static $p(){return zC}};z7=class z7 extends q7{constructor(Z){super();this.globPattern="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z7().fromBinary(Z,$)}static fromJson(Z,$){return new z7().fromJson(Z,$)}static fromJsonString(Z,$){return new z7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(z7,Z,$)}static $(){return["GlobToolArgs|1 target_directory 9?|2 glob_pattern 9"]}};K7=class K7 extends q7{constructor(Z){super();this.result={case:void 0},s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K7().fromBinary(Z,$)}static fromJson(Z,$){return new K7().fromJson(Z,$)}static fromJsonString(Z,$){return new K7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(K7,Z,$)}static $(){return["GlobToolResult|1 success #0 result|2 error #1 result",Q7,H7]}};H7=class H7 extends q7{constructor(Z){super();this.error="",s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H7().fromBinary(Z,$)}static fromJson(Z,$){return new H7().fromJson(Z,$)}static fromJsonString(Z,$){return new H7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(H7,Z,$)}static $(){return["GlobToolError|1 error 9"]}};Q7=class Q7 extends q7{constructor(Z){super();this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q7().fromBinary(Z,$)}static fromJson(Z,$){return new Q7().fromJson(Z,$)}static fromJsonString(Z,$){return new Q7().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(Q7,Z,$)}static $(){return["GlobToolSuccess|1 pattern 9|2 path 9|3 files 9*|4 total_files 5|5 client_truncated 8|6 ripgrep_truncated 8"]}};_6=class _6 extends q7{constructor(Z){super();s0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _6().fromBinary(Z,$)}static fromJson(Z,$){return new _6().fromJson(Z,$)}static fromJsonString(Z,$){return new _6().fromJsonString(Z,$)}static equals(Z,$){return s0.util.equals(_6,Z,$)}static $(){return["GlobToolCall|1 args #0|2 result #1",z7,K7]}}});import{Message as ai,proto3 as c}from"@bufbuild/protobuf";var KC="agent.v1.",g0,S6,g6,W7,N7,B7,F7,G7,L7,w7,D7,U7;var AF=U(()=>{bQ();k();g0=class g0 extends G{static get runtime(){return B(this,"runtime",c)}static $p(){return KC}};S6=class S6 extends g0{constructor(Z){super();this.pattern="",this.toolCallId="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new S6().fromBinary(Z,$)}static fromJson(Z,$){return new S6().fromJson(Z,$)}static fromJsonString(Z,$){return new S6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(S6,Z,$)}static $(){return["GrepArgs|1 pattern 9|2 path 9?|3 glob 9?|4 output_mode 9?|5 context_before 5?|6 context_after 5?|7 context 5?|8 case_insensitive 8?|9 type 9?|10 head_limit 5?|11 multiline 8?|12 sort 9?|13 sort_ascending 8?|14 tool_call_id 9|15 sandbox_policy #0?|16 offset 5?",S0]}};g6=class g6 extends g0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new g6().fromBinary(Z,$)}static fromJson(Z,$){return new g6().fromJson(Z,$)}static fromJsonString(Z,$){return new g6().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(g6,Z,$)}static $(){return["GrepResult|1 success #0 result|2 error #1 result",N7,W7]}};W7=class W7 extends g0{constructor(Z){super();this.error="",c.util.initPartial(Z,this)}static fromBinary(Z,$){return new W7().fromBinary(Z,$)}static fromJson(Z,$){return new W7().fromJson(Z,$)}static fromJsonString(Z,$){return new W7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(W7,Z,$)}static $(){return["GrepError|1 error 9"]}};N7=class N7 extends g0{constructor(Z){super();this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new N7().fromBinary(Z,$)}static fromJson(Z,$){return new N7().fromJson(Z,$)}static fromJsonString(Z,$){return new N7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(N7,Z,$)}static $(){return["GrepSuccess|1 pattern 9|2 path 9|3 output_mode 9|4 workspace_results 9,#0|5 active_editor_result #0?",B7]}};B7=class B7 extends g0{constructor(Z){super();this.result={case:void 0},c.util.initPartial(Z,this)}static fromBinary(Z,$){return new B7().fromBinary(Z,$)}static fromJson(Z,$){return new B7().fromJson(Z,$)}static fromJsonString(Z,$){return new B7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(B7,Z,$)}static $(){return["GrepUnionResult|1 count #0 result|2 files #1 result|3 content #2 result",F7,L7,w7]}};F7=class F7 extends g0{constructor(Z){super();this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new F7().fromBinary(Z,$)}static fromJson(Z,$){return new F7().fromJson(Z,$)}static fromJsonString(Z,$){return new F7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(F7,Z,$)}static $(){return["GrepCountResult|1 counts #0*|2 total_files 5|3 total_matches 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",G7]}};G7=class G7 extends g0{constructor(Z){super();this.file="",this.count=0,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new G7().fromBinary(Z,$)}static fromJson(Z,$){return new G7().fromJson(Z,$)}static fromJsonString(Z,$){return new G7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(G7,Z,$)}static $(){return["GrepFileCount|1 file 9|2 count 5"]}};L7=class L7 extends g0{constructor(Z){super();this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new L7().fromBinary(Z,$)}static fromJson(Z,$){return new L7().fromJson(Z,$)}static fromJsonString(Z,$){return new L7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(L7,Z,$)}static $(){return["GrepFilesResult|1 files 9*|2 total_files 5|3 client_truncated 8|4 ripgrep_truncated 8|5 head_limit_applied 5?|6 offset_applied 5?"]}};w7=class w7 extends g0{constructor(Z){super();this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new w7().fromBinary(Z,$)}static fromJson(Z,$){return new w7().fromJson(Z,$)}static fromJsonString(Z,$){return new w7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(w7,Z,$)}static $(){return["GrepContentResult|1 matches #0*|2 total_lines 5|3 total_matched_lines 5|4 client_truncated 8|5 ripgrep_truncated 8|6 head_limit_applied 5?|7 offset_applied 5?",D7]}};D7=class D7 extends g0{constructor(Z){super();this.file="",this.matches=[],c.util.initPartial(Z,this)}static fromBinary(Z,$){return new D7().fromBinary(Z,$)}static fromJson(Z,$){return new D7().fromJson(Z,$)}static fromJsonString(Z,$){return new D7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(D7,Z,$)}static $(){return["GrepFileMatch|1 file 9|2 matches #0*",U7]}};U7=class U7 extends g0{constructor(Z){super();this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,c.util.initPartial(Z,this)}static fromBinary(Z,$){return new U7().fromBinary(Z,$)}static fromJson(Z,$){return new U7().fromJson(Z,$)}static fromJsonString(Z,$){return new U7().fromJsonString(Z,$)}static equals(Z,$){return c.util.equals(U7,Z,$)}static $(){return["GrepContentMatch|1 line_number 5|2 content 9|3 content_truncated 8|4 is_context_line 8"]}}});import{Message as ei,proto3 as YW}from"@bufbuild/protobuf";var HC="agent.v1.",xF,b6;var MF=U(()=>{AF();k();xF=class xF extends G{static get runtime(){return B(this,"runtime",YW)}static $p(){return HC}};b6=class b6 extends xF{constructor(Z){super();YW.util.initPartial(Z,this)}static fromBinary(Z,$){return new b6().fromBinary(Z,$)}static fromJson(Z,$){return new b6().fromJson(Z,$)}static fromJsonString(Z,$){return new b6().fromJsonString(Z,$)}static equals(Z,$){return YW.util.equals(b6,Z,$)}static $(){return["GrepToolCall|1 args #0|2 result #1",S6,g6]}}});import{Message as Xn,proto3 as A0}from"@bufbuild/protobuf";var hF="agent.v1.",c6,CF,I7,O7,k7,E7,f7,T8;var XW=U(()=>{k();c6=class c6 extends G{static get runtime(){return B(this,"runtime",A0)}static $p(){return hF}};CF=w(A0,hF,"CursorRuleSource",[[0,"UNSPECIFIED"],[1,"TEAM"],[2,"USER"]],1);I7=class I7 extends c6{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I7().fromBinary(Z,$)}static fromJson(Z,$){return new I7().fromJson(Z,$)}static fromJsonString(Z,$){return new I7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(I7,Z,$)}static $(){return["CursorRuleTypeGlobal"]}};O7=class O7 extends c6{constructor(Z){super();this.globs=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O7().fromBinary(Z,$)}static fromJson(Z,$){return new O7().fromJson(Z,$)}static fromJsonString(Z,$){return new O7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(O7,Z,$)}static $(){return["CursorRuleTypeFileGlobs|1 globs 9*"]}};k7=class k7 extends c6{constructor(Z){super();this.description="",A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k7().fromBinary(Z,$)}static fromJson(Z,$){return new k7().fromJson(Z,$)}static fromJsonString(Z,$){return new k7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(k7,Z,$)}static $(){return["CursorRuleTypeAgentFetched|1 description 9"]}};E7=class E7 extends c6{constructor(Z){super();A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E7().fromBinary(Z,$)}static fromJson(Z,$){return new E7().fromJson(Z,$)}static fromJsonString(Z,$){return new E7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(E7,Z,$)}static $(){return["CursorRuleTypeManuallyAttached"]}};f7=class f7 extends c6{constructor(Z){super();this.type={case:void 0},A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f7().fromBinary(Z,$)}static fromJson(Z,$){return new f7().fromJson(Z,$)}static fromJsonString(Z,$){return new f7().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(f7,Z,$)}static $(){return["CursorRuleType|1 global #0 type|2 file_globbed #1 type|3 agent_fetched #2 type|4 manually_attached #3 type",I7,O7,k7,E7]}};T8=class T8 extends c6{constructor(Z){super();this.fullPath="",this.content="",this.source=CF.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",this.warnings=[],A0.util.initPartial(Z,this)}static fromBinary(Z,$){return new T8().fromBinary(Z,$)}static fromJson(Z,$){return new T8().fromJson(Z,$)}static fromJsonString(Z,$){return new T8().fromJsonString(Z,$)}static equals(Z,$){return A0.util.equals(T8,Z,$)}static $(){return["CursorRule|1 full_path 9|2 content 9|3 type #0|4 source #1|5 git_remote_origin 9?|6 parse_error 9?|7 environments 9*|8 disabled_environments 9*|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 scoped_to 9*|14 frontmatter 9|15 is_required 8?|16 warnings 9*",f7,CF]}}});import{Message as Qn,proto3 as T0}from"@bufbuild/protobuf";var QC="agent.v1.",u6,d6,V7,P7,A7,x7,M7;var vF=U(()=>{XW();k();u6=class u6 extends G{static get runtime(){return B(this,"runtime",T0)}static $p(){return QC}};d6=class d6 extends u6{constructor(Z){super();T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d6().fromBinary(Z,$)}static fromJson(Z,$){return new d6().fromJson(Z,$)}static fromJsonString(Z,$){return new d6().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(d6,Z,$)}static $(){return["ReadToolCall|1 args #0|2 result #1",V7,P7]}};V7=class V7 extends u6{constructor(Z){super();this.path="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V7().fromBinary(Z,$)}static fromJson(Z,$){return new V7().fromJson(Z,$)}static fromJsonString(Z,$){return new V7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(V7,Z,$)}static $(){return["ReadToolArgs|1 path 9|2 offset 5?|3 limit 5?|5 include_line_numbers 8?"]}};P7=class P7 extends u6{constructor(Z){super();this.result={case:void 0},T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P7().fromBinary(Z,$)}static fromJson(Z,$){return new P7().fromJson(Z,$)}static fromJsonString(Z,$){return new P7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(P7,Z,$)}static $(){return["ReadToolResult|1 success #0 result|2 error #1 result",x7,M7]}};A7=class A7 extends u6{constructor(Z){super();this.startLine=0,this.endLine=0,T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A7().fromBinary(Z,$)}static fromJson(Z,$){return new A7().fromJson(Z,$)}static fromJsonString(Z,$){return new A7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(A7,Z,$)}static $(){return["ReadRange|1 start_line 13|2 end_line 13"]}};x7=class x7 extends u6{constructor(Z){super();this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x7().fromBinary(Z,$)}static fromJson(Z,$){return new x7().fromJson(Z,$)}static fromJsonString(Z,$){return new x7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(x7,Z,$)}static $(){return["ReadToolSuccess|1 content 9 output|6 data 12 output|9 data_blob_id 12 output|10 content_blob_id 12 output|2 is_empty 8|3 exceeded_limit 8|4 total_lines 13|5 file_size 13|7 path 9|8 read_range #0?|11 include_line_numbers 8?|12 related_cursor_rule_paths 9*|13 related_cursor_rules #1*",A7,T8]}};M7=class M7 extends u6{constructor(Z){super();this.errorMessage="",T0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M7().fromBinary(Z,$)}static fromJson(Z,$){return new M7().fromJson(Z,$)}static fromJsonString(Z,$){return new M7().fromJsonString(Z,$)}static equals(Z,$){return T0.util.equals(M7,Z,$)}static $(){return["ReadToolError|1 error_message 9"]}}});import{Message as Fn,proto3 as b,protoInt64 as TF}from"@bufbuild/protobuf";var RF="agent.v1.",b0,zW,B0,l6,C7,h7,v7,T7,p6,R7,y7,m7,j7;var cQ=U(()=>{k();b0=class b0 extends G{static get runtime(){return B(this,"runtime",b)}static $p(){return RF}};zW=w(b,RF,"TodoStatus",[[0,"UNSPECIFIED"],[1,"PENDING"],[2,"IN_PROGRESS"],[3,"COMPLETED"],[4,"CANCELLED"]],1);B0=class B0 extends b0{constructor(Z){super();this.id="",this.content="",this.status=zW.UNSPECIFIED,this.createdAt=TF.zero,this.updatedAt=TF.zero,this.dependencies=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new B0().fromBinary(Z,$)}static fromJson(Z,$){return new B0().fromJson(Z,$)}static fromJsonString(Z,$){return new B0().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(B0,Z,$)}static $(){return["TodoItem|1 id 9|2 content 9|3 status #0|4 created_at 3|5 updated_at 3|6 dependencies 9*",zW]}};l6=class l6 extends b0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new l6().fromBinary(Z,$)}static fromJson(Z,$){return new l6().fromJson(Z,$)}static fromJsonString(Z,$){return new l6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(l6,Z,$)}static $(){return["UpdateTodosToolCall|1 args #0|2 result #1",C7,h7]}};C7=class C7 extends b0{constructor(Z){super();this.todos=[],this.merge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new C7().fromBinary(Z,$)}static fromJson(Z,$){return new C7().fromJson(Z,$)}static fromJsonString(Z,$){return new C7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(C7,Z,$)}static $(){return["UpdateTodosArgs|1 todos #0*|2 merge 8",B0]}};h7=class h7 extends b0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new h7().fromBinary(Z,$)}static fromJson(Z,$){return new h7().fromJson(Z,$)}static fromJsonString(Z,$){return new h7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(h7,Z,$)}static $(){return["UpdateTodosResult|1 success #0 result|2 error #1 result",v7,T7]}};v7=class v7 extends b0{constructor(Z){super();this.todos=[],this.totalCount=0,this.wasMerge=!1,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new v7().fromBinary(Z,$)}static fromJson(Z,$){return new v7().fromJson(Z,$)}static fromJsonString(Z,$){return new v7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(v7,Z,$)}static $(){return["UpdateTodosSuccess|1 todos #0*|2 total_count 5|3 was_merge 8",B0]}};T7=class T7 extends b0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new T7().fromBinary(Z,$)}static fromJson(Z,$){return new T7().fromJson(Z,$)}static fromJsonString(Z,$){return new T7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(T7,Z,$)}static $(){return["UpdateTodosError|1 error 9"]}};p6=class p6 extends b0{constructor(Z){super();b.util.initPartial(Z,this)}static fromBinary(Z,$){return new p6().fromBinary(Z,$)}static fromJson(Z,$){return new p6().fromJson(Z,$)}static fromJsonString(Z,$){return new p6().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(p6,Z,$)}static $(){return["ReadTodosToolCall|1 args #0|2 result #1",R7,y7]}};R7=class R7 extends b0{constructor(Z){super();this.statusFilter=[],this.idFilter=[],b.util.initPartial(Z,this)}static fromBinary(Z,$){return new R7().fromBinary(Z,$)}static fromJson(Z,$){return new R7().fromJson(Z,$)}static fromJsonString(Z,$){return new R7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(R7,Z,$)}static $(){return["ReadTodosArgs|1 status_filter #0*|2 id_filter 9*",zW]}};y7=class y7 extends b0{constructor(Z){super();this.result={case:void 0},b.util.initPartial(Z,this)}static fromBinary(Z,$){return new y7().fromBinary(Z,$)}static fromJson(Z,$){return new y7().fromJson(Z,$)}static fromJsonString(Z,$){return new y7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(y7,Z,$)}static $(){return["ReadTodosResult|1 success #0 result|2 error #1 result",m7,j7]}};m7=class m7 extends b0{constructor(Z){super();this.todos=[],this.totalCount=0,b.util.initPartial(Z,this)}static fromBinary(Z,$){return new m7().fromBinary(Z,$)}static fromJson(Z,$){return new m7().fromJson(Z,$)}static fromJsonString(Z,$){return new m7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(m7,Z,$)}static $(){return["ReadTodosSuccess|1 todos #0*|2 total_count 5",B0]}};j7=class j7 extends b0{constructor(Z){super();this.error="",b.util.initPartial(Z,this)}static fromBinary(Z,$){return new j7().fromBinary(Z,$)}static fromJson(Z,$){return new j7().fromJson(Z,$)}static fromJsonString(Z,$){return new j7().fromJsonString(Z,$)}static equals(Z,$){return b.util.equals(j7,Z,$)}static $(){return["ReadTodosError|1 error 9"]}}});import{Message as Dn,proto3 as s}from"@bufbuild/protobuf";var qC="agent.v1.",k8,_7,S7,g7,b7,c7,d7,u7,l7,i6;var yF=U(()=>{k();k8=class k8 extends G{static get runtime(){return B(this,"runtime",s)}static $p(){return qC}};_7=class _7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new _7().fromBinary(Z,$)}static fromJson(Z,$){return new _7().fromJson(Z,$)}static fromJsonString(Z,$){return new _7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(_7,Z,$)}static $(){return["EditArgs|1 path 9|6 stream_content 9?"]}};S7=class S7 extends k8{constructor(Z){super();this.result={case:void 0},s.util.initPartial(Z,this)}static fromBinary(Z,$){return new S7().fromBinary(Z,$)}static fromJson(Z,$){return new S7().fromJson(Z,$)}static fromJsonString(Z,$){return new S7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(S7,Z,$)}static $(){return["EditResult|1 success #0 result|2 file_not_found #1 result|3 read_permission_denied #2 result|4 write_permission_denied #3 result|6 rejected #4 result|7 error #5 result",g7,b7,c7,d7,u7,l7]}};g7=class g7 extends k8{constructor(Z){super();this.path="",this.afterFullFileContent="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new g7().fromBinary(Z,$)}static fromJson(Z,$){return new g7().fromJson(Z,$)}static fromJsonString(Z,$){return new g7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(g7,Z,$)}static $(){return["EditSuccess|1 path 9|3 lines_added 5?|4 lines_removed 5?|5 diff_string 9?|6 before_full_file_content 9?|7 after_full_file_content 9|8 message 9?"]}};b7=class b7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new b7().fromBinary(Z,$)}static fromJson(Z,$){return new b7().fromJson(Z,$)}static fromJsonString(Z,$){return new b7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(b7,Z,$)}static $(){return["EditFileNotFound|1 path 9"]}};c7=class c7 extends k8{constructor(Z){super();this.path="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new c7().fromBinary(Z,$)}static fromJson(Z,$){return new c7().fromJson(Z,$)}static fromJsonString(Z,$){return new c7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(c7,Z,$)}static $(){return["EditReadPermissionDenied|1 path 9"]}};d7=class d7 extends k8{constructor(Z){super();this.path="",this.error="",this.isReadonly=!1,s.util.initPartial(Z,this)}static fromBinary(Z,$){return new d7().fromBinary(Z,$)}static fromJson(Z,$){return new d7().fromJson(Z,$)}static fromJsonString(Z,$){return new d7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(d7,Z,$)}static $(){return["EditWritePermissionDenied|1 path 9|2 error 9|3 is_readonly 8"]}};u7=class u7 extends k8{constructor(Z){super();this.path="",this.reason="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new u7().fromBinary(Z,$)}static fromJson(Z,$){return new u7().fromJson(Z,$)}static fromJsonString(Z,$){return new u7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(u7,Z,$)}static $(){return["EditRejected|1 path 9|2 reason 9"]}};l7=class l7 extends k8{constructor(Z){super();this.path="",this.error="",s.util.initPartial(Z,this)}static fromBinary(Z,$){return new l7().fromBinary(Z,$)}static fromJson(Z,$){return new l7().fromJson(Z,$)}static fromJsonString(Z,$){return new l7().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(l7,Z,$)}static $(){return["EditError|1 path 9|2 error 9|5 model_visible_error 9?"]}};i6=class i6 extends k8{constructor(Z){super();s.util.initPartial(Z,this)}static fromBinary(Z,$){return new i6().fromBinary(Z,$)}static fromJson(Z,$){return new i6().fromJson(Z,$)}static fromJsonString(Z,$){return new i6().fromJsonString(Z,$)}static equals(Z,$){return s.util.equals(i6,Z,$)}static $(){return["EditToolCall|1 args #0|2 result #1",_7,S7]}}});import{Message as kn,proto3 as p}from"@bufbuild/protobuf";var WC="agent.v1.",t0,n6,a6,p7,E8,i7,n7,a7,r7,s7,t7;var KW=U(()=>{bQ();k();t0=class t0 extends G{static get runtime(){return B(this,"runtime",p)}static $p(){return WC}};n6=class n6 extends t0{constructor(Z){super();this.path="",this.ignore=[],this.toolCallId="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new n6().fromBinary(Z,$)}static fromJson(Z,$){return new n6().fromJson(Z,$)}static fromJsonString(Z,$){return new n6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(n6,Z,$)}static $(){return["LsArgs|1 path 9|2 ignore 9*|3 tool_call_id 9|4 sandbox_policy #0?|5 timeout_ms 13?",S0]}};a6=class a6 extends t0{constructor(Z){super();this.result={case:void 0},p.util.initPartial(Z,this)}static fromBinary(Z,$){return new a6().fromBinary(Z,$)}static fromJson(Z,$){return new a6().fromJson(Z,$)}static fromJsonString(Z,$){return new a6().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(a6,Z,$)}static $(){return["LsResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 timeout #3 result",p7,n7,a7,r7]}};p7=class p7 extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new p7().fromBinary(Z,$)}static fromJson(Z,$){return new p7().fromJson(Z,$)}static fromJsonString(Z,$){return new p7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(p7,Z,$)}static $(){return["LsSuccess|1 directory_tree_root #0",E8]}};E8=class E8 extends t0{constructor(Z){super();this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,p.util.initPartial(Z,this)}static fromBinary(Z,$){return new E8().fromBinary(Z,$)}static fromJson(Z,$){return new E8().fromJson(Z,$)}static fromJsonString(Z,$){return new E8().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(E8,Z,$)}static $(){return["LsDirectoryTreeNode|1 abs_path 9|2 children_dirs #0*|3 children_files #1*|4 children_were_processed 8|5 full_subtree_extension_counts 9,5|6 num_files 5",E8,i7]}};i7=class i7 extends t0{constructor(Z){super();this.name="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new i7().fromBinary(Z,$)}static fromJson(Z,$){return new i7().fromJson(Z,$)}static fromJsonString(Z,$){return new i7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(i7,Z,$)}static $(){return["LsDirectoryTreeNode.File|1 name 9|2 terminal_metadata #0?",s7]}};n7=class n7 extends t0{constructor(Z){super();this.path="",this.error="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new n7().fromBinary(Z,$)}static fromJson(Z,$){return new n7().fromJson(Z,$)}static fromJsonString(Z,$){return new n7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(n7,Z,$)}static $(){return["LsError|1 path 9|2 error 9"]}};a7=class a7 extends t0{constructor(Z){super();this.path="",this.reason="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new a7().fromBinary(Z,$)}static fromJson(Z,$){return new a7().fromJson(Z,$)}static fromJsonString(Z,$){return new a7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(a7,Z,$)}static $(){return["LsRejected|1 path 9|2 reason 9"]}};r7=class r7 extends t0{constructor(Z){super();p.util.initPartial(Z,this)}static fromBinary(Z,$){return new r7().fromBinary(Z,$)}static fromJson(Z,$){return new r7().fromJson(Z,$)}static fromJsonString(Z,$){return new r7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(r7,Z,$)}static $(){return["LsTimeout|1 directory_tree_root #0",E8]}};s7=class s7 extends t0{constructor(Z){super();this.lastCommands=[],p.util.initPartial(Z,this)}static fromBinary(Z,$){return new s7().fromBinary(Z,$)}static fromJson(Z,$){return new s7().fromJson(Z,$)}static fromJsonString(Z,$){return new s7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(s7,Z,$)}static $(){return["TerminalMetadata|1 cwd 9?|2 last_commands #0*|3 last_modified_ms 3?|4 current_command #0?",t7]}};t7=class t7 extends t0{constructor(Z){super();this.command="",p.util.initPartial(Z,this)}static fromBinary(Z,$){return new t7().fromBinary(Z,$)}static fromJson(Z,$){return new t7().fromJson(Z,$)}static fromJsonString(Z,$){return new t7().fromJsonString(Z,$)}static equals(Z,$){return p.util.equals(t7,Z,$)}static $(){return["TerminalMetadata.Command|1 command 9|2 exit_code 5?|3 timestamp_ms 3?|4 duration_ms 3?"]}}});import{Message as An,proto3 as HW}from"@bufbuild/protobuf";var NC="agent.v1.",mF,r6;var jF=U(()=>{KW();k();mF=class mF extends G{static get runtime(){return B(this,"runtime",HW)}static $p(){return NC}};r6=class r6 extends mF{constructor(Z){super();HW.util.initPartial(Z,this)}static fromBinary(Z,$){return new r6().fromBinary(Z,$)}static fromJson(Z,$){return new r6().fromJson(Z,$)}static fromJsonString(Z,$){return new r6().fromJsonString(Z,$)}static equals(Z,$){return HW.util.equals(r6,Z,$)}static $(){return["LsToolCall|1 args #0|2 result #1",n6,a6]}}});import{Message as vn,proto3 as BC}from"@bufbuild/protobuf";var FC="agent.v1.",QW;var _F=U(()=>{k();QW=w(BC,FC,"DiagnosticSeverity",[[0,"UNSPECIFIED"],[1,"ERROR"],[2,"WARNING"],[3,"INFORMATION"],[4,"HINT"]],1)});import{Message as mn,proto3 as J0}from"@bufbuild/protobuf";var GC="agent.v1.",R8,s6,o7,e7,Z5,$5,J5,Y5,X5;var SF=U(()=>{_F();C6();k();R8=class R8 extends G{static get runtime(){return B(this,"runtime",J0)}static $p(){return GC}};s6=class s6 extends R8{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new s6().fromBinary(Z,$)}static fromJson(Z,$){return new s6().fromJson(Z,$)}static fromJsonString(Z,$){return new s6().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(s6,Z,$)}static $(){return["ReadLintsToolCall|1 args #0|2 result #1",o7,e7]}};o7=class o7 extends R8{constructor(Z){super();this.paths=[],J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o7().fromBinary(Z,$)}static fromJson(Z,$){return new o7().fromJson(Z,$)}static fromJsonString(Z,$){return new o7().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(o7,Z,$)}static $(){return["ReadLintsToolArgs|1 paths 9*"]}};e7=class e7 extends R8{constructor(Z){super();this.result={case:void 0},J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new e7().fromBinary(Z,$)}static fromJson(Z,$){return new e7().fromJson(Z,$)}static fromJsonString(Z,$){return new e7().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(e7,Z,$)}static $(){return["ReadLintsToolResult|1 success #0 result|2 error #1 result",Z5,X5]}};Z5=class Z5 extends R8{constructor(Z){super();this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z5().fromBinary(Z,$)}static fromJson(Z,$){return new Z5().fromJson(Z,$)}static fromJsonString(Z,$){return new Z5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(Z5,Z,$)}static $(){return["ReadLintsToolSuccess|1 file_diagnostics #0*|2 total_files 5|3 total_diagnostics 5",$5]}};$5=class $5 extends R8{constructor(Z){super();this.path="",this.diagnostics=[],this.diagnosticsCount=0,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $5().fromBinary(Z,$)}static fromJson(Z,$){return new $5().fromJson(Z,$)}static fromJsonString(Z,$){return new $5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals($5,Z,$)}static $(){return["FileDiagnostics|1 path 9|2 diagnostics #0*|3 diagnostics_count 5",J5]}};J5=class J5 extends R8{constructor(Z){super();this.severity=QW.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J5().fromBinary(Z,$)}static fromJson(Z,$){return new J5().fromJson(Z,$)}static fromJsonString(Z,$){return new J5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(J5,Z,$)}static $(){return["DiagnosticItem|1 severity #0|2 range #1|3 message 9|4 source 9|5 code 9|6 is_stale 8",QW,Y5]}};Y5=class Y5 extends R8{constructor(Z){super();J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y5().fromBinary(Z,$)}static fromJson(Z,$){return new Y5().fromJson(Z,$)}static fromJsonString(Z,$){return new Y5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(Y5,Z,$)}static $(){return["DiagnosticRange|1 start #0|2 end #0",a8]}};X5=class X5 extends R8{constructor(Z){super();this.errorMessage="",J0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X5().fromBinary(Z,$)}static fromJson(Z,$){return new X5().fromJson(Z,$)}static fromJsonString(Z,$){return new X5().fromJsonString(Z,$)}static equals(Z,$){return J0.util.equals(X5,Z,$)}static $(){return["ReadLintsToolError|1 error_message 9"]}}});import{Message as cn,proto3 as h,protoInt64 as LC,Struct as wC,Value as DC}from"@bufbuild/protobuf";var UC="agent.v1.",u,t6,z5,K5,H5,Q5,s8,o6,e6,ZZ,$Z,JZ,q5,W5,N5,B5,YZ,XZ,F5,G5,L5,w5;var qW=U(()=>{C6();k();u=class u extends G{static get runtime(){return B(this,"runtime",h)}static $p(){return UC}};t6=class t6 extends u{constructor(Z){super();this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",this.symbolicPathArguments=[],this.argumentsRepaired=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new t6().fromBinary(Z,$)}static fromJson(Z,$){return new t6().fromJson(Z,$)}static fromJsonString(Z,$){return new t6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(t6,Z,$)}static $(){return["McpArgs|1 name 9|2 args 9,#0|3 tool_call_id 9|4 provider_identifier 9|5 tool_name 9|6 smart_mode_approval #1?|7 smart_mode_approval_only 8|8 skip_approval 8|9 server_identifier 9|10 symbolic_path_arguments #2*|11 arguments_repaired 8",DC,r0,z5]}};z5=class z5 extends u{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=LC.zero,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new z5().fromBinary(Z,$)}static fromJson(Z,$){return new z5().fromJson(Z,$)}static fromJsonString(Z,$){return new z5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(z5,Z,$)}static $(){return["McpSymbolicPathArgument|1 path 9|2 sha256 9|3 size_bytes 3"]}};K5=class K5 extends u{constructor(Z){super();this.text="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new K5().fromBinary(Z,$)}static fromJson(Z,$){return new K5().fromJson(Z,$)}static fromJsonString(Z,$){return new K5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(K5,Z,$)}static $(){return["McpTextContent|1 text 9|2 output_location #0?",N0]}};H5=class H5 extends u{constructor(Z){super();this.data=new Uint8Array(0),this.mimeType="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new H5().fromBinary(Z,$)}static fromJson(Z,$){return new H5().fromJson(Z,$)}static fromJsonString(Z,$){return new H5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(H5,Z,$)}static $(){return["McpImageContent|1 data 12|2 mime_type 9"]}};Q5=class Q5 extends u{constructor(Z){super();this.content={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q5().fromBinary(Z,$)}static fromJson(Z,$){return new Q5().fromJson(Z,$)}static fromJsonString(Z,$){return new Q5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(Q5,Z,$)}static $(){return["McpToolResultContentItem|1 text #0 content|2 image #1 content",K5,H5]}};s8=class s8 extends u{constructor(Z){super();this.body="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new s8().fromBinary(Z,$)}static fromJson(Z,$){return new s8().fromJson(Z,$)}static fromJsonString(Z,$){return new s8().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(s8,Z,$)}static $(){return["SystemReminder|1 body 9"]}};o6=class o6 extends u{constructor(Z){super();this.content=[],this.isError=!1,this.systemReminders=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new o6().fromBinary(Z,$)}static fromJson(Z,$){return new o6().fromJson(Z,$)}static fromJsonString(Z,$){return new o6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(o6,Z,$)}static $(){return["McpSuccess|1 content #0*|2 is_error 8|3 structured_content #1|4 system_reminders #2*|5 result_meta #1",Q5,wC,s8]}};e6=class e6 extends u{constructor(Z){super();this.reason="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new e6().fromBinary(Z,$)}static fromJson(Z,$){return new e6().fromJson(Z,$)}static fromJsonString(Z,$){return new e6().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(e6,Z,$)}static $(){return["McpRejected|1 reason 9|2 is_readonly 8"]}};ZZ=class ZZ extends u{constructor(Z){super();this.error="",this.isReadonly=!1,h.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZZ().fromBinary(Z,$)}static fromJson(Z,$){return new ZZ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(ZZ,Z,$)}static $(){return["McpPermissionDenied|1 error 9|2 is_readonly 8"]}};$Z=class $Z extends u{constructor(Z){super();h.util.initPartial(Z,this)}static fromBinary(Z,$){return new $Z().fromBinary(Z,$)}static fromJson(Z,$){return new $Z().fromJson(Z,$)}static fromJsonString(Z,$){return new $Z().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals($Z,Z,$)}static $(){return["ListMcpResourcesExecArgs|1 server 9?"]}};JZ=class JZ extends u{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new JZ().fromBinary(Z,$)}static fromJson(Z,$){return new JZ().fromJson(Z,$)}static fromJsonString(Z,$){return new JZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(JZ,Z,$)}static $(){return["ListMcpResourcesExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result",W5,N5,B5]}};q5=class q5 extends u{constructor(Z){super();this.uri="",this.server="",this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new q5().fromBinary(Z,$)}static fromJson(Z,$){return new q5().fromJson(Z,$)}static fromJsonString(Z,$){return new q5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(q5,Z,$)}static $(){return["ListMcpResourcesExecResult.McpResource|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 server 9|6 annotations 9,9"]}};W5=class W5 extends u{constructor(Z){super();this.resources=[],h.util.initPartial(Z,this)}static fromBinary(Z,$){return new W5().fromBinary(Z,$)}static fromJson(Z,$){return new W5().fromJson(Z,$)}static fromJsonString(Z,$){return new W5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(W5,Z,$)}static $(){return["ListMcpResourcesSuccess|1 resources #0*",q5]}};N5=class N5 extends u{constructor(Z){super();this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new N5().fromBinary(Z,$)}static fromJson(Z,$){return new N5().fromJson(Z,$)}static fromJsonString(Z,$){return new N5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(N5,Z,$)}static $(){return["ListMcpResourcesError|1 error 9"]}};B5=class B5 extends u{constructor(Z){super();this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new B5().fromBinary(Z,$)}static fromJson(Z,$){return new B5().fromJson(Z,$)}static fromJsonString(Z,$){return new B5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(B5,Z,$)}static $(){return["ListMcpResourcesRejected|1 reason 9"]}};YZ=class YZ extends u{constructor(Z){super();this.server="",this.uri="",this.toolCallId="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new YZ().fromBinary(Z,$)}static fromJson(Z,$){return new YZ().fromJson(Z,$)}static fromJsonString(Z,$){return new YZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(YZ,Z,$)}static $(){return["ReadMcpResourceExecArgs|1 server 9|2 uri 9|3 download_path 9?|4 tool_call_id 9|5 smart_mode_approval #0?",r0]}};XZ=class XZ extends u{constructor(Z){super();this.result={case:void 0},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new XZ().fromBinary(Z,$)}static fromJson(Z,$){return new XZ().fromJson(Z,$)}static fromJsonString(Z,$){return new XZ().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(XZ,Z,$)}static $(){return["ReadMcpResourceExecResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 not_found #3 result",F5,G5,L5,w5]}};F5=class F5 extends u{constructor(Z){super();this.uri="",this.content={case:void 0},this.annotations={},h.util.initPartial(Z,this)}static fromBinary(Z,$){return new F5().fromBinary(Z,$)}static fromJson(Z,$){return new F5().fromJson(Z,$)}static fromJsonString(Z,$){return new F5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(F5,Z,$)}static $(){return["ReadMcpResourceSuccess|1 uri 9|2 name 9?|3 description 9?|4 mime_type 9?|5 text 9 content|6 blob 12 content|7 annotations 9,9|8 download_path 9?|9 output_location #0?|10 meta_json 9?",N0]}};G5=class G5 extends u{constructor(Z){super();this.uri="",this.error="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new G5().fromBinary(Z,$)}static fromJson(Z,$){return new G5().fromJson(Z,$)}static fromJsonString(Z,$){return new G5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(G5,Z,$)}static $(){return["ReadMcpResourceError|1 uri 9|2 error 9"]}};L5=class L5 extends u{constructor(Z){super();this.uri="",this.reason="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new L5().fromBinary(Z,$)}static fromJson(Z,$){return new L5().fromJson(Z,$)}static fromJsonString(Z,$){return new L5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(L5,Z,$)}static $(){return["ReadMcpResourceRejected|1 uri 9|2 reason 9"]}};w5=class w5 extends u{constructor(Z){super();this.uri="",h.util.initPartial(Z,this)}static fromBinary(Z,$){return new w5().fromBinary(Z,$)}static fromJson(Z,$){return new w5().fromJson(Z,$)}static fromJsonString(Z,$){return new w5().fromJsonString(Z,$)}static equals(Z,$){return h.util.equals(w5,Z,$)}static $(){return["ReadMcpResourceNotFound|1 uri 9"]}}});import{Message as nn,proto3 as KZ}from"@bufbuild/protobuf";var IC="agent.v1.",dQ,D5,U5,zZ;var gF=U(()=>{qW();k();dQ=class dQ extends G{static get runtime(){return B(this,"runtime",KZ)}static $p(){return IC}};D5=class D5 extends dQ{constructor(Z){super();this.error="",this.readToolDefReminder="",this.systemReminders=[],KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new D5().fromBinary(Z,$)}static fromJson(Z,$){return new D5().fromJson(Z,$)}static fromJsonString(Z,$){return new D5().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(D5,Z,$)}static $(){return["McpToolError|1 error 9|2 read_tool_def_reminder 9|3 system_reminders #0*",s8]}};U5=class U5 extends dQ{constructor(Z){super();this.result={case:void 0},KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new U5().fromBinary(Z,$)}static fromJson(Z,$){return new U5().fromJson(Z,$)}static fromJsonString(Z,$){return new U5().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(U5,Z,$)}static $(){return["McpToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 permission_denied #3 result",o6,D5,e6,ZZ]}};zZ=class zZ extends dQ{constructor(Z){super();KZ.util.initPartial(Z,this)}static fromBinary(Z,$){return new zZ().fromBinary(Z,$)}static fromJson(Z,$){return new zZ().fromJson(Z,$)}static fromJsonString(Z,$){return new zZ().fromJsonString(Z,$)}static equals(Z,$){return KZ.util.equals(zZ,Z,$)}static $(){return["McpToolCall|1 args #0|2 result #1|3 description 9?",t6,U5]}}});import{Message as on,proto3 as F0}from"@bufbuild/protobuf";var OC="aiserver.v1.",t8,I5,HZ,QZ,qZ,O5,k5,E5;var bF=U(()=>{k();t8=class t8 extends G{static get runtime(){return B(this,"runtime",F0)}static $p(){return OC}};I5=class I5 extends t8{constructor(Z){super();this.line=0,this.column=0,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new I5().fromBinary(Z,$)}static fromJson(Z,$){return new I5().fromJson(Z,$)}static fromJsonString(Z,$){return new I5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(I5,Z,$)}static $(){return["CursorPosition|1 line 5|2 column 5"]}};HZ=class HZ extends t8{constructor(Z){super();F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HZ().fromBinary(Z,$)}static fromJson(Z,$){return new HZ().fromJson(Z,$)}static fromJsonString(Z,$){return new HZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(HZ,Z,$)}static $(){return["CursorRange|1 start_position #0|2 end_position #0",I5]}};QZ=class QZ extends t8{constructor(Z){super();this.text="",this.lineNumber=0,this.isSignature=!1,F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QZ().fromBinary(Z,$)}static fromJson(Z,$){return new QZ().fromJson(Z,$)}static fromJsonString(Z,$){return new QZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(QZ,Z,$)}static $(){return["DetailedLine|1 text 9|2 line_number 2|3 is_signature 8"]}};qZ=class qZ extends t8{constructor(Z){super();this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new qZ().fromBinary(Z,$)}static fromJson(Z,$){return new qZ().fromJson(Z,$)}static fromJsonString(Z,$){return new qZ().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(qZ,Z,$)}static $(){return["CodeBlock|1 relative_workspace_path 9|2 file_contents 9?|9 file_contents_length 5?|3 range #0|4 contents 9|5 signatures #1|6 override_contents 9?|7 original_contents 9?|8 detailed_lines #2*|10 file_git_context #3",HZ,O5,QZ,E5]}};O5=class O5 extends t8{constructor(Z){super();this.ranges=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new O5().fromBinary(Z,$)}static fromJson(Z,$){return new O5().fromJson(Z,$)}static fromJsonString(Z,$){return new O5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(O5,Z,$)}static $(){return["CodeBlock.Signatures|1 ranges #0*",HZ]}};k5=class k5 extends t8{constructor(Z){super();this.commit="",this.author="",this.date="",this.message="",F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new k5().fromBinary(Z,$)}static fromJson(Z,$){return new k5().fromJson(Z,$)}static fromJsonString(Z,$){return new k5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(k5,Z,$)}static $(){return["GitCommit|1 commit 9|2 author 9|3 date 9|4 message 9"]}};E5=class E5 extends t8{constructor(Z){super();this.commits=[],F0.util.initPartial(Z,this)}static fromBinary(Z,$){return new E5().fromBinary(Z,$)}static fromJson(Z,$){return new E5().fromJson(Z,$)}static fromJsonString(Z,$){return new E5().fromJsonString(Z,$)}static equals(Z,$){return F0.util.equals(E5,Z,$)}static $(){return["FileGit|1 commits #0*",k5]}}});import{Message as Ka,proto3 as WW,protoInt64 as Ha}from"@bufbuild/protobuf";var kC="aiserver.v1.",cF,WZ;var dF=U(()=>{bF();k();cF=class cF extends G{static get runtime(){return B(this,"runtime",WW)}static $p(){return kC}};WZ=class WZ extends cF{constructor(Z){super();this.score=0,WW.util.initPartial(Z,this)}static fromBinary(Z,$){return new WZ().fromBinary(Z,$)}static fromJson(Z,$){return new WZ().fromJson(Z,$)}static fromJsonString(Z,$){return new WZ().fromJsonString(Z,$)}static equals(Z,$){return WW.util.equals(WZ,Z,$)}static $(){return["CodeResult|1 code_block #0|2 score 2",qZ]}}});import{Message as Ba,proto3 as o0}from"@bufbuild/protobuf";var EC="agent.v1.",x5,NZ,f5,V5,P5,A5;var uF=U(()=>{dF();k();x5=class x5 extends G{static get runtime(){return B(this,"runtime",o0)}static $p(){return EC}};NZ=class NZ extends x5{constructor(Z){super();o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new NZ().fromBinary(Z,$)}static fromJson(Z,$){return new NZ().fromJson(Z,$)}static fromJsonString(Z,$){return new NZ().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(NZ,Z,$)}static $(){return["SemSearchToolCall|1 args #0|2 result #1",f5,V5]}};f5=class f5 extends x5{constructor(Z){super();this.query="",this.targetDirectories=[],this.explanation="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new f5().fromBinary(Z,$)}static fromJson(Z,$){return new f5().fromJson(Z,$)}static fromJsonString(Z,$){return new f5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(f5,Z,$)}static $(){return["SemSearchToolArgs|1 query 9|2 target_directories 9*|3 explanation 9"]}};V5=class V5 extends x5{constructor(Z){super();this.result={case:void 0},o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new V5().fromBinary(Z,$)}static fromJson(Z,$){return new V5().fromJson(Z,$)}static fromJsonString(Z,$){return new V5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(V5,Z,$)}static $(){return["SemSearchToolResult|1 success #0 result|2 error #1 result",P5,A5]}};P5=class P5 extends x5{constructor(Z){super();this.results="",this.codeResults=[],o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new P5().fromBinary(Z,$)}static fromJson(Z,$){return new P5().fromJson(Z,$)}static fromJsonString(Z,$){return new P5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(P5,Z,$)}static $(){return["SemSearchToolSuccess|1 results 9|2 code_results #0*",WZ]}};A5=class A5 extends x5{constructor(Z){super();this.errorMessage="",o0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A5().fromBinary(Z,$)}static fromJson(Z,$){return new A5().fromJson(Z,$)}static fromJsonString(Z,$){return new A5().fromJsonString(Z,$)}static equals(Z,$){return o0.util.equals(A5,Z,$)}static $(){return["SemSearchToolError|1 error_message 9"]}}});import{Message as Da,proto3 as G0}from"@bufbuild/protobuf";var fC="agent.v1.",o8,BZ,M5,C5,FZ,h5,v5,GZ;var lF=U(()=>{cQ();k();o8=class o8 extends G{static get runtime(){return B(this,"runtime",G0)}static $p(){return fC}};BZ=class BZ extends o8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BZ().fromBinary(Z,$)}static fromJson(Z,$){return new BZ().fromJson(Z,$)}static fromJsonString(Z,$){return new BZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(BZ,Z,$)}static $(){return["CreatePlanToolCall|1 args #0|2 result #1",C5,FZ]}};M5=class M5 extends o8{constructor(Z){super();this.name="",this.todos=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new M5().fromBinary(Z,$)}static fromJson(Z,$){return new M5().fromJson(Z,$)}static fromJsonString(Z,$){return new M5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(M5,Z,$)}static $(){return["Phase|1 name 9|2 todos #0*",B0]}};C5=class C5 extends o8{constructor(Z){super();this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new C5().fromBinary(Z,$)}static fromJson(Z,$){return new C5().fromJson(Z,$)}static fromJsonString(Z,$){return new C5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(C5,Z,$)}static $(){return["CreatePlanArgs|1 plan 9|2 todos #0*|3 overview 9|4 name 9|5 is_project 8|6 phases #1*",B0,M5]}};FZ=class FZ extends o8{constructor(Z){super();this.result={case:void 0},this.planUri="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FZ().fromBinary(Z,$)}static fromJson(Z,$){return new FZ().fromJson(Z,$)}static fromJsonString(Z,$){return new FZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(FZ,Z,$)}static $(){return["CreatePlanResult|1 success #0 result|2 error #1 result|3 plan_uri 9",h5,v5]}};h5=class h5 extends o8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new h5().fromBinary(Z,$)}static fromJson(Z,$){return new h5().fromJson(Z,$)}static fromJsonString(Z,$){return new h5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(h5,Z,$)}static $(){return["CreatePlanSuccess"]}};v5=class v5 extends o8{constructor(Z){super();this.error="",G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new v5().fromBinary(Z,$)}static fromJson(Z,$){return new v5().fromJson(Z,$)}static fromJsonString(Z,$){return new v5().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(v5,Z,$)}static $(){return["CreatePlanError|1 error 9"]}};GZ=class GZ extends o8{constructor(Z){super();G0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GZ().fromBinary(Z,$)}static fromJson(Z,$){return new GZ().fromJson(Z,$)}static fromJsonString(Z,$){return new GZ().fromJsonString(Z,$)}static equals(Z,$){return G0.util.equals(GZ,Z,$)}static $(){return["CreatePlanRequestResponse|1 result #0",FZ]}}});import{Message as Ea,proto3 as i}from"@bufbuild/protobuf";var VC="agent.v1.",e0,T5,R5,y5,m5,j5,_5,LZ,wZ,S5,g5;var pF=U(()=>{k();e0=class e0 extends G{static get runtime(){return B(this,"runtime",i)}static $p(){return VC}};T5=class T5 extends e0{constructor(Z){super();this.searchTerm="",this.toolCallId="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new T5().fromBinary(Z,$)}static fromJson(Z,$){return new T5().fromJson(Z,$)}static fromJsonString(Z,$){return new T5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(T5,Z,$)}static $(){return["WebSearchArgs|1 search_term 9|2 tool_call_id 9"]}};R5=class R5 extends e0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new R5().fromBinary(Z,$)}static fromJson(Z,$){return new R5().fromJson(Z,$)}static fromJsonString(Z,$){return new R5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(R5,Z,$)}static $(){return["WebSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",y5,m5,j5]}};y5=class y5 extends e0{constructor(Z){super();this.references=[],i.util.initPartial(Z,this)}static fromBinary(Z,$){return new y5().fromBinary(Z,$)}static fromJson(Z,$){return new y5().fromJson(Z,$)}static fromJsonString(Z,$){return new y5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(y5,Z,$)}static $(){return["WebSearchSuccess|1 references #0*",_5]}};m5=class m5 extends e0{constructor(Z){super();this.error="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new m5().fromBinary(Z,$)}static fromJson(Z,$){return new m5().fromJson(Z,$)}static fromJsonString(Z,$){return new m5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(m5,Z,$)}static $(){return["WebSearchError|1 error 9"]}};j5=class j5 extends e0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new j5().fromBinary(Z,$)}static fromJson(Z,$){return new j5().fromJson(Z,$)}static fromJsonString(Z,$){return new j5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(j5,Z,$)}static $(){return["WebSearchRejected|1 reason 9"]}};_5=class _5 extends e0{constructor(Z){super();this.title="",this.url="",this.chunk="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new _5().fromBinary(Z,$)}static fromJson(Z,$){return new _5().fromJson(Z,$)}static fromJsonString(Z,$){return new _5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(_5,Z,$)}static $(){return["WebSearchReference|1 title 9|2 url 9|3 chunk 9"]}};LZ=class LZ extends e0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new LZ().fromBinary(Z,$)}static fromJson(Z,$){return new LZ().fromJson(Z,$)}static fromJsonString(Z,$){return new LZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(LZ,Z,$)}static $(){return["WebSearchToolCall|1 args #0|2 result #1",T5,R5]}};wZ=class wZ extends e0{constructor(Z){super();this.result={case:void 0},i.util.initPartial(Z,this)}static fromBinary(Z,$){return new wZ().fromBinary(Z,$)}static fromJson(Z,$){return new wZ().fromJson(Z,$)}static fromJsonString(Z,$){return new wZ().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(wZ,Z,$)}static $(){return["WebSearchRequestResponse|1 approved #0 result|2 rejected #1 result",S5,g5]}};S5=class S5 extends e0{constructor(Z){super();i.util.initPartial(Z,this)}static fromBinary(Z,$){return new S5().fromBinary(Z,$)}static fromJson(Z,$){return new S5().fromJson(Z,$)}static fromJsonString(Z,$){return new S5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(S5,Z,$)}static $(){return["WebSearchRequestResponse.Approved"]}};g5=class g5 extends e0{constructor(Z){super();this.reason="",i.util.initPartial(Z,this)}static fromBinary(Z,$){return new g5().fromBinary(Z,$)}static fromJson(Z,$){return new g5().fromJson(Z,$)}static fromJsonString(Z,$){return new g5().fromJsonString(Z,$)}static equals(Z,$){return i.util.equals(g5,Z,$)}static $(){return["WebSearchRequestResponse.Rejected|1 reason 9"]}}});import{Message as Aa,proto3 as HQ}from"@bufbuild/protobuf";var PC="agent.v1.",NW,DZ,UZ;var iF=U(()=>{qW();k();NW=class NW extends G{static get runtime(){return B(this,"runtime",HQ)}static $p(){return PC}};DZ=class DZ extends NW{constructor(Z){super();HQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new DZ().fromBinary(Z,$)}static fromJson(Z,$){return new DZ().fromJson(Z,$)}static fromJsonString(Z,$){return new DZ().fromJsonString(Z,$)}static equals(Z,$){return HQ.util.equals(DZ,Z,$)}static $(){return["ListMcpResourcesToolCall|1 args #0|2 result #1",$Z,JZ]}};UZ=class UZ extends NW{constructor(Z){super();HQ.util.initPartial(Z,this)}static fromBinary(Z,$){return new UZ().fromBinary(Z,$)}static fromJson(Z,$){return new UZ().fromJson(Z,$)}static fromJsonString(Z,$){return new UZ().fromJsonString(Z,$)}static equals(Z,$){return HQ.util.equals(UZ,Z,$)}static $(){return["ReadMcpResourceToolCall|1 args #0|2 result #1",YZ,XZ]}}});import{Message as va,proto3 as x0}from"@bufbuild/protobuf";var aF="agent.v1.",kZ,IZ,b5,c5,d5,OZ,nF,u5;var rF=U(()=>{k();kZ=class kZ extends G{static get runtime(){return B(this,"runtime",x0)}static $p(){return aF}};IZ=class IZ extends kZ{constructor(Z){super();x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new IZ().fromBinary(Z,$)}static fromJson(Z,$){return new IZ().fromJson(Z,$)}static fromJsonString(Z,$){return new IZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(IZ,Z,$)}static $(){return["ApplyAgentDiffToolCall|1 args #0|2 result #1",b5,c5]}};b5=class b5 extends kZ{constructor(Z){super();this.agentId="",x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b5().fromBinary(Z,$)}static fromJson(Z,$){return new b5().fromJson(Z,$)}static fromJsonString(Z,$){return new b5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(b5,Z,$)}static $(){return["ApplyAgentDiffArgs|1 agent_id 9"]}};c5=class c5 extends kZ{constructor(Z){super();this.result={case:void 0},x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new c5().fromBinary(Z,$)}static fromJson(Z,$){return new c5().fromJson(Z,$)}static fromJsonString(Z,$){return new c5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(c5,Z,$)}static $(){return["ApplyAgentDiffResult|1 success #0 result|2 error #1 result",d5,u5]}};d5=class d5 extends kZ{constructor(Z){super();this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new d5().fromBinary(Z,$)}static fromJson(Z,$){return new d5().fromJson(Z,$)}static fromJsonString(Z,$){return new d5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(d5,Z,$)}static $(){return["ApplyAgentDiffSuccess|1 applied_changes #0*",OZ]}};OZ=class OZ extends kZ{constructor(Z){super();this.path="",this.changeType=nF.UNSPECIFIED,x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new OZ().fromBinary(Z,$)}static fromJson(Z,$){return new OZ().fromJson(Z,$)}static fromJsonString(Z,$){return new OZ().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(OZ,Z,$)}static $(){return["AppliedAgentChange|1 path 9|2 change_type #0|3 before_content 9?|4 after_content 9?|5 error 9?|6 message_for_model 9?",nF]}};nF=w(x0,aF,"AppliedAgentChange.ChangeType",[[0,"UNSPECIFIED"],[1,"CREATED"],[2,"MODIFIED"],[3,"DELETED"]],1);u5=class u5 extends kZ{constructor(Z){super();this.error="",this.appliedChanges=[],x0.util.initPartial(Z,this)}static fromBinary(Z,$){return new u5().fromBinary(Z,$)}static fromJson(Z,$){return new u5().fromJson(Z,$)}static fromJsonString(Z,$){return new u5().fromJsonString(Z,$)}static equals(Z,$){return x0.util.equals(u5,Z,$)}static $(){return["ApplyAgentDiffError|1 error 9|2 applied_changes #0*",OZ]}}});import{Message as ma,proto3 as n}from"@bufbuild/protobuf";var AC="agent.v1.",Z8,EZ,fZ,l5,p5,i5,e8,n5,a5,r5,s5;var sF=U(()=>{k();Z8=class Z8 extends G{static get runtime(){return B(this,"runtime",n)}static $p(){return AC}};EZ=class EZ extends Z8{constructor(Z){super();n.util.initPartial(Z,this)}static fromBinary(Z,$){return new EZ().fromBinary(Z,$)}static fromJson(Z,$){return new EZ().fromJson(Z,$)}static fromJsonString(Z,$){return new EZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(EZ,Z,$)}static $(){return["AskQuestionToolCall|1 args #0|2 result #1",fZ,e8]}};fZ=class fZ extends Z8{constructor(Z){super();this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new fZ().fromBinary(Z,$)}static fromJson(Z,$){return new fZ().fromJson(Z,$)}static fromJsonString(Z,$){return new fZ().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(fZ,Z,$)}static $(){return["AskQuestionArgs|1 title 9|2 questions #0*|5 run_async 8|6 async_original_tool_call_id 9",l5]}};l5=class l5 extends Z8{constructor(Z){super();this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,n.util.initPartial(Z,this)}static fromBinary(Z,$){return new l5().fromBinary(Z,$)}static fromJson(Z,$){return new l5().fromJson(Z,$)}static fromJsonString(Z,$){return new l5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(l5,Z,$)}static $(){return["AskQuestionArgs.Question|1 id 9|2 prompt 9|3 options #0*|4 allow_multiple 8",p5]}};p5=class p5 extends Z8{constructor(Z){super();this.id="",this.label="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new p5().fromBinary(Z,$)}static fromJson(Z,$){return new p5().fromJson(Z,$)}static fromJsonString(Z,$){return new p5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(p5,Z,$)}static $(){return["AskQuestionArgs.Option|1 id 9|2 label 9"]}};i5=class i5 extends Z8{constructor(Z){super();this.interactionId="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new i5().fromBinary(Z,$)}static fromJson(Z,$){return new i5().fromJson(Z,$)}static fromJsonString(Z,$){return new i5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(i5,Z,$)}static $(){return["AskQuestionAsync|1 interaction_id 9"]}};e8=class e8 extends Z8{constructor(Z){super();this.result={case:void 0},n.util.initPartial(Z,this)}static fromBinary(Z,$){return new e8().fromBinary(Z,$)}static fromJson(Z,$){return new e8().fromJson(Z,$)}static fromJsonString(Z,$){return new e8().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(e8,Z,$)}static $(){return["AskQuestionResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 async #3 result",n5,r5,s5,i5]}};n5=class n5 extends Z8{constructor(Z){super();this.answers=[],n.util.initPartial(Z,this)}static fromBinary(Z,$){return new n5().fromBinary(Z,$)}static fromJson(Z,$){return new n5().fromJson(Z,$)}static fromJsonString(Z,$){return new n5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(n5,Z,$)}static $(){return["AskQuestionSuccess|1 answers #0*",a5]}};a5=class a5 extends Z8{constructor(Z){super();this.questionId="",this.selectedOptionIds=[],this.freeformText="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new a5().fromBinary(Z,$)}static fromJson(Z,$){return new a5().fromJson(Z,$)}static fromJsonString(Z,$){return new a5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(a5,Z,$)}static $(){return["AskQuestionSuccess.Answer|1 question_id 9|2 selected_option_ids 9*|3 freeform_text 9"]}};r5=class r5 extends Z8{constructor(Z){super();this.errorMessage="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new r5().fromBinary(Z,$)}static fromJson(Z,$){return new r5().fromJson(Z,$)}static fromJsonString(Z,$){return new r5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(r5,Z,$)}static $(){return["AskQuestionError|1 error_message 9"]}};s5=class s5 extends Z8{constructor(Z){super();this.reason="",n.util.initPartial(Z,this)}static fromBinary(Z,$){return new s5().fromBinary(Z,$)}static fromJson(Z,$){return new s5().fromJson(Z,$)}static fromJsonString(Z,$){return new s5().fromJsonString(Z,$)}static equals(Z,$){return n.util.equals(s5,Z,$)}static $(){return["AskQuestionRejected|1 reason 9"]}}});import{Message as ga,proto3 as y8}from"@bufbuild/protobuf";var xC="agent.v1.",QQ,VZ,PZ,t5,o5;var tF=U(()=>{k();QQ=class QQ extends G{static get runtime(){return B(this,"runtime",y8)}static $p(){return xC}};VZ=class VZ extends QQ{constructor(Z){super();this.url="",this.toolCallId="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new VZ().fromBinary(Z,$)}static fromJson(Z,$){return new VZ().fromJson(Z,$)}static fromJsonString(Z,$){return new VZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(VZ,Z,$)}static $(){return["FetchArgs|1 url 9|2 tool_call_id 9"]}};PZ=class PZ extends QQ{constructor(Z){super();this.result={case:void 0},y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new PZ().fromBinary(Z,$)}static fromJson(Z,$){return new PZ().fromJson(Z,$)}static fromJsonString(Z,$){return new PZ().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(PZ,Z,$)}static $(){return["FetchResult|1 success #0 result|2 error #1 result",t5,o5]}};t5=class t5 extends QQ{constructor(Z){super();this.url="",this.content="",this.statusCode=0,this.contentType="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new t5().fromBinary(Z,$)}static fromJson(Z,$){return new t5().fromJson(Z,$)}static fromJsonString(Z,$){return new t5().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(t5,Z,$)}static $(){return["FetchSuccess|1 url 9|2 content 9|3 status_code 5|4 content_type 9"]}};o5=class o5 extends QQ{constructor(Z){super();this.url="",this.error="",y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new o5().fromBinary(Z,$)}static fromJson(Z,$){return new o5().fromJson(Z,$)}static fromJsonString(Z,$){return new o5().fromJsonString(Z,$)}static equals(Z,$){return y8.util.equals(o5,Z,$)}static $(){return["FetchError|1 url 9|2 error 9"]}}});import{Message as ua,proto3 as BW}from"@bufbuild/protobuf";var MC="agent.v1.",oF,AZ;var eF=U(()=>{tF();k();oF=class oF extends G{static get runtime(){return B(this,"runtime",BW)}static $p(){return MC}};AZ=class AZ extends oF{constructor(Z){super();BW.util.initPartial(Z,this)}static fromBinary(Z,$){return new AZ().fromBinary(Z,$)}static fromJson(Z,$){return new AZ().fromJson(Z,$)}static fromJsonString(Z,$){return new AZ().fromJsonString(Z,$)}static equals(Z,$){return BW.util.equals(AZ,Z,$)}static $(){return["FetchToolCall|1 args #0|2 result #1",VZ,PZ]}}});import{Message as aa,proto3 as t}from"@bufbuild/protobuf";var CC="agent.v1.",f8,e5,Z1,$1,J1,Y1,xZ,MZ,X1,z1;var ZG=U(()=>{k();f8=class f8 extends G{static get runtime(){return B(this,"runtime",t)}static $p(){return CC}};e5=class e5 extends f8{constructor(Z){super();this.targetModeId="",this.toolCallId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new e5().fromBinary(Z,$)}static fromJson(Z,$){return new e5().fromJson(Z,$)}static fromJsonString(Z,$){return new e5().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(e5,Z,$)}static $(){return["SwitchModeArgs|1 target_mode_id 9|2 explanation 9?|3 tool_call_id 9"]}};Z1=class Z1 extends f8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z1().fromBinary(Z,$)}static fromJson(Z,$){return new Z1().fromJson(Z,$)}static fromJsonString(Z,$){return new Z1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(Z1,Z,$)}static $(){return["SwitchModeResult|1 success #0 result|2 error #1 result|3 rejected #2 result",$1,J1,Y1]}};$1=class $1 extends f8{constructor(Z){super();this.fromModeId="",this.toModeId="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new $1().fromBinary(Z,$)}static fromJson(Z,$){return new $1().fromJson(Z,$)}static fromJsonString(Z,$){return new $1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals($1,Z,$)}static $(){return["SwitchModeSuccess|1 from_mode_id 9|2 to_mode_id 9"]}};J1=class J1 extends f8{constructor(Z){super();this.error="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new J1().fromBinary(Z,$)}static fromJson(Z,$){return new J1().fromJson(Z,$)}static fromJsonString(Z,$){return new J1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(J1,Z,$)}static $(){return["SwitchModeError|1 error 9"]}};Y1=class Y1 extends f8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y1().fromBinary(Z,$)}static fromJson(Z,$){return new Y1().fromJson(Z,$)}static fromJsonString(Z,$){return new Y1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(Y1,Z,$)}static $(){return["SwitchModeRejected|1 reason 9"]}};xZ=class xZ extends f8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new xZ().fromBinary(Z,$)}static fromJson(Z,$){return new xZ().fromJson(Z,$)}static fromJsonString(Z,$){return new xZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(xZ,Z,$)}static $(){return["SwitchModeToolCall|1 args #0|2 result #1",e5,Z1]}};MZ=class MZ extends f8{constructor(Z){super();this.result={case:void 0},t.util.initPartial(Z,this)}static fromBinary(Z,$){return new MZ().fromBinary(Z,$)}static fromJson(Z,$){return new MZ().fromJson(Z,$)}static fromJsonString(Z,$){return new MZ().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(MZ,Z,$)}static $(){return["SwitchModeRequestResponse|1 approved #0 result|2 rejected #1 result",X1,z1]}};X1=class X1 extends f8{constructor(Z){super();t.util.initPartial(Z,this)}static fromBinary(Z,$){return new X1().fromBinary(Z,$)}static fromJson(Z,$){return new X1().fromJson(Z,$)}static fromJsonString(Z,$){return new X1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(X1,Z,$)}static $(){return["SwitchModeRequestResponse.Approved"]}};z1=class z1 extends f8{constructor(Z){super();this.reason="",t.util.initPartial(Z,this)}static fromBinary(Z,$){return new z1().fromBinary(Z,$)}static fromJson(Z,$){return new z1().fromJson(Z,$)}static fromJsonString(Z,$){return new z1().fromJsonString(Z,$)}static equals(Z,$){return t.util.equals(z1,Z,$)}static $(){return["SwitchModeRequestResponse.Rejected|1 reason 9"]}}});import{Message as oa,proto3 as Y0}from"@bufbuild/protobuf";var hC="agent.v1.",m8,K1,H1,Q1,q1,CZ,hZ,W1,N1;var $G=U(()=>{k();m8=class m8 extends G{static get runtime(){return B(this,"runtime",Y0)}static $p(){return hC}};K1=class K1 extends m8{constructor(Z){super();this.description="",this.referenceImagePaths=[],Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K1().fromBinary(Z,$)}static fromJson(Z,$){return new K1().fromJson(Z,$)}static fromJsonString(Z,$){return new K1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(K1,Z,$)}static $(){return["GenerateImageArgs|1 description 9|2 file_path 9?|5 reference_image_paths 9*|6 aspect_ratio 9?"]}};H1=class H1 extends m8{constructor(Z){super();this.result={case:void 0},Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H1().fromBinary(Z,$)}static fromJson(Z,$){return new H1().fromJson(Z,$)}static fromJsonString(Z,$){return new H1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(H1,Z,$)}static $(){return["GenerateImageResult|1 success #0 result|2 error #1 result",Q1,q1]}};Q1=class Q1 extends m8{constructor(Z){super();this.filePath="",this.imageData="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q1().fromBinary(Z,$)}static fromJson(Z,$){return new Q1().fromJson(Z,$)}static fromJsonString(Z,$){return new Q1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(Q1,Z,$)}static $(){return["GenerateImageSuccess|1 file_path 9|2 image_data 9"]}};q1=class q1 extends m8{constructor(Z){super();this.error="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q1().fromBinary(Z,$)}static fromJson(Z,$){return new q1().fromJson(Z,$)}static fromJsonString(Z,$){return new q1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(q1,Z,$)}static $(){return["GenerateImageError|1 error 9"]}};CZ=class CZ extends m8{constructor(Z){super();Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CZ().fromBinary(Z,$)}static fromJson(Z,$){return new CZ().fromJson(Z,$)}static fromJsonString(Z,$){return new CZ().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(CZ,Z,$)}static $(){return["GenerateImageToolCall|1 args #0|2 result #1",K1,H1]}};hZ=class hZ extends m8{constructor(Z){super();this.result={case:void 0},Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hZ().fromBinary(Z,$)}static fromJson(Z,$){return new hZ().fromJson(Z,$)}static fromJsonString(Z,$){return new hZ().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(hZ,Z,$)}static $(){return["GenerateImageRequestResponse|1 approved #0 result|2 rejected #1 result",W1,N1]}};W1=class W1 extends m8{constructor(Z){super();this.description="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W1().fromBinary(Z,$)}static fromJson(Z,$){return new W1().fromJson(Z,$)}static fromJsonString(Z,$){return new W1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(W1,Z,$)}static $(){return["GenerateImageRequestResponse.Approved|1 description 9"]}};N1=class N1 extends m8{constructor(Z){super();this.reason="",Y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N1().fromBinary(Z,$)}static fromJson(Z,$){return new N1().fromJson(Z,$)}static fromJsonString(Z,$){return new N1().fromJsonString(Z,$)}static equals(Z,$){return Y0.util.equals(N1,Z,$)}static $(){return["GenerateImageRequestResponse.Rejected|1 reason 9"]}}});import{Message as Jr,proto3 as L0,protoInt64 as vC}from"@bufbuild/protobuf";var FW="agent.v1.",RZ,JG,TC,vZ,TZ,B1,F1,G1,L1;var YG=U(()=>{k();RZ=class RZ extends G{static get runtime(){return B(this,"runtime",L0)}static $p(){return FW}};JG=w(L0,FW,"RecordingMode",[[0,"UNSPECIFIED"],[1,"START_RECORDING"],[2,"SAVE_RECORDING"],[3,"DISCARD_RECORDING"]],1),TC=w(L0,FW,"RequestedFilePathRejectedReason",[[0,"UNSPECIFIED"],[1,"SLASHES_NOT_ALLOWED"]],1);vZ=class vZ extends RZ{constructor(Z){super();this.mode=JG.UNSPECIFIED,this.toolCallId="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vZ().fromBinary(Z,$)}static fromJson(Z,$){return new vZ().fromJson(Z,$)}static fromJsonString(Z,$){return new vZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(vZ,Z,$)}static $(){return["RecordScreenArgs|1 mode #0|2 tool_call_id 9|3 save_as_filename 9?",JG]}};TZ=class TZ extends RZ{constructor(Z){super();this.result={case:void 0},L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TZ().fromBinary(Z,$)}static fromJson(Z,$){return new TZ().fromJson(Z,$)}static fromJsonString(Z,$){return new TZ().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(TZ,Z,$)}static $(){return["RecordScreenResult|1 start_success #0 result|2 save_success #1 result|3 discard_success #2 result|4 failure #3 result",B1,F1,G1,L1]}};B1=class B1 extends RZ{constructor(Z){super();this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B1().fromBinary(Z,$)}static fromJson(Z,$){return new B1().fromJson(Z,$)}static fromJsonString(Z,$){return new B1().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(B1,Z,$)}static $(){return["RecordScreenStartSuccess|1 was_prior_recording_cancelled 8|2 was_save_as_filename_ignored 8"]}};F1=class F1 extends RZ{constructor(Z){super();this.path="",this.recordingDurationMs=vC.zero,L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new F1().fromBinary(Z,$)}static fromJson(Z,$){return new F1().fromJson(Z,$)}static fromJsonString(Z,$){return new F1().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(F1,Z,$)}static $(){return["RecordScreenSaveSuccess|1 path 9|2 recording_duration_ms 3|3 requested_file_path_rejected_reason #0?",TC]}};G1=class G1 extends RZ{constructor(Z){super();L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new G1().fromBinary(Z,$)}static fromJson(Z,$){return new G1().fromJson(Z,$)}static fromJsonString(Z,$){return new G1().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(G1,Z,$)}static $(){return["RecordScreenDiscardSuccess"]}};L1=class L1 extends RZ{constructor(Z){super();this.error="",L0.util.initPartial(Z,this)}static fromBinary(Z,$){return new L1().fromBinary(Z,$)}static fromJson(Z,$){return new L1().fromJson(Z,$)}static fromJsonString(Z,$){return new L1().fromJsonString(Z,$)}static equals(Z,$){return L0.util.equals(L1,Z,$)}static $(){return["RecordScreenFailure|1 error 9"]}}});import{Message as Kr,proto3 as GW}from"@bufbuild/protobuf";var RC="agent.v1.",XG,yZ;var zG=U(()=>{YG();k();XG=class XG extends G{static get runtime(){return B(this,"runtime",GW)}static $p(){return RC}};yZ=class yZ extends XG{constructor(Z){super();GW.util.initPartial(Z,this)}static fromBinary(Z,$){return new yZ().fromBinary(Z,$)}static fromJson(Z,$){return new yZ().fromJson(Z,$)}static fromJsonString(Z,$){return new yZ().fromJsonString(Z,$)}static equals(Z,$){return GW.util.equals(yZ,Z,$)}static $(){return["RecordScreenToolCall|1 args #0|2 result #1",vZ,TZ]}}});import{Message as Nr,proto3 as C}from"@bufbuild/protobuf";var qQ="agent.v1.",l,Z6,KG,HG,QG,V8,w1,D1,U1,I1,O1,k1,E1,f1,V1,P1,A1,x1,M1,C1,h1,v1,T1,mZ,R1,jZ;var qG=U(()=>{k();l=class l extends G{static get runtime(){return B(this,"runtime",C)}static $p(){return qQ}};Z6=w(C,qQ,"MouseButton",[[0,"UNSPECIFIED"],[1,"LEFT"],[2,"RIGHT"],[3,"MIDDLE"],[4,"BACK"],[5,"FORWARD"]],1),KG=w(C,qQ,"ScrollDirection",[[0,"UNSPECIFIED"],[1,"UP"],[2,"DOWN"],[3,"LEFT"],[4,"RIGHT"]],1),HG=w(C,qQ,"KeyStroke",[[0,"UNSPECIFIED"],[1,"TAP"],[2,"DOWN"],[3,"UP"]],1),QG=w(C,qQ,"ComputerUseDriver",[[0,"UNSPECIFIED"],[1,"XDOTOOL"],[2,"NATIVE_X11"]],1);V8=class V8 extends l{constructor(Z){super();this.x=0,this.y=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V8().fromBinary(Z,$)}static fromJson(Z,$){return new V8().fromJson(Z,$)}static fromJsonString(Z,$){return new V8().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V8,Z,$)}static $(){return["Coordinate|1 x 5|2 y 5"]}};w1=class w1 extends l{constructor(Z){super();this.toolCallId="",this.actions=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new w1().fromBinary(Z,$)}static fromJson(Z,$){return new w1().fromJson(Z,$)}static fromJsonString(Z,$){return new w1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(w1,Z,$)}static $(){return["ComputerUseArgs|1 tool_call_id 9|2 actions #0*|3 description 9?|4 bind_unmapped_characters 8?|5 desktop_lease_actor_id 9?|6 screenshot_settle_ms 5?|10 native_x11_driver #1?|11 mark_monitor_busy 8?|9 full_resolution_screenshot 8?",U1,D1]}};D1=class D1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new D1().fromBinary(Z,$)}static fromJson(Z,$){return new D1().fromJson(Z,$)}static fromJsonString(Z,$){return new D1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(D1,Z,$)}static $(){return["NativeX11Driver|1 typing_delay_ms 5?|2 allow_fallback 8?"]}};U1=class U1 extends l{constructor(Z){super();this.action={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new U1().fromBinary(Z,$)}static fromJson(Z,$){return new U1().fromJson(Z,$)}static fromJsonString(Z,$){return new U1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(U1,Z,$)}static $(){return["ComputerUseAction|1 mouse_move #0 action|2 click #1 action|3 mouse_down #2 action|4 mouse_up #3 action|5 drag #4 action|6 scroll #5 action|7 type #6 action|8 key #7 action|9 wait #8 action|10 screenshot #9 action|11 cursor_position #10 action",I1,O1,k1,E1,f1,V1,P1,A1,x1,M1,C1]}};I1=class I1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new I1().fromBinary(Z,$)}static fromJson(Z,$){return new I1().fromJson(Z,$)}static fromJsonString(Z,$){return new I1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(I1,Z,$)}static $(){return["MouseMoveAction|1 coordinate #0",V8]}};O1=class O1 extends l{constructor(Z){super();this.button=Z6.UNSPECIFIED,this.count=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new O1().fromBinary(Z,$)}static fromJson(Z,$){return new O1().fromJson(Z,$)}static fromJsonString(Z,$){return new O1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(O1,Z,$)}static $(){return["ClickAction|1 coordinate #0?|2 button #1|3 count 5|4 modifier_keys 9?",V8,Z6]}};k1=class k1 extends l{constructor(Z){super();this.button=Z6.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new k1().fromBinary(Z,$)}static fromJson(Z,$){return new k1().fromJson(Z,$)}static fromJsonString(Z,$){return new k1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(k1,Z,$)}static $(){return["MouseDownAction|1 button #0",Z6]}};E1=class E1 extends l{constructor(Z){super();this.button=Z6.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new E1().fromBinary(Z,$)}static fromJson(Z,$){return new E1().fromJson(Z,$)}static fromJsonString(Z,$){return new E1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(E1,Z,$)}static $(){return["MouseUpAction|1 button #0",Z6]}};f1=class f1 extends l{constructor(Z){super();this.path=[],this.button=Z6.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new f1().fromBinary(Z,$)}static fromJson(Z,$){return new f1().fromJson(Z,$)}static fromJsonString(Z,$){return new f1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(f1,Z,$)}static $(){return["DragAction|1 path #0*|2 button #1|3 modifier_keys 9?",V8,Z6]}};V1=class V1 extends l{constructor(Z){super();this.direction=KG.UNSPECIFIED,this.amount=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new V1().fromBinary(Z,$)}static fromJson(Z,$){return new V1().fromJson(Z,$)}static fromJsonString(Z,$){return new V1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(V1,Z,$)}static $(){return["ScrollAction|1 coordinate #0?|2 direction #1|3 amount 5|4 modifier_keys 9?",V8,KG]}};P1=class P1 extends l{constructor(Z){super();this.text="",C.util.initPartial(Z,this)}static fromBinary(Z,$){return new P1().fromBinary(Z,$)}static fromJson(Z,$){return new P1().fromJson(Z,$)}static fromJsonString(Z,$){return new P1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(P1,Z,$)}static $(){return["TypeAction|1 text 9"]}};A1=class A1 extends l{constructor(Z){super();this.key="",this.stroke=HG.UNSPECIFIED,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new A1().fromBinary(Z,$)}static fromJson(Z,$){return new A1().fromJson(Z,$)}static fromJsonString(Z,$){return new A1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(A1,Z,$)}static $(){return["KeyAction|1 key 9|2 hold_duration_ms 5?|3 stroke #0",HG]}};x1=class x1 extends l{constructor(Z){super();this.durationMs=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new x1().fromBinary(Z,$)}static fromJson(Z,$){return new x1().fromJson(Z,$)}static fromJsonString(Z,$){return new x1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(x1,Z,$)}static $(){return["WaitAction|1 duration_ms 5"]}};M1=class M1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new M1().fromBinary(Z,$)}static fromJson(Z,$){return new M1().fromJson(Z,$)}static fromJsonString(Z,$){return new M1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(M1,Z,$)}static $(){return["ScreenshotAction"]}};C1=class C1 extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new C1().fromBinary(Z,$)}static fromJson(Z,$){return new C1().fromJson(Z,$)}static fromJsonString(Z,$){return new C1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(C1,Z,$)}static $(){return["CursorPositionAction"]}};h1=class h1 extends l{constructor(Z){super();this.result={case:void 0},C.util.initPartial(Z,this)}static fromBinary(Z,$){return new h1().fromBinary(Z,$)}static fromJson(Z,$){return new h1().fromJson(Z,$)}static fromJsonString(Z,$){return new h1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(h1,Z,$)}static $(){return["ComputerUseResult|1 success #0 result|2 error #1 result",v1,R1]}};v1=class v1 extends l{constructor(Z){super();this.actionCount=0,this.durationMs=0,this.typing=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new v1().fromBinary(Z,$)}static fromJson(Z,$){return new v1().fromJson(Z,$)}static fromJsonString(Z,$){return new v1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(v1,Z,$)}static $(){return["ComputerUseSuccess|1 action_count 5|2 duration_ms 5|3 screenshot 9?|4 log 9?|5 screenshot_path 9?|6 cursor_position #0?|7 settle_ms 5?|9 driver #1?|10 monitor_busy_marked 8?|11 full_resolution_screenshot #2?|12 typing #3*",V8,QG,T1,mZ]}};T1=class T1 extends l{constructor(Z){super();this.path="",this.sha256="",this.sizeBytes=0,this.width=0,this.height=0,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new T1().fromBinary(Z,$)}static fromJson(Z,$){return new T1().fromJson(Z,$)}static fromJsonString(Z,$){return new T1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(T1,Z,$)}static $(){return["ComputerUseFullResolutionScreenshot|1 path 9|2 sha256 9|3 size_bytes 13|4 width 5|5 height 5"]}};mZ=class mZ extends l{constructor(Z){super();this.method="",this.chars=0,this.atoms=0,this.typedAtoms=0,this.aborted=!1,C.util.initPartial(Z,this)}static fromBinary(Z,$){return new mZ().fromBinary(Z,$)}static fromJson(Z,$){return new mZ().fromJson(Z,$)}static fromJsonString(Z,$){return new mZ().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(mZ,Z,$)}static $(){return["ComputerUseTyping|1 method 9|2 chars 5|3 atoms 5|4 typed_atoms 5|5 aborted 8|6 check 9?|7 verified 5?|8 unchecked 9?|9 landing 9?"]}};R1=class R1 extends l{constructor(Z){super();this.error="",this.actionCount=0,this.durationMs=0,this.typing=[],C.util.initPartial(Z,this)}static fromBinary(Z,$){return new R1().fromBinary(Z,$)}static fromJson(Z,$){return new R1().fromJson(Z,$)}static fromJsonString(Z,$){return new R1().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(R1,Z,$)}static $(){return["ComputerUseError|1 error 9|2 action_count 5|3 duration_ms 5|4 log 9?|5 screenshot 9?|6 screenshot_path 9?|7 driver #0?|8 monitor_busy_marked 8?|9 typing #1*",QG,mZ]}};jZ=class jZ extends l{constructor(Z){super();C.util.initPartial(Z,this)}static fromBinary(Z,$){return new jZ().fromBinary(Z,$)}static fromJson(Z,$){return new jZ().fromJson(Z,$)}static fromJsonString(Z,$){return new jZ().fromJsonString(Z,$)}static equals(Z,$){return C.util.equals(jZ,Z,$)}static $(){return["ComputerUseToolCall|1 args #0|2 result #1",w1,h1]}}});import{Message as Lr,proto3 as j8}from"@bufbuild/protobuf";var yC="agent.v1.",WQ,_Z,SZ,y1,m1;var WG=U(()=>{k();WQ=class WQ extends G{static get runtime(){return B(this,"runtime",j8)}static $p(){return yC}};_Z=class _Z extends WQ{constructor(Z){super();this.shellId=0,this.chars="",j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _Z().fromBinary(Z,$)}static fromJson(Z,$){return new _Z().fromJson(Z,$)}static fromJsonString(Z,$){return new _Z().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(_Z,Z,$)}static $(){return["WriteShellStdinArgs|1 shell_id 13|2 chars 9"]}};SZ=class SZ extends WQ{constructor(Z){super();this.result={case:void 0},j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SZ().fromBinary(Z,$)}static fromJson(Z,$){return new SZ().fromJson(Z,$)}static fromJsonString(Z,$){return new SZ().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(SZ,Z,$)}static $(){return["WriteShellStdinResult|1 success #0 result|2 error #1 result",y1,m1]}};y1=class y1 extends WQ{constructor(Z){super();this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new y1().fromBinary(Z,$)}static fromJson(Z,$){return new y1().fromJson(Z,$)}static fromJsonString(Z,$){return new y1().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(y1,Z,$)}static $(){return["WriteShellStdinSuccess|1 shell_id 13|2 terminal_file_length_before_input_written 13"]}};m1=class m1 extends WQ{constructor(Z){super();this.error="",j8.util.initPartial(Z,this)}static fromBinary(Z,$){return new m1().fromBinary(Z,$)}static fromJson(Z,$){return new m1().fromJson(Z,$)}static fromJsonString(Z,$){return new m1().fromJsonString(Z,$)}static equals(Z,$){return j8.util.equals(m1,Z,$)}static $(){return["WriteShellStdinError|1 error 9"]}}});import{Message as Ir,proto3 as LW}from"@bufbuild/protobuf";var mC="agent.v1.",NG,gZ;var BG=U(()=>{WG();k();NG=class NG extends G{static get runtime(){return B(this,"runtime",LW)}static $p(){return mC}};gZ=class gZ extends NG{constructor(Z){super();LW.util.initPartial(Z,this)}static fromBinary(Z,$){return new gZ().fromBinary(Z,$)}static fromJson(Z,$){return new gZ().fromJson(Z,$)}static fromJsonString(Z,$){return new gZ().fromJsonString(Z,$)}static equals(Z,$){return LW.util.equals(gZ,Z,$)}static $(){return["WriteShellStdinToolCall|1 args #0|2 result #1",_Z,SZ]}}});import{Message as Vr,proto3 as $8}from"@bufbuild/protobuf";var jC="agent.v1.",b1,j1,_1,S1,g1,bZ;var FG=U(()=>{k();b1=class b1 extends G{static get runtime(){return B(this,"runtime",$8)}static $p(){return jC}};j1=class j1 extends b1{constructor(Z){super();this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new j1().fromBinary(Z,$)}static fromJson(Z,$){return new j1().fromJson(Z,$)}static fromJsonString(Z,$){return new j1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(j1,Z,$)}static $(){return["ReflectArgs|1 unexpected_action_outcomes 9|2 relevant_instructions 9|3 scenario_analysis 9|4 critical_synthesis 9|5 next_steps 9|6 tool_call_id 9"]}};_1=class _1 extends b1{constructor(Z){super();this.result={case:void 0},$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new _1().fromBinary(Z,$)}static fromJson(Z,$){return new _1().fromJson(Z,$)}static fromJsonString(Z,$){return new _1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(_1,Z,$)}static $(){return["ReflectResult|1 success #0 result|2 error #1 result",S1,g1]}};S1=class S1 extends b1{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new S1().fromBinary(Z,$)}static fromJson(Z,$){return new S1().fromJson(Z,$)}static fromJsonString(Z,$){return new S1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(S1,Z,$)}static $(){return["ReflectSuccess"]}};g1=class g1 extends b1{constructor(Z){super();this.error="",$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new g1().fromBinary(Z,$)}static fromJson(Z,$){return new g1().fromJson(Z,$)}static fromJsonString(Z,$){return new g1().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(g1,Z,$)}static $(){return["ReflectError|1 error 9"]}};bZ=class bZ extends b1{constructor(Z){super();$8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bZ().fromBinary(Z,$)}static fromJson(Z,$){return new bZ().fromJson(Z,$)}static fromJsonString(Z,$){return new bZ().fromJsonString(Z,$)}static equals(Z,$){return $8.util.equals(bZ,Z,$)}static $(){return["ReflectToolCall|1 args #0|2 result #1",j1,_1]}}});import{Message as Mr,proto3 as _8}from"@bufbuild/protobuf";var _C="agent.v1.",NQ,cZ,$6,c1,dZ;var GG=U(()=>{k();NQ=class NQ extends G{static get runtime(){return B(this,"runtime",_8)}static $p(){return _C}};cZ=class cZ extends NQ{constructor(Z){super();this.installCommand="",this.startCommand="",this.dockerfileContents="",_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cZ().fromBinary(Z,$)}static fromJson(Z,$){return new cZ().fromJson(Z,$)}static fromJsonString(Z,$){return new cZ().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(cZ,Z,$)}static $(){return["SetupVmEnvironmentArgs|2 install_command 9|3 start_command 9|4 dockerfile_contents 9"]}};$6=class $6 extends NQ{constructor(Z){super();this.result={case:void 0},_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new $6().fromBinary(Z,$)}static fromJson(Z,$){return new $6().fromJson(Z,$)}static fromJsonString(Z,$){return new $6().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals($6,Z,$)}static $(){return["SetupVmEnvironmentResult|1 success #0 result",c1]}};c1=class c1 extends NQ{constructor(Z){super();_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new c1().fromBinary(Z,$)}static fromJson(Z,$){return new c1().fromJson(Z,$)}static fromJsonString(Z,$){return new c1().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(c1,Z,$)}static $(){return["SetupVmEnvironmentSuccess"]}};dZ=class dZ extends NQ{constructor(Z){super();_8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dZ().fromBinary(Z,$)}static fromJson(Z,$){return new dZ().fromJson(Z,$)}static fromJsonString(Z,$){return new dZ().fromJsonString(Z,$)}static equals(Z,$){return _8.util.equals(dZ,Z,$)}static $(){return["SetupVmEnvironmentToolCall|1 args #0|2 result #1",cZ,$6]}}});import{Message as Tr,proto3 as J8}from"@bufbuild/protobuf";var SC="agent.v1.",i1,d1,u1,l1,p1,uZ;var LG=U(()=>{k();i1=class i1 extends G{static get runtime(){return B(this,"runtime",J8)}static $p(){return SC}};d1=class d1 extends i1{constructor(Z){super();this.toolCallId="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new d1().fromBinary(Z,$)}static fromJson(Z,$){return new d1().fromJson(Z,$)}static fromJsonString(Z,$){return new d1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(d1,Z,$)}static $(){return["StartGrindExecutionArgs|1 explanation 9?|2 tool_call_id 9"]}};u1=class u1 extends i1{constructor(Z){super();this.result={case:void 0},J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new u1().fromBinary(Z,$)}static fromJson(Z,$){return new u1().fromJson(Z,$)}static fromJsonString(Z,$){return new u1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(u1,Z,$)}static $(){return["StartGrindExecutionResult|1 success #0 result|2 error #1 result",l1,p1]}};l1=class l1 extends i1{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new l1().fromBinary(Z,$)}static fromJson(Z,$){return new l1().fromJson(Z,$)}static fromJsonString(Z,$){return new l1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(l1,Z,$)}static $(){return["StartGrindExecutionSuccess"]}};p1=class p1 extends i1{constructor(Z){super();this.error="",J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new p1().fromBinary(Z,$)}static fromJson(Z,$){return new p1().fromJson(Z,$)}static fromJsonString(Z,$){return new p1().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(p1,Z,$)}static $(){return["StartGrindExecutionError|1 error 9"]}};uZ=class uZ extends i1{constructor(Z){super();J8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uZ().fromBinary(Z,$)}static fromJson(Z,$){return new uZ().fromJson(Z,$)}static fromJsonString(Z,$){return new uZ().fromJsonString(Z,$)}static equals(Z,$){return J8.util.equals(uZ,Z,$)}static $(){return["StartGrindExecutionToolCall|1 args #0|2 result #1",d1,u1]}}});import{Message as jr,proto3 as Y8}from"@bufbuild/protobuf";var gC="agent.v1.",t1,n1,a1,r1,s1,lZ;var wG=U(()=>{k();t1=class t1 extends G{static get runtime(){return B(this,"runtime",Y8)}static $p(){return gC}};n1=class n1 extends t1{constructor(Z){super();this.toolCallId="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new n1().fromBinary(Z,$)}static fromJson(Z,$){return new n1().fromJson(Z,$)}static fromJsonString(Z,$){return new n1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(n1,Z,$)}static $(){return["StartGrindPlanningArgs|1 explanation 9?|2 tool_call_id 9"]}};a1=class a1 extends t1{constructor(Z){super();this.result={case:void 0},Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new a1().fromBinary(Z,$)}static fromJson(Z,$){return new a1().fromJson(Z,$)}static fromJsonString(Z,$){return new a1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(a1,Z,$)}static $(){return["StartGrindPlanningResult|1 success #0 result|2 error #1 result",r1,s1]}};r1=class r1 extends t1{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new r1().fromBinary(Z,$)}static fromJson(Z,$){return new r1().fromJson(Z,$)}static fromJsonString(Z,$){return new r1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(r1,Z,$)}static $(){return["StartGrindPlanningSuccess"]}};s1=class s1 extends t1{constructor(Z){super();this.error="",Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new s1().fromBinary(Z,$)}static fromJson(Z,$){return new s1().fromJson(Z,$)}static fromJsonString(Z,$){return new s1().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(s1,Z,$)}static $(){return["StartGrindPlanningError|1 error 9"]}};lZ=class lZ extends t1{constructor(Z){super();Y8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lZ().fromBinary(Z,$)}static fromJson(Z,$){return new lZ().fromJson(Z,$)}static fromJsonString(Z,$){return new lZ().fromJsonString(Z,$)}static equals(Z,$){return Y8.util.equals(lZ,Z,$)}static $(){return["StartGrindPlanningToolCall|1 args #0|2 result #1",n1,a1]}}});import{Message as br,proto3 as o}from"@bufbuild/protobuf";var bC="agent.v1.",P8,o1,e1,ZJ,$J,JJ,pZ,iZ,YJ,XJ;var DG=U(()=>{C6();k();P8=class P8 extends G{static get runtime(){return B(this,"runtime",o)}static $p(){return bC}};o1=class o1 extends P8{constructor(Z){super();this.url="",this.toolCallId="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new o1().fromBinary(Z,$)}static fromJson(Z,$){return new o1().fromJson(Z,$)}static fromJsonString(Z,$){return new o1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(o1,Z,$)}static $(){return["WebFetchArgs|1 url 9|2 tool_call_id 9"]}};e1=class e1 extends P8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new e1().fromBinary(Z,$)}static fromJson(Z,$){return new e1().fromJson(Z,$)}static fromJsonString(Z,$){return new e1().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(e1,Z,$)}static $(){return["WebFetchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",ZJ,$J,JJ]}};ZJ=class ZJ extends P8{constructor(Z){super();this.url="",this.markdown="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZJ().fromBinary(Z,$)}static fromJson(Z,$){return new ZJ().fromJson(Z,$)}static fromJsonString(Z,$){return new ZJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(ZJ,Z,$)}static $(){return["WebFetchSuccess|1 url 9|2 markdown 9|3 output_location #0?",N0]}};$J=class $J extends P8{constructor(Z){super();this.url="",this.error="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new $J().fromBinary(Z,$)}static fromJson(Z,$){return new $J().fromJson(Z,$)}static fromJsonString(Z,$){return new $J().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals($J,Z,$)}static $(){return["WebFetchError|1 url 9|2 error 9"]}};JJ=class JJ extends P8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new JJ().fromBinary(Z,$)}static fromJson(Z,$){return new JJ().fromJson(Z,$)}static fromJsonString(Z,$){return new JJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(JJ,Z,$)}static $(){return["WebFetchRejected|1 reason 9"]}};pZ=class pZ extends P8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new pZ().fromBinary(Z,$)}static fromJson(Z,$){return new pZ().fromJson(Z,$)}static fromJsonString(Z,$){return new pZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(pZ,Z,$)}static $(){return["WebFetchToolCall|1 args #0|2 result #1",o1,e1]}};iZ=class iZ extends P8{constructor(Z){super();this.result={case:void 0},o.util.initPartial(Z,this)}static fromBinary(Z,$){return new iZ().fromBinary(Z,$)}static fromJson(Z,$){return new iZ().fromJson(Z,$)}static fromJsonString(Z,$){return new iZ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(iZ,Z,$)}static $(){return["WebFetchRequestResponse|1 approved #0 result|2 rejected #1 result",YJ,XJ]}};YJ=class YJ extends P8{constructor(Z){super();o.util.initPartial(Z,this)}static fromBinary(Z,$){return new YJ().fromBinary(Z,$)}static fromJson(Z,$){return new YJ().fromJson(Z,$)}static fromJsonString(Z,$){return new YJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(YJ,Z,$)}static $(){return["WebFetchRequestResponse.Approved"]}};XJ=class XJ extends P8{constructor(Z){super();this.reason="",o.util.initPartial(Z,this)}static fromBinary(Z,$){return new XJ().fromBinary(Z,$)}static fromJson(Z,$){return new XJ().fromJson(Z,$)}static fromJsonString(Z,$){return new XJ().fromJsonString(Z,$)}static equals(Z,$){return o.util.equals(XJ,Z,$)}static $(){return["WebFetchRequestResponse.Rejected|1 reason 9"]}}});import{Message as pr,proto3 as M0}from"@bufbuild/protobuf";var IG="agent.v1.",rZ,UG,nZ,zJ,KJ,HJ,QJ,aZ;var OG=U(()=>{k();rZ=class rZ extends G{static get runtime(){return B(this,"runtime",M0)}static $p(){return IG}};UG=w(M0,IG,"BugfixVerdict",[[0,"UNSPECIFIED"],[1,"FIXED"],[2,"FALSE_POSITIVE"],[3,"COULD_NOT_FIX"],[4,"RESOLVED_BY_OTHER_FIX"]],1);nZ=class nZ extends rZ{constructor(Z){super();this.bugId="",this.bugTitle="",this.verdict=UG.UNSPECIFIED,this.explanation="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new nZ().fromBinary(Z,$)}static fromJson(Z,$){return new nZ().fromJson(Z,$)}static fromJsonString(Z,$){return new nZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(nZ,Z,$)}static $(){return["BugfixResultItem|1 bug_id 9|2 bug_title 9|3 verdict #0|4 explanation 9|5 severity 9?",UG]}};zJ=class zJ extends rZ{constructor(Z){super();this.summary="",this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new zJ().fromBinary(Z,$)}static fromJson(Z,$){return new zJ().fromJson(Z,$)}static fromJsonString(Z,$){return new zJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(zJ,Z,$)}static $(){return["ReportBugfixResultsArgs|1 summary 9|2 results #0*",nZ]}};KJ=class KJ extends rZ{constructor(Z){super();this.results=[],M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new KJ().fromBinary(Z,$)}static fromJson(Z,$){return new KJ().fromJson(Z,$)}static fromJsonString(Z,$){return new KJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(KJ,Z,$)}static $(){return["ReportBugfixResultsSuccess|1 results #0*",nZ]}};HJ=class HJ extends rZ{constructor(Z){super();this.error="",M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new HJ().fromBinary(Z,$)}static fromJson(Z,$){return new HJ().fromJson(Z,$)}static fromJsonString(Z,$){return new HJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(HJ,Z,$)}static $(){return["ReportBugfixResultsError|1 error 9"]}};QJ=class QJ extends rZ{constructor(Z){super();this.result={case:void 0},M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new QJ().fromBinary(Z,$)}static fromJson(Z,$){return new QJ().fromJson(Z,$)}static fromJsonString(Z,$){return new QJ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(QJ,Z,$)}static $(){return["ReportBugfixResultsResult|1 success #0 result|2 error #1 result",KJ,HJ]}};aZ=class aZ extends rZ{constructor(Z){super();M0.util.initPartial(Z,this)}static fromBinary(Z,$){return new aZ().fromBinary(Z,$)}static fromJson(Z,$){return new aZ().fromJson(Z,$)}static fromJsonString(Z,$){return new aZ().fromJsonString(Z,$)}static equals(Z,$){return M0.util.equals(aZ,Z,$)}static $(){return["ReportBugfixResultsToolCall|1 args #0|2 result #1",zJ,QJ]}}});import{Message as rr,proto3 as X8}from"@bufbuild/protobuf";var cC="agent.v1.",FJ,qJ,WJ,NJ,BJ,sZ;var kG=U(()=>{C6();k();FJ=class FJ extends G{static get runtime(){return B(this,"runtime",X8)}static $p(){return cC}};qJ=class qJ extends FJ{constructor(Z){super();this.filePaths=[],this.commitHashes=[],X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new qJ().fromBinary(Z,$)}static fromJson(Z,$){return new qJ().fromJson(Z,$)}static fromJsonString(Z,$){return new qJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(qJ,Z,$)}static $(){return["AiAttributionArgs|5 file_paths 9*|2 start_line 5?|3 end_line 5?|6 commit_hashes 9*|7 output_mode 9?|9 max_commits 5?|10 include_line_ranges 8?"]}};WJ=class WJ extends FJ{constructor(Z){super();this.result={case:void 0},X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new WJ().fromBinary(Z,$)}static fromJson(Z,$){return new WJ().fromJson(Z,$)}static fromJsonString(Z,$){return new WJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(WJ,Z,$)}static $(){return["AiAttributionResult|1 success #0 result|2 error #1 result",NJ,BJ]}};NJ=class NJ extends FJ{constructor(Z){super();this.attributionText="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new NJ().fromBinary(Z,$)}static fromJson(Z,$){return new NJ().fromJson(Z,$)}static fromJsonString(Z,$){return new NJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(NJ,Z,$)}static $(){return["AiAttributionSuccess|1 attribution_text 9|2 output_location #0?",N0]}};BJ=class BJ extends FJ{constructor(Z){super();this.error="",X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new BJ().fromBinary(Z,$)}static fromJson(Z,$){return new BJ().fromJson(Z,$)}static fromJsonString(Z,$){return new BJ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(BJ,Z,$)}static $(){return["AiAttributionError|1 error 9"]}};sZ=class sZ extends FJ{constructor(Z){super();X8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sZ().fromBinary(Z,$)}static fromJson(Z,$){return new sZ().fromJson(Z,$)}static fromJsonString(Z,$){return new sZ().fromJsonString(Z,$)}static equals(Z,$){return X8.util.equals(sZ,Z,$)}static $(){return["AiAttributionToolCall|1 args #0|2 result #1",qJ,WJ]}}});import{Message as Zs,proto3 as R,protoInt64 as dC}from"@bufbuild/protobuf";var uQ="agent.v1.",e,EG,fG,VG,GJ,LJ,wJ,DJ,UJ,IJ,OJ,kJ,EJ,fJ,J6,VJ,PJ,AJ,xJ,MJ,CJ,tZ;var PG=U(()=>{k();e=class e extends G{static get runtime(){return B(this,"runtime",R)}static $p(){return uQ}};EG=w(R,uQ,"MergePrMode",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"AUTO"],[3,"DISABLE_AUTO"]],1),fG=w(R,uQ,"MergePrMethod",[[0,"UNSPECIFIED"],[1,"MERGE"],[2,"SQUASH"]],1),VG=w(R,uQ,"PullRequestStatus",[[0,"UNSPECIFIED"],[1,"OPEN"],[2,"CLOSED"]],1);GJ=class GJ extends e{constructor(Z){super();this.toolCallId="",this.action={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new GJ().fromBinary(Z,$)}static fromJson(Z,$){return new GJ().fromJson(Z,$)}static fromJsonString(Z,$){return new GJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(GJ,Z,$)}static $(){return["PrManagementArgs|1 tool_call_id 9|2 create_pr #0 action|3 update_pr #1 action|4 post_comment #2 action|5 resolve_comment #3 action|6 get_ci_status #4 action|7 set_pr_status #5 action|8 merge_pr #6 action|9 list_prs #7 action|10 get_pr #8 action",LJ,wJ,DJ,UJ,IJ,OJ,kJ,EJ,fJ]}};LJ=class LJ extends e{constructor(Z){super();this.title="",this.body="",this.branchName="",this.addLabels=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new LJ().fromBinary(Z,$)}static fromJson(Z,$){return new LJ().fromJson(Z,$)}static fromJsonString(Z,$){return new LJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(LJ,Z,$)}static $(){return["CreatePrAction|1 title 9|2 body 9|3 base_branch 9?|4 draft 8?|5 branch_name 9|6 add_labels 9*|7 repo_url 9?|8 skip_branch_prefix_check 8?|9 stack_on_pr_number 3?"]}};wJ=class wJ extends e{constructor(Z){super();this.addLabels=[],this.removeLabels=[],R.util.initPartial(Z,this)}static fromBinary(Z,$){return new wJ().fromBinary(Z,$)}static fromJson(Z,$){return new wJ().fromJson(Z,$)}static fromJsonString(Z,$){return new wJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(wJ,Z,$)}static $(){return["UpdatePrAction|1 pr_url 9?|2 title 9?|3 body 9?|4 base_branch 9?|5 branch_name 9?|6 add_labels 9*|7 remove_labels 9*|8 repo_url 9?|9 stack_on_pr_number 3?|10 clear_stack 8?|11 draft 8?"]}};DJ=class DJ extends e{constructor(Z){super();this.body="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new DJ().fromBinary(Z,$)}static fromJson(Z,$){return new DJ().fromJson(Z,$)}static fromJsonString(Z,$){return new DJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(DJ,Z,$)}static $(){return["PostCommentAction|1 pr_url 9?|2 branch_name 9?|3 body 9|4 repo_url 9?|5 in_reply_to 3?|6 path 9?|7 line 5?|8 start_line 5?|9 side 9?|10 reply_to_reference 9?"]}};UJ=class UJ extends e{constructor(Z){super();this.commentId=dC.zero,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new UJ().fromBinary(Z,$)}static fromJson(Z,$){return new UJ().fromJson(Z,$)}static fromJsonString(Z,$){return new UJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(UJ,Z,$)}static $(){return["ResolveCommentAction|1 pr_url 9?|2 branch_name 9?|3 comment_id 3|4 repo_url 9?|5 comment_reference 9?"]}};IJ=class IJ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new IJ().fromBinary(Z,$)}static fromJson(Z,$){return new IJ().fromJson(Z,$)}static fromJsonString(Z,$){return new IJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(IJ,Z,$)}static $(){return["GetCiStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?"]}};OJ=class OJ extends e{constructor(Z){super();this.status=VG.UNSPECIFIED,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new OJ().fromBinary(Z,$)}static fromJson(Z,$){return new OJ().fromJson(Z,$)}static fromJsonString(Z,$){return new OJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(OJ,Z,$)}static $(){return["SetPrStatusAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 status #0",VG]}};kJ=class kJ extends e{constructor(Z){super();this.mode=EG.UNSPECIFIED,this.method=fG.UNSPECIFIED,this.expectedMemberHeadShas={},this.downstack=!1,R.util.initPartial(Z,this)}static fromBinary(Z,$){return new kJ().fromBinary(Z,$)}static fromJson(Z,$){return new kJ().fromJson(Z,$)}static fromJsonString(Z,$){return new kJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(kJ,Z,$)}static $(){return["MergePrAction|1 pr_url 9?|2 branch_name 9?|3 repo_url 9?|4 mode #0|5 method #1|6 expected_head_sha 9?|7 expected_member_head_shas 9,9|8 downstack 8",EG,fG]}};EJ=class EJ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new EJ().fromBinary(Z,$)}static fromJson(Z,$){return new EJ().fromJson(Z,$)}static fromJsonString(Z,$){return new EJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(EJ,Z,$)}static $(){return["ListPrsArgs|1 limit 5?"]}};fJ=class fJ extends e{constructor(Z){super();this.prUrl="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new fJ().fromBinary(Z,$)}static fromJson(Z,$){return new fJ().fromJson(Z,$)}static fromJsonString(Z,$){return new fJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(fJ,Z,$)}static $(){return["GetPrArgs|1 pr_url 9"]}};J6=class J6 extends e{constructor(Z){super();this.result={case:void 0},R.util.initPartial(Z,this)}static fromBinary(Z,$){return new J6().fromBinary(Z,$)}static fromJson(Z,$){return new J6().fromJson(Z,$)}static fromJsonString(Z,$){return new J6().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(J6,Z,$)}static $(){return["PrManagementResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 registered #3 result|5 needs_confirmation #4 result|6 read #5 result",PJ,AJ,xJ,MJ,CJ,VJ]}};VJ=class VJ extends e{constructor(Z){super();this.message="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new VJ().fromBinary(Z,$)}static fromJson(Z,$){return new VJ().fromJson(Z,$)}static fromJsonString(Z,$){return new VJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(VJ,Z,$)}static $(){return["PrManagementRead|1 message 9"]}};PJ=class PJ extends e{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new PJ().fromBinary(Z,$)}static fromJson(Z,$){return new PJ().fromJson(Z,$)}static fromJsonString(Z,$){return new PJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(PJ,Z,$)}static $(){return["PrManagementSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};AJ=class AJ extends e{constructor(Z){super();this.error="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new AJ().fromBinary(Z,$)}static fromJson(Z,$){return new AJ().fromJson(Z,$)}static fromJsonString(Z,$){return new AJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(AJ,Z,$)}static $(){return["PrManagementError|1 error 9"]}};xJ=class xJ extends e{constructor(Z){super();this.reason="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new xJ().fromBinary(Z,$)}static fromJson(Z,$){return new xJ().fromJson(Z,$)}static fromJsonString(Z,$){return new xJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(xJ,Z,$)}static $(){return["PrManagementRejected|1 reason 9"]}};MJ=class MJ extends e{constructor(Z){super();this.message="",this.title="",this.body="",this.branchName="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new MJ().fromBinary(Z,$)}static fromJson(Z,$){return new MJ().fromJson(Z,$)}static fromJsonString(Z,$){return new MJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(MJ,Z,$)}static $(){return["PrManagementRegistered|1 message 9|2 title 9|3 body 9|4 base_branch 9?|5 draft 8?|6 branch_name 9"]}};CJ=class CJ extends e{constructor(Z){super();this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",R.util.initPartial(Z,this)}static fromBinary(Z,$){return new CJ().fromBinary(Z,$)}static fromJson(Z,$){return new CJ().fromJson(Z,$)}static fromJsonString(Z,$){return new CJ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(CJ,Z,$)}static $(){return["PrManagementNeedsConfirmation|1 message 9|2 discovered_pr_url 9|3 discovered_pr_number 5|4 discovered_pr_title 9|5 branch_name 9"]}};tZ=class tZ extends e{constructor(Z){super();R.util.initPartial(Z,this)}static fromBinary(Z,$){return new tZ().fromBinary(Z,$)}static fromJson(Z,$){return new tZ().fromJson(Z,$)}static fromJsonString(Z,$){return new tZ().fromJsonString(Z,$)}static equals(Z,$){return R.util.equals(tZ,Z,$)}static $(){return["PrManagementToolCall|1 args #0|2 result #1",GJ,J6]}}});import{Message as Xs,proto3 as Z0}from"@bufbuild/protobuf";var uC="agent.v1.",A8,hJ,vJ,TJ,RJ,yJ,oZ,eZ,mJ,jJ;var AG=U(()=>{k();A8=class A8 extends G{static get runtime(){return B(this,"runtime",Z0)}static $p(){return uC}};hJ=class hJ extends A8{constructor(Z){super();this.serverIdentifier="",this.toolCallId="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hJ().fromBinary(Z,$)}static fromJson(Z,$){return new hJ().fromJson(Z,$)}static fromJsonString(Z,$){return new hJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(hJ,Z,$)}static $(){return["McpAuthArgs|1 server_identifier 9|2 tool_call_id 9"]}};vJ=class vJ extends A8{constructor(Z){super();this.result={case:void 0},Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vJ().fromBinary(Z,$)}static fromJson(Z,$){return new vJ().fromJson(Z,$)}static fromJsonString(Z,$){return new vJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(vJ,Z,$)}static $(){return["McpAuthResult|1 success #0 result|2 error #1 result|3 rejected #2 result",TJ,RJ,yJ]}};TJ=class TJ extends A8{constructor(Z){super();this.serverIdentifier="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TJ().fromBinary(Z,$)}static fromJson(Z,$){return new TJ().fromJson(Z,$)}static fromJsonString(Z,$){return new TJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(TJ,Z,$)}static $(){return["McpAuthSuccess|1 server_identifier 9"]}};RJ=class RJ extends A8{constructor(Z){super();this.error="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new RJ().fromBinary(Z,$)}static fromJson(Z,$){return new RJ().fromJson(Z,$)}static fromJsonString(Z,$){return new RJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(RJ,Z,$)}static $(){return["McpAuthError|1 error 9"]}};yJ=class yJ extends A8{constructor(Z){super();this.reason="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new yJ().fromBinary(Z,$)}static fromJson(Z,$){return new yJ().fromJson(Z,$)}static fromJsonString(Z,$){return new yJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(yJ,Z,$)}static $(){return["McpAuthRejected|1 reason 9"]}};oZ=class oZ extends A8{constructor(Z){super();Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new oZ().fromBinary(Z,$)}static fromJson(Z,$){return new oZ().fromJson(Z,$)}static fromJsonString(Z,$){return new oZ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(oZ,Z,$)}static $(){return["McpAuthToolCall|1 args #0|2 result #1",hJ,vJ]}};eZ=class eZ extends A8{constructor(Z){super();this.result={case:void 0},Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new eZ().fromBinary(Z,$)}static fromJson(Z,$){return new eZ().fromJson(Z,$)}static fromJsonString(Z,$){return new eZ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(eZ,Z,$)}static $(){return["McpAuthRequestResponse|1 approved #0 result|2 rejected #1 result",mJ,jJ]}};mJ=class mJ extends A8{constructor(Z){super();Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new mJ().fromBinary(Z,$)}static fromJson(Z,$){return new mJ().fromJson(Z,$)}static fromJsonString(Z,$){return new mJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(mJ,Z,$)}static $(){return["McpAuthRequestResponse.Approved"]}};jJ=class jJ extends A8{constructor(Z){super();this.reason="",Z0.util.initPartial(Z,this)}static fromBinary(Z,$){return new jJ().fromBinary(Z,$)}static fromJson(Z,$){return new jJ().fromJson(Z,$)}static fromJsonString(Z,$){return new jJ().fromJsonString(Z,$)}static equals(Z,$){return Z0.util.equals(jJ,Z,$)}static $(){return["McpAuthRequestResponse.Rejected|1 reason 9"]}}});import{Message as Qs,proto3 as w0,protoInt64 as lQ}from"@bufbuild/protobuf";var lC="agent.v1.",Y6,_J,Z$,$$,SJ,gJ,bJ,J$;var xG=U(()=>{k();Y6=class Y6 extends G{static get runtime(){return B(this,"runtime",w0)}static $p(){return lC}};_J=class _J extends Y6{constructor(Z){super();this.taskId="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new _J().fromBinary(Z,$)}static fromJson(Z,$){return new _J().fromJson(Z,$)}static fromJsonString(Z,$){return new _J().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(_J,Z,$)}static $(){return["AwaitArgs|1 task_id 9|2 block_until_ms 13?|3 regex 9?"]}};Z$=class Z$ extends Y6{constructor(Z){super();this.taskId="",this.runtimeMs=lQ.zero,this.outputFilePath="",this.outputLength=lQ.zero,this.regexRequested=!1,w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z$().fromBinary(Z,$)}static fromJson(Z,$){return new Z$().fromJson(Z,$)}static fromJsonString(Z,$){return new Z$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(Z$,Z,$)}static $(){return["AwaitTaskComplete|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 exit_code 17?|8 wake_reason 9?"]}};$$=class $$ extends Y6{constructor(Z){super();this.taskId="",this.runtimeMs=lQ.zero,this.outputFilePath="",this.outputLength=lQ.zero,this.regexRequested=!1,w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $$().fromBinary(Z,$)}static fromJson(Z,$){return new $$().fromJson(Z,$)}static fromJsonString(Z,$){return new $$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals($$,Z,$)}static $(){return["AwaitTaskStillRunning|1 task_id 9|2 runtime_ms 4|3 output_file_path 9|4 output_length 4|5 regex_requested 8|6 regex_match 9?|7 wake_reason 9?"]}};SJ=class SJ extends Y6{constructor(Z){super();this.error="",w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new SJ().fromBinary(Z,$)}static fromJson(Z,$){return new SJ().fromJson(Z,$)}static fromJsonString(Z,$){return new SJ().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(SJ,Z,$)}static $(){return["AwaitError|1 error 9"]}};gJ=class gJ extends Y6{constructor(Z){super();this.awaitResult={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new gJ().fromBinary(Z,$)}static fromJson(Z,$){return new gJ().fromJson(Z,$)}static fromJsonString(Z,$){return new gJ().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(gJ,Z,$)}static $(){return["AwaitSuccess|1 complete #0 await_result|2 still_running #1 await_result",Z$,$$]}};bJ=class bJ extends Y6{constructor(Z){super();this.result={case:void 0},w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new bJ().fromBinary(Z,$)}static fromJson(Z,$){return new bJ().fromJson(Z,$)}static fromJsonString(Z,$){return new bJ().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(bJ,Z,$)}static $(){return["AwaitResult|1 complete #0 result|2 still_running #1 result|3 error #2 result|4 success #3 result",Z$,$$,SJ,gJ]}};J$=class J$ extends Y6{constructor(Z){super();w0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J$().fromBinary(Z,$)}static fromJson(Z,$){return new J$().fromJson(Z,$)}static fromJsonString(Z,$){return new J$().fromJsonString(Z,$)}static equals(Z,$){return w0.util.equals(J$,Z,$)}static $(){return["AwaitToolCall|1 args #0|2 result #1",_J,bJ]}}});import{Message as Bs,proto3 as z8}from"@bufbuild/protobuf";var pC="agent.v1.",pJ,cJ,dJ,uJ,lJ,Y$;var MG=U(()=>{k();pJ=class pJ extends G{static get runtime(){return B(this,"runtime",z8)}static $p(){return pC}};cJ=class cJ extends pJ{constructor(Z){super();this.filePath="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cJ().fromBinary(Z,$)}static fromJson(Z,$){return new cJ().fromJson(Z,$)}static fromJsonString(Z,$){return new cJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(cJ,Z,$)}static $(){return["BlameByFilePathArgs|1 file_path 9|2 start_line 5?|3 end_line 5?"]}};dJ=class dJ extends pJ{constructor(Z){super();this.content="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new dJ().fromBinary(Z,$)}static fromJson(Z,$){return new dJ().fromJson(Z,$)}static fromJsonString(Z,$){return new dJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(dJ,Z,$)}static $(){return["BlameByFilePathSuccess|1 content 9"]}};uJ=class uJ extends pJ{constructor(Z){super();this.errorMessage="",z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new uJ().fromBinary(Z,$)}static fromJson(Z,$){return new uJ().fromJson(Z,$)}static fromJsonString(Z,$){return new uJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(uJ,Z,$)}static $(){return["BlameByFilePathError|1 error_message 9"]}};lJ=class lJ extends pJ{constructor(Z){super();this.result={case:void 0},z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lJ().fromBinary(Z,$)}static fromJson(Z,$){return new lJ().fromJson(Z,$)}static fromJsonString(Z,$){return new lJ().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(lJ,Z,$)}static $(){return["BlameByFilePathResult|1 success #0 result|2 error #1 result",dJ,uJ]}};Y$=class Y$ extends pJ{constructor(Z){super();z8.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y$().fromBinary(Z,$)}static fromJson(Z,$){return new Y$().fromJson(Z,$)}static fromJsonString(Z,$){return new Y$().fromJsonString(Z,$)}static equals(Z,$){return z8.util.equals(Y$,Z,$)}static $(){return["BlameByFilePathToolCall|1 args #0|2 result #1",cJ,lJ]}}});import{Message as ws,proto3 as K8}from"@bufbuild/protobuf";var iC="agent.v1.",sJ,iJ,nJ,aJ,rJ,X$;var CG=U(()=>{k();sJ=class sJ extends G{static get runtime(){return B(this,"runtime",K8)}static $p(){return iC}};iJ=class iJ extends sJ{constructor(Z){super();this.toolCallId="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iJ().fromBinary(Z,$)}static fromJson(Z,$){return new iJ().fromJson(Z,$)}static fromJsonString(Z,$){return new iJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(iJ,Z,$)}static $(){return["GetMcpToolsArgs|1 server 9?|2 tool_name 9?|3 pattern 9?|4 tool_call_id 9"]}};nJ=class nJ extends sJ{constructor(Z){super();this.result={case:void 0},K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new nJ().fromBinary(Z,$)}static fromJson(Z,$){return new nJ().fromJson(Z,$)}static fromJsonString(Z,$){return new nJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(nJ,Z,$)}static $(){return["GetMcpToolsAgentResult|1 success #0 result|2 error #1 result",aJ,rJ]}};aJ=class aJ extends sJ{constructor(Z){super();this.content="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new aJ().fromBinary(Z,$)}static fromJson(Z,$){return new aJ().fromJson(Z,$)}static fromJsonString(Z,$){return new aJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(aJ,Z,$)}static $(){return["GetMcpToolsSuccess|1 content 9|2 output_file_path 9?"]}};rJ=class rJ extends sJ{constructor(Z){super();this.error="",K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new rJ().fromBinary(Z,$)}static fromJson(Z,$){return new rJ().fromJson(Z,$)}static fromJsonString(Z,$){return new rJ().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(rJ,Z,$)}static $(){return["GetMcpToolsError|1 error 9"]}};X$=class X$ extends sJ{constructor(Z){super();K8.util.initPartial(Z,this)}static fromBinary(Z,$){return new X$().fromBinary(Z,$)}static fromJson(Z,$){return new X$().fromJson(Z,$)}static fromJsonString(Z,$){return new X$().fromJsonString(Z,$)}static equals(Z,$){return K8.util.equals(X$,Z,$)}static $(){return["GetMcpToolsToolCall|1 args #0|2 result #1",iJ,nJ]}}});import{Message as Os,proto3 as H8}from"@bufbuild/protobuf";var nC="agent.v1.",$Y,tJ,oJ,eJ,ZY,z$;var hG=U(()=>{k();$Y=class $Y extends G{static get runtime(){return B(this,"runtime",H8)}static $p(){return nC}};tJ=class tJ extends $Y{constructor(Z){super();this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tJ().fromBinary(Z,$)}static fromJson(Z,$){return new tJ().fromJson(Z,$)}static fromJsonString(Z,$){return new tJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(tJ,Z,$)}static $(){return["ReportBugArgs|1 title 9|2 file 9|3 start_line 5|4 end_line 5|5 description 9|6 severity 9|7 category 9|8 rationale 9"]}};oJ=class oJ extends $Y{constructor(Z){super();this.output="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oJ().fromBinary(Z,$)}static fromJson(Z,$){return new oJ().fromJson(Z,$)}static fromJsonString(Z,$){return new oJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(oJ,Z,$)}static $(){return["ReportBugSuccess|1 output 9"]}};eJ=class eJ extends $Y{constructor(Z){super();this.errorMessage="",H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new eJ().fromBinary(Z,$)}static fromJson(Z,$){return new eJ().fromJson(Z,$)}static fromJsonString(Z,$){return new eJ().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(eJ,Z,$)}static $(){return["ReportBugError|1 error_message 9"]}};ZY=class ZY extends $Y{constructor(Z){super();this.result={case:void 0},H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZY().fromBinary(Z,$)}static fromJson(Z,$){return new ZY().fromJson(Z,$)}static fromJsonString(Z,$){return new ZY().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(ZY,Z,$)}static $(){return["ReportBugResult|1 success #0 result|2 error #1 result",oJ,eJ]}};z$=class z$ extends $Y{constructor(Z){super();H8.util.initPartial(Z,this)}static fromBinary(Z,$){return new z$().fromBinary(Z,$)}static fromJson(Z,$){return new z$().fromJson(Z,$)}static fromJsonString(Z,$){return new z$().fromJsonString(Z,$)}static equals(Z,$){return H8.util.equals(z$,Z,$)}static $(){return["ReportBugToolCall|1 args #0|2 result #1",tJ,ZY]}}});import{Message as Vs,proto3 as Q8}from"@bufbuild/protobuf";var aC="agent.v1.",KY,JY,YY,XY,zY,K$;var vG=U(()=>{k();KY=class KY extends G{static get runtime(){return B(this,"runtime",Q8)}static $p(){return aC}};JY=class JY extends KY{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new JY().fromBinary(Z,$)}static fromJson(Z,$){return new JY().fromJson(Z,$)}static fromJsonString(Z,$){return new JY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(JY,Z,$)}static $(){return["CommunicateUpdateArgs|1 current_step 9?|3 final_summary 9?|4 completed_subtitle 9?"]}};YY=class YY extends KY{constructor(Z){super();this.currentStep="",this.messageIndex=0,Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new YY().fromBinary(Z,$)}static fromJson(Z,$){return new YY().fromJson(Z,$)}static fromJsonString(Z,$){return new YY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(YY,Z,$)}static $(){return["CommunicateUpdateSuccess|1 current_step 9|3 message_index 13"]}};XY=class XY extends KY{constructor(Z){super();this.error="",Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new XY().fromBinary(Z,$)}static fromJson(Z,$){return new XY().fromJson(Z,$)}static fromJsonString(Z,$){return new XY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(XY,Z,$)}static $(){return["CommunicateUpdateError|1 error 9"]}};zY=class zY extends KY{constructor(Z){super();this.result={case:void 0},Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new zY().fromBinary(Z,$)}static fromJson(Z,$){return new zY().fromJson(Z,$)}static fromJsonString(Z,$){return new zY().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(zY,Z,$)}static $(){return["CommunicateUpdateResult|1 success #0 result|2 error #1 result",YY,XY]}};K$=class K$ extends KY{constructor(Z){super();Q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new K$().fromBinary(Z,$)}static fromJson(Z,$){return new K$().fromJson(Z,$)}static fromJsonString(Z,$){return new K$().fromJsonString(Z,$)}static equals(Z,$){return Q8.util.equals(K$,Z,$)}static $(){return["CommunicateUpdateToolCall|1 args #0|2 result #1",JY,zY]}}});import{Message as Ms,proto3 as q8}from"@bufbuild/protobuf";var rC="agent.v1.",NY,HY,QY,qY,WY,H$;var TG=U(()=>{k();NY=class NY extends G{static get runtime(){return B(this,"runtime",q8)}static $p(){return rC}};HY=class HY extends NY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new HY().fromBinary(Z,$)}static fromJson(Z,$){return new HY().fromJson(Z,$)}static fromJsonString(Z,$){return new HY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(HY,Z,$)}static $(){return["SendFinalSummaryArgs|1 final_summary 9?"]}};QY=class QY extends NY{constructor(Z){super();this.finalSummary="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new QY().fromBinary(Z,$)}static fromJson(Z,$){return new QY().fromJson(Z,$)}static fromJsonString(Z,$){return new QY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(QY,Z,$)}static $(){return["SendFinalSummarySuccess|1 final_summary 9"]}};qY=class qY extends NY{constructor(Z){super();this.error="",q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new qY().fromBinary(Z,$)}static fromJson(Z,$){return new qY().fromJson(Z,$)}static fromJsonString(Z,$){return new qY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(qY,Z,$)}static $(){return["SendFinalSummaryError|1 error 9"]}};WY=class WY extends NY{constructor(Z){super();this.result={case:void 0},q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new WY().fromBinary(Z,$)}static fromJson(Z,$){return new WY().fromJson(Z,$)}static fromJsonString(Z,$){return new WY().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(WY,Z,$)}static $(){return["SendFinalSummaryResult|1 success #0 result|2 error #1 result",QY,qY]}};H$=class H$ extends NY{constructor(Z){super();q8.util.initPartial(Z,this)}static fromBinary(Z,$){return new H$().fromBinary(Z,$)}static fromJson(Z,$){return new H$().fromJson(Z,$)}static fromJsonString(Z,$){return new H$().fromJsonString(Z,$)}static equals(Z,$){return q8.util.equals(H$,Z,$)}static $(){return["SendFinalSummaryToolCall|1 args #0|2 result #1",HY,WY]}}});import{Message as Ts,proto3 as K0}from"@bufbuild/protobuf";var yG="agent.v1.",z6,RG,BY,FY,Q$,GY,LY,X6,q$;var mG=U(()=>{k();z6=class z6 extends G{static get runtime(){return B(this,"runtime",K0)}static $p(){return yG}};RG=w(K0,yG,"ReplaceEnvMode",[[0,"UNSPECIFIED"],[1,"CUSTOM"],[2,"CLEAN_SLATE"],[3,"DEFAULT"]],1);BY=class BY extends z6{constructor(Z){super();this.repoUrl="",this.ref="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new BY().fromBinary(Z,$)}static fromJson(Z,$){return new BY().fromJson(Z,$)}static fromJsonString(Z,$){return new BY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(BY,Z,$)}static $(){return["RepoCheckoutRefOverride|1 repo_url 9|2 ref 9"]}};FY=class FY extends z6{constructor(Z){super();this.installScript="",this.dockerfileContents="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new FY().fromBinary(Z,$)}static fromJson(Z,$){return new FY().fromJson(Z,$)}static fromJsonString(Z,$){return new FY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(FY,Z,$)}static $(){return["ReplaceEnvConfig|1 install_script 9|2 dockerfile_contents 9"]}};Q$=class Q$ extends z6{constructor(Z){super();this.mode=RG.UNSPECIFIED,this.checkoutRefOverrides=[],K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q$().fromBinary(Z,$)}static fromJson(Z,$){return new Q$().fromJson(Z,$)}static fromJsonString(Z,$){return new Q$().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(Q$,Z,$)}static $(){return["ReplaceEnvArgs|1 config #0|2 mode #1|3 checkout_ref_overrides #2*",FY,RG,BY]}};GY=class GY extends z6{constructor(Z){super();this.setupLogs="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new GY().fromBinary(Z,$)}static fromJson(Z,$){return new GY().fromJson(Z,$)}static fromJsonString(Z,$){return new GY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(GY,Z,$)}static $(){return["ReplaceEnvSuccess|1 setup_logs 9"]}};LY=class LY extends z6{constructor(Z){super();this.errorMessage="",this.setupLogs="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new LY().fromBinary(Z,$)}static fromJson(Z,$){return new LY().fromJson(Z,$)}static fromJsonString(Z,$){return new LY().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(LY,Z,$)}static $(){return["ReplaceEnvFailure|1 error_message 9|2 setup_logs 9"]}};X6=class X6 extends z6{constructor(Z){super();this.result={case:void 0},K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X6().fromBinary(Z,$)}static fromJson(Z,$){return new X6().fromJson(Z,$)}static fromJsonString(Z,$){return new X6().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(X6,Z,$)}static $(){return["ReplaceEnvResult|1 success #0 result|2 failure #1 result",GY,LY]}};q$=class q$ extends z6{constructor(Z){super();this.associatedPodKey="",K0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q$().fromBinary(Z,$)}static fromJson(Z,$){return new q$().fromJson(Z,$)}static fromJsonString(Z,$){return new q$().fromJsonString(Z,$)}static equals(Z,$){return K0.util.equals(q$,Z,$)}static $(){return["ReplaceEnvToolCall|1 args #0|2 result #1|3 associated_pod_key 9",Q$,X6]}}});import{Message as js,proto3 as W8}from"@bufbuild/protobuf";var sC="agent.v1.",OY,wY,DY,UY,IY,W$;var jG=U(()=>{k();OY=class OY extends G{static get runtime(){return B(this,"runtime",W8)}static $p(){return sC}};wY=class wY extends OY{constructor(Z){super();this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new wY().fromBinary(Z,$)}static fromJson(Z,$){return new wY().fromJson(Z,$)}static fromJsonString(Z,$){return new wY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(wY,Z,$)}static $(){return["EditPrLabelsArgs|1 tool_call_id 9|2 pr_url 9|4 add_labels 9*|5 remove_labels 9*"]}};DY=class DY extends OY{constructor(Z){super();this.result={case:void 0},W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new DY().fromBinary(Z,$)}static fromJson(Z,$){return new DY().fromJson(Z,$)}static fromJsonString(Z,$){return new DY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(DY,Z,$)}static $(){return["EditPrLabelsResult|1 success #0 result|2 error #1 result",UY,IY]}};UY=class UY extends OY{constructor(Z){super();this.prUrl="",this.prNumber=0,this.message="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new UY().fromBinary(Z,$)}static fromJson(Z,$){return new UY().fromJson(Z,$)}static fromJsonString(Z,$){return new UY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(UY,Z,$)}static $(){return["EditPrLabelsSuccess|1 pr_url 9|2 pr_number 5|3 message 9"]}};IY=class IY extends OY{constructor(Z){super();this.error="",W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new IY().fromBinary(Z,$)}static fromJson(Z,$){return new IY().fromJson(Z,$)}static fromJsonString(Z,$){return new IY().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(IY,Z,$)}static $(){return["EditPrLabelsError|1 error 9"]}};W$=class W$ extends OY{constructor(Z){super();W8.util.initPartial(Z,this)}static fromBinary(Z,$){return new W$().fromBinary(Z,$)}static fromJson(Z,$){return new W$().fromJson(Z,$)}static fromJsonString(Z,$){return new W$().fromJsonString(Z,$)}static equals(Z,$){return W8.util.equals(W$,Z,$)}static $(){return["EditPrLabelsToolCall|1 args #0|2 result #1",wY,DY]}}});import{Message as bs,proto3 as D0}from"@bufbuild/protobuf";var tC="agent.v1.",K6,kY,EY,fY,VY,PY,AY,N$;var _G=U(()=>{k();K6=class K6 extends G{static get runtime(){return B(this,"runtime",D0)}static $p(){return tC}};kY=class kY extends K6{constructor(Z){super();this.checkName="",this.tldr="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kY().fromBinary(Z,$)}static fromJson(Z,$){return new kY().fromJson(Z,$)}static fromJsonString(Z,$){return new kY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(kY,Z,$)}static $(){return["RecordCiInvestigationFinding|1 check_name 9|2 details_url 9?|3 tldr 9|4 root_cause 9?|5 failing_signal 9?|6 suggested_next_step 9?|7 diff_relation 9?|8 diff_relation_evidence 9?|9 flake_assessment 9?|10 flake_evidence 9?|11 rerun_available 8?|12 rerun_evidence 9?|13 recommended_action 9?|14 recommended_action_evidence 9?|15 confidence 9?"]}};EY=class EY extends K6{constructor(Z){super();this.summary="",this.themes=[],this.checkKeys=[],D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new EY().fromBinary(Z,$)}static fromJson(Z,$){return new EY().fromJson(Z,$)}static fromJsonString(Z,$){return new EY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(EY,Z,$)}static $(){return["RecordCiInvestigationOverall|1 summary 9|2 themes 9*|3 recommended_action 9?|4 recommended_action_evidence 9?|5 check_keys 9*"]}};fY=class fY extends K6{constructor(Z){super();this.findings=[],this.toolCallId="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fY().fromBinary(Z,$)}static fromJson(Z,$){return new fY().fromJson(Z,$)}static fromJsonString(Z,$){return new fY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(fY,Z,$)}static $(){return["RecordCiInvestigationFindingsArgs|1 findings #0*|2 overall #1?|3 tool_call_id 9",kY,EY]}};VY=class VY extends K6{constructor(Z){super();this.message="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new VY().fromBinary(Z,$)}static fromJson(Z,$){return new VY().fromJson(Z,$)}static fromJsonString(Z,$){return new VY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(VY,Z,$)}static $(){return["RecordCiInvestigationFindingsSuccess|1 message 9"]}};PY=class PY extends K6{constructor(Z){super();this.error="",D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new PY().fromBinary(Z,$)}static fromJson(Z,$){return new PY().fromJson(Z,$)}static fromJsonString(Z,$){return new PY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(PY,Z,$)}static $(){return["RecordCiInvestigationFindingsError|1 error 9"]}};AY=class AY extends K6{constructor(Z){super();this.result={case:void 0},D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new AY().fromBinary(Z,$)}static fromJson(Z,$){return new AY().fromJson(Z,$)}static fromJsonString(Z,$){return new AY().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(AY,Z,$)}static $(){return["RecordCiInvestigationFindingsResult|1 success #0 result|2 error #1 result",VY,PY]}};N$=class N$ extends K6{constructor(Z){super();D0.util.initPartial(Z,this)}static fromBinary(Z,$){return new N$().fromBinary(Z,$)}static fromJson(Z,$){return new N$().fromJson(Z,$)}static fromJsonString(Z,$){return new N$().fromJsonString(Z,$)}static equals(Z,$){return D0.util.equals(N$,Z,$)}static $(){return["RecordCiInvestigationFindingsToolCall|1 args #0|2 result #1",fY,AY]}}});import{Message as ls,proto3 as U0,protoInt64 as oC}from"@bufbuild/protobuf";var eC="agent.v1.",H6,xY,MY,CY,hY,vY,TY,B$;var SG=U(()=>{k();H6=class H6 extends G{static get runtime(){return B(this,"runtime",U0)}static $p(){return eC}};xY=class xY extends H6{constructor(Z){super();this.content="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xY().fromBinary(Z,$)}static fromJson(Z,$){return new xY().fromJson(Z,$)}static fromJsonString(Z,$){return new xY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(xY,Z,$)}static $(){return["SendMessageText|1 content 9"]}};MY=class MY extends H6{constructor(Z){super();this.url="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new MY().fromBinary(Z,$)}static fromJson(Z,$){return new MY().fromJson(Z,$)}static fromJsonString(Z,$){return new MY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(MY,Z,$)}static $(){return["SendMessageAttachment|1 url 9|2 alt 9?"]}};CY=class CY extends H6{constructor(Z){super();this.message={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new CY().fromBinary(Z,$)}static fromJson(Z,$){return new CY().fromJson(Z,$)}static fromJsonString(Z,$){return new CY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(CY,Z,$)}static $(){return["SendMessageArgs|1 text #0 message|2 attachment #1 message|3 reply_to 9?",xY,MY]}};hY=class hY extends H6{constructor(Z){super();this.timestamp=oC.zero,this.messageId="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hY().fromBinary(Z,$)}static fromJson(Z,$){return new hY().fromJson(Z,$)}static fromJsonString(Z,$){return new hY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(hY,Z,$)}static $(){return["SendMessageSuccess|1 timestamp 4|2 message_id 9"]}};vY=class vY extends H6{constructor(Z){super();this.error="",U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vY().fromBinary(Z,$)}static fromJson(Z,$){return new vY().fromJson(Z,$)}static fromJsonString(Z,$){return new vY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(vY,Z,$)}static $(){return["SendMessageError|1 error 9"]}};TY=class TY extends H6{constructor(Z){super();this.result={case:void 0},U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new TY().fromBinary(Z,$)}static fromJson(Z,$){return new TY().fromJson(Z,$)}static fromJsonString(Z,$){return new TY().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(TY,Z,$)}static $(){return["SendMessageResult|1 success #0 result|2 error #1 result",hY,vY]}};B$=class B$ extends H6{constructor(Z){super();U0.util.initPartial(Z,this)}static fromBinary(Z,$){return new B$().fromBinary(Z,$)}static fromJson(Z,$){return new B$().fromJson(Z,$)}static fromJsonString(Z,$){return new B$().fromJsonString(Z,$)}static equals(Z,$){return U0.util.equals(B$,Z,$)}static $(){return["SendMessageToolCall|1 args #0|2 result #1",CY,TY]}}});import{Message as as,proto3 as N8}from"@bufbuild/protobuf";var Zh="agent.v1.",_Y,RY,yY,mY,jY,F$;var gG=U(()=>{k();_Y=class _Y extends G{static get runtime(){return B(this,"runtime",N8)}static $p(){return Zh}};RY=class RY extends _Y{constructor(Z){super();this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new RY().fromBinary(Z,$)}static fromJson(Z,$){return new RY().fromJson(Z,$)}static fromJsonString(Z,$){return new RY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(RY,Z,$)}static $(){return["FetchCloudAgentDataArgs|4 bc_ids 9*|6 sources 9*|7 statuses 9*|8 include_team_wide 8|9 include_archived 8|10 limit 5?|12 include_transcript 8|13 active_since 9"]}};yY=class yY extends _Y{constructor(Z){super();this.result={case:void 0},N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new yY().fromBinary(Z,$)}static fromJson(Z,$){return new yY().fromJson(Z,$)}static fromJsonString(Z,$){return new yY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(yY,Z,$)}static $(){return["FetchCloudAgentDataResult|1 success #0 result|2 error #1 result",mY,jY]}};mY=class mY extends _Y{constructor(Z){super();this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new mY().fromBinary(Z,$)}static fromJson(Z,$){return new mY().fromJson(Z,$)}static fromJsonString(Z,$){return new mY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(mY,Z,$)}static $(){return["FetchCloudAgentDataSuccess|1 summary 9|2 agent_count 5|3 written_paths 9*|4 unavailable_bc_ids 9*"]}};jY=class jY extends _Y{constructor(Z){super();this.error="",N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new jY().fromBinary(Z,$)}static fromJson(Z,$){return new jY().fromJson(Z,$)}static fromJsonString(Z,$){return new jY().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(jY,Z,$)}static $(){return["FetchCloudAgentDataError|1 error 9"]}};F$=class F$ extends _Y{constructor(Z){super();N8.util.initPartial(Z,this)}static fromBinary(Z,$){return new F$().fromBinary(Z,$)}static fromJson(Z,$){return new F$().fromJson(Z,$)}static fromJsonString(Z,$){return new F$().fromJsonString(Z,$)}static equals(Z,$){return N8.util.equals(F$,Z,$)}static $(){return["FetchCloudAgentDataToolCall|1 args #0|2 result #1",RY,yY]}}});import{Message as os,proto3 as B8}from"@bufbuild/protobuf";var $h="agent.v1.",dY,SY,gY,bY,cY,G$;var bG=U(()=>{k();dY=class dY extends G{static get runtime(){return B(this,"runtime",B8)}static $p(){return $h}};SY=class SY extends dY{constructor(Z){super();this.message="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new SY().fromBinary(Z,$)}static fromJson(Z,$){return new SY().fromJson(Z,$)}static fromJsonString(Z,$){return new SY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(SY,Z,$)}static $(){return["SendToUserArgs|1 message 9"]}};gY=class gY extends dY{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new gY().fromBinary(Z,$)}static fromJson(Z,$){return new gY().fromJson(Z,$)}static fromJsonString(Z,$){return new gY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(gY,Z,$)}static $(){return["SendToUserSuccess"]}};bY=class bY extends dY{constructor(Z){super();this.error="",B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new bY().fromBinary(Z,$)}static fromJson(Z,$){return new bY().fromJson(Z,$)}static fromJsonString(Z,$){return new bY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(bY,Z,$)}static $(){return["SendToUserError|1 error 9"]}};cY=class cY extends dY{constructor(Z){super();this.result={case:void 0},B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new cY().fromBinary(Z,$)}static fromJson(Z,$){return new cY().fromJson(Z,$)}static fromJsonString(Z,$){return new cY().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(cY,Z,$)}static $(){return["SendToUserResult|1 success #0 result|2 error #1 result",gY,bY]}};G$=class G$ extends dY{constructor(Z){super();B8.util.initPartial(Z,this)}static fromBinary(Z,$){return new G$().fromBinary(Z,$)}static fromJson(Z,$){return new G$().fromJson(Z,$)}static fromJsonString(Z,$){return new G$().fromJsonString(Z,$)}static equals(Z,$){return B8.util.equals(G$,Z,$)}static $(){return["SendToUserToolCall|1 args #0|2 result #1",SY,cY]}}});import{Message as Jt,proto3 as wW}from"@bufbuild/protobuf";var Jh="agent.v1.",cG,H0;var uY=U(()=>{k();cG=class cG extends G{static get runtime(){return B(this,"runtime",wW)}static $p(){return Jh}};H0=class H0 extends cG{constructor(Z){super();this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,wW.util.initPartial(Z,this)}static fromBinary(Z,$){return new H0().fromBinary(Z,$)}static fromJson(Z,$){return new H0().fromJson(Z,$)}static fromJsonString(Z,$){return new H0().fromJsonString(Z,$)}static equals(Z,$){return wW.util.equals(H0,Z,$)}static $(){return["PiTruncation|1 truncated 8|2 truncated_by 9|3 total_lines 13|4 output_lines 13|5 output_bytes 13|6 max_lines 13?|7 max_bytes 13?|8 first_line_exceeds_limit 8|9 last_line_partial 8"]}}});import{Message as Kt,proto3 as F8}from"@bufbuild/protobuf";var Yh="agent.v1.",aY,L$,lY,pY,iY,nY;var dG=U(()=>{uY();k();aY=class aY extends G{static get runtime(){return B(this,"runtime",F8)}static $p(){return Yh}};L$=class L$ extends aY{constructor(Z){super();F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new L$().fromBinary(Z,$)}static fromJson(Z,$){return new L$().fromJson(Z,$)}static fromJsonString(Z,$){return new L$().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(L$,Z,$)}static $(){return["PiReadToolCall|1 args #0|2 result #1",lY,pY]}};lY=class lY extends aY{constructor(Z){super();this.path="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new lY().fromBinary(Z,$)}static fromJson(Z,$){return new lY().fromJson(Z,$)}static fromJsonString(Z,$){return new lY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(lY,Z,$)}static $(){return["PiReadToolArgs|1 path 9|2 offset 5?|3 limit 5?"]}};pY=class pY extends aY{constructor(Z){super();this.result={case:void 0},F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new pY().fromBinary(Z,$)}static fromJson(Z,$){return new pY().fromJson(Z,$)}static fromJsonString(Z,$){return new pY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(pY,Z,$)}static $(){return["PiReadToolResult|1 success #0 result|2 error #1 result",iY,nY]}};iY=class iY extends aY{constructor(Z){super();this.output="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new iY().fromBinary(Z,$)}static fromJson(Z,$){return new iY().fromJson(Z,$)}static fromJsonString(Z,$){return new iY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(iY,Z,$)}static $(){return["PiReadToolSuccess|1 output 9|2 truncation #0?",H0]}};nY=class nY extends aY{constructor(Z){super();this.error="",F8.util.initPartial(Z,this)}static fromBinary(Z,$){return new nY().fromBinary(Z,$)}static fromJson(Z,$){return new nY().fromJson(Z,$)}static fromJsonString(Z,$){return new nY().fromJsonString(Z,$)}static equals(Z,$){return F8.util.equals(nY,Z,$)}static $(){return["PiReadToolError|1 error 9"]}}});import{Message as Nt,proto3 as G8}from"@bufbuild/protobuf";var Xh="agent.v1.",eY,w$,rY,sY,tY,oY;var uG=U(()=>{uY();k();eY=class eY extends G{static get runtime(){return B(this,"runtime",G8)}static $p(){return Xh}};w$=class w$ extends eY{constructor(Z){super();G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w$().fromBinary(Z,$)}static fromJson(Z,$){return new w$().fromJson(Z,$)}static fromJsonString(Z,$){return new w$().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(w$,Z,$)}static $(){return["PiBashToolCall|1 args #0|2 result #1",rY,sY]}};rY=class rY extends eY{constructor(Z){super();this.command="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new rY().fromBinary(Z,$)}static fromJson(Z,$){return new rY().fromJson(Z,$)}static fromJsonString(Z,$){return new rY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(rY,Z,$)}static $(){return["PiBashToolArgs|1 command 9|2 timeout 1?"]}};sY=class sY extends eY{constructor(Z){super();this.result={case:void 0},G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new sY().fromBinary(Z,$)}static fromJson(Z,$){return new sY().fromJson(Z,$)}static fromJsonString(Z,$){return new sY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(sY,Z,$)}static $(){return["PiBashToolResult|1 success #0 result|2 error #1 result",tY,oY]}};tY=class tY extends eY{constructor(Z){super();this.output="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new tY().fromBinary(Z,$)}static fromJson(Z,$){return new tY().fromJson(Z,$)}static fromJsonString(Z,$){return new tY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(tY,Z,$)}static $(){return["PiBashToolSuccess|1 output 9|2 truncation #0?|3 full_output_path 9?",H0]}};oY=class oY extends eY{constructor(Z){super();this.error="",G8.util.initPartial(Z,this)}static fromBinary(Z,$){return new oY().fromBinary(Z,$)}static fromJson(Z,$){return new oY().fromJson(Z,$)}static fromJsonString(Z,$){return new oY().fromJsonString(Z,$)}static equals(Z,$){return G8.util.equals(oY,Z,$)}static $(){return["PiBashToolError|1 error 9|2 truncation #0?|3 full_output_path 9?",H0]}}});import{Message as wt,proto3 as I0}from"@bufbuild/protobuf";var zh="agent.v1.",Q6,Z3,D$,$3,J3,Y3,X3,z3;var lG=U(()=>{k();Q6=class Q6 extends G{static get runtime(){return B(this,"runtime",I0)}static $p(){return zh}};Z3=class Z3 extends Q6{constructor(Z){super();this.oldText="",this.newText="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z3().fromBinary(Z,$)}static fromJson(Z,$){return new Z3().fromJson(Z,$)}static fromJsonString(Z,$){return new Z3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(Z3,Z,$)}static $(){return["PiEditReplacement|1 old_text 9|2 new_text 9"]}};D$=class D$ extends Q6{constructor(Z){super();I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new D$().fromBinary(Z,$)}static fromJson(Z,$){return new D$().fromJson(Z,$)}static fromJsonString(Z,$){return new D$().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(D$,Z,$)}static $(){return["PiEditToolCall|1 args #0|2 result #1",$3,J3]}};$3=class $3 extends Q6{constructor(Z){super();this.path="",this.edits=[],I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $3().fromBinary(Z,$)}static fromJson(Z,$){return new $3().fromJson(Z,$)}static fromJsonString(Z,$){return new $3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals($3,Z,$)}static $(){return["PiEditToolArgs|1 path 9|2 edits #0*",Z3]}};J3=class J3 extends Q6{constructor(Z){super();this.result={case:void 0},I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new J3().fromBinary(Z,$)}static fromJson(Z,$){return new J3().fromJson(Z,$)}static fromJsonString(Z,$){return new J3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(J3,Z,$)}static $(){return["PiEditToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Y3,X3,z3]}};Y3=class Y3 extends Q6{constructor(Z){super();this.output="",this.diff="",this.patch="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y3().fromBinary(Z,$)}static fromJson(Z,$){return new Y3().fromJson(Z,$)}static fromJsonString(Z,$){return new Y3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(Y3,Z,$)}static $(){return["PiEditToolSuccess|1 output 9|2 diff 9|3 patch 9|4 first_changed_line 13?"]}};X3=class X3 extends Q6{constructor(Z){super();this.error="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new X3().fromBinary(Z,$)}static fromJson(Z,$){return new X3().fromJson(Z,$)}static fromJsonString(Z,$){return new X3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(X3,Z,$)}static $(){return["PiEditToolError|1 error 9"]}};z3=class z3 extends Q6{constructor(Z){super();this.reason="",I0.util.initPartial(Z,this)}static fromBinary(Z,$){return new z3().fromBinary(Z,$)}static fromJson(Z,$){return new z3().fromJson(Z,$)}static fromJsonString(Z,$){return new z3().fromJsonString(Z,$)}static equals(Z,$){return I0.util.equals(z3,Z,$)}static $(){return["PiEditToolRejected|1 reason 9"]}}});import{Message as Ot,proto3 as R0}from"@bufbuild/protobuf";var Kh="agent.v1.",I$,U$,K3,H3,Q3,q3,W3;var pG=U(()=>{k();I$=class I$ extends G{static get runtime(){return B(this,"runtime",R0)}static $p(){return Kh}};U$=class U$ extends I${constructor(Z){super();R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new U$().fromBinary(Z,$)}static fromJson(Z,$){return new U$().fromJson(Z,$)}static fromJsonString(Z,$){return new U$().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(U$,Z,$)}static $(){return["PiWriteToolCall|1 args #0|2 result #1",K3,H3]}};K3=class K3 extends I${constructor(Z){super();this.path="",this.content="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new K3().fromBinary(Z,$)}static fromJson(Z,$){return new K3().fromJson(Z,$)}static fromJsonString(Z,$){return new K3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(K3,Z,$)}static $(){return["PiWriteToolArgs|1 path 9|2 content 9"]}};H3=class H3 extends I${constructor(Z){super();this.result={case:void 0},R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new H3().fromBinary(Z,$)}static fromJson(Z,$){return new H3().fromJson(Z,$)}static fromJsonString(Z,$){return new H3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(H3,Z,$)}static $(){return["PiWriteToolResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Q3,q3,W3]}};Q3=class Q3 extends I${constructor(Z){super();this.output="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q3().fromBinary(Z,$)}static fromJson(Z,$){return new Q3().fromJson(Z,$)}static fromJsonString(Z,$){return new Q3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(Q3,Z,$)}static $(){return["PiWriteToolSuccess|1 output 9"]}};q3=class q3 extends I${constructor(Z){super();this.error="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new q3().fromBinary(Z,$)}static fromJson(Z,$){return new q3().fromJson(Z,$)}static fromJsonString(Z,$){return new q3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(q3,Z,$)}static $(){return["PiWriteToolError|1 error 9"]}};W3=class W3 extends I${constructor(Z){super();this.reason="",R0.util.initPartial(Z,this)}static fromBinary(Z,$){return new W3().fromBinary(Z,$)}static fromJson(Z,$){return new W3().fromJson(Z,$)}static fromJsonString(Z,$){return new W3().fromJsonString(Z,$)}static equals(Z,$){return R0.util.equals(W3,Z,$)}static $(){return["PiWriteToolRejected|1 reason 9"]}}});import{Message as Vt,proto3 as L8}from"@bufbuild/protobuf";var Hh="agent.v1.",L3,O$,N3,B3,F3,G3;var iG=U(()=>{uY();k();L3=class L3 extends G{static get runtime(){return B(this,"runtime",L8)}static $p(){return Hh}};O$=class O$ extends L3{constructor(Z){super();L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new O$().fromBinary(Z,$)}static fromJson(Z,$){return new O$().fromJson(Z,$)}static fromJsonString(Z,$){return new O$().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(O$,Z,$)}static $(){return["PiGrepToolCall|1 args #0|2 result #1",N3,B3]}};N3=class N3 extends L3{constructor(Z){super();this.pattern="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new N3().fromBinary(Z,$)}static fromJson(Z,$){return new N3().fromJson(Z,$)}static fromJsonString(Z,$){return new N3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(N3,Z,$)}static $(){return["PiGrepToolArgs|1 pattern 9|2 path 9?|3 glob 9?|4 ignore_case 8?|5 literal 8?|6 context 5?|7 limit 5?"]}};B3=class B3 extends L3{constructor(Z){super();this.result={case:void 0},L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new B3().fromBinary(Z,$)}static fromJson(Z,$){return new B3().fromJson(Z,$)}static fromJsonString(Z,$){return new B3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(B3,Z,$)}static $(){return["PiGrepToolResult|1 success #0 result|2 error #1 result",F3,G3]}};F3=class F3 extends L3{constructor(Z){super();this.output="",this.linesTruncated=!1,L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new F3().fromBinary(Z,$)}static fromJson(Z,$){return new F3().fromJson(Z,$)}static fromJsonString(Z,$){return new F3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(F3,Z,$)}static $(){return["PiGrepToolSuccess|1 output 9|2 truncation #0?|3 match_limit_reached 13?|4 lines_truncated 8",H0]}};G3=class G3 extends L3{constructor(Z){super();this.error="",L8.util.initPartial(Z,this)}static fromBinary(Z,$){return new G3().fromBinary(Z,$)}static fromJson(Z,$){return new G3().fromJson(Z,$)}static fromJsonString(Z,$){return new G3().fromJsonString(Z,$)}static equals(Z,$){return L8.util.equals(G3,Z,$)}static $(){return["PiGrepToolError|1 error 9"]}}});import{Message as Ct,proto3 as w8}from"@bufbuild/protobuf";var Qh="agent.v1.",O3,k$,w3,D3,U3,I3;var nG=U(()=>{uY();k();O3=class O3 extends G{static get runtime(){return B(this,"runtime",w8)}static $p(){return Qh}};k$=class k$ extends O3{constructor(Z){super();w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k$().fromBinary(Z,$)}static fromJson(Z,$){return new k$().fromJson(Z,$)}static fromJsonString(Z,$){return new k$().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(k$,Z,$)}static $(){return["PiFindToolCall|1 args #0|2 result #1",w3,D3]}};w3=class w3 extends O3{constructor(Z){super();this.pattern="",w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new w3().fromBinary(Z,$)}static fromJson(Z,$){return new w3().fromJson(Z,$)}static fromJsonString(Z,$){return new w3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(w3,Z,$)}static $(){return["PiFindToolArgs|1 pattern 9|2 path 9?|3 limit 5?"]}};D3=class D3 extends O3{constructor(Z){super();this.result={case:void 0},w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new D3().fromBinary(Z,$)}static fromJson(Z,$){return new D3().fromJson(Z,$)}static fromJsonString(Z,$){return new D3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(D3,Z,$)}static $(){return["PiFindToolResult|1 success #0 result|2 error #1 result",U3,I3]}};U3=class U3 extends O3{constructor(Z){super();this.output="",w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new U3().fromBinary(Z,$)}static fromJson(Z,$){return new U3().fromJson(Z,$)}static fromJsonString(Z,$){return new U3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(U3,Z,$)}static $(){return["PiFindToolSuccess|1 output 9|2 truncation #0?|3 result_limit_reached 13?",H0]}};I3=class I3 extends O3{constructor(Z){super();this.error="",w8.util.initPartial(Z,this)}static fromBinary(Z,$){return new I3().fromBinary(Z,$)}static fromJson(Z,$){return new I3().fromJson(Z,$)}static fromJsonString(Z,$){return new I3().fromJsonString(Z,$)}static equals(Z,$){return w8.util.equals(I3,Z,$)}static $(){return["PiFindToolError|1 error 9"]}}});import{Message as yt,proto3 as D8}from"@bufbuild/protobuf";var qh="agent.v1.",P3,E$,k3,E3,f3,V3;var aG=U(()=>{uY();k();P3=class P3 extends G{static get runtime(){return B(this,"runtime",D8)}static $p(){return qh}};E$=class E$ extends P3{constructor(Z){super();D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E$().fromBinary(Z,$)}static fromJson(Z,$){return new E$().fromJson(Z,$)}static fromJsonString(Z,$){return new E$().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(E$,Z,$)}static $(){return["PiLsToolCall|1 args #0|2 result #1",k3,E3]}};k3=class k3 extends P3{constructor(Z){super();D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new k3().fromBinary(Z,$)}static fromJson(Z,$){return new k3().fromJson(Z,$)}static fromJsonString(Z,$){return new k3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(k3,Z,$)}static $(){return["PiLsToolArgs|1 path 9?|2 limit 5?"]}};E3=class E3 extends P3{constructor(Z){super();this.result={case:void 0},D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new E3().fromBinary(Z,$)}static fromJson(Z,$){return new E3().fromJson(Z,$)}static fromJsonString(Z,$){return new E3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(E3,Z,$)}static $(){return["PiLsToolResult|1 success #0 result|2 error #1 result",f3,V3]}};f3=class f3 extends P3{constructor(Z){super();this.output="",D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new f3().fromBinary(Z,$)}static fromJson(Z,$){return new f3().fromJson(Z,$)}static fromJsonString(Z,$){return new f3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(f3,Z,$)}static $(){return["PiLsToolSuccess|1 output 9|2 truncation #0?|3 entry_limit_reached 13?",H0]}};V3=class V3 extends P3{constructor(Z){super();this.error="",D8.util.initPartial(Z,this)}static fromBinary(Z,$){return new V3().fromBinary(Z,$)}static fromJson(Z,$){return new V3().fromJson(Z,$)}static fromJsonString(Z,$){return new V3().fromJsonString(Z,$)}static equals(Z,$){return D8.util.equals(V3,Z,$)}static $(){return["PiLsToolError|1 error 9"]}}});import{Message as gt,proto3 as j}from"@bufbuild/protobuf";var Wh="agent.v1.",Q0,f$,A3,x3,M3,C3,h3,v3,T3,R3,y3,V$,P$,m3,j3,_3;var rG=U(()=>{k();Q0=class Q0 extends G{static get runtime(){return B(this,"runtime",j)}static $p(){return Wh}};f$=class f$ extends Q0{constructor(Z){super();this.toolCallId="",this.target={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new f$().fromBinary(Z,$)}static fromJson(Z,$){return new f$().fromJson(Z,$)}static fromJsonString(Z,$){return new f$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(f$,Z,$)}static $(){return["ConnectScmArgs|1 tool_call_id 9|2 github #0 target|3 gitlab #1 target|4 bitbucket #2 target|5 azure_devops #3 target|6 reconnect 8?|7 repo_url 9?|8 instance_host 9?",C3,A3,x3,M3]}};A3=class A3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new A3().fromBinary(Z,$)}static fromJson(Z,$){return new A3().fromJson(Z,$)}static fromJsonString(Z,$){return new A3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(A3,Z,$)}static $(){return["ConnectScmGitlab|1 instance_id 9?"]}};x3=class x3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new x3().fromBinary(Z,$)}static fromJson(Z,$){return new x3().fromJson(Z,$)}static fromJsonString(Z,$){return new x3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(x3,Z,$)}static $(){return["ConnectScmBitbucket|1 instance_id 9?"]}};M3=class M3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new M3().fromBinary(Z,$)}static fromJson(Z,$){return new M3().fromJson(Z,$)}static fromJsonString(Z,$){return new M3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(M3,Z,$)}static $(){return["ConnectScmAzureDevops"]}};C3=class C3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new C3().fromBinary(Z,$)}static fromJson(Z,$){return new C3().fromJson(Z,$)}static fromJsonString(Z,$){return new C3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(C3,Z,$)}static $(){return["ConnectScmGithub|1 repository #0|2 ghe_application 9?",h3]}};h3=class h3 extends Q0{constructor(Z){super();this.owner="",this.repo="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new h3().fromBinary(Z,$)}static fromJson(Z,$){return new h3().fromJson(Z,$)}static fromJsonString(Z,$){return new h3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(h3,Z,$)}static $(){return["ConnectScmGithubRepository|1 owner 9|2 repo 9"]}};v3=class v3 extends Q0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new v3().fromBinary(Z,$)}static fromJson(Z,$){return new v3().fromJson(Z,$)}static fromJsonString(Z,$){return new v3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(v3,Z,$)}static $(){return["ConnectScmResult|1 success #0 result|2 error #1 result|3 rejected #2 result|4 scm_target 9?",T3,R3,y3]}};T3=class T3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new T3().fromBinary(Z,$)}static fromJson(Z,$){return new T3().fromJson(Z,$)}static fromJsonString(Z,$){return new T3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(T3,Z,$)}static $(){return["ConnectScmSuccess"]}};R3=class R3 extends Q0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new R3().fromBinary(Z,$)}static fromJson(Z,$){return new R3().fromJson(Z,$)}static fromJsonString(Z,$){return new R3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(R3,Z,$)}static $(){return["ConnectScmError|1 error 9"]}};y3=class y3 extends Q0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new y3().fromBinary(Z,$)}static fromJson(Z,$){return new y3().fromJson(Z,$)}static fromJsonString(Z,$){return new y3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(y3,Z,$)}static $(){return["ConnectScmRejected|1 reason 9"]}};V$=class V$ extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new V$().fromBinary(Z,$)}static fromJson(Z,$){return new V$().fromJson(Z,$)}static fromJsonString(Z,$){return new V$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(V$,Z,$)}static $(){return["ConnectScmToolCall|1 args #0|2 result #1",f$,v3]}};P$=class P$ extends Q0{constructor(Z){super();this.result={case:void 0},j.util.initPartial(Z,this)}static fromBinary(Z,$){return new P$().fromBinary(Z,$)}static fromJson(Z,$){return new P$().fromJson(Z,$)}static fromJsonString(Z,$){return new P$().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(P$,Z,$)}static $(){return["ConnectScmRequestResponse|1 approved #0 result|2 rejected #1 result|3 failed #2 result",m3,j3,_3]}};m3=class m3 extends Q0{constructor(Z){super();j.util.initPartial(Z,this)}static fromBinary(Z,$){return new m3().fromBinary(Z,$)}static fromJson(Z,$){return new m3().fromJson(Z,$)}static fromJsonString(Z,$){return new m3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(m3,Z,$)}static $(){return["ConnectScmRequestResponse.Approved|1 scm_target 9?"]}};j3=class j3 extends Q0{constructor(Z){super();this.reason="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new j3().fromBinary(Z,$)}static fromJson(Z,$){return new j3().fromJson(Z,$)}static fromJsonString(Z,$){return new j3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(j3,Z,$)}static $(){return["ConnectScmRequestResponse.Rejected|1 reason 9|2 recorded_args #0?",f$]}};_3=class _3 extends Q0{constructor(Z){super();this.error="",j.util.initPartial(Z,this)}static fromBinary(Z,$){return new _3().fromBinary(Z,$)}static fromJson(Z,$){return new _3().fromJson(Z,$)}static fromJsonString(Z,$){return new _3().fromJsonString(Z,$)}static equals(Z,$){return j.util.equals(_3,Z,$)}static $(){return["ConnectScmRequestResponse.Failed|1 error 9"]}}});import{Message as ut,proto3 as c0,protoInt64 as Nh}from"@bufbuild/protobuf";var tG="agent.v1.",c3,sG,A$,x$,S3,g3,b3;var oG=U(()=>{k();c3=class c3 extends G{static get runtime(){return B(this,"runtime",c0)}static $p(){return tG}};sG=w(c0,tG,"ConversationSearchSource",[[0,"UNSPECIFIED"],[1,"LOCAL"],[2,"CLOUD_CACHE"]],1);A$=class A$ extends c3{constructor(Z){super();this.query="",this.toolCallId="",c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new A$().fromBinary(Z,$)}static fromJson(Z,$){return new A$().fromJson(Z,$)}static fromJsonString(Z,$){return new A$().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(A$,Z,$)}static $(){return["ConversationSearchArgs|1 query 9|2 tool_call_id 9|3 limit 5?"]}};x$=class x$ extends c3{constructor(Z){super();this.result={case:void 0},c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new x$().fromBinary(Z,$)}static fromJson(Z,$){return new x$().fromJson(Z,$)}static fromJsonString(Z,$){return new x$().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(x$,Z,$)}static $(){return["ConversationSearchResult|1 success #0 result|2 error #1 result",S3,b3]}};S3=class S3 extends c3{constructor(Z){super();this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new S3().fromBinary(Z,$)}static fromJson(Z,$){return new S3().fromJson(Z,$)}static fromJsonString(Z,$){return new S3().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(S3,Z,$)}static $(){return["ConversationSearchSuccess|1 hits #0*|2 truncated 8|3 partial 8|4 rebuilding 8",g3]}};g3=class g3 extends c3{constructor(Z){super();this.conversationId="",this.title="",this.source=sG.UNSPECIFIED,this.updatedAtMs=Nh.zero,c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new g3().fromBinary(Z,$)}static fromJson(Z,$){return new g3().fromJson(Z,$)}static fromJsonString(Z,$){return new g3().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(g3,Z,$)}static $(){return["ConversationSearchHit|1 conversation_id 9|2 title 9|3 source #0|4 updated_at_ms 3|5 snippet 9?",sG]}};b3=class b3 extends c3{constructor(Z){super();this.error="",c0.util.initPartial(Z,this)}static fromBinary(Z,$){return new b3().fromBinary(Z,$)}static fromJson(Z,$){return new b3().fromJson(Z,$)}static fromJsonString(Z,$){return new b3().fromJsonString(Z,$)}static equals(Z,$){return c0.util.equals(b3,Z,$)}static $(){return["ConversationSearchError|1 error 9"]}}});import{Message as nt,proto3 as DW}from"@bufbuild/protobuf";var Bh="agent.v1.",eG,M$;var ZL=U(()=>{oG();k();eG=class eG extends G{static get runtime(){return B(this,"runtime",DW)}static $p(){return Bh}};M$=class M$ extends eG{constructor(Z){super();DW.util.initPartial(Z,this)}static fromBinary(Z,$){return new M$().fromBinary(Z,$)}static fromJson(Z,$){return new M$().fromJson(Z,$)}static fromJsonString(Z,$){return new M$().fromJsonString(Z,$)}static equals(Z,$){return DW.util.equals(M$,Z,$)}static $(){return["SearchConversationsToolCall|1 args #0|2 result #1",A$,x$]}}});import{Message as ot,proto3 as a}from"@bufbuild/protobuf";var $L="agent.v1.",x8,T$,d3,u3,C$,l3,h$,p3,i3,n3,v$;var JL=U(()=>{k();x8=class x8 extends G{static get runtime(){return B(this,"runtime",a)}static $p(){return $L}};T$=w(a,$L,"GoalStatus",[[0,"UNSPECIFIED"],[1,"ACTIVE"],[2,"PAUSED"],[3,"COMPLETE"],[4,"CLEARED"]],1);d3=class d3 extends x8{constructor(Z){super();this.objective="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new d3().fromBinary(Z,$)}static fromJson(Z,$){return new d3().fromJson(Z,$)}static fromJsonString(Z,$){return new d3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(d3,Z,$)}static $(){return["CreateGoalArgs|1 objective 9"]}};u3=class u3 extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new u3().fromBinary(Z,$)}static fromJson(Z,$){return new u3().fromJson(Z,$)}static fromJsonString(Z,$){return new u3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(u3,Z,$)}static $(){return["CreateGoalSuccess"]}};C$=class C$ extends x8{constructor(Z){super();this.error="",a.util.initPartial(Z,this)}static fromBinary(Z,$){return new C$().fromBinary(Z,$)}static fromJson(Z,$){return new C$().fromJson(Z,$)}static fromJsonString(Z,$){return new C$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(C$,Z,$)}static $(){return["GoalError|1 error 9"]}};l3=class l3 extends x8{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new l3().fromBinary(Z,$)}static fromJson(Z,$){return new l3().fromJson(Z,$)}static fromJsonString(Z,$){return new l3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(l3,Z,$)}static $(){return["CreateGoalResult|1 success #0 result|2 error #1 result",u3,C$]}};h$=class h$ extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new h$().fromBinary(Z,$)}static fromJson(Z,$){return new h$().fromJson(Z,$)}static fromJsonString(Z,$){return new h$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(h$,Z,$)}static $(){return["CreateGoalToolCall|1 args #0|2 result #1",d3,l3]}};p3=class p3 extends x8{constructor(Z){super();this.status=T$.UNSPECIFIED,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new p3().fromBinary(Z,$)}static fromJson(Z,$){return new p3().fromJson(Z,$)}static fromJsonString(Z,$){return new p3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(p3,Z,$)}static $(){return["UpdateGoalArgs|1 status #0",T$]}};i3=class i3 extends x8{constructor(Z){super();this.status=T$.UNSPECIFIED,a.util.initPartial(Z,this)}static fromBinary(Z,$){return new i3().fromBinary(Z,$)}static fromJson(Z,$){return new i3().fromJson(Z,$)}static fromJsonString(Z,$){return new i3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(i3,Z,$)}static $(){return["UpdateGoalSuccess|1 status #0",T$]}};n3=class n3 extends x8{constructor(Z){super();this.result={case:void 0},a.util.initPartial(Z,this)}static fromBinary(Z,$){return new n3().fromBinary(Z,$)}static fromJson(Z,$){return new n3().fromJson(Z,$)}static fromJsonString(Z,$){return new n3().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(n3,Z,$)}static $(){return["UpdateGoalResult|1 success #0 result|2 error #1 result",i3,C$]}};v$=class v$ extends x8{constructor(Z){super();a.util.initPartial(Z,this)}static fromBinary(Z,$){return new v$().fromBinary(Z,$)}static fromJson(Z,$){return new v$().fromJson(Z,$)}static fromJsonString(Z,$){return new v$().fromJsonString(Z,$)}static equals(Z,$){return a.util.equals(v$,Z,$)}static $(){return["UpdateGoalToolCall|1 args #0|2 result #1",p3,n3]}}});import{Message as Jo,proto3 as F,protoInt64 as q6}from"@bufbuild/protobuf";var UW="agent.v1.",E,XL,a3,r3,s3,t3,o3,R$,e3,ZX,$X,YL,JX,YX,y$,XX,zX,KX,HX,m$,QX,qX,WX,NX,j$,BX,FX,GX,LX,_$,wX,DX,UX,IX,S$,g$,b$,c$,OX,kX,EX,d$,u$,fX,VX,PX,AX,xX,l$,MX,CX,hX,vX,TX,RX,p$,yX,mX,jX,_X,SX,gX,bX,cX,i$,dX,uX,lX,pX,n$,iX,nX,aX,rX,sX,a$,tX,oX,eX,Zz,$z,r$;var zL=U(()=>{k();E=class E extends G{static get runtime(){return B(this,"runtime",F)}static $p(){return UW}};XL=w(F,UW,"CreateAgentPlacementApprovalState",[[0,"UNSPECIFIED"],[1,"REQUIRED"],[2,"DENIED"]],1);a3=class a3 extends E{constructor(Z){super();this.toolCallId="",this.agentIds=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new a3().fromBinary(Z,$)}static fromJson(Z,$){return new a3().fromJson(Z,$)}static fromJsonString(Z,$){return new a3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(a3,Z,$)}static $(){return["GetAgentStatusArgs|1 tool_call_id 9|2 agent_ids 9*"]}};r3=class r3 extends E{constructor(Z){super();this.bcId="",this.name="",this.lifecycle="",this.turnInFlight=!1,this.lastTerminalTurnStatus="",this.prUrl="",this.lastActivityAtMs=q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new r3().fromBinary(Z,$)}static fromJson(Z,$){return new r3().fromJson(Z,$)}static fromJsonString(Z,$){return new r3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(r3,Z,$)}static $(){return["GetAgentStatusWorker|1 bc_id 9|2 name 9|3 lifecycle 9|4 turn_in_flight 8|5 last_terminal_turn_status 9|6 pr_url 9|7 last_activity_at_ms 4"]}};s3=class s3 extends E{constructor(Z){super();this.workers=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new s3().fromBinary(Z,$)}static fromJson(Z,$){return new s3().fromJson(Z,$)}static fromJsonString(Z,$){return new s3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(s3,Z,$)}static $(){return["GetAgentStatusSuccess|1 workers #0*|2 message 9",r3]}};t3=class t3 extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new t3().fromBinary(Z,$)}static fromJson(Z,$){return new t3().fromJson(Z,$)}static fromJsonString(Z,$){return new t3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(t3,Z,$)}static $(){return["GetAgentStatusError|1 error 9"]}};o3=class o3 extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new o3().fromBinary(Z,$)}static fromJson(Z,$){return new o3().fromJson(Z,$)}static fromJsonString(Z,$){return new o3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(o3,Z,$)}static $(){return["GetAgentStatusResult|1 success #0 result|2 error #1 result",s3,t3]}};R$=class R$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new R$().fromBinary(Z,$)}static fromJson(Z,$){return new R$().fromJson(Z,$)}static fromJsonString(Z,$){return new R$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(R$,Z,$)}static $(){return["GetAgentStatusToolCall|1 args #0|2 result #1",a3,o3]}};e3=class e3 extends E{constructor(Z){super();this.toolCallId="",this.agentId="",this.message="",this.delivery="",this.title="",this.trackedTaskKeys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new e3().fromBinary(Z,$)}static fromJson(Z,$){return new e3().fromJson(Z,$)}static fromJsonString(Z,$){return new e3().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(e3,Z,$)}static $(){return["SendToAgentArgs|1 tool_call_id 9|2 agent_id 9|3 message 9|4 delivery 9|5 title 9|6 model 9?|7 tracked_task_keys 9*"]}};ZX=class ZX extends E{constructor(Z){super();this.workerBcId="",this.deliveredAs="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZX().fromBinary(Z,$)}static fromJson(Z,$){return new ZX().fromJson(Z,$)}static fromJsonString(Z,$){return new ZX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(ZX,Z,$)}static $(){return["SendToAgentSuccess|1 worker_bc_id 9|2 delivered_as 9|3 message 9|4 recipient #0?",$X]}};$X=class $X extends E{constructor(Z){super();this.kind=YL.UNSPECIFIED,this.id="",this.displayName="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $X().fromBinary(Z,$)}static fromJson(Z,$){return new $X().fromJson(Z,$)}static fromJsonString(Z,$){return new $X().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($X,Z,$)}static $(){return["SendToAgentRecipient|1 kind #0|2 id 9|3 display_name 9",YL]}};YL=w(F,UW,"SendToAgentRecipient.Kind",[[0,"UNSPECIFIED"],[1,"MAIN_BOT"],[2,"PROJECT_SESSION"]],1);JX=class JX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new JX().fromBinary(Z,$)}static fromJson(Z,$){return new JX().fromJson(Z,$)}static fromJsonString(Z,$){return new JX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(JX,Z,$)}static $(){return["SendToAgentError|1 error 9"]}};YX=class YX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new YX().fromBinary(Z,$)}static fromJson(Z,$){return new YX().fromJson(Z,$)}static fromJsonString(Z,$){return new YX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(YX,Z,$)}static $(){return["SendToAgentResult|1 success #0 result|2 error #1 result",ZX,JX]}};y$=class y$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new y$().fromBinary(Z,$)}static fromJson(Z,$){return new y$().fromJson(Z,$)}static fromJsonString(Z,$){return new y$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(y$,Z,$)}static $(){return["SendToAgentToolCall|1 args #0|2 result #1",e3,YX]}};XX=class XX extends E{constructor(Z){super();this.toolCallId="",this.agentId="",this.mode="",this.maxTurns=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new XX().fromBinary(Z,$)}static fromJson(Z,$){return new XX().fromJson(Z,$)}static fromJsonString(Z,$){return new XX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(XX,Z,$)}static $(){return["ReadAgentTranscriptArgs|1 tool_call_id 9|2 agent_id 9|3 mode 9|4 max_turns 13"]}};zX=class zX extends E{constructor(Z){super();this.transcript="",this.truncated=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new zX().fromBinary(Z,$)}static fromJson(Z,$){return new zX().fromJson(Z,$)}static fromJsonString(Z,$){return new zX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(zX,Z,$)}static $(){return["ReadAgentTranscriptSuccess|1 transcript 9|2 truncated 8"]}};KX=class KX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new KX().fromBinary(Z,$)}static fromJson(Z,$){return new KX().fromJson(Z,$)}static fromJsonString(Z,$){return new KX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(KX,Z,$)}static $(){return["ReadAgentTranscriptError|1 error 9"]}};HX=class HX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new HX().fromBinary(Z,$)}static fromJson(Z,$){return new HX().fromJson(Z,$)}static fromJsonString(Z,$){return new HX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(HX,Z,$)}static $(){return["ReadAgentTranscriptResult|1 success #0 result|2 error #1 result",zX,KX]}};m$=class m$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new m$().fromBinary(Z,$)}static fromJson(Z,$){return new m$().fromJson(Z,$)}static fromJsonString(Z,$){return new m$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(m$,Z,$)}static $(){return["ReadAgentTranscriptToolCall|1 args #0|2 result #1",XX,HX]}};QX=class QX extends E{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},this.trackedTaskKeys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new QX().fromBinary(Z,$)}static fromJson(Z,$){return new QX().fromJson(Z,$)}static fromJsonString(Z,$){return new QX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(QX,Z,$)}static $(){return["CreateAgentArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?|13 tracked_task_keys 9*|14 fork_from 9?|15 fork_turns 13?"]}};qX=class qX extends E{constructor(Z){super();this.agentId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new qX().fromBinary(Z,$)}static fromJson(Z,$){return new qX().fromJson(Z,$)}static fromJsonString(Z,$){return new qX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(qX,Z,$)}static $(){return["CreateAgentSuccess|1 agent_id 9|2 message 9"]}};WX=class WX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new WX().fromBinary(Z,$)}static fromJson(Z,$){return new WX().fromJson(Z,$)}static fromJsonString(Z,$){return new WX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(WX,Z,$)}static $(){return["CreateAgentError|1 error 9|2 placement_approval_state #0?",XL]}};NX=class NX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new NX().fromBinary(Z,$)}static fromJson(Z,$){return new NX().fromJson(Z,$)}static fromJsonString(Z,$){return new NX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(NX,Z,$)}static $(){return["CreateAgentResult|1 success #0 result|2 error #1 result",qX,WX]}};j$=class j$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new j$().fromBinary(Z,$)}static fromJson(Z,$){return new j$().fromJson(Z,$)}static fromJsonString(Z,$){return new j$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(j$,Z,$)}static $(){return["CreateAgentToolCall|1 args #0|2 result #1",QX,NX]}};BX=class BX extends E{constructor(Z){super();this.toolCallId="",this.prompt="",this.labels={},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new BX().fromBinary(Z,$)}static fromJson(Z,$){return new BX().fromJson(Z,$)}static fromJsonString(Z,$){return new BX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(BX,Z,$)}static $(){return["CreateProjectArgs|1 tool_call_id 9|2 prompt 9|3 name 9?|4 model 9?|5 base_branch 9?|6 machine_type 9?|7 worker_id 9?|8 pool 9?|9 labels 9,9|10 environment_build_id 9?|11 environment_id 9?|12 repo_url 9?"]}};FX=class FX extends E{constructor(Z){super();this.agentId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new FX().fromBinary(Z,$)}static fromJson(Z,$){return new FX().fromJson(Z,$)}static fromJsonString(Z,$){return new FX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(FX,Z,$)}static $(){return["CreateProjectSuccess|1 agent_id 9|2 message 9"]}};GX=class GX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new GX().fromBinary(Z,$)}static fromJson(Z,$){return new GX().fromJson(Z,$)}static fromJsonString(Z,$){return new GX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(GX,Z,$)}static $(){return["CreateProjectError|1 error 9|2 placement_approval_state #0?",XL]}};LX=class LX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new LX().fromBinary(Z,$)}static fromJson(Z,$){return new LX().fromJson(Z,$)}static fromJsonString(Z,$){return new LX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(LX,Z,$)}static $(){return["CreateProjectResult|1 success #0 result|2 error #1 result",FX,GX]}};_$=class _$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _$().fromBinary(Z,$)}static fromJson(Z,$){return new _$().fromJson(Z,$)}static fromJsonString(Z,$){return new _$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_$,Z,$)}static $(){return["CreateProjectToolCall|1 args #0|2 result #1",BX,LX]}};wX=class wX extends E{constructor(Z){super();this.toolCallId="",this.agentId="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new wX().fromBinary(Z,$)}static fromJson(Z,$){return new wX().fromJson(Z,$)}static fromJsonString(Z,$){return new wX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(wX,Z,$)}static $(){return["StopAgentArgs|1 tool_call_id 9|2 agent_id 9"]}};DX=class DX extends E{constructor(Z){super();this.workerBcId="",this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new DX().fromBinary(Z,$)}static fromJson(Z,$){return new DX().fromJson(Z,$)}static fromJsonString(Z,$){return new DX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(DX,Z,$)}static $(){return["StopAgentSuccess|1 worker_bc_id 9|2 message 9"]}};UX=class UX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new UX().fromBinary(Z,$)}static fromJson(Z,$){return new UX().fromJson(Z,$)}static fromJsonString(Z,$){return new UX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(UX,Z,$)}static $(){return["StopAgentError|1 error 9"]}};IX=class IX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new IX().fromBinary(Z,$)}static fromJson(Z,$){return new IX().fromJson(Z,$)}static fromJsonString(Z,$){return new IX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(IX,Z,$)}static $(){return["StopAgentResult|1 success #0 result|2 error #1 result",DX,UX]}};S$=class S$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new S$().fromBinary(Z,$)}static fromJson(Z,$){return new S$().fromJson(Z,$)}static fromJsonString(Z,$){return new S$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(S$,Z,$)}static $(){return["StopAgentToolCall|1 args #0|2 result #1",wX,IX]}};g$=class g$ extends E{constructor(Z){super();this.path="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new g$().fromBinary(Z,$)}static fromJson(Z,$){return new g$().fromJson(Z,$)}static fromJsonString(Z,$){return new g$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(g$,Z,$)}static $(){return["TrackedTaskDocumentInput|1 path 9|2 label 9?"]}};b$=class b$ extends E{constructor(Z){super();this.url="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new b$().fromBinary(Z,$)}static fromJson(Z,$){return new b$().fromJson(Z,$)}static fromJsonString(Z,$){return new b$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(b$,Z,$)}static $(){return["TrackedTaskUrlInput|1 url 9|2 label 9?"]}};c$=class c$ extends E{constructor(Z){super();this.target={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new c$().fromBinary(Z,$)}static fromJson(Z,$){return new c$().fromJson(Z,$)}static fromJsonString(Z,$){return new c$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(c$,Z,$)}static $(){return["TrackedTaskLinkInput|1 agent_id 9 target|2 pr_url 9 target|3 document #0 target|4 url #1 target",g$,b$]}};OX=class OX extends E{constructor(Z){super();this.url="",this.openedByAgentId="",this.countsForCompletion=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new OX().fromBinary(Z,$)}static fromJson(Z,$){return new OX().fromJson(Z,$)}static fromJsonString(Z,$){return new OX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(OX,Z,$)}static $(){return["TrackedTaskPrLinkView|1 url 9|2 opened_by_agent_id 9|3 counts_for_completion 8"]}};kX=class kX extends E{constructor(Z){super();this.target={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new kX().fromBinary(Z,$)}static fromJson(Z,$){return new kX().fromJson(Z,$)}static fromJsonString(Z,$){return new kX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(kX,Z,$)}static $(){return["TrackedTaskLinkView|1 agent_id 9 target|2 pr #0 target|3 document #1 target|4 url #2 target",OX,g$,b$]}};EX=class EX extends E{constructor(Z){super();this.key="",this.title="",this.statusId="",this.statusLabel="",this.owner="",this.parentKey="",this.links=[],this.updatedAtMs=q6.zero,this.ownerSessionId="",this.version=q6.zero,this.tag="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new EX().fromBinary(Z,$)}static fromJson(Z,$){return new EX().fromJson(Z,$)}static fromJsonString(Z,$){return new EX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(EX,Z,$)}static $(){return["TrackedTaskView|1 key 9|2 title 9|3 status_id 9|4 status_label 9|5 owner 9|6 parent_key 9|7 links #0*|8 updated_at_ms 4|9 owner_session_id 9|10 version 4|11 tag 9",kX]}};d$=class d$ extends E{constructor(Z){super();this.id="",this.label="",this.category="",this.taskCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new d$().fromBinary(Z,$)}static fromJson(Z,$){return new d$().fromJson(Z,$)}static fromJsonString(Z,$){return new d$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(d$,Z,$)}static $(){return["TrackedTaskStatusView|1 id 9|2 label 9|3 category 9|4 task_count 13"]}};u$=class u$ extends E{constructor(Z){super();this.id="",this.label="",this.color="",this.taskCount=0,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new u$().fromBinary(Z,$)}static fromJson(Z,$){return new u$().fromJson(Z,$)}static fromJsonString(Z,$){return new u$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(u$,Z,$)}static $(){return["TrackedTaskTagView|1 id 9|2 label 9|3 color 9|4 task_count 13"]}};fX=class fX extends E{constructor(Z){super();this.name="",this.sessionId="",this.isYou=!1,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new fX().fromBinary(Z,$)}static fromJson(Z,$){return new fX().fromJson(Z,$)}static fromJsonString(Z,$){return new fX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(fX,Z,$)}static $(){return["TrackedTaskMemberView|1 name 9|2 session_id 9|3 is_you 8"]}};VX=class VX extends E{constructor(Z){super();this.toolCallId="",this.keys=[],this.statusCategories=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new VX().fromBinary(Z,$)}static fromJson(Z,$){return new VX().fromJson(Z,$)}static fromJsonString(Z,$){return new VX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(VX,Z,$)}static $(){return["ListTrackedTasksArgs|1 tool_call_id 9|2 keys 9*|3 status_categories 9*|4 owner 9?|5 linked_agent_id 9?"]}};PX=class PX extends E{constructor(Z){super();this.tasks=[],this.statuses=[],this.members=[],this.olderClosedCount=0,this.truncated=!1,this.matchingCount=0,this.message="",this.tags=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new PX().fromBinary(Z,$)}static fromJson(Z,$){return new PX().fromJson(Z,$)}static fromJsonString(Z,$){return new PX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(PX,Z,$)}static $(){return["ListTrackedTasksSuccess|1 tasks #0*|2 statuses #1*|3 members #2*|4 older_closed_count 13|5 truncated 8|6 matching_count 13|7 message 9|8 tags #3*",EX,d$,fX,u$]}};AX=class AX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new AX().fromBinary(Z,$)}static fromJson(Z,$){return new AX().fromJson(Z,$)}static fromJsonString(Z,$){return new AX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(AX,Z,$)}static $(){return["ListTrackedTasksError|1 error 9"]}};xX=class xX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new xX().fromBinary(Z,$)}static fromJson(Z,$){return new xX().fromJson(Z,$)}static fromJsonString(Z,$){return new xX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(xX,Z,$)}static $(){return["ListTrackedTasksResult|1 success #0 result|2 error #1 result",PX,AX]}};l$=class l$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new l$().fromBinary(Z,$)}static fromJson(Z,$){return new l$().fromJson(Z,$)}static fromJsonString(Z,$){return new l$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(l$,Z,$)}static $(){return["ListTrackedTasksToolCall|1 args #0|2 result #1",VX,xX]}};MX=class MX extends E{constructor(Z){super();this.title="",this.links=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new MX().fromBinary(Z,$)}static fromJson(Z,$){return new MX().fromJson(Z,$)}static fromJsonString(Z,$){return new MX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(MX,Z,$)}static $(){return["NewTrackedTask|1 client_ref 9?|2 title 9|3 status 9?|4 owner 9?|5 parent 9?|6 links #0*|7 tag 9?",c$]}};CX=class CX extends E{constructor(Z){super();this.toolCallId="",this.tasks=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new CX().fromBinary(Z,$)}static fromJson(Z,$){return new CX().fromJson(Z,$)}static fromJsonString(Z,$){return new CX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(CX,Z,$)}static $(){return["CreateTrackedTasksArgs|1 tool_call_id 9|2 tasks #0*",MX]}};hX=class hX extends E{constructor(Z){super();this.clientRef="",this.key="",this.version=q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new hX().fromBinary(Z,$)}static fromJson(Z,$){return new hX().fromJson(Z,$)}static fromJsonString(Z,$){return new hX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(hX,Z,$)}static $(){return["TrackedTaskCreated|1 client_ref 9|2 key 9|3 version 4"]}};vX=class vX extends E{constructor(Z){super();this.created=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new vX().fromBinary(Z,$)}static fromJson(Z,$){return new vX().fromJson(Z,$)}static fromJsonString(Z,$){return new vX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(vX,Z,$)}static $(){return["CreateTrackedTasksSuccess|1 created #0*|2 message 9",hX]}};TX=class TX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new TX().fromBinary(Z,$)}static fromJson(Z,$){return new TX().fromJson(Z,$)}static fromJsonString(Z,$){return new TX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(TX,Z,$)}static $(){return["CreateTrackedTasksError|1 error 9"]}};RX=class RX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new RX().fromBinary(Z,$)}static fromJson(Z,$){return new RX().fromJson(Z,$)}static fromJsonString(Z,$){return new RX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(RX,Z,$)}static $(){return["CreateTrackedTasksResult|1 success #0 result|2 error #1 result",vX,TX]}};p$=class p$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new p$().fromBinary(Z,$)}static fromJson(Z,$){return new p$().fromJson(Z,$)}static fromJsonString(Z,$){return new p$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(p$,Z,$)}static $(){return["CreateTrackedTasksToolCall|1 args #0|2 result #1",CX,RX]}};yX=class yX extends E{constructor(Z){super();this.anchor={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new yX().fromBinary(Z,$)}static fromJson(Z,$){return new yX().fromJson(Z,$)}static fromJsonString(Z,$){return new yX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(yX,Z,$)}static $(){return["TrackedTaskPosition|1 before_key 9 anchor|2 after_key 9 anchor"]}};mX=class mX extends E{constructor(Z){super();this.key="",this.addLinks=[],this.removeLinks=[],this.version=q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new mX().fromBinary(Z,$)}static fromJson(Z,$){return new mX().fromJson(Z,$)}static fromJsonString(Z,$){return new mX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(mX,Z,$)}static $(){return["TrackedTaskUpdate|1 key 9|2 title 9?|3 status 9?|4 owner 9?|5 parent 9?|6 position #0?|7 add_links #1*|8 remove_links #1*|9 version 4|10 tag 9?",yX,c$]}};jX=class jX extends E{constructor(Z){super();this.toolCallId="",this.updates=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new jX().fromBinary(Z,$)}static fromJson(Z,$){return new jX().fromJson(Z,$)}static fromJsonString(Z,$){return new jX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(jX,Z,$)}static $(){return["UpdateTrackedTasksArgs|1 tool_call_id 9|2 updates #0*",mX]}};_X=class _X extends E{constructor(Z){super();this.key="",this.field="",this.currentValue="",this.changedBy="",this.changedAtMs=q6.zero,this.currentVersion=q6.zero,F.util.initPartial(Z,this)}static fromBinary(Z,$){return new _X().fromBinary(Z,$)}static fromJson(Z,$){return new _X().fromJson(Z,$)}static fromJsonString(Z,$){return new _X().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(_X,Z,$)}static $(){return["TrackedTaskConflict|1 key 9|2 field 9|3 current_value 9|4 changed_by 9|5 changed_at_ms 4|6 current_version 4"]}};SX=class SX extends E{constructor(Z){super();this.key="",this.version=q6.zero,this.title="",this.statusLabel="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new SX().fromBinary(Z,$)}static fromJson(Z,$){return new SX().fromJson(Z,$)}static fromJsonString(Z,$){return new SX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(SX,Z,$)}static $(){return["TrackedTaskUpdated|1 key 9|2 version 4|3 title 9|4 status_label 9"]}};gX=class gX extends E{constructor(Z){super();this.updated=[],this.conflicts=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new gX().fromBinary(Z,$)}static fromJson(Z,$){return new gX().fromJson(Z,$)}static fromJsonString(Z,$){return new gX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(gX,Z,$)}static $(){return["UpdateTrackedTasksSuccess|1 updated #0*|2 conflicts #1*|3 message 9",SX,_X]}};bX=class bX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new bX().fromBinary(Z,$)}static fromJson(Z,$){return new bX().fromJson(Z,$)}static fromJsonString(Z,$){return new bX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(bX,Z,$)}static $(){return["UpdateTrackedTasksError|1 error 9"]}};cX=class cX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new cX().fromBinary(Z,$)}static fromJson(Z,$){return new cX().fromJson(Z,$)}static fromJsonString(Z,$){return new cX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(cX,Z,$)}static $(){return["UpdateTrackedTasksResult|1 success #0 result|2 error #1 result",gX,bX]}};i$=class i$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new i$().fromBinary(Z,$)}static fromJson(Z,$){return new i$().fromJson(Z,$)}static fromJsonString(Z,$){return new i$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(i$,Z,$)}static $(){return["UpdateTrackedTasksToolCall|1 args #0|2 result #1",jX,cX]}};dX=class dX extends E{constructor(Z){super();this.toolCallId="",this.keys=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new dX().fromBinary(Z,$)}static fromJson(Z,$){return new dX().fromJson(Z,$)}static fromJsonString(Z,$){return new dX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(dX,Z,$)}static $(){return["DeleteTrackedTasksArgs|1 tool_call_id 9|2 keys 9*"]}};uX=class uX extends E{constructor(Z){super();this.deletedKeys=[],this.unparentedKeys=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new uX().fromBinary(Z,$)}static fromJson(Z,$){return new uX().fromJson(Z,$)}static fromJsonString(Z,$){return new uX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(uX,Z,$)}static $(){return["DeleteTrackedTasksSuccess|1 deleted_keys 9*|2 unparented_keys 9*|3 message 9"]}};lX=class lX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new lX().fromBinary(Z,$)}static fromJson(Z,$){return new lX().fromJson(Z,$)}static fromJsonString(Z,$){return new lX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(lX,Z,$)}static $(){return["DeleteTrackedTasksError|1 error 9"]}};pX=class pX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new pX().fromBinary(Z,$)}static fromJson(Z,$){return new pX().fromJson(Z,$)}static fromJsonString(Z,$){return new pX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(pX,Z,$)}static $(){return["DeleteTrackedTasksResult|1 success #0 result|2 error #1 result",uX,lX]}};n$=class n$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new n$().fromBinary(Z,$)}static fromJson(Z,$){return new n$().fromJson(Z,$)}static fromJsonString(Z,$){return new n$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(n$,Z,$)}static $(){return["DeleteTrackedTasksToolCall|1 args #0|2 result #1",dX,pX]}};iX=class iX extends E{constructor(Z){super();this.label="",this.category="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new iX().fromBinary(Z,$)}static fromJson(Z,$){return new iX().fromJson(Z,$)}static fromJsonString(Z,$){return new iX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(iX,Z,$)}static $(){return["TrackedTaskStatusInput|1 id 9?|2 label 9|3 icon 9?|4 category 9"]}};nX=class nX extends E{constructor(Z){super();this.toolCallId="",this.statuses=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new nX().fromBinary(Z,$)}static fromJson(Z,$){return new nX().fromJson(Z,$)}static fromJsonString(Z,$){return new nX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(nX,Z,$)}static $(){return["UpdateTrackedTaskStatusesArgs|1 tool_call_id 9|2 statuses #0*",iX]}};aX=class aX extends E{constructor(Z){super();this.statuses=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new aX().fromBinary(Z,$)}static fromJson(Z,$){return new aX().fromJson(Z,$)}static fromJsonString(Z,$){return new aX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(aX,Z,$)}static $(){return["UpdateTrackedTaskStatusesSuccess|1 statuses #0*|2 message 9",d$]}};rX=class rX extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new rX().fromBinary(Z,$)}static fromJson(Z,$){return new rX().fromJson(Z,$)}static fromJsonString(Z,$){return new rX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(rX,Z,$)}static $(){return["UpdateTrackedTaskStatusesError|1 error 9"]}};sX=class sX extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new sX().fromBinary(Z,$)}static fromJson(Z,$){return new sX().fromJson(Z,$)}static fromJsonString(Z,$){return new sX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(sX,Z,$)}static $(){return["UpdateTrackedTaskStatusesResult|1 success #0 result|2 error #1 result",aX,rX]}};a$=class a$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new a$().fromBinary(Z,$)}static fromJson(Z,$){return new a$().fromJson(Z,$)}static fromJsonString(Z,$){return new a$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(a$,Z,$)}static $(){return["UpdateTrackedTaskStatusesToolCall|1 args #0|2 result #1",nX,sX]}};tX=class tX extends E{constructor(Z){super();this.label="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new tX().fromBinary(Z,$)}static fromJson(Z,$){return new tX().fromJson(Z,$)}static fromJsonString(Z,$){return new tX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(tX,Z,$)}static $(){return["TrackedTaskTagInput|1 id 9?|2 label 9|3 color 9?"]}};oX=class oX extends E{constructor(Z){super();this.toolCallId="",this.tags=[],F.util.initPartial(Z,this)}static fromBinary(Z,$){return new oX().fromBinary(Z,$)}static fromJson(Z,$){return new oX().fromJson(Z,$)}static fromJsonString(Z,$){return new oX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(oX,Z,$)}static $(){return["UpdateTrackedTaskTagsArgs|1 tool_call_id 9|2 tags #0*",tX]}};eX=class eX extends E{constructor(Z){super();this.tags=[],this.message="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new eX().fromBinary(Z,$)}static fromJson(Z,$){return new eX().fromJson(Z,$)}static fromJsonString(Z,$){return new eX().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(eX,Z,$)}static $(){return["UpdateTrackedTaskTagsSuccess|1 tags #0*|2 message 9",u$]}};Zz=class Zz extends E{constructor(Z){super();this.error="",F.util.initPartial(Z,this)}static fromBinary(Z,$){return new Zz().fromBinary(Z,$)}static fromJson(Z,$){return new Zz().fromJson(Z,$)}static fromJsonString(Z,$){return new Zz().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(Zz,Z,$)}static $(){return["UpdateTrackedTaskTagsError|1 error 9"]}};$z=class $z extends E{constructor(Z){super();this.result={case:void 0},F.util.initPartial(Z,this)}static fromBinary(Z,$){return new $z().fromBinary(Z,$)}static fromJson(Z,$){return new $z().fromJson(Z,$)}static fromJsonString(Z,$){return new $z().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals($z,Z,$)}static $(){return["UpdateTrackedTaskTagsResult|1 success #0 result|2 error #1 result",eX,Zz]}};r$=class r$ extends E{constructor(Z){super();F.util.initPartial(Z,this)}static fromBinary(Z,$){return new r$().fromBinary(Z,$)}static fromJson(Z,$){return new r$().fromJson(Z,$)}static fromJsonString(Z,$){return new r$().fromJsonString(Z,$)}static equals(Z,$){return F.util.equals(r$,Z,$)}static $(){return["UpdateTrackedTaskTagsToolCall|1 args #0|2 result #1",oX,$z]}}});import{Message as Ko,proto3 as _}from"@bufbuild/protobuf";var IW="agent.v1.",C0,KL,HL,Jz,Yz,Xz,zz,Kz,Hz,Qz,s$,qz,Wz,Nz,Bz,t$;var QL=U(()=>{k();C0=class C0 extends G{static get runtime(){return B(this,"runtime",_)}static $p(){return IW}};KL=w(_,IW,"WriteCanvasFailReason",[[0,"UNSPECIFIED"],[1,"TYPECHECK_FAILED"],[2,"COMPILE_FAILED"],[3,"TOO_LARGE"],[4,"UNAVAILABLE"],[5,"NOT_FOUND"],[6,"REFUSED"]],1),HL=w(_,IW,"ReadCanvasFailReason",[[0,"UNSPECIFIED"],[1,"NOT_FOUND"],[2,"UNAVAILABLE"],[3,"REFUSED"],[4,"INVALID_REFERENCE"]],1);Jz=class Jz extends C0{constructor(Z){super();this.line=0,this.character=0,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Jz().fromBinary(Z,$)}static fromJson(Z,$){return new Jz().fromJson(Z,$)}static fromJsonString(Z,$){return new Jz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Jz,Z,$)}static $(){return["CloudCanvasToolDiagnosticPosition|1 line 5|2 character 5"]}};Yz=class Yz extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Yz().fromBinary(Z,$)}static fromJson(Z,$){return new Yz().fromJson(Z,$)}static fromJsonString(Z,$){return new Yz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Yz,Z,$)}static $(){return["CloudCanvasToolDiagnosticRange|1 start #0|2 end #0",Jz]}};Xz=class Xz extends C0{constructor(Z){super();this.message="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Xz().fromBinary(Z,$)}static fromJson(Z,$){return new Xz().fromJson(Z,$)}static fromJsonString(Z,$){return new Xz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Xz,Z,$)}static $(){return["CloudCanvasToolDiagnostic|1 message 9|2 code 9?|3 severity 5?|4 range #0?",Yz]}};zz=class zz extends C0{constructor(Z){super();this.contents="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new zz().fromBinary(Z,$)}static fromJson(Z,$){return new zz().fromJson(Z,$)}static fromJsonString(Z,$){return new zz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(zz,Z,$)}static $(){return["WriteCanvasArgs|1 contents 9|2 canvas_id 9?|3 title 9?"]}};Kz=class Kz extends C0{constructor(Z){super();this.canvasId="",this.url="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Kz().fromBinary(Z,$)}static fromJson(Z,$){return new Kz().fromJson(Z,$)}static fromJsonString(Z,$){return new Kz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Kz,Z,$)}static $(){return["WriteCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9"]}};Hz=class Hz extends C0{constructor(Z){super();this.reason=KL.UNSPECIFIED,this.diagnostics=[],_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Hz().fromBinary(Z,$)}static fromJson(Z,$){return new Hz().fromJson(Z,$)}static fromJsonString(Z,$){return new Hz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Hz,Z,$)}static $(){return["WriteCanvasFailure|1 reason #0|2 diagnostics #1*|3 detail 9?",KL,Xz]}};Qz=class Qz extends C0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Qz().fromBinary(Z,$)}static fromJson(Z,$){return new Qz().fromJson(Z,$)}static fromJsonString(Z,$){return new Qz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Qz,Z,$)}static $(){return["WriteCanvasResult|1 success #0 result|2 failure #1 result",Kz,Hz]}};s$=class s$ extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new s$().fromBinary(Z,$)}static fromJson(Z,$){return new s$().fromJson(Z,$)}static fromJsonString(Z,$){return new s$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(s$,Z,$)}static $(){return["WriteCanvasToolCall|1 args #0|2 result #1",zz,Qz]}};qz=class qz extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new qz().fromBinary(Z,$)}static fromJson(Z,$){return new qz().fromJson(Z,$)}static fromJsonString(Z,$){return new qz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(qz,Z,$)}static $(){return["ReadCanvasArgs|1 canvas_id 9?|2 url 9?"]}};Wz=class Wz extends C0{constructor(Z){super();this.canvasId="",this.url="",this.source="",_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Wz().fromBinary(Z,$)}static fromJson(Z,$){return new Wz().fromJson(Z,$)}static fromJsonString(Z,$){return new Wz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Wz,Z,$)}static $(){return["ReadCanvasSuccess|1 canvas_id 9|2 title 9?|3 url 9|4 source 9"]}};Nz=class Nz extends C0{constructor(Z){super();this.reason=HL.UNSPECIFIED,_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Nz().fromBinary(Z,$)}static fromJson(Z,$){return new Nz().fromJson(Z,$)}static fromJsonString(Z,$){return new Nz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Nz,Z,$)}static $(){return["ReadCanvasFailure|1 reason #0|2 detail 9?",HL]}};Bz=class Bz extends C0{constructor(Z){super();this.result={case:void 0},_.util.initPartial(Z,this)}static fromBinary(Z,$){return new Bz().fromBinary(Z,$)}static fromJson(Z,$){return new Bz().fromJson(Z,$)}static fromJsonString(Z,$){return new Bz().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(Bz,Z,$)}static $(){return["ReadCanvasResult|1 success #0 result|2 failure #1 result",Wz,Nz]}};t$=class t$ extends C0{constructor(Z){super();_.util.initPartial(Z,this)}static fromBinary(Z,$){return new t$().fromBinary(Z,$)}static fromJson(Z,$){return new t$().fromJson(Z,$)}static fromJsonString(Z,$){return new t$().fromJsonString(Z,$)}static equals(Z,$){return _.util.equals(t$,Z,$)}static $(){return["ReadCanvasToolCall|1 args #0|2 result #1",qz,Bz]}}});import{Message as Wo,proto3 as y0}from"@bufbuild/protobuf";var Fh="agent.v1.",e$,Fz,Gz,Lz,wz,Dz,o$;var qL=U(()=>{k();e$=class e$ extends G{static get runtime(){return B(this,"runtime",y0)}static $p(){return Fh}};Fz=class Fz extends e${constructor(Z){super();this.prompt="",this.referenceImagePaths=[],this.keyframes=[],y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Fz().fromBinary(Z,$)}static fromJson(Z,$){return new Fz().fromJson(Z,$)}static fromJsonString(Z,$){return new Fz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Fz,Z,$)}static $(){return["GenerateVideoArgs|1 prompt 9|2 file_path 9?|3 image_path 9?|4 reference_image_paths 9*|5 duration_seconds 13?|6 aspect_ratio 9?|7 resolution 9?|8 last_frame_path 9?|9 keyframes #0*",Gz]}};Gz=class Gz extends e${constructor(Z){super();this.imagePath="",this.timestampSeconds=0,y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Gz().fromBinary(Z,$)}static fromJson(Z,$){return new Gz().fromJson(Z,$)}static fromJsonString(Z,$){return new Gz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Gz,Z,$)}static $(){return["GenerateVideoKeyframe|1 image_path 9|2 timestamp_seconds 1"]}};Lz=class Lz extends e${constructor(Z){super();this.result={case:void 0},y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Lz().fromBinary(Z,$)}static fromJson(Z,$){return new Lz().fromJson(Z,$)}static fromJsonString(Z,$){return new Lz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Lz,Z,$)}static $(){return["GenerateVideoResult|1 success #0 result|2 error #1 result",wz,Dz]}};wz=class wz extends e${constructor(Z){super();this.filePath="",this.durationSeconds=0,y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new wz().fromBinary(Z,$)}static fromJson(Z,$){return new wz().fromJson(Z,$)}static fromJsonString(Z,$){return new wz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(wz,Z,$)}static $(){return["GenerateVideoSuccess|1 file_path 9|2 duration_seconds 13"]}};Dz=class Dz extends e${constructor(Z){super();this.error="",y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Dz().fromBinary(Z,$)}static fromJson(Z,$){return new Dz().fromJson(Z,$)}static fromJsonString(Z,$){return new Dz().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(Dz,Z,$)}static $(){return["GenerateVideoError|1 error 9"]}};o$=class o$ extends e${constructor(Z){super();y0.util.initPartial(Z,this)}static fromBinary(Z,$){return new o$().fromBinary(Z,$)}static fromJson(Z,$){return new o$().fromJson(Z,$)}static fromJsonString(Z,$){return new o$().fromJsonString(Z,$)}static equals(Z,$){return y0.util.equals(o$,Z,$)}static $(){return["GenerateVideoToolCall|1 args #0|2 result #1",Fz,Lz]}}});import{Message as Go,proto3 as O0}from"@bufbuild/protobuf";var Gh="agent.v1.",W6,Uz,Iz,Oz,kz,Ez,fz,Z9;var WL=U(()=>{k();W6=class W6 extends G{static get runtime(){return B(this,"runtime",O0)}static $p(){return Gh}};Uz=class Uz extends W6{constructor(Z){super();this.query="",this.allowedXHandles=[],this.excludedXHandles=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Uz().fromBinary(Z,$)}static fromJson(Z,$){return new Uz().fromJson(Z,$)}static fromJsonString(Z,$){return new Uz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Uz,Z,$)}static $(){return["XSearchArgs|1 query 9|2 from_date 9?|3 to_date 9?|4 allowed_x_handles 9*|5 excluded_x_handles 9*"]}};Iz=class Iz extends W6{constructor(Z){super();this.result={case:void 0},O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Iz().fromBinary(Z,$)}static fromJson(Z,$){return new Iz().fromJson(Z,$)}static fromJsonString(Z,$){return new Iz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Iz,Z,$)}static $(){return["XSearchResult|1 success #0 result|2 error #1 result|3 rejected #2 result",Oz,Ez,fz]}};Oz=class Oz extends W6{constructor(Z){super();this.answer="",this.citations=[],O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Oz().fromBinary(Z,$)}static fromJson(Z,$){return new Oz().fromJson(Z,$)}static fromJsonString(Z,$){return new Oz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Oz,Z,$)}static $(){return["XSearchSuccess|1 answer 9|2 citations #0*",kz]}};kz=class kz extends W6{constructor(Z){super();this.url="",this.title="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new kz().fromBinary(Z,$)}static fromJson(Z,$){return new kz().fromJson(Z,$)}static fromJsonString(Z,$){return new kz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(kz,Z,$)}static $(){return["XSearchCitation|1 url 9|2 title 9"]}};Ez=class Ez extends W6{constructor(Z){super();this.error="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Ez().fromBinary(Z,$)}static fromJson(Z,$){return new Ez().fromJson(Z,$)}static fromJsonString(Z,$){return new Ez().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Ez,Z,$)}static $(){return["XSearchError|1 error 9"]}};fz=class fz extends W6{constructor(Z){super();this.reason="",O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new fz().fromBinary(Z,$)}static fromJson(Z,$){return new fz().fromJson(Z,$)}static fromJsonString(Z,$){return new fz().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(fz,Z,$)}static $(){return["XSearchRejected|1 reason 9"]}};Z9=class Z9 extends W6{constructor(Z){super();O0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Z9().fromBinary(Z,$)}static fromJson(Z,$){return new Z9().fromJson(Z,$)}static fromJsonString(Z,$){return new Z9().fromJsonString(Z,$)}static equals(Z,$){return O0.util.equals(Z9,Z,$)}static $(){return["XSearchToolCall|1 args #0|2 result #1",Uz,Iz]}}});import{Message as Uo,proto3 as m0,protoInt64 as Lh}from"@bufbuild/protobuf";var wh="agent.v1.",J9,Vz,Pz,Az,xz,Mz,$9;var NL=U(()=>{k();J9=class J9 extends G{static get runtime(){return B(this,"runtime",m0)}static $p(){return wh}};Vz=class Vz extends J9{constructor(Z){super();this.toolCallId="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Vz().fromBinary(Z,$)}static fromJson(Z,$){return new Vz().fromJson(Z,$)}static fromJsonString(Z,$){return new Vz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Vz,Z,$)}static $(){return["GetPrCodeTourArgs|1 tool_call_id 9|2 revision_id 9?|3 section_id 9?|4 head_sha 9?|5 pr_url 9?"]}};Pz=class Pz extends J9{constructor(Z){super();this.revisionId="",this.status="",this.headSha="",this.feedback="",this.updatedAtMs=Lh.zero,this.isCurrent=!1,this.markdown="",this.source="",this.prUrl="",this.editedByBcId="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Pz().fromBinary(Z,$)}static fromJson(Z,$){return new Pz().fromJson(Z,$)}static fromJsonString(Z,$){return new Pz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Pz,Z,$)}static $(){return["PrCodeTourRevisionSnapshot|1 revision_id 9|2 status 9|3 head_sha 9|4 feedback 9|5 updated_at_ms 3|6 is_current 8|7 markdown 9|8 source 9|9 pr_url 9|10 edited_by_bc_id 9"]}};Az=class Az extends J9{constructor(Z){super();this.revisions=[],m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Az().fromBinary(Z,$)}static fromJson(Z,$){return new Az().fromJson(Z,$)}static fromJsonString(Z,$){return new Az().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Az,Z,$)}static $(){return["GetPrCodeTourSuccess|1 revisions #0*|2 section_id 9?",Pz]}};xz=class xz extends J9{constructor(Z){super();this.error="",m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new xz().fromBinary(Z,$)}static fromJson(Z,$){return new xz().fromJson(Z,$)}static fromJsonString(Z,$){return new xz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(xz,Z,$)}static $(){return["GetPrCodeTourError|1 error 9"]}};Mz=class Mz extends J9{constructor(Z){super();this.result={case:void 0},m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Mz().fromBinary(Z,$)}static fromJson(Z,$){return new Mz().fromJson(Z,$)}static fromJsonString(Z,$){return new Mz().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals(Mz,Z,$)}static $(){return["GetPrCodeTourResult|1 success #0 result|2 error #1 result",Az,xz]}};$9=class $9 extends J9{constructor(Z){super();m0.util.initPartial(Z,this)}static fromBinary(Z,$){return new $9().fromBinary(Z,$)}static fromJson(Z,$){return new $9().fromJson(Z,$)}static fromJsonString(Z,$){return new $9().fromJsonString(Z,$)}static equals(Z,$){return m0.util.equals($9,Z,$)}static $(){return["GetPrCodeTourToolCall|1 args #0|2 result #1",Vz,Mz]}}});import{Message as Eo,proto3 as d0}from"@bufbuild/protobuf";var FL="agent.v1.",Rz,BL,Cz,hz,vz,Tz,Y9;var GL=U(()=>{k();Rz=class Rz extends G{static get runtime(){return B(this,"runtime",d0)}static $p(){return FL}};BL=w(d0,FL,"UpdatePrCodeTourExecutionMode",[[0,"UNSPECIFIED"],[1,"SERVER_SCHEDULED"],[2,"CLIENT_REQUIRED"],[3,"SKIPPED"],[4,"EDITED"]],1);Cz=class Cz extends Rz{constructor(Z){super();this.feedback="",this.toolCallId="",this.scopeCommitHashes=[],d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Cz().fromBinary(Z,$)}static fromJson(Z,$){return new Cz().fromJson(Z,$)}static fromJsonString(Z,$){return new Cz().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(Cz,Z,$)}static $(){return["UpdatePrCodeTourArgs|1 feedback 9|2 tool_call_id 9|3 base_sha 9?|4 head_sha 9?|5 source_revision_id 9?|6 revision_id 9?|7 markdown 9?|8 heading 9?|9 artifact_path 9?|10 artifact_alt 9?|11 scope_commit_hashes 9*|12 explicit_user_prompt 9?|13 pr_url 9?"]}};hz=class hz extends Rz{constructor(Z){super();this.result={case:void 0},d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new hz().fromBinary(Z,$)}static fromJson(Z,$){return new hz().fromJson(Z,$)}static fromJsonString(Z,$){return new hz().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(hz,Z,$)}static $(){return["UpdatePrCodeTourResult|1 success #0 result|2 error #1 result",vz,Tz]}};vz=class vz extends Rz{constructor(Z){super();this.revisionId="",this.message="",this.executionMode=BL.UNSPECIFIED,d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new vz().fromBinary(Z,$)}static fromJson(Z,$){return new vz().fromJson(Z,$)}static fromJsonString(Z,$){return new vz().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(vz,Z,$)}static $(){return["UpdatePrCodeTourSuccess|1 revision_id 9|2 message 9|3 execution_mode #0",BL]}};Tz=class Tz extends Rz{constructor(Z){super();this.error="",d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Tz().fromBinary(Z,$)}static fromJson(Z,$){return new Tz().fromJson(Z,$)}static fromJsonString(Z,$){return new Tz().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(Tz,Z,$)}static $(){return["UpdatePrCodeTourError|1 error 9"]}};Y9=class Y9 extends Rz{constructor(Z){super();d0.util.initPartial(Z,this)}static fromBinary(Z,$){return new Y9().fromBinary(Z,$)}static fromJson(Z,$){return new Y9().fromJson(Z,$)}static fromJsonString(Z,$){return new Y9().fromJsonString(Z,$)}static equals(Z,$){return d0.util.equals(Y9,Z,$)}static $(){return["UpdatePrCodeTourToolCall|1 args #0|2 result #1",Cz,hz]}}});import{Message as Ao,proto3 as OW}from"@bufbuild/protobuf";var Dh="agent.v1.",LL,X9;var wL=U(()=>{k();LL=class LL extends G{static get runtime(){return B(this,"runtime",OW)}static $p(){return Dh}};X9=class X9 extends LL{constructor(Z){super();this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],this.argumentHint="",this.disableUserInvocation=!1,OW.util.initPartial(Z,this)}static fromBinary(Z,$){return new X9().fromBinary(Z,$)}static fromJson(Z,$){return new X9().fromJson(Z,$)}static fromJsonString(Z,$){return new X9().fromJsonString(Z,$)}static equals(Z,$){return OW.util.equals(X9,Z,$)}static $(){return["AgentSkill|1 full_path 9|2 content 9|3 description 9|4 parse_error 9?|5 environments 9*|6 disabled_environments 9*|7 git_remote_origin 9?|8 disable_model_invocation 8|9 plugin 9?|10 marketplace 9?|11 plugin_id 9?|12 marketplace_id 9?|13 globs 9*|14 scoped_to 9*|15 argument_hint 9|16 disable_user_invocation 8"]}}});import{Message as ho,proto3 as O,protoInt64 as DL}from"@bufbuild/protobuf";var IL="agent.v1.",M,UL,yz,mz,jz,z9,_z,Sz,gz,bz,cz,dz,uz,lz,pz,iz,nz,az,rz,sz,tz,oz,ez,ZK,$K,JK,YK,XK,zK,KK,HK,QK,qK,WK,NK,BK,FK,GK,LK,wK,DK,UK,IK,OK,kK,EK,K9,fK,VK,PK,AK,xK,MK,CK,hK,vK;var OL=U(()=>{C6();KW();XW();wL();k();M=class M extends G{static get runtime(){return B(this,"runtime",O)}static $p(){return IL}};UL=w(O,IL,"SelectedPluginCapabilityType",[[0,"UNSPECIFIED"],[1,"COMMAND"],[2,"SKILL"],[3,"SUBAGENT"]],1);yz=class yz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new yz().fromBinary(Z,$)}static fromJson(Z,$){return new yz().fromJson(Z,$)}static fromJsonString(Z,$){return new yz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(yz,Z,$)}static $(){return["SelectedImage|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 path 9|4 dimension #2|7 mime_type 9",mz,z9,jz]}};mz=class mz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new mz().fromBinary(Z,$)}static fromJson(Z,$){return new mz().fromJson(Z,$)}static fromJsonString(Z,$){return new mz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(mz,Z,$)}static $(){return["SelectedImage.BlobIdWithData|1 blob_id 12|2 data 12"]}};jz=class jz extends M{constructor(Z){super();this.width=0,this.height=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new jz().fromBinary(Z,$)}static fromJson(Z,$){return new jz().fromJson(Z,$)}static fromJsonString(Z,$){return new jz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(jz,Z,$)}static $(){return["SelectedImage.Dimension|1 width 5|2 height 5"]}};z9=class z9 extends M{constructor(Z){super();this.uploadId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new z9().fromBinary(Z,$)}static fromJson(Z,$){return new z9().fromJson(Z,$)}static fromJsonString(Z,$){return new z9().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(z9,Z,$)}static $(){return["PromptUploadRef|1 upload_id 9"]}};_z=class _z extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new _z().fromBinary(Z,$)}static fromJson(Z,$){return new _z().fromJson(Z,$)}static fromJsonString(Z,$){return new _z().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(_z,Z,$)}static $(){return["SelectedDocument|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|10 prompt_upload_ref #1 data_or_blob_id|2 uuid 9|3 filename 9|4 mime_type 9|7 path 9",Sz,z9]}};Sz=class Sz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new Sz().fromBinary(Z,$)}static fromJson(Z,$){return new Sz().fromJson(Z,$)}static fromJsonString(Z,$){return new Sz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(Sz,Z,$)}static $(){return["SelectedDocument.BlobIdWithData|1 blob_id 12|2 data 12"]}};gz=class gz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new gz().fromBinary(Z,$)}static fromJson(Z,$){return new gz().fromJson(Z,$)}static fromJsonString(Z,$){return new gz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(gz,Z,$)}static $(){return["SelectedVideo|1 blob_id 12 data_or_blob_id|8 data 12 data_or_blob_id|9 blob_id_with_data #0 data_or_blob_id|11 signed_url #1 data_or_blob_id|2 uuid 9|3 path 9|4 fps 2?|7 mime_type 9|10 filename 9|12 materialize_to_filesystem 8",bz,cz]}};bz=class bz extends M{constructor(Z){super();this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),O.util.initPartial(Z,this)}static fromBinary(Z,$){return new bz().fromBinary(Z,$)}static fromJson(Z,$){return new bz().fromJson(Z,$)}static fromJsonString(Z,$){return new bz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(bz,Z,$)}static $(){return["SelectedVideo.BlobIdWithData|1 blob_id 12|2 data 12"]}};cz=class cz extends M{constructor(Z){super();this.url="",this.key="",this.expiresAtUnixMs=DL.zero,this.refreshAfterUnixMs=DL.zero,this.conversationId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new cz().fromBinary(Z,$)}static fromJson(Z,$){return new cz().fromJson(Z,$)}static fromJsonString(Z,$){return new cz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(cz,Z,$)}static $(){return["SelectedVideo.SignedUrl|1 url 9|2 key 9|3 expires_at_unix_ms 3|4 refresh_after_unix_ms 3|5 conversation_id 9"]}};dz=class dz extends M{constructor(Z){super();this.dataOrBlobId={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new dz().fromBinary(Z,$)}static fromJson(Z,$){return new dz().fromJson(Z,$)}static fromJsonString(Z,$){return new dz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(dz,Z,$)}static $(){return["ExtraContextEntry|1 data 9 data_or_blob_id|2 blob_id 12 data_or_blob_id"]}};uz=class uz extends M{constructor(Z){super();this.content="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new uz().fromBinary(Z,$)}static fromJson(Z,$){return new uz().fromJson(Z,$)}static fromJsonString(Z,$){return new uz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(uz,Z,$)}static $(){return["SelectedFile|1 content 9|2 path 9|3 relative_path 9?"]}};lz=class lz extends M{constructor(Z){super();this.content="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new lz().fromBinary(Z,$)}static fromJson(Z,$){return new lz().fromJson(Z,$)}static fromJsonString(Z,$){return new lz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(lz,Z,$)}static $(){return["SelectedCodeSelection|1 content 9|2 path 9|3 relative_path 9?|4 range #0",n8]}};pz=class pz extends M{constructor(Z){super();this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new pz().fromBinary(Z,$)}static fromJson(Z,$){return new pz().fromJson(Z,$)}static fromJsonString(Z,$){return new pz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(pz,Z,$)}static $(){return["SelectedTerminal|1 content 9|2 title 9?|3 path 9?"]}};iz=class iz extends M{constructor(Z){super();this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new iz().fromBinary(Z,$)}static fromJson(Z,$){return new iz().fromJson(Z,$)}static fromJsonString(Z,$){return new iz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(iz,Z,$)}static $(){return["SelectedTerminalSelection|1 content 9|2 title 9?|3 path 9?|4 range #0",n8]}};nz=class nz extends M{constructor(Z){super();this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new nz().fromBinary(Z,$)}static fromJson(Z,$){return new nz().fromJson(Z,$)}static fromJsonString(Z,$){return new nz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(nz,Z,$)}static $(){return["SelectedFolder|1 path 9|2 relative_path 9?|3 directory_tree #0",E8]}};az=class az extends M{constructor(Z){super();this.url="",this.uuid="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new az().fromBinary(Z,$)}static fromJson(Z,$){return new az().fromJson(Z,$)}static fromJsonString(Z,$){return new az().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(az,Z,$)}static $(){return["SelectedExternalLink|1 url 9|2 uuid 9|3 pdf_content 9?|4 is_pdf 8?|5 filename 9?|6 blob_id 12?"]}};rz=class rz extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new rz().fromBinary(Z,$)}static fromJson(Z,$){return new rz().fromJson(Z,$)}static fromJsonString(Z,$){return new rz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(rz,Z,$)}static $(){return["SelectedCursorRule|1 rule #0",T8]}};sz=class sz extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new sz().fromBinary(Z,$)}static fromJson(Z,$){return new sz().fromJson(Z,$)}static fromJsonString(Z,$){return new sz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(sz,Z,$)}static $(){return["SelectedGitDiff|1 content 9|2 full_content_length_char_count 5"]}};tz=class tz extends M{constructor(Z){super();this.content="",this.fullContentLengthCharCount=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new tz().fromBinary(Z,$)}static fromJson(Z,$){return new tz().fromJson(Z,$)}static fromJsonString(Z,$){return new tz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(tz,Z,$)}static $(){return["SelectedGitDiffFromBranchToMain|1 content 9|2 full_content_length_char_count 5"]}};oz=class oz extends M{constructor(Z){super();this.sha="",this.message="",this.diff="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new oz().fromBinary(Z,$)}static fromJson(Z,$){return new oz().fromJson(Z,$)}static fromJsonString(Z,$){return new oz().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(oz,Z,$)}static $(){return["SelectedGitCommit|1 sha 9|2 message 9|3 description 9?|4 diff 9"]}};ez=class ez extends M{constructor(Z){super();this.number=0,this.url="",this.folderPath="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new ez().fromBinary(Z,$)}static fromJson(Z,$){return new ez().fromJson(Z,$)}static fromJsonString(Z,$){return new ez().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(ez,Z,$)}static $(){return["SelectedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9|5 summary_json 9?|6 description 9?|7 blob_id 12?"]}};ZK=class ZK extends M{constructor(Z){super();this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZK().fromBinary(Z,$)}static fromJson(Z,$){return new ZK().fromJson(Z,$)}static fromJsonString(Z,$){return new ZK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(ZK,Z,$)}static $(){return["SelectedGitPRDiffSelection|1 pr_url 9|2 file_path 9|3 start_line 5|4 end_line 5|5 diff_content 9?|6 blob_id 12?"]}};$K=class $K extends M{constructor(Z){super();this.pluginId="",this.capabilityType=UL.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new $K().fromBinary(Z,$)}static fromJson(Z,$){return new $K().fromJson(Z,$)}static fromJsonString(Z,$){return new $K().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals($K,Z,$)}static $(){return["SelectedPluginCapabilityRef|1 plugin_id 9|2 capability_type #0|3 source_path 9|4 snapshot_token 9|5 resolved_commit_sha 9?",UL]}};JK=class JK extends M{constructor(Z){super();this.name="",this.content="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new JK().fromBinary(Z,$)}static fromJson(Z,$){return new JK().fromJson(Z,$)}static fromJsonString(Z,$){return new JK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(JK,Z,$)}static $(){return["SelectedCursorCommand|1 name 9|2 content 9|3 plugin_capability #0?|4 full_path 9?|5 display_name 9?",$K]}};YK=class YK extends M{constructor(Z){super();this.docId="",this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new YK().fromBinary(Z,$)}static fromJson(Z,$){return new YK().fromJson(Z,$)}static fromJsonString(Z,$){return new YK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(YK,Z,$)}static $(){return["SelectedDocumentation|1 doc_id 9|2 name 9"]}};XK=class XK extends M{constructor(Z){super();this.agentId="",this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new XK().fromBinary(Z,$)}static fromJson(Z,$){return new XK().fromJson(Z,$)}static fromJsonString(Z,$){return new XK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(XK,Z,$)}static $(){return["SelectedPastChat|1 agent_id 9|2 name 9"]}};zK=class zK extends M{constructor(Z){super();this.name="",this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new zK().fromBinary(Z,$)}static fromJson(Z,$){return new zK().fromJson(Z,$)}static fromJsonString(Z,$){return new zK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(zK,Z,$)}static $(){return["RecentAgent|1 name 9|2 path 9|3 overview 9?"]}};KK=class KK extends M{constructor(Z){super();this.recentAgents=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new KK().fromBinary(Z,$)}static fromJson(Z,$){return new KK().fromJson(Z,$)}static fromJsonString(Z,$){return new KK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(KK,Z,$)}static $(){return["RecentAgentsContext|1 recent_agents #0*",zK]}};HK=class HK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new HK().fromBinary(Z,$)}static fromJson(Z,$){return new HK().fromJson(Z,$)}static fromJsonString(Z,$){return new HK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(HK,Z,$)}static $(){return["CallFrame|1 function_name 9?|2 url 9?|3 line_number 5?|4 column_number 5?"]}};QK=class QK extends M{constructor(Z){super();this.callFrames=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new QK().fromBinary(Z,$)}static fromJson(Z,$){return new QK().fromJson(Z,$)}static fromJsonString(Z,$){return new QK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(QK,Z,$)}static $(){return["StackTrace|1 call_frames #0*|2 raw_stack_trace 9?",HK]}};qK=class qK extends M{constructor(Z){super();this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new qK().fromBinary(Z,$)}static fromJson(Z,$){return new qK().fromJson(Z,$)}static fromJsonString(Z,$){return new qK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(qK,Z,$)}static $(){return["SelectedConsoleLog|1 message 9|2 timestamp 1|3 level 9|4 client_name 9|5 session_id 9|6 stack_trace #0?|7 object_data_json 9?",QK]}};WK=class WK extends M{constructor(Z){super();this.element="",this.xpath="",this.textContent="",this.extra="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new WK().fromBinary(Z,$)}static fromJson(Z,$){return new WK().fromJson(Z,$)}static fromJsonString(Z,$){return new WK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(WK,Z,$)}static $(){return["SelectedUIElement|1 element 9|2 xpath 9|3 text_content 9|4 extra 9|5 component 9?|6 component_props_json 9?"]}};NK=class NK extends M{constructor(Z){super();this.name="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new NK().fromBinary(Z,$)}static fromJson(Z,$){return new NK().fromJson(Z,$)}static fromJsonString(Z,$){return new NK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(NK,Z,$)}static $(){return["SelectedSubagent|1 name 9"]}};BK=class BK extends M{constructor(Z){super();this.browserId="",this.url="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new BK().fromBinary(Z,$)}static fromJson(Z,$){return new BK().fromJson(Z,$)}static fromJsonString(Z,$){return new BK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(BK,Z,$)}static $(){return["SelectedBrowser|1 browser_id 9|2 url 9|3 page_title 9?"]}};FK=class FK extends M{constructor(Z){super();this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new FK().fromBinary(Z,$)}static fromJson(Z,$){return new FK().fromJson(Z,$)}static fromJsonString(Z,$){return new FK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(FK,Z,$)}static $(){return["SelectedAgenticGitActionCommitParams|1 files_to_commit 9*|2 files_to_exclude_from_commit 9*|3 should_stage_all_changes 8|4 create_pr_draft 8?|5 files_to_commit_with_status #0*|6 files_to_exclude_from_commit_with_status #0*",LK]}};GK=class GK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new GK().fromBinary(Z,$)}static fromJson(Z,$){return new GK().fromJson(Z,$)}static fromJsonString(Z,$){return new GK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(GK,Z,$)}static $(){return["SelectedAgenticGitActionCreateBranchParams"]}};LK=class LK extends M{constructor(Z){super();this.path="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new LK().fromBinary(Z,$)}static fromJson(Z,$){return new LK().fromJson(Z,$)}static fromJsonString(Z,$){return new LK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(LK,Z,$)}static $(){return["SelectedAgenticGitFileWithStatus|1 path 9|2 status 9?"]}};wK=class wK extends M{constructor(Z){super();this.filesToPush=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new wK().fromBinary(Z,$)}static fromJson(Z,$){return new wK().fromJson(Z,$)}static fromJsonString(Z,$){return new wK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(wK,Z,$)}static $(){return["SelectedAgenticGitActionPushParams|1 files_to_push 9*|2 create_pr_draft 8?"]}};DK=class DK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new DK().fromBinary(Z,$)}static fromJson(Z,$){return new DK().fromJson(Z,$)}static fromJsonString(Z,$){return new DK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(DK,Z,$)}static $(){return["SelectedAgenticGitActionFixMergeConflictsParams|1 base_branch 9?|2 pr_url 9?"]}};UK=class UK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new UK().fromBinary(Z,$)}static fromJson(Z,$){return new UK().fromJson(Z,$)}static fromJsonString(Z,$){return new UK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(UK,Z,$)}static $(){return["SelectedAgenticGitActionBabysitPrInCloudParams|1 base_branch 9?"]}};IK=class IK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new IK().fromBinary(Z,$)}static fromJson(Z,$){return new IK().fromJson(Z,$)}static fromJsonString(Z,$){return new IK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(IK,Z,$)}static $(){return["SelectedAgenticGitActionUpdateBranchParams|1 base_branch 9?"]}};OK=class OK extends M{constructor(Z){super();this.remoteBranch="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new OK().fromBinary(Z,$)}static fromJson(Z,$){return new OK().fromJson(Z,$)}static fromJsonString(Z,$){return new OK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(OK,Z,$)}static $(){return["SelectedAgenticGitActionPullLocallyParams|1 remote_branch 9"]}};kK=class kK extends M{constructor(Z){super();this.params={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new kK().fromBinary(Z,$)}static fromJson(Z,$){return new kK().fromJson(Z,$)}static fromJsonString(Z,$){return new kK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(kK,Z,$)}static $(){return["SelectedAgenticGitAction|2 commit_params #0 params|6 commit_and_push_params #0 params|3 push_params #1 params|7 create_pr_params #1 params|8 create_pr_with_changes_params #0 params|4 fix_merge_conflicts_params #2 params|11 babysit_pr_in_cloud_params #3 params|14 apply_locally_params #4 params|15 checkout_branch_params #4 params|12 create_branch_and_commit_params #0 params|13 create_branch_commit_and_push_params #0 params|16 update_branch_params #5 params|17 create_branch_params #6 params|5 branch_context #7?|9 path_to_template_file 9?|10 path_to_template_dir 9?",FK,wK,DK,UK,OK,IK,GK,EK]}};EK=class EK extends M{constructor(Z){super();O.util.initPartial(Z,this)}static fromBinary(Z,$){return new EK().fromBinary(Z,$)}static fromJson(Z,$){return new EK().fromJson(Z,$)}static fromJsonString(Z,$){return new EK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(EK,Z,$)}static $(){return["SelectedGitBranchContext|1 current_branch 9?|2 base_branch 9?|3 agent_branch_prefix 9?"]}};K9=class K9 extends M{constructor(Z){super();this.selectedImages=[],this.extraContext=[],this.extraContextEntries=[],this.files=[],this.codeSelections=[],this.terminals=[],this.terminalSelections=[],this.folders=[],this.externalLinks=[],this.cursorRules=[],this.cursorCommands=[],this.documentations=[],this.uiElements=[],this.consoleLogs=[],this.gitCommits=[],this.pastChats=[],this.gitPrDiffSelections=[],this.selectedPullRequests=[],this.selectedSubagents=[],this.selectedVideos=[],this.selectedBrowsers=[],this.selectedDocuments=[],this.selectedSkills=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new K9().fromBinary(Z,$)}static fromJson(Z,$){return new K9().fromJson(Z,$)}static fromJsonString(Z,$){return new K9().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(K9,Z,$)}static $(){return["SelectedContext|1 selected_images #0*|2 invocation_context #1?|3 extra_context 9*|16 extra_context_entries #2*|4 files #3*|5 code_selections #4*|6 terminals #5*|7 terminal_selections #6*|8 folders #7*|9 external_links #8*|10 cursor_rules #9*|18 git_diff #10?|11 git_diff_from_branch_to_main #11?|12 cursor_commands #12*|13 documentations #13*|14 ui_elements #14*|15 console_logs #15*|17 git_commits #16*|19 past_chats #17*|20 git_pr_diff_selections #18*|21 selected_pull_requests #19*|22 selected_subagents #20*|23 selected_videos #21*|24 selected_browsers #22*|25 selected_documents #23*|26 selected_skills #24*|27 recent_agents_context #25?|34 selected_agentic_git_action #26?",yz,fK,dz,uz,lz,pz,iz,nz,az,rz,sz,tz,JK,YK,WK,qK,oz,XK,ZK,ez,NK,gz,BK,_z,X9,KK,kK]}};fK=class fK extends M{constructor(Z){super();this.data={case:void 0},O.util.initPartial(Z,this)}static fromBinary(Z,$){return new fK().fromBinary(Z,$)}static fromJson(Z,$){return new fK().fromJson(Z,$)}static fromJsonString(Z,$){return new fK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(fK,Z,$)}static $(){return["InvocationContext|1 slack_thread #0 data|2 github_pr #1 data|3 ide_state #2 data|4 microsoft_teams_thread #3 data|10 blob_id 12 data",VK,AK,MK,PK]}};VK=class VK extends M{constructor(Z){super();this.thread="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new VK().fromBinary(Z,$)}static fromJson(Z,$){return new VK().fromJson(Z,$)}static fromJsonString(Z,$){return new VK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(VK,Z,$)}static $(){return["InvocationContext.SlackThread|1 thread 9|2 channel_name 9?|3 channel_purpose 9?|4 channel_topic 9?|5 sender_name 9?|6 sender_id 9?|7 sender_type 9?|8 is_directly_addressed 8?|9 message_permalink 9?"]}};PK=class PK extends M{constructor(Z){super();this.thread="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new PK().fromBinary(Z,$)}static fromJson(Z,$){return new PK().fromJson(Z,$)}static fromJsonString(Z,$){return new PK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(PK,Z,$)}static $(){return["InvocationContext.MicrosoftTeamsThread|1 thread 9|2 channel_name 9?|3 team_name 9?|4 channel_description 9?|5 team_description 9?"]}};AK=class AK extends M{constructor(Z){super();this.title="",this.description="",this.comments="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new AK().fromBinary(Z,$)}static fromJson(Z,$){return new AK().fromJson(Z,$)}static fromJsonString(Z,$){return new AK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(AK,Z,$)}static $(){return["InvocationContext.GithubPR|1 title 9|2 description 9|3 comments 9|4 ci_failures 9?|5 code_tour_view #0?",xK]}};xK=class xK extends M{constructor(Z){super();this.headSha="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new xK().fromBinary(Z,$)}static fromJson(Z,$){return new xK().fromJson(Z,$)}static fromJsonString(Z,$){return new xK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(xK,Z,$)}static $(){return["InvocationContext.GithubPR.CodeTourView|1 head_sha 9|2 current_revision_id 9?|3 visible_section_id 9?|4 visible_step_id 9?|5 path_scope_prefix 9?"]}};MK=class MK extends M{constructor(Z){super();this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],O.util.initPartial(Z,this)}static fromBinary(Z,$){return new MK().fromBinary(Z,$)}static fromJson(Z,$){return new MK().fromJson(Z,$)}static fromJsonString(Z,$){return new MK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(MK,Z,$)}static $(){return["InvocationContext.IdeState|1 visible_files #0*|2 recently_viewed_files #0*|3 currently_viewed_prs #1*",CK,vK]}};CK=class CK extends M{constructor(Z){super();this.path="",this.totalLines=0,O.util.initPartial(Z,this)}static fromBinary(Z,$){return new CK().fromBinary(Z,$)}static fromJson(Z,$){return new CK().fromJson(Z,$)}static fromJsonString(Z,$){return new CK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(CK,Z,$)}static $(){return["InvocationContext.IdeState.File|1 path 9|2 relative_path 9?|3 cursor_position #0?|4 total_lines 5|5 active_command 9?",hK]}};hK=class hK extends M{constructor(Z){super();this.line=0,this.text="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new hK().fromBinary(Z,$)}static fromJson(Z,$){return new hK().fromJson(Z,$)}static fromJsonString(Z,$){return new hK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(hK,Z,$)}static $(){return["InvocationContext.IdeState.File.CursorPosition|1 line 5|2 text 9"]}};vK=class vK extends M{constructor(Z){super();this.number=0,this.url="",O.util.initPartial(Z,this)}static fromBinary(Z,$){return new vK().fromBinary(Z,$)}static fromJson(Z,$){return new vK().fromJson(Z,$)}static fromJsonString(Z,$){return new vK().fromJsonString(Z,$)}static equals(Z,$){return O.util.equals(vK,Z,$)}static $(){return["InvocationContext.IdeState.ViewedPullRequest|1 number 5|2 url 9|3 title 9?|4 folder_path 9?|5 summary_json 9?|6 description 9?"]}}});import{Message as to,proto3 as N,protoInt64 as pQ}from"@bufbuild/protobuf";var M8="agent.v1.",P,BQ,kL,EL,fL,Uh,Ih,Oh,TK,H9,RK,yK,mK,jK,_K,SK,gK,bK,cK,dK,uK,lK,pK,iK,Q9,nK,aK,rK,sK,tK,S8,oK,eK,ZH,$H,JH,YH,XH,zH,KH,HH,QH,qH,WH,N6,NH,BH,VL,FH,GH,B6,F6,g8,LH,q9,wH,W9,G6,DH,UH,L6,IH,w6,OH,kH,EH,fH,VH,PH,N9,AH,xH,MH,CH,D6,U6,B9,I6,hH,vH,j0,TH,PL,RH,yH,mH;var iQ=U(()=>{qF();kF();VF();PF();MF();vF();cQ();yF();jF();SF();gF();uF();lF();pF();iF();rF();sF();eF();ZG();$G();zG();qG();BG();FG();GG();LG();wG();DG();OG();kG();PG();AG();xG();MG();CG();hG();vG();TG();mG();jG();_G();SG();gG();bG();dG();uG();lG();pG();iG();nG();aG();rG();ZL();JL();zL();QL();qL();WL();NL();GL();GF();OL();k();P=class P extends G{static get runtime(){return B(this,"runtime",N)}static $p(){return M8}};BQ=w(N,M8,"AgentMode",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"ASK"],[3,"PLAN"],[4,"DEBUG"],[5,"TRIAGE"],[7,"MULTITASK"],[8,"CUSTOM"]],1),kL=w(N,M8,"SubagentRunStatus",[[0,"UNSPECIFIED"],[1,"RUNNING"],[2,"BACKGROUNDED"],[3,"SUCCESS"],[4,"ERROR"],[5,"ABORTED"]],1),EL=w(N,M8,"SubagentDispatchTool",[[0,"UNSPECIFIED"],[1,"TASK"],[2,"CREATE_AGENT"],[3,"SEND_TO_AGENT"],[4,"CREATE_PROJECT"]],1),fL=w(N,M8,"CustomModeSource",[[0,"UNSPECIFIED"],[1,"AGENT_SKILL"],[2,"PLUGIN_SKILL"],[3,"REPO_SKILL"],[4,"MANAGED_SKILL"]],1),Uh=w(N,M8,"SimulatedMsgReason",[[0,"UNSPECIFIED"],[1,"PLAN_EXECUTION"],[2,"COMMIT_REMINDER"],[3,"BACKGROUND_TASK_COMPLETION"],[4,"DIFF_TAB_COMMIT"],[5,"DIFF_TAB_COMMIT_AND_PUSH"],[6,"DIFF_TAB_PUSH"],[7,"DIFF_TAB_CREATE_PR"],[8,"DIFF_TAB_FIX_MERGE_CONFLICTS"],[9,"USER_SENT_TO_SUBAGENT"],[10,"USER_INTERRUPTED_SUBAGENT"],[11,"USER_QUEUED_TO_SUBAGENT"],[12,"BABYSIT_PR_IN_CLOUD"],[13,"CI_PANEL_INVESTIGATE_FAILURE"],[14,"MULTITASK"],[15,"BUILD_IN_PARALLEL"],[16,"MULTITASK_SPLIT_PRS"],[17,"APPLY_LOCALLY"],[18,"CHECKOUT_BRANCH"],[19,"DIFF_TAB_UPDATE_BRANCH"],[20,"PR_TAB_BUGBOT_FIX"],[22,"RUN_BUGBOT_REVIEW"],[23,"RUN_SECURITY_REVIEW"],[24,"FSD_APPLY_FINDING"],[25,"FSD_UNDO_FINDING"],[26,"FSD_START"],[27,"FSD_PR_INTERRUPT"],[28,"SUBSCRIPTION"],[29,"DIFF_TAB_CREATE_BRANCH"],[30,"AGENT_STORE_CONFLICT"],[31,"GOAL_CONTINUATION"],[32,"PROJECT_KICKOFF"],[33,"MARKDOWN_PROMPT_BUTTON"],[34,"USER_QUICK_ACTION"],[35,"INTERACTION_RESPONSE"]],1),Ih=w(N,M8,"SubscriptionSource",[[0,"UNSPECIFIED"],[1,"SLACK"],[2,"GITHUB"],[3,"LINEAR"],[4,"ORIGIN"],[5,"FACTORY"]],1),Oh=w(N,M8,"ReplyAudience",[[0,"UNSPECIFIED"],[1,"USER"],[2,"AGENT"]],1);TK=class TK extends P{constructor(Z){super();this.description="",this.prompt="",this.attachments=[],this.mode=eq.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=M6.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new TK().fromBinary(Z,$)}static fromJson(Z,$){return new TK().fromJson(Z,$)}static fromJsonString(Z,$){return new TK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(TK,Z,$)}static $(){return["TaskArgs|1 description 9|2 prompt 9|3 subagent_type #0|4 model 9?|5 resume 9?|6 agent_id 9?|7 attachments 9*|8 mode #1|9 responding_to_message_ids 9*|10 environment #2|11 machine #3?",i8,eq,M6,H9]}};H9=class H9 extends P{constructor(Z){super();this.machine={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new H9().fromBinary(Z,$)}static fromJson(Z,$){return new H9().fromJson(Z,$)}static fromJsonString(Z,$){return new H9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(H9,Z,$)}static $(){return["TargetMachine|1 same_machine #0 machine|2 new_cloud_vm #1 machine|3 self_hosted_worker #2 machine|4 self_hosted_pool #3 machine",RK,yK,mK,jK]}};RK=class RK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new RK().fromBinary(Z,$)}static fromJson(Z,$){return new RK().fromJson(Z,$)}static fromJsonString(Z,$){return new RK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(RK,Z,$)}static $(){return["SameMachineTarget"]}};yK=class yK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new yK().fromBinary(Z,$)}static fromJson(Z,$){return new yK().fromJson(Z,$)}static fromJsonString(Z,$){return new yK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(yK,Z,$)}static $(){return["NewCloudVmTarget|1 environment_build_id 9?|2 base_branch 9?"]}};mK=class mK extends P{constructor(Z){super();this.workerId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new mK().fromBinary(Z,$)}static fromJson(Z,$){return new mK().fromJson(Z,$)}static fromJsonString(Z,$){return new mK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(mK,Z,$)}static $(){return["SelfHostedWorkerTarget|1 worker_id 9"]}};jK=class jK extends P{constructor(Z){super();this.labels=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new jK().fromBinary(Z,$)}static fromJson(Z,$){return new jK().fromJson(Z,$)}static fromJsonString(Z,$){return new jK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(jK,Z,$)}static $(){return["SelfHostedPoolTarget|1 pool 9?|2 labels #0*",_K]}};_K=class _K extends P{constructor(Z){super();this.key="",this.value="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new _K().fromBinary(Z,$)}static fromJson(Z,$){return new _K().fromJson(Z,$)}static fromJsonString(Z,$){return new _K().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(_K,Z,$)}static $(){return["SelfHostedWorkerLabel|1 key 9|2 value 9"]}};SK=class SK extends P{constructor(Z){super();this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=oq.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new SK().fromBinary(Z,$)}static fromJson(Z,$){return new SK().fromJson(Z,$)}static fromJsonString(Z,$){return new SK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(SK,Z,$)}static $(){return["TaskSuccess|1 conversation_steps #0*|2 agent_id 9?|3 is_background 8|4 duration_ms 4?|5 result_suffix 9?|6 background_reason #1|7 transcript_path 9?",S8,oq]}};gK=class gK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new gK().fromBinary(Z,$)}static fromJson(Z,$){return new gK().fromJson(Z,$)}static fromJsonString(Z,$){return new gK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(gK,Z,$)}static $(){return["TaskError|1 error 9"]}};bK=class bK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new bK().fromBinary(Z,$)}static fromJson(Z,$){return new bK().fromJson(Z,$)}static fromJsonString(Z,$){return new bK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(bK,Z,$)}static $(){return["TaskResult|1 success #0 result|2 error #1 result",SK,gK]}};cK=class cK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new cK().fromBinary(Z,$)}static fromJson(Z,$){return new cK().fromJson(Z,$)}static fromJsonString(Z,$){return new cK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(cK,Z,$)}static $(){return["TaskToolCall|1 args #0|2 result #1|3 cloud_agent_bc_id 9?",TK,bK]}};dK=class dK extends P{constructor(Z){super();this.path="",this.branchName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new dK().fromBinary(Z,$)}static fromJson(Z,$){return new dK().fromJson(Z,$)}static fromJsonString(Z,$){return new dK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(dK,Z,$)}static $(){return["SetActiveBranchArgs|1 path 9|2 branch_name 9"]}};uK=class uK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new uK().fromBinary(Z,$)}static fromJson(Z,$){return new uK().fromJson(Z,$)}static fromJsonString(Z,$){return new uK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(uK,Z,$)}static $(){return["SetActiveBranchSuccess"]}};lK=class lK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new lK().fromBinary(Z,$)}static fromJson(Z,$){return new lK().fromJson(Z,$)}static fromJsonString(Z,$){return new lK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(lK,Z,$)}static $(){return["SetActiveBranchError|1 error 9"]}};pK=class pK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new pK().fromBinary(Z,$)}static fromJson(Z,$){return new pK().fromJson(Z,$)}static fromJsonString(Z,$){return new pK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(pK,Z,$)}static $(){return["SetActiveBranchResult|1 success #0 result|2 error #1 result",uK,lK]}};iK=class iK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new iK().fromBinary(Z,$)}static fromJson(Z,$){return new iK().fromJson(Z,$)}static fromJsonString(Z,$){return new iK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(iK,Z,$)}static $(){return["SetActiveBranchToolCall|1 args #0|2 result #1",dK,pK]}};Q9=class Q9 extends P{constructor(Z){super();this.tool={case:void 0},this.hookAdditionalContexts=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new Q9().fromBinary(Z,$)}static fromJson(Z,$){return new Q9().fromJson(Z,$)}static fromJsonString(Z,$){return new Q9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(Q9,Z,$)}static $(){return["ToolCall|1 shell_tool_call #0 tool|3 delete_tool_call #1 tool|4 glob_tool_call #2 tool|5 grep_tool_call #3 tool|8 read_tool_call #4 tool|9 update_todos_tool_call #5 tool|10 read_todos_tool_call #6 tool|12 edit_tool_call #7 tool|13 ls_tool_call #8 tool|14 read_lints_tool_call #9 tool|15 mcp_tool_call #10 tool|16 sem_search_tool_call #11 tool|17 create_plan_tool_call #12 tool|18 web_search_tool_call #13 tool|19 task_tool_call #14 tool|20 list_mcp_resources_tool_call #15 tool|21 read_mcp_resource_tool_call #16 tool|22 apply_agent_diff_tool_call #17 tool|23 ask_question_tool_call #18 tool|24 fetch_tool_call #19 tool|25 switch_mode_tool_call #20 tool|28 generate_image_tool_call #21 tool|29 record_screen_tool_call #22 tool|30 computer_use_tool_call #23 tool|31 write_shell_stdin_tool_call #24 tool|32 reflect_tool_call #25 tool|33 setup_vm_environment_tool_call #26 tool|34 truncated_tool_call #27 tool|35 start_grind_execution_tool_call #28 tool|36 start_grind_planning_tool_call #29 tool|37 web_fetch_tool_call #30 tool|38 report_bugfix_results_tool_call #31 tool|39 ai_attribution_tool_call #32 tool|40 pr_management_tool_call #33 tool|41 mcp_auth_tool_call #34 tool|42 await_tool_call #35 tool|43 blame_by_file_path_tool_call #36 tool|44 get_mcp_tools_tool_call #37 tool|45 report_bug_tool_call #38 tool|46 set_active_branch_tool_call #39 tool|48 communicate_update_tool_call #40 tool|49 send_final_summary_tool_call #41 tool|51 replace_env_tool_call #42 tool|52 edit_pr_labels_tool_call #43 tool|53 record_ci_investigation_findings_tool_call #44 tool|55 send_message_tool_call #45 tool|56 fetch_cloud_agent_data_tool_call #46 tool|58 send_to_user_tool_call #47 tool|61 pi_read_tool_call #48 tool|62 pi_bash_tool_call #49 tool|63 pi_edit_tool_call #50 tool|64 pi_write_tool_call #51 tool|65 pi_grep_tool_call #52 tool|66 pi_find_tool_call #53 tool|67 pi_ls_tool_call #54 tool|68 connect_scm_tool_call #55 tool|69 search_conversations_tool_call #56 tool|70 create_goal_tool_call #57 tool|71 update_goal_tool_call #58 tool|73 get_agent_status_tool_call #59 tool|74 send_to_agent_tool_call #60 tool|75 read_agent_transcript_tool_call #61 tool|76 create_agent_tool_call #62 tool|77 stop_agent_tool_call #63 tool|79 write_canvas_tool_call #64 tool|80 read_canvas_tool_call #65 tool|81 generate_video_tool_call #66 tool|82 x_search_tool_call #67 tool|83 get_origin_pr_code_tour_tool_call #68 tool|84 update_origin_pr_code_tour_tool_call #69 tool|85 list_tracked_tasks_tool_call #70 tool|86 create_tracked_tasks_tool_call #71 tool|87 update_tracked_tasks_tool_call #72 tool|88 delete_tracked_tasks_tool_call #73 tool|89 update_tracked_task_statuses_tool_call #74 tool|90 create_project_tool_call #75 tool|91 update_tracked_task_tags_tool_call #76 tool|54 hook_additional_contexts #77*|57 tool_call_id 9?|59 started_at_ms 4?|60 completed_at_ms 4?",R6,j6,_6,b6,d6,l6,p6,i6,r6,s6,zZ,NZ,BZ,LZ,cK,DZ,UZ,IZ,EZ,AZ,xZ,CZ,yZ,jZ,gZ,bZ,dZ,tK,uZ,lZ,pZ,aZ,sZ,tZ,oZ,J$,Y$,X$,z$,iK,K$,H$,q$,W$,N$,B$,F$,G$,L$,w$,D$,U$,O$,k$,E$,V$,M$,h$,v$,R$,y$,m$,j$,S$,s$,t$,o$,Z9,$9,Y9,l$,p$,i$,n$,a$,_$,r$,r8]}};nK=class nK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new nK().fromBinary(Z,$)}static fromJson(Z,$){return new nK().fromJson(Z,$)}static fromJsonString(Z,$){return new nK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(nK,Z,$)}static $(){return["TruncatedToolCallArgs"]}};aK=class aK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new aK().fromBinary(Z,$)}static fromJson(Z,$){return new aK().fromJson(Z,$)}static fromJsonString(Z,$){return new aK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(aK,Z,$)}static $(){return["TruncatedToolCallSuccess"]}};rK=class rK extends P{constructor(Z){super();this.error="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new rK().fromBinary(Z,$)}static fromJson(Z,$){return new rK().fromJson(Z,$)}static fromJsonString(Z,$){return new rK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(rK,Z,$)}static $(){return["TruncatedToolCallError|1 error 9"]}};sK=class sK extends P{constructor(Z){super();this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new sK().fromBinary(Z,$)}static fromJson(Z,$){return new sK().fromJson(Z,$)}static fromJsonString(Z,$){return new sK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(sK,Z,$)}static $(){return["TruncatedToolCallResult|1 success #0 result|2 error #1 result",aK,rK]}};tK=class tK extends P{constructor(Z){super();this.originalStepBlobId=new Uint8Array(0),this.originalStepSizeBytes=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new tK().fromBinary(Z,$)}static fromJson(Z,$){return new tK().fromJson(Z,$)}static fromJsonString(Z,$){return new tK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(tK,Z,$)}static $(){return["TruncatedToolCall|1 original_step_blob_id 12|2 args #0|3 result #1|4 original_step_size_bytes 13|5 preview #2",nK,sK,Q9]}};S8=class S8 extends P{constructor(Z){super();this.message={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new S8().fromBinary(Z,$)}static fromJson(Z,$){return new S8().fromJson(Z,$)}static fromJsonString(Z,$){return new S8().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(S8,Z,$)}static $(){return["ConversationStep|1 assistant_message #0 message|2 tool_call #1 message|3 thinking_message #2 message",FH,Q9,GH]}};oK=class oK extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new oK().fromBinary(Z,$)}static fromJson(Z,$){return new oK().fromJson(Z,$)}static fromJsonString(Z,$){return new oK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(oK,Z,$)}static $(){return["TriggeringUserInfo|1 auth_id 9?|2 user_id 5?"]}};eK=class eK extends P{constructor(Z){super();this.parentToolCallId="",this.environment=M6.UNSPECIFIED,this.status=kL.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new eK().fromBinary(Z,$)}static fromJson(Z,$){return new eK().fromJson(Z,$)}static fromJsonString(Z,$){return new eK().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(eK,Z,$)}static $(){return["SubagentRunState|1 parent_tool_call_id 9|2 subagent_id 9?|3 environment #0|4 status #1|5 title 9?|6 detail 9?|7 transcript_path 9?|8 output_path 9?|9 completed_timestamp_ms 4?|10 completion_reason #2?",M6,kL,QF]}};ZH=class ZH extends P{constructor(Z){super();this.stepIndex=0,this.toolCallId="",this.tool=EL.UNSPECIFIED,this.backgrounded=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new ZH().fromBinary(Z,$)}static fromJson(Z,$){return new ZH().fromJson(Z,$)}static fromJsonString(Z,$){return new ZH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(ZH,Z,$)}static $(){return["SubagentDispatchStep|1 step_index 13|2 tool_call_id 9|3 tool #0|4 backgrounded 8",EL]}};$H=class $H extends P{constructor(Z){super();this.id="",this.label="",this.source=fL.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new $H().fromBinary(Z,$)}static fromJson(Z,$){return new $H().fromJson(Z,$)}static fromJsonString(Z,$){return new $H().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals($H,Z,$)}static $(){return["SubmittedCustomMode|1 id 9|2 label 9|5 source #0|6 source_path 9?|7 source_hash 9?|10 managed_skill_id 9?|11 plugin_id 9?|12 plugin_snapshot_token 9?",fL]}};JH=class JH extends P{constructor(Z){super();this.id="",this.label="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new JH().fromBinary(Z,$)}static fromJson(Z,$){return new JH().fromJson(Z,$)}static fromJsonString(Z,$){return new JH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(JH,Z,$)}static $(){return["SubmittedExitedCustomMode|1 id 9|2 label 9"]}};YH=class YH extends P{constructor(Z){super();this.nextMode=BQ.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new YH().fromBinary(Z,$)}static fromJson(Z,$){return new YH().fromJson(Z,$)}static fromJsonString(Z,$){return new YH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(YH,Z,$)}static $(){return["CustomModeExitIntent|1 next_mode #0|2 exited_mode #1",BQ,JH]}};XH=class XH extends P{constructor(Z){super();this.intent={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new XH().fromBinary(Z,$)}static fromJson(Z,$){return new XH().fromJson(Z,$)}static fromJsonString(Z,$){return new XH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(XH,Z,$)}static $(){return["CustomModeIntent|1 enter #0 intent|2 exit #1 intent",$H,YH]}};zH=class zH extends P{constructor(Z){super();this.interactionId="",this.skippedQuestionIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new zH().fromBinary(Z,$)}static fromJson(Z,$){return new zH().fromJson(Z,$)}static fromJsonString(Z,$){return new zH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(zH,Z,$)}static $(){return["InteractionResponseMetadata|1 interaction_id 9|2 response #0?|3 skipped_question_ids 9*",yH]}};KH=class KH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new KH().fromBinary(Z,$)}static fromJson(Z,$){return new KH().fromJson(Z,$)}static fromJsonString(Z,$){return new KH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(KH,Z,$)}static $(){return["SubscriptionEventDisplay|1 display_label 9?|2 resource_url 9?|3 subscription_id 9?"]}};HH=class HH extends P{constructor(Z){super();this.planId="",this.planTitle="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new HH().fromBinary(Z,$)}static fromJson(Z,$){return new HH().fromJson(Z,$)}static fromJsonString(Z,$){return new HH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(HH,Z,$)}static $(){return["ExecutePlanInfo|1 plan_id 9|2 plan_title 9"]}};QH=class QH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new QH().fromBinary(Z,$)}static fromJson(Z,$){return new QH().fromJson(Z,$)}static fromJsonString(Z,$){return new QH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(QH,Z,$)}static $(){return["ProjectDetails|1 name 9?|2 subagent #0?|3 side_chat #1?|4 init_description 9?",qH,WH]}};qH=class qH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new qH().fromBinary(Z,$)}static fromJson(Z,$){return new qH().fromJson(Z,$)}static fromJsonString(Z,$){return new qH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(qH,Z,$)}static $(){return["ProjectSubagentDetails|2 store_dir 9?"]}};WH=class WH extends P{constructor(Z){super();this.storeDir="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new WH().fromBinary(Z,$)}static fromJson(Z,$){return new WH().fromJson(Z,$)}static fromJsonString(Z,$){return new WH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(WH,Z,$)}static $(){return["ProjectSideChatDetails|1 store_dir 9"]}};N6=class N6 extends P{constructor(Z){super();this.text="",this.messageId="",this.mode=BQ.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N6().fromBinary(Z,$)}static fromJson(Z,$){return new N6().fromJson(Z,$)}static fromJsonString(Z,$){return new N6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N6,Z,$)}static $(){return["UserMessage|1 text 9|2 message_id 9|3 selected_context #0?|4 mode #1|5 is_simulated_msg 8?|6 best_of_n_group_id 9?|7 try_use_best_of_n_promotion 8?|8 rich_text 9?|9 simulated_msg_reason #2?|10 conversation_state_blob_id 12|11 subagent_system_reminder 9?|13 triggering_user_info #3?|14 execute_plan_info #4?|15 simulated_message_metadata #5?|16 prompt_reference_id 9?|17 thread_id 9?|18 text_blob_id 12?|19 rich_text_blob_id 12?|21 hook_additional_contexts #6*|22 custom_mode_intent #7?|23 project_details #8?|24 turn_steer 8?|25 started_at_ms 4?|26 completed_at_ms 4?|27 sent_by_agent_id 9?|28 sent_by_voice_call 8?|29 sender #9?|30 forked_context 9?|31 reply_to 9?|32 reply_audience #10?|33 reply_to_tool_call_id 9?|34 during_voice_call 8?|35 inherits_voice_call 8?|36 voice_calls_read_utterances 8?|37 summarized_tool_call_id 9?",K9,BQ,Uh,oK,HH,NH,r8,XH,QH,BH,Oh]}};NH=class NH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new NH().fromBinary(Z,$)}static fromJson(Z,$){return new NH().fromJson(Z,$)}static fromJsonString(Z,$){return new NH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(NH,Z,$)}static $(){return["UserMessage.SimulatedMessageMetadata|1 title 9?|2 task_id 9?|3 fsd_finding_action 9?|4 url 9?|5 subscription_source #0?|6 subscription_event_display #1?|7 interaction_response #2?|8 tool_call_id 9?",Ih,KH,zH]}};BH=class BH extends P{constructor(Z){super();this.kind=VL.UNSPECIFIED,this.id="",this.displayName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new BH().fromBinary(Z,$)}static fromJson(Z,$){return new BH().fromJson(Z,$)}static fromJsonString(Z,$){return new BH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(BH,Z,$)}static $(){return["MessageSender|1 kind #0|2 id 9|3 display_name 9",VL]}};VL=w(N,M8,"MessageSender.Kind",[[0,"UNSPECIFIED"],[1,"AGENT"],[2,"VOICE_CALL"],[3,"MAIN_BOT"],[4,"PROJECT"]],1);FH=class FH extends P{constructor(Z){super();this.text="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new FH().fromBinary(Z,$)}static fromJson(Z,$){return new FH().fromJson(Z,$)}static fromJsonString(Z,$){return new FH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(FH,Z,$)}static $(){return["AssistantMessage|1 text 9|2 started_at_ms 4?|3 completed_at_ms 4?"]}};GH=class GH extends P{constructor(Z){super();this.text="",this.durationMs=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new GH().fromBinary(Z,$)}static fromJson(Z,$){return new GH().fromJson(Z,$)}static fromJsonString(Z,$){return new GH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(GH,Z,$)}static $(){return["ThinkingMessage|1 text 9|2 duration_ms 13|3 started_at_ms 4?|4 completed_at_ms 4?"]}};B6=class B6 extends P{constructor(Z){super();this.command="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B6().fromBinary(Z,$)}static fromJson(Z,$){return new B6().fromJson(Z,$)}static fromJsonString(Z,$){return new B6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B6,Z,$)}static $(){return["ShellCommand|1 command 9"]}};F6=class F6 extends P{constructor(Z){super();this.stdout="",this.stderr="",this.exitCode=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new F6().fromBinary(Z,$)}static fromJson(Z,$){return new F6().fromJson(Z,$)}static fromJsonString(Z,$){return new F6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(F6,Z,$)}static $(){return["ShellOutput|1 stdout 9|2 stderr 9|3 exit_code 5"]}};g8=class g8 extends P{constructor(Z){super();this.turn={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new g8().fromBinary(Z,$)}static fromJson(Z,$){return new g8().fromJson(Z,$)}static fromJsonString(Z,$){return new g8().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(g8,Z,$)}static $(){return["ConversationTurn|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",G6,L6]}};LH=class LH extends P{constructor(Z){super();this.plan="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new LH().fromBinary(Z,$)}static fromJson(Z,$){return new LH().fromJson(Z,$)}static fromJsonString(Z,$){return new LH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(LH,Z,$)}static $(){return["ConversationPlan|1 plan 9"]}};q9=class q9 extends P{constructor(Z){super();this.id="",this.path="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new q9().fromBinary(Z,$)}static fromJson(Z,$){return new q9().fromJson(Z,$)}static fromJsonString(Z,$){return new q9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(q9,Z,$)}static $(){return["PlanRegistryEntry|1 id 9|2 path 9"]}};wH=class wH extends P{constructor(Z){super();this.conversationId="",this.goalId="",this.objective="",this.status=T$.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new wH().fromBinary(Z,$)}static fromJson(Z,$){return new wH().fromJson(Z,$)}static fromJsonString(Z,$){return new wH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(wH,Z,$)}static $(){return["GoalState|1 conversation_id 9|2 goal_id 9|3 objective 9|4 status #0|5 idle_continuations_without_tool_calls 13|6 active_duration_ms 4?|7 last_accrued_at_ms 4?|8 continuation_count 13|9 agent_session_id 9?|11 context_tokens_added 3?",T$]}};W9=class W9 extends P{constructor(Z){super();this.turn={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new W9().fromBinary(Z,$)}static fromJson(Z,$){return new W9().fromJson(Z,$)}static fromJsonString(Z,$){return new W9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(W9,Z,$)}static $(){return["ConversationTurnStructure|1 agent_conversation_turn #0 turn|2 shell_conversation_turn #1 turn",DH,IH]}};G6=class G6 extends P{constructor(Z){super();this.steps=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new G6().fromBinary(Z,$)}static fromJson(Z,$){return new G6().fromJson(Z,$)}static fromJsonString(Z,$){return new G6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(G6,Z,$)}static $(){return["AgentConversationTurn|1 user_message #0|2 steps #1*|3 request_id 9?",N6,S8]}};DH=class DH extends P{constructor(Z){super();this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],this.subagentDispatchSteps=[],this.dynamicToolNames=[],this.longReasoningReminderExposureLogged=!1,this.assistantTextStepIndices=[],this.appSecretsRequestStepIndices=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new DH().fromBinary(Z,$)}static fromJson(Z,$){return new DH().fromJson(Z,$)}static fromJsonString(Z,$){return new DH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(DH,Z,$)}static $(){return["AgentConversationTurnStructure|1 user_message 12|2 steps 12*|3 request_id 9?|4 encrypted_model 9?|5 dynamic_tool_count 13?|6 send_message_step_indices 13*|7 routed_model_display_name 9?|8 subagent_dispatch_steps #0*|9 dynamic_tool_names 9*|10 user_message_id 9?|11 long_reasoning_reminder #1?|12 long_reasoning_reminder_exposure_logged 8|13 assistant_text_step_indices 13*|14 assistant_text_steps_recorded 8?|15 app_secrets_request_step_indices 13*",ZH,UH]}};UH=class UH extends P{constructor(Z){super();this.remainingDelayCalls=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new UH().fromBinary(Z,$)}static fromJson(Z,$){return new UH().fromJson(Z,$)}static fromJsonString(Z,$){return new UH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(UH,Z,$)}static $(){return["LongReasoningReminderState|1 remaining_delay_calls 13"]}};L6=class L6 extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new L6().fromBinary(Z,$)}static fromJson(Z,$){return new L6().fromJson(Z,$)}static fromJsonString(Z,$){return new L6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(L6,Z,$)}static $(){return["ShellConversationTurn|1 shell_command #0|2 shell_output #1",B6,F6]}};IH=class IH extends P{constructor(Z){super();this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),N.util.initPartial(Z,this)}static fromBinary(Z,$){return new IH().fromBinary(Z,$)}static fromJson(Z,$){return new IH().fromJson(Z,$)}static fromJsonString(Z,$){return new IH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(IH,Z,$)}static $(){return["ShellConversationTurnStructure|1 shell_command 12|2 shell_output 12"]}};w6=class w6 extends P{constructor(Z){super();this.summary="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new w6().fromBinary(Z,$)}static fromJson(Z,$){return new w6().fromJson(Z,$)}static fromJsonString(Z,$){return new w6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(w6,Z,$)}static $(){return["ConversationSummary|1 summary 9"]}};OH=class OH extends P{constructor(Z){super();this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),N.util.initPartial(Z,this)}static fromBinary(Z,$){return new OH().fromBinary(Z,$)}static fromJson(Z,$){return new OH().fromJson(Z,$)}static fromJsonString(Z,$){return new OH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(OH,Z,$)}static $(){return["ConversationSummaryArchive|1 summarized_messages 12*|2 summary 9|3 window_tail 13|4 summary_message 12"]}};kH=class kH extends P{constructor(Z){super();this.id="",this.label="",this.estimatedTokens=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new kH().fromBinary(Z,$)}static fromJson(Z,$){return new kH().fromJson(Z,$)}static fromJsonString(Z,$){return new kH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(kH,Z,$)}static $(){return["PromptTokenBreakdownCategory|1 id 9|2 label 9|3 estimated_tokens 13|4 character_count 13?"]}};EH=class EH extends P{constructor(Z){super();this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new EH().fromBinary(Z,$)}static fromJson(Z,$){return new EH().fromJson(Z,$)}static fromJsonString(Z,$){return new EH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(EH,Z,$)}static $(){return["PromptTokenBreakdownSnapshot|1 total_used_tokens 13|2 max_tokens 13|3 categories #0*",kH]}};fH=class fH extends P{constructor(Z){super();this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new fH().fromBinary(Z,$)}static fromJson(Z,$){return new fH().fromJson(Z,$)}static fromJsonString(Z,$){return new fH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(fH,Z,$)}static $(){return["PromptContextSourceRef|1 source_type 9|3 message_index 13|4 content_path 9|5 start_offset 13|6 end_offset 13"]}};VH=class VH extends P{constructor(Z){super();this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new VH().fromBinary(Z,$)}static fromJson(Z,$){return new VH().fromJson(Z,$)}static fromJsonString(Z,$){return new VH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(VH,Z,$)}static $(){return["PromptContextNode|1 id 9|2 parent_id 9?|3 kind 9|4 label 9|5 category_id 9|6 estimated_tokens 13|7 character_count 13|9 content_available 8|11 source #0?|12 inline_content 9?",fH]}};PH=class PH extends P{constructor(Z){super();this.schemaVersion=0,this.nodes=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new PH().fromBinary(Z,$)}static fromJson(Z,$){return new PH().fromJson(Z,$)}static fromJsonString(Z,$){return new PH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(PH,Z,$)}static $(){return["PromptContextUsageTree|1 schema_version 13|2 nodes #0*",VH]}};N9=class N9 extends P{constructor(Z){super();this.usedTokens=0,this.maxTokens=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new N9().fromBinary(Z,$)}static fromJson(Z,$){return new N9().fromJson(Z,$)}static fromJsonString(Z,$){return new N9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(N9,Z,$)}static $(){return["ConversationTokenDetails|1 used_tokens 13|2 max_tokens 13|3 breakdown #0?|4 prompt_context_usage_tree #1?",EH,PH]}};AH=class AH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new AH().fromBinary(Z,$)}static fromJson(Z,$){return new AH().fromJson(Z,$)}static fromJsonString(Z,$){return new AH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(AH,Z,$)}static $(){return["FileState|1 content 9?|2 initial_content 9?"]}};xH=class xH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new xH().fromBinary(Z,$)}static fromJson(Z,$){return new xH().fromJson(Z,$)}static fromJsonString(Z,$){return new xH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(xH,Z,$)}static $(){return["FileStateStructure|1 content 12?|2 initial_content 12?"]}};MH=class MH extends P{constructor(Z){super();this.durationMs=pQ.zero,this.timestampMs=pQ.zero,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new MH().fromBinary(Z,$)}static fromJson(Z,$){return new MH().fromJson(Z,$)}static fromJsonString(Z,$){return new MH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(MH,Z,$)}static $(){return["StepTiming|1 duration_ms 4|2 timestamp_ms 4"]}};CH=class CH extends P{constructor(Z){super();this.completedTurnCountCapped=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new CH().fromBinary(Z,$)}static fromJson(Z,$){return new CH().fromJson(Z,$)}static fromJsonString(Z,$){return new CH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(CH,Z,$)}static $(){return["TurnTelemetryState|1 completed_turn_count_capped 13|2 last_completed_turn_timestamp_ms 4?"]}};D6=class D6 extends P{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new D6().fromBinary(Z,$)}static fromJson(Z,$){return new D6().fromJson(Z,$)}static fromJsonString(Z,$){return new D6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(D6,Z,$)}static $(){return["ConversationState|1 root_prompt_messages_json 9*|8 turns #0*|3 todos #1*|4 pending_tool_calls 9*|5 token_details #2|6 summary #3?|7 plan #4?|9 summary_archive #5?|10 file_states 9,#6|11 summary_archives #5*|12 plans 9,#7|13 communicate_update_history #8*|14 communicate_update_final_summary 9?|15 communicate_update_completed_subtitle 9?|16 communicate_update_states_by_parent_tool_call_id 9,#9",g8,B0,N9,w6,LH,OH,AH,q9,U6,B9]}};U6=class U6 extends P{constructor(Z){super();this.step="",this.messageIndex=0,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new U6().fromBinary(Z,$)}static fromJson(Z,$){return new U6().fromJson(Z,$)}static fromJsonString(Z,$){return new U6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(U6,Z,$)}static $(){return["CommunicateUpdateHistoryEntry|1 step 9|3 message_index 13"]}};B9=class B9 extends P{constructor(Z){super();this.history=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new B9().fromBinary(Z,$)}static fromJson(Z,$){return new B9().fromJson(Z,$)}static fromJsonString(Z,$){return new B9().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(B9,Z,$)}static $(){return["CommunicateUpdateTurnState|1 history #0*|2 final_summary 9?|3 completed_subtitle 9?",U6]}};I6=class I6 extends P{constructor(Z){super();this.createdTimestampMs=pQ.zero,this.lastUsedTimestampMs=pQ.zero,this.environment=M6.UNSPECIFIED,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new I6().fromBinary(Z,$)}static fromJson(Z,$){return new I6().fromJson(Z,$)}static fromJsonString(Z,$){return new I6().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(I6,Z,$)}static $(){return["SubagentPersistedState|1 conversation_state #0|2 created_timestamp_ms 4|3 last_used_timestamp_ms 4|4 subagent_type #1|5 model_id 9?|6 environment #2|7 cloud_subagent #3?|8 first_class_bc_id 9?|9 cloud_requested_environment_build_id 9?|10 machine #4?",j0,i8,M6,hH,H9]}};hH=class hH extends P{constructor(Z){super();this.bcId="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new hH().fromBinary(Z,$)}static fromJson(Z,$){return new hH().fromJson(Z,$)}static fromJsonString(Z,$){return new hH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(hH,Z,$)}static $(){return["CloudSubagentReference|1 bc_id 9|2 transcript_path 9?"]}};vH=class vH extends P{constructor(Z){super();this.repoPath="",this.branchName="",N.util.initPartial(Z,this)}static fromBinary(Z,$){return new vH().fromBinary(Z,$)}static fromJson(Z,$){return new vH().fromJson(Z,$)}static fromJsonString(Z,$){return new vH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(vH,Z,$)}static $(){return["TrackedGitRepo|1 repo_path 9|2 branch_name 9"]}};j0=class j0 extends P{constructor(Z){super();this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.previousWorkspaceUris=[],this.fileStates={},this.fileStatesV2={},this.summaryArchives=[],this.turnTimings=[],this.subagentStates={},this.selfSummaryCount=0,this.readPaths=[],this.plans={},this.trackedGitRepoBranches=[],this.communicateUpdateHistory=[],this.subagentThreads={},this.communicateUpdateStatesByParentToolCallId={},this.subagentRunsByParentToolCallId={},this.subagentStateRefs={},this.completedAskQuestionToolCallIds=[],this.durableSkillBlocks=[],this.recentUserMessageIds=[],this.mentionedAgentIds=[],this.voiceCallUtterances=[],this.voiceCallTimeTaskIds=[],this.writesVoiceCallUtterances=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new j0().fromBinary(Z,$)}static fromJson(Z,$){return new j0().fromJson(Z,$)}static fromJsonString(Z,$){return new j0().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(j0,Z,$)}static $(){return["ConversationStateStructure|1 root_prompt_messages_json 12*|8 turns 12*|3 todos 12*|4 pending_tool_calls 9*|5 token_details #0|6 summary 12?|7 plan 12?|9 previous_workspace_uris 9*|10 mode #1?|11 summary_archive 12?|12 file_states 9,12|15 file_states_v2 9,#2|13 summary_archives 12*|14 turn_timings #3*|16 subagent_states 9,#4|17 self_summary_count 13|18 read_paths 9*|19 active_branch_name 9?|20 plans 9,#5|21 tracked_git_repo_branches #6*|22 agent_type 9?|23 communicate_update_history #7*|24 subagent_threads 9,9|25 communicate_update_final_summary 9?|28 communicate_update_completed_subtitle 9?|29 communicate_update_states_by_parent_tool_call_id 9,#8|30 subagent_runs_by_parent_tool_call_id 9,#9|26 conversation_started_timestamp_ms 4?|27 conversation_started_time_zone 9?|31 subagent_state_refs 9,12|32 goal_state #10?|33 is_root_project_conversation 8?|34 completed_ask_question_tool_call_ids 9*|35 durable_skill_blocks 9*|36 durable_custom_mode_id 9?|37 message_count_at_last_compaction 13?|38 recent_user_message_ids 9*|39 recent_user_message_ids_older_turn_count 13?|40 turn_telemetry #11?|42 mentioned_agent_ids 9*|43 voice_call_utterances #12*|44 voice_call_pending_answer #13?|45 voice_call_time_task_ids 9*|46 writes_voice_call_utterances 8|47 voice_calls_read_utterances 8?",N9,BQ,xH,MH,I6,q9,vH,U6,B9,eK,wH,CH,TH,RH]}};TH=class TH extends P{constructor(Z){super();this.id="",this.kind=PL.UNSPECIFIED,this.text="",this.answersMessageIds=[],N.util.initPartial(Z,this)}static fromBinary(Z,$){return new TH().fromBinary(Z,$)}static fromJson(Z,$){return new TH().fromJson(Z,$)}static fromJsonString(Z,$){return new TH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(TH,Z,$)}static $(){return["VoiceCallUtterance|1 id 9|2 kind #0|3 text 9|4 answers_message_ids 9*",PL]}};PL=w(N,M8,"VoiceCallUtterance.Kind",[[0,"UNSPECIFIED"],[1,"SEND"],[2,"TERMINAL"]],1);RH=class RH extends P{constructor(Z){super();this.messageIds=[],this.readsUtterances=!1,this.endedOnSend=!1,N.util.initPartial(Z,this)}static fromBinary(Z,$){return new RH().fromBinary(Z,$)}static fromJson(Z,$){return new RH().fromJson(Z,$)}static fromJsonString(Z,$){return new RH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(RH,Z,$)}static $(){return["VoiceCallPendingAnswer|1 message_ids 9*|2 reads_utterances 8|3 ended_on_send 8"]}};yH=class yH extends P{constructor(Z){super();this.id=0,this.result={case:void 0},N.util.initPartial(Z,this)}static fromBinary(Z,$){return new yH().fromBinary(Z,$)}static fromJson(Z,$){return new yH().fromJson(Z,$)}static fromJsonString(Z,$){return new yH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(yH,Z,$)}static $(){return["InteractionResponse|1 id 13|2 web_search_request_response #0 result|3 ask_question_interaction_response #1 result|4 switch_mode_request_response #2 result|7 create_plan_request_response #3 result|8 setup_vm_environment_result #4 result|9 web_fetch_request_response #5 result|10 pr_management_result #6 result|11 mcp_auth_request_response #7 result|12 generate_image_request_response #8 result|13 replace_env_result #9 result|14 connect_scm_request_response #10 result",wZ,mH,MZ,GZ,$6,iZ,J6,eZ,hZ,X6,P$]}};mH=class mH extends P{constructor(Z){super();N.util.initPartial(Z,this)}static fromBinary(Z,$){return new mH().fromBinary(Z,$)}static fromJson(Z,$){return new mH().fromJson(Z,$)}static fromJsonString(Z,$){return new mH().fromJsonString(Z,$)}static equals(Z,$){return N.util.equals(mH,Z,$)}static $(){return["AskQuestionInteractionResponse|1 result #0",e8]}}});class jH{}var I=q((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.createNotification=gL.nextNotification=gL.errorNotification=gL.COMPLETE_NOTIFICATION=gL.isObservable=gL.isArrayLike=gL.isPromise=gL.readableStreamLikeToAsyncGenerator=gL.isFunction=gL.getObservableInputType=gL.ObservableInputType=gL.subscribeToArray=gL.fromPromise=gL.fromArrayLike=gL.from=gL.reportUnhandledError=gL.Observable=gL.operate=gL.config=gL.Subscriber=gL.Subscription=gL.UnsubscriptionError=void 0;class FQ extends Error{errors;constructor(Z){super(Z?`${Z.length} errors occurred during unsubscription:
|
|
3
3
|
${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
4
|
-
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}_D.UnsubscriptionError=FQ;class SH{initialTeardown;static EMPTY=(()=>{let Z=new SH;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(E0($))try{$()}catch(Y){Z=Y instanceof FQ?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{VD(Y)}catch(X){if(Z=Z??[],X instanceof FQ)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new FQ(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)VD(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}_D.Subscription=SH;if(typeof Symbol.dispose==="symbol")SH.prototype[Symbol.dispose]=SH.prototype.unsubscribe;function VD(Z){if(E0(Z))Z();else Z.unsubscribe()}class F9 extends SH{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof F9?Z:Uh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?Dh:this._next,this._error=this._errorOverride?Lh:this._error,this._complete=this._completeOverride?wh:this._complete,Ih(Z))Z.add(this)}next(Z){if(this.isStopped)IW(jD(Z),this);else this._next(Z)}error(Z){if(this.isStopped)IW(mD(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)IW(_D.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}_D.Subscriber=F9;_D.config={onUnhandledError:null,onStoppedNotification:null};function Dh(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function Lh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function wh(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class AD{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){_H(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){_H(J)}else _H(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){_H($)}}}function Uh(Z){return new AD(!Z||E0(Z)?{next:Z??void 0}:Z)}function IW(Z,$){let{onStoppedNotification:J}=_D.config;J&&setTimeout(()=>J(Z,$))}function Ih(Z){return Z&&E0(Z.unsubscribe)&&E0(Z.add)}function Oh({destination:Z,...$}){return new F9(Z,$)}_D.operate=Oh;class b8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof F9?Z:new F9(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new F9({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(kh,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[D,w]=z.shift();w(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[D]=z.shift();D({value:W,done:!1})}else X.push(W)},error:K,complete:Q});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((W,D)=>{z.push([W,D])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}_D.Observable=b8;function kh(Z,$){return $(Z)}function _H(Z){setTimeout(()=>{let{onUnhandledError:$}=_D.config;if($)$(Z);else throw Z})}_D.reportUnhandledError=_H;function Eh(Z){switch(vD(Z)){case k0.Own:return Z;case k0.InteropObservable:return fh(Z);case k0.ArrayLike:return xD(Z);case k0.Promise:return MD(Z);case k0.AsyncIterable:return CD(Z);case k0.Iterable:return Vh(Z);case k0.ReadableStreamLike:return Ph(Z)}}_D.from=Eh;function fh(Z){return new b8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(E0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function xD(Z){return new b8(($)=>{hD(Z,$)})}_D.fromArrayLike=xD;function MD(Z){return new b8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,_H)})}_D.fromPromise=MD;function Vh(Z){return new b8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function CD(Z){return new b8(($)=>{Ah(Z,$).catch((J)=>$.error(J))})}function Ph(Z){return CD(TD(Z))}async function Ah(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function hD(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}_D.subscribeToArray=hD;var k0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(k0=_D.ObservableInputType||(_D.ObservableInputType={}));function vD(Z){if(Z instanceof b8)return k0.Own;if(Ch(Z))return k0.InteropObservable;if(yD(Z))return k0.ArrayLike;if(RD(Z))return k0.Promise;if(xh(Z))return k0.AsyncIterable;if(hh(Z))return k0.Iterable;if(Mh(Z))return k0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}_D.getObservableInputType=vD;function E0(Z){return typeof Z==="function"}_D.isFunction=E0;function xh(Z){return Symbol.asyncIterator&&E0(Z?.[Symbol.asyncIterator])}async function*TD(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}_D.readableStreamLikeToAsyncGenerator=TD;function Mh(Z){return E0(Z?.getReader)}function RD(Z){return E0(Z?.then)}_D.isPromise=RD;function Ch(Z){return E0(Z[Symbol.observable??"@@observable"])}function hh(Z){return E0(Z?.[Symbol.iterator])}function yD(Z){return Z&&typeof Z.length==="number"&&!E0(Z)}_D.isArrayLike=yD;function vh(Z){return!!Z&&(Z instanceof b8||E0(Z.lift)&&E0(Z.subscribe))}_D.isObservable=vh;_D.COMPLETE_NOTIFICATION=(()=>nQ("C",void 0,void 0))();function mD(Z){return nQ("E",void 0,Z)}_D.errorNotification=mD;function jD(Z){return nQ("N",Z,void 0)}_D.nextNotification=jD;function nQ(Z,$,J){return{kind:Z,value:$,error:J}}_D.createNotification=nQ});var dD=q((bD)=>{Object.defineProperty(bD,"__esModule",{value:!0});bD.performanceTimestampProvider=void 0;bD.performanceTimestampProvider={now(){return(bD.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var EW=q((cD)=>{Object.defineProperty(cD,"__esModule",{value:!0});cD.animationFrameProvider=void 0;var sh=I();cD.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=cD.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new sh.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=cD.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=cD.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var nD=q((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.animationFrames=void 0;var th=I(),oh=dD(),uD=EW();function eh(Z){return Z?lD(Z):Zv}pD.animationFrames=eh;function lD(Z){return new th.Observable(($)=>{let J=Z||oh.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=uD.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)uD.animationFrameProvider.cancelAnimationFrame(X)}})}var Zv=lD()});var q0=q((rD)=>{Object.defineProperty(rD,"__esModule",{value:!0});rD.Subject=void 0;var fW=I();class aD extends fW.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return fW.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new fW.Observable((Z)=>this.subscribe(Z))}}rD.Subject=aD});var ZL=q((oD)=>{Object.defineProperty(oD,"__esModule",{value:!0});oD.BehaviorSubject=void 0;var $v=q0();class tD extends $v.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}oD.BehaviorSubject=tD});var aQ=q(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.dateTimestampProvider=void 0;$L.dateTimestampProvider={now(){return($L.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var PW=q((YL)=>{Object.defineProperty(YL,"__esModule",{value:!0});YL.ReplaySubject=void 0;var Jv=q0(),Yv=aQ();class JL extends Jv.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=Yv.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}YL.ReplaySubject=JL});var AW=q((KL)=>{Object.defineProperty(KL,"__esModule",{value:!0});KL.AsyncSubject=void 0;var Xv=q0();class zL extends Xv.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}KL.AsyncSubject=zL});var NL=q((qL)=>{Object.defineProperty(qL,"__esModule",{value:!0});qL.Action=void 0;var zv=I();class QL extends zv.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}qL.Action=QL});var FL=q((BL)=>{Object.defineProperty(BL,"__esModule",{value:!0});BL.intervalProvider=void 0;BL.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=BL.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=BL.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var G9=q((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.arrRemove=void 0;function Kv(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}GL.arrRemove=Kv});var gH=q((UL)=>{Object.defineProperty(UL,"__esModule",{value:!0});UL.AsyncAction=void 0;var Hv=NL(),LL=FL(),Qv=G9();class wL extends Hv.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return LL.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)LL.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,Qv.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}UL.AsyncAction=wL});var fL=q((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.TestTools=kL.Immediate=void 0;var qv=1,xW,sQ={};function OL(Z){if(Z in sQ)return delete sQ[Z],!0;return!1}kL.Immediate={setImmediate(Z){let $=qv++;if(sQ[$]=!0,!xW)xW=Promise.resolve();return xW.then(()=>OL($)&&Z()),$},clearImmediate(Z){OL(Z)}};kL.TestTools={pending(){return Object.keys(sQ).length}}});var PL=q((VL)=>{Object.defineProperty(VL,"__esModule",{value:!0});VL.immediateProvider=void 0;var Nv=fL(),{setImmediate:Bv,clearImmediate:Fv}=Nv.Immediate;VL.immediateProvider={setImmediate(...Z){let{delegate:$}=VL.immediateProvider;return($?.setImmediate||Bv)(...Z)},clearImmediate(Z){let{delegate:$}=VL.immediateProvider;return($?.clearImmediate||Fv)(Z)},delegate:void 0}});var hL=q((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.AsapAction=void 0;var Gv=gH(),AL=PL();class xL extends Gv.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=AL.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(AL.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}ML.AsapAction=xL});var CW=q((vL)=>{Object.defineProperty(vL,"__esModule",{value:!0});vL.Scheduler=void 0;var Dv=aQ();class MW{schedulerActionCtor;static now=Dv.dateTimestampProvider.now;constructor(Z,$=MW.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}vL.Scheduler=MW});var bH=q((mL)=>{Object.defineProperty(mL,"__esModule",{value:!0});mL.AsyncScheduler=void 0;var RL=CW();class yL extends RL.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=RL.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}mL.AsyncScheduler=yL});var bL=q((SL)=>{Object.defineProperty(SL,"__esModule",{value:!0});SL.AsapScheduler=void 0;var Lv=bH();class _L extends Lv.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}SL.AsapScheduler=_L});var uL=q((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});dL.asapScheduler=void 0;var wv=hL(),Uv=bL();dL.asapScheduler=new Uv.AsapScheduler(wv.AsapAction)});var h0=q((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.asyncScheduler=void 0;var Iv=gH(),Ov=bH();lL.asyncScheduler=new Ov.AsyncScheduler(Iv.AsyncAction)});var rL=q((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.QueueAction=void 0;var kv=gH();class iL extends kv.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}nL.QueueAction=iL});var eL=q((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.QueueScheduler=void 0;var Ev=bH();class sL extends Ev.AsyncScheduler{}tL.QueueScheduler=sL});var Jw=q((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.queueScheduler=void 0;var fv=rL(),Vv=eL();Zw.queueScheduler=new Vv.QueueScheduler(fv.QueueAction)});var Hw=q((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.AnimationFrameAction=void 0;var Pv=gH(),Yw=EW();class Xw extends Pv.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=Yw.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)Yw.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}zw.AnimationFrameAction=Xw});var Nw=q((qw)=>{Object.defineProperty(qw,"__esModule",{value:!0});qw.AnimationFrameScheduler=void 0;var Av=bH();class Qw extends Av.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}qw.AnimationFrameScheduler=Qw});var Gw=q((Bw)=>{Object.defineProperty(Bw,"__esModule",{value:!0});Bw.animationFrameScheduler=void 0;var xv=Hw(),Mv=Nw();Bw.animationFrameScheduler=new Mv.AnimationFrameScheduler(xv.AnimationFrameAction)});var Uw=q((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.VirtualAction=Lw.VirtualTimeScheduler=void 0;var Cv=gH(),hv=I(),vv=bH();class Dw extends vv.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=DQ,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}Lw.VirtualTimeScheduler=Dw;class DQ extends Cv.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new DQ(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return hv.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(DQ.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}Lw.VirtualAction=DQ});var hW=q((Iw)=>{Object.defineProperty(Iw,"__esModule",{value:!0});Iw.rx=void 0;var Rv=I();function yv(Z,...$){return $.reduce(mv,(0,Rv.from)(Z))}Iw.rx=yv;function mv(Z,$){return $(Z)}});var vW=q((kw)=>{Object.defineProperty(kw,"__esModule",{value:!0});kw.pipe=void 0;function jv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(_v,$)}kw.pipe=jv;function _v(Z,$){return $(Z)}});var X0=q((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.noop=void 0;function Sv(){}fw.noop=Sv});var v0=q((Pw)=>{Object.defineProperty(Pw,"__esModule",{value:!0});Pw.identity=void 0;function gv(Z){return Z}Pw.identity=gv});var d8=q((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.EmptyError=void 0;class xw extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}Mw.EmptyError=xw});var Tw=q((hw)=>{Object.defineProperty(hw,"__esModule",{value:!0});hw.lastValueFrom=void 0;var bv=d8();function dv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new bv.EmptyError)}})})}hw.lastValueFrom=dv});var mw=q((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.firstValueFrom=void 0;var cv=I(),uv=d8();function lv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new cv.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new uv.EmptyError)}});Z.subscribe(z)})}Rw.firstValueFrom=lv});var TW=q((_w)=>{Object.defineProperty(_w,"__esModule",{value:!0});_w.ArgumentOutOfRangeError=void 0;class jw extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}_w.ArgumentOutOfRangeError=jw});var RW=q((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.NotFoundError=void 0;class gw extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}bw.NotFoundError=gw});var yW=q((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.SequenceError=void 0;class cw extends Error{constructor(Z){super(Z);this.name="SequenceError"}}uw.SequenceError=cw});var oQ=q((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.isValidDate=void 0;function pv(Z){return Z instanceof Date&&!isNaN(Z)}pw.isValidDate=pv});var u0=q((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.executeSchedule=void 0;function iv(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}nw.executeSchedule=iv});var eQ=q((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});rw.timeout=rw.TimeoutError=void 0;var nv=h0(),av=oQ(),mW=I(),rv=u0();class jW extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}rw.TimeoutError=jW;function sv(Z,$){let{first:J,each:Y,with:X=tv,scheduler:z=$??nv.asyncScheduler,meta:K=null}=(0,av.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new mW.Observable((W)=>{let D,w,f=null,V=0,A=(x)=>{w=(0,rv.executeSchedule)(W,z,()=>{try{D.unsubscribe(),(0,mW.from)(X({meta:K,lastValue:f,seen:V})).subscribe(W)}catch(y){W.error(y)}},x)};D=Q.subscribe((0,mW.operate)({destination:W,next:(x)=>{w?.unsubscribe(),V++,W.next(f=x),Y>0&&A(Y)},finalize:()=>{w?.unsubscribe(),f=null}})),!V&&A(J!=null?typeof J==="number"?J:+J-z.now():Y)})}rw.timeout=sv;function tv(Z){throw new jW(Z)}});var LQ=q((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.isScheduler=void 0;var ev=I();function ZT(Z){return Z&&(0,ev.isFunction)(Z.schedule)}tw.isScheduler=ZT});var dH=q((ZU)=>{Object.defineProperty(ZU,"__esModule",{value:!0});ZU.map=void 0;var ew=I();function $T(Z){return($)=>new ew.Observable((J)=>{let Y=0;$.subscribe((0,ew.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}ZU.map=$T});var cH=q((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.mapOneOrManyArgs=void 0;var JT=dH(),{isArray:YT}=Array;function XT(Z,$){return YT($)?Z(...$):Z($)}function zT(Z){return(0,JT.map)(($)=>XT(Z,$))}JU.mapOneOrManyArgs=zT});var Zq=q((zU)=>{Object.defineProperty(zU,"__esModule",{value:!0});zU.observeOn=void 0;var _W=u0(),XU=I();function KT(Z,$=0){return(J)=>new XU.Observable((Y)=>{J.subscribe((0,XU.operate)({destination:Y,next:(X)=>(0,_W.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,_W.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,_W.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}zU.observeOn=KT});var $q=q((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.subscribeOn=void 0;var HT=I();function QT(Z,$=0){return(J)=>new HT.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}HU.subscribeOn=QT});var NU=q((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.scheduleObservable=void 0;var qT=I(),WT=Zq(),NT=$q();function BT(Z,$){return(0,qT.from)(Z).pipe((0,NT.subscribeOn)($),(0,WT.observeOn)($))}qU.scheduleObservable=BT});var GU=q((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.schedulePromise=void 0;var FT=I(),GT=Zq(),DT=$q();function LT(Z,$){return(0,FT.from)(Z).pipe((0,DT.subscribeOn)($),(0,GT.observeOn)($))}BU.schedulePromise=LT});var UU=q((LU)=>{Object.defineProperty(LU,"__esModule",{value:!0});LU.scheduleArray=void 0;var wT=I(),DU=u0();function UT(Z,$){return new wT.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,DU.executeSchedule)(J,$,X)};return(0,DU.executeSchedule)(J,$,X)})}LU.scheduleArray=UT});var EU=q((OU)=>{Object.defineProperty(OU,"__esModule",{value:!0});OU.iterator=OU.getSymbolIterator=void 0;function IU(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}OU.getSymbolIterator=IU;OU.iterator=IU()});var SW=q((PU)=>{Object.defineProperty(PU,"__esModule",{value:!0});PU.scheduleIterable=void 0;var fU=I(),OT=EU(),VU=u0();function kT(Z,$){return new fU.Observable((J)=>{let Y;return(0,VU.executeSchedule)(J,$,()=>{Y=Z[OT.iterator](),(0,VU.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,fU.isFunction)(Y?.return)&&Y.return()})}PU.scheduleIterable=kT});var gW=q((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.scheduleAsyncIterable=void 0;var ET=I(),xU=u0();function fT(Z,$){if(!Z)throw Error("Iterable cannot be null");return new ET.Observable((J)=>{(0,xU.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,xU.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}MU.scheduleAsyncIterable=fT});var TU=q((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.scheduleReadableStreamLike=void 0;var VT=I(),PT=gW();function AT(Z,$){return(0,PT.scheduleAsyncIterable)((0,VT.readableStreamLikeToAsyncGenerator)(Z),$)}hU.scheduleReadableStreamLike=AT});var wQ=q((RU)=>{Object.defineProperty(RU,"__esModule",{value:!0});RU.scheduled=void 0;var xT=NU(),MT=GU(),CT=UU(),hT=SW(),vT=gW(),I6=I(),TT=TU();function RT(Z,$){switch((0,I6.getObservableInputType)(Z)){case I6.ObservableInputType.Own:case I6.ObservableInputType.InteropObservable:return(0,xT.scheduleObservable)(Z,$);case I6.ObservableInputType.Promise:return(0,MT.schedulePromise)(Z,$);case I6.ObservableInputType.ArrayLike:return(0,CT.scheduleArray)(Z,$);case I6.ObservableInputType.Iterable:return(0,hT.scheduleIterable)(Z,$);case I6.ObservableInputType.AsyncIterable:return(0,vT.scheduleAsyncIterable)(Z,$);case I6.ObservableInputType.ReadableStreamLike:return(0,TT.scheduleReadableStreamLike)(Z,$)}}RU.scheduled=RT});var dW=q((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.bindCallbackInternals=void 0;var yT=LQ(),mT=I(),jT=cH(),_T=AW(),ST=wQ();function bW(Z,$,J,Y){if(J)if((0,yT.isScheduler)(J))Y=J;else return function(...X){return(0,jT.mapOneOrManyArgs)(J)(bW(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,ST.scheduled)(bW(Z,$).apply(this,X),Y)};return function(...X){let z=new _T.AsyncSubject,K=!0;return new mT.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let D=!1,w=!1;if($.apply(this,[...X,(...f)=>{if(Z){let V=f.shift();if(V!=null){z.error(V);return}}if(z.next(1<f.length?f:f[0]),w=!0,D)z.complete()}]),w)z.complete();D=!0}return W})}}mU.bindCallbackInternals=bW});var gU=q((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.bindCallback=void 0;var gT=dW();function bT(Z,$,J){return(0,gT.bindCallbackInternals)(!1,Z,$,J)}_U.bindCallback=bT});var cU=q((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.bindNodeCallback=void 0;var dT=dW();function cT(Z,$,J){return(0,dT.bindCallbackInternals)(!0,Z,$,J)}bU.bindNodeCallback=cT});var cW=q((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.arrayOrObject=lU.argsArgArrayOrObject=void 0;var{isArray:uT}=Array,{getPrototypeOf:lT,prototype:pT,keys:iT}=Object;function nT(Z){if(Z.length===1){let $=Z[0],J=uU($);if(J)return J}return{args:Z,keys:null}}lU.argsArgArrayOrObject=nT;function uU(Z){if(uT(Z))return{args:Z,keys:null};if(aT(Z)){let $=iT(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}lU.arrayOrObject=uU;function aT(Z){return Z&&typeof Z==="object"&&lT(Z)===pT}});var uW=q((iU)=>{Object.defineProperty(iU,"__esModule",{value:!0});iU.createObject=void 0;function sT(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}iU.createObject=sT});var C8=q((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.EMPTY=void 0;var tT=I();aU.EMPTY=new tT.Observable((Z)=>Z.complete())});var Jq=q((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.combineLatestInit=oU.combineLatest=void 0;var lW=I(),oT=cW(),sU=v0(),eT=uW(),ZR=C8();function $R(Z,$){let J=(0,oT.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return ZR.EMPTY;return new lW.Observable(tU(Y,X?(z)=>(0,eT.createObject)(X,z):$?(z)=>$(...z):sU.identity))}oU.combineLatest=$R;function tU(Z,$=sU.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,lW.from)(Z[Q]),D=!1;W.subscribe((0,lW.operate)({destination:J,next:(w)=>{if(X[Q]=w,!D)D=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}oU.combineLatestInit=tU});var Yq=q((Z2)=>{Object.defineProperty(Z2,"__esModule",{value:!0});Z2.mergeInternals=void 0;var pW=I(),YR=u0();function XR(Z,$,J,Y,X,z,K,Q){let W=[],D=0,w=0,f=!1,V=()=>{if(f&&!W.length&&!D)$.complete()},A=(y)=>D<Y?x(y):W.push(y),x=(y)=>{z&&$.next(y),D++;let V0=!1;(0,pW.from)(J(y,w++)).subscribe((0,pW.operate)({destination:$,next:(z0)=>{if(X?.(z0),z)A(z0);else $.next(z0)},complete:()=>{V0=!0},finalize:()=>{if(V0)try{D--;while(W.length&&D<Y){let z0=W.shift();if(K)(0,YR.executeSchedule)($,K,()=>x(z0));else x(z0)}V()}catch(z0){$.error(z0)}}}))};return Z.subscribe((0,pW.operate)({destination:$,next:A,complete:()=>{f=!0,V()}})),()=>{Q?.()}}Z2.mergeInternals=XR});var D9=q((J2)=>{Object.defineProperty(J2,"__esModule",{value:!0});J2.mergeMap=void 0;var zR=I(),KR=Yq();function HR(Z,$=1/0){return(J)=>new zR.Observable((Y)=>(0,KR.mergeInternals)(J,Y,Z,$))}J2.mergeMap=HR});var UQ=q((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});X2.mergeAll=void 0;var QR=D9(),qR=v0();function WR(Z=1/0){return(0,QR.mergeMap)(qR.identity,Z)}X2.mergeAll=WR});var Xq=q((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});K2.concatAll=void 0;var NR=UQ();function BR(){return(0,NR.mergeAll)(1)}K2.concatAll=BR});var O6=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.popNumber=Q2.popScheduler=Q2.popResultSelector=void 0;var FR=I(),GR=LQ();function iW(Z){return Z[Z.length-1]}function DR(Z){return(0,FR.isFunction)(iW(Z))?Z.pop():void 0}Q2.popResultSelector=DR;function LR(Z){return(0,GR.isScheduler)(iW(Z))?Z.pop():void 0}Q2.popScheduler=LR;function wR(Z,$){return typeof iW(Z)==="number"?Z.pop():$}Q2.popNumber=wR});var nW=q((W2)=>{Object.defineProperty(W2,"__esModule",{value:!0});W2.concat=void 0;var OR=I(),kR=Xq(),ER=O6(),fR=wQ();function VR(...Z){let $=(0,ER.popScheduler)(Z);return(0,kR.concatAll)()($?(0,fR.scheduled)(Z,$):(0,OR.from)(Z))}W2.concat=VR});var IQ=q((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.defer=void 0;var B2=I();function PR(Z){return new B2.Observable(($)=>{(0,B2.from)(Z()).subscribe($)})}F2.defer=PR});var w2=q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.connectable=void 0;var AR=q0(),xR=I(),MR=IQ(),CR={connector:()=>new AR.Subject,resetOnDisconnect:!0};function hR(Z,$=CR){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new xR.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,MR.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}D2.connectable=hR});var O2=q((U2)=>{Object.defineProperty(U2,"__esModule",{value:!0});U2.forkJoin=void 0;var aW=I(),vR=cW(),TR=O6(),RR=cH(),yR=uW(),mR=d8();function jR(...Z){let $=(0,TR.popResultSelector)(Z),{args:J,keys:Y}=(0,vR.argsArgArrayOrObject)(Z),X=new aW.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,D=K;for(let w=0;w<K;w++){let f=!1;(0,aW.from)(J[w]).subscribe((0,aW.operate)({destination:z,next:(V)=>{if(!f)f=!0,D--;Q[w]=V},complete:()=>W--,finalize:()=>{if(!W||!f)if(D===0)z.next(Y?(0,yR.createObject)(Y,Q):Q),z.complete();else z.error(new mR.EmptyError)}}))}});return $?(0,RR.mapOneOrManyArgs)($)(X):X}U2.forkJoin=jR});var M2=q((A2)=>{Object.defineProperty(A2,"__esModule",{value:!0});A2.fromEvent=void 0;var c8=I(),_R=cH(),SR=["addListener","removeListener"],gR=["addEventListener","removeEventListener"],bR=["on","off"];function E2(Z,$,J,Y){if((0,c8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,_R.mapOneOrManyArgs)(Y)(E2(Z,$,J));let X=f2(Z)||V2(Z)||P2(Z);if(!X&&!(0,c8.isArrayLike)(Z))throw TypeError("Invalid event target");return new c8.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)k2(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];k2(K,z,W,$,J)}})}A2.fromEvent=E2;function k2(Z,$,J,Y,X){let[z,K]=dR(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function dR(Z){return P2(Z)?gR:f2(Z)?SR:V2(Z)?bR:[]}function f2(Z){return(0,c8.isFunction)(Z.addListener)&&(0,c8.isFunction)(Z.removeListener)}function V2(Z){return(0,c8.isFunction)(Z.on)&&(0,c8.isFunction)(Z.off)}function P2(Z){return(0,c8.isFunction)(Z.addEventListener)&&(0,c8.isFunction)(Z.removeEventListener)}});var R2=q((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});v2.fromEventPattern=void 0;var C2=I(),cR=cH();function h2(Z,$,J){if(J)return(0,cR.mapOneOrManyArgs)(J)(h2(Z,$));return new C2.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,C2.isFunction)($)?()=>$(X,z):void 0})}v2.fromEventPattern=h2});var _2=q((m2)=>{Object.defineProperty(m2,"__esModule",{value:!0});m2.generate=void 0;var y2=v0(),uR=LQ(),lR=IQ(),pR=SW();function iR(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=y2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,uR.isScheduler)(Y))z=y2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,lR.defer)(X?()=>(0,pR.scheduleIterable)(Q(),X):Q)}m2.generate=iR});var b2=q((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});S2.iif=void 0;var nR=IQ();function aR(Z,$,J){return(0,nR.defer)(()=>Z()?$:J)}S2.iif=aR});var k6=q((c2)=>{Object.defineProperty(c2,"__esModule",{value:!0});c2.timer=void 0;var rR=I(),sR=h0(),tR=LQ(),oR=oQ(),d2=u0();function eR(Z=0,$,J=sR.asyncScheduler){let Y=-1;if($!=null)if((0,tR.isScheduler)($))J=$;else Y=$;return new rR.Observable((X)=>{let z=(0,oR.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,d2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,d2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}c2.timer=eR});var rW=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.interval=void 0;var Zy=h0(),$y=k6();function Jy(Z=0,$=Zy.asyncScheduler){if(Z<0)Z=0;return(0,$y.timer)(Z,Z,$)}l2.interval=Jy});var s2=q((a2)=>{Object.defineProperty(a2,"__esModule",{value:!0});a2.merge=void 0;var i2=I(),Yy=UQ(),Xy=C8(),n2=O6(),zy=wQ();function Ky(...Z){let $=(0,n2.popScheduler)(Z),J=(0,n2.popNumber)(Z,1/0),Y=Z;return!Y.length?Xy.EMPTY:Y.length===1?(0,i2.from)(Y[0]):(0,Yy.mergeAll)(J)($?(0,zy.scheduled)(Y,$):(0,i2.from)(Y))}a2.merge=Ky});var e2=q((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.of=void 0;var Hy=I();function Qy(...Z){return(0,Hy.fromArrayLike)(Z)}t2.of=Qy});var OQ=q((ZI)=>{Object.defineProperty(ZI,"__esModule",{value:!0});ZI.argsOrArgArray=void 0;var{isArray:qy}=Array;function Wy(Z){return Z.length===1&&qy(Z[0])?Z[0]:Z}ZI.argsOrArgArray=Wy});var tW=q((YI)=>{Object.defineProperty(YI,"__esModule",{value:!0});YI.onErrorResumeNext=void 0;var sW=I(),Ny=OQ(),JI=X0();function By(...Z){let $=(0,Ny.argsOrArgArray)(Z);return new sW.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,sW.from)($[Y++])}catch(Q){X();return}let K=(0,sW.operate)({destination:J,error:JI.noop,complete:JI.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}YI.onErrorResumeNext=By});var HI=q((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.not=void 0;function Fy(Z,$){return(J,Y)=>!Z.call($,J,Y)}zI.not=Fy});var zq=q((qI)=>{Object.defineProperty(qI,"__esModule",{value:!0});qI.filter=void 0;var QI=I();function Gy(Z,$){return(J)=>new QI.Observable((Y)=>{let X=0;J.subscribe((0,QI.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}qI.filter=Gy});var DI=q((FI)=>{Object.defineProperty(FI,"__esModule",{value:!0});FI.partition=void 0;var Dy=HI(),NI=zq(),BI=I();function Ly(Z,$,J){return[(0,NI.filter)($,J)((0,BI.from)(Z)),(0,NI.filter)((0,Dy.not)($,J))((0,BI.from)(Z))]}FI.partition=Ly});var oW=q((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.raceInit=wI.race=void 0;var Kq=I(),wy=OQ();function Uy(...Z){return Z=(0,wy.argsOrArgArray)(Z),Z.length===1?(0,Kq.from)(Z[0]):new Kq.Observable(LI(Z))}wI.race=Uy;function LI(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,Kq.from)(Z[Y]).subscribe((0,Kq.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}wI.raceInit=LI});var EI=q((OI)=>{Object.defineProperty(OI,"__esModule",{value:!0});OI.range=void 0;var Oy=I(),ky=C8(),II=u0();function Ey(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return ky.EMPTY;let Y=$+Z;return new Oy.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,II.executeSchedule)(X,J,K)}else X.complete()};(0,II.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}OI.range=Ey});var PI=q((fI)=>{Object.defineProperty(fI,"__esModule",{value:!0});fI.throwError=void 0;var fy=I();function Vy(Z){return new fy.Observable(($)=>{$.error(Z())})}fI.throwError=Vy});var CI=q((xI)=>{Object.defineProperty(xI,"__esModule",{value:!0});xI.using=void 0;var AI=I(),Py=C8();function Ay(Z,$){return new AI.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,AI.from)(X):Py.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}xI.using=Ay});var Hq=q((hI)=>{Object.defineProperty(hI,"__esModule",{value:!0});hI.zip=void 0;var eW=I(),xy=OQ(),My=C8(),Cy=O6();function hy(...Z){let $=(0,Cy.popResultSelector)(Z),J=(0,xy.argsOrArgArray)(Z);return J.length?new eW.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,eW.from)(J[K]).subscribe((0,eW.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((D)=>D.shift());if(Y.next($?$(...W):W),X.some((D,w)=>!D.length&&z[w]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):My.EMPTY}hI.zip=hy});var yI=q((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.NEVER=void 0;var vy=I(),Ty=X0();TI.NEVER=new vy.Observable(Ty.noop)});var jI=q((mI)=>{Object.defineProperty(mI,"__esModule",{value:!0})});var ZN=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.audit=void 0;var Qq=I();function Ry(Z){return($)=>new Qq.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let D=X;X=null,J.next(D)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,Qq.operate)({destination:J,next:(D)=>{if(Y=!0,X=D,!z)(0,Qq.from)(Z(D)).subscribe(z=(0,Qq.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}_I.audit=Ry});var dI=q((gI)=>{Object.defineProperty(gI,"__esModule",{value:!0});gI.auditTime=void 0;var yy=h0(),my=ZN(),jy=k6();function _y(Z,$=yy.asyncScheduler){return(0,my.audit)(()=>(0,jy.timer)(Z,$))}gI.auditTime=_y});var lI=q((cI)=>{Object.defineProperty(cI,"__esModule",{value:!0});cI.buffer=void 0;var qq=I(),Sy=X0();function gy(Z){return($)=>new qq.Observable((J)=>{let Y=[];return(0,qq.from)(Z).subscribe((0,qq.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:Sy.noop})),$.subscribe((0,qq.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}cI.buffer=gy});var aI=q((iI)=>{Object.defineProperty(iI,"__esModule",{value:!0});iI.bufferCount=void 0;var pI=I(),by=G9();function dy(Z,$=null){return $=$??Z,(J)=>new pI.Observable((Y)=>{let X=[],z=0;J.subscribe((0,pI.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,by.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}iI.bufferCount=dy});var oI=q((sI)=>{Object.defineProperty(sI,"__esModule",{value:!0});sI.bufferTime=void 0;var $N=I(),cy=G9(),uy=h0(),ly=O6(),rI=u0();function py(Z,...$){let J=(0,ly.popScheduler)($)??uy.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new $N.Observable((K)=>{let Q=[],W=!1,D=(V)=>{let{buffer:A,subs:x}=V;x.unsubscribe(),(0,cy.arrRemove)(Q,V),K.next(A),W&&w()},w=()=>{if(Q){let V=new $N.Subscription;K.add(V);let x={buffer:[],subs:V};Q.push(x),(0,rI.executeSchedule)(V,J,()=>D(x),Z)}};if(Y!==null&&Y>=0)(0,rI.executeSchedule)(K,J,w,Y,!0);else W=!0;w();let f=(0,$N.operate)({destination:K,next:(V)=>{let A=Q.slice();for(let x of A){let{buffer:y}=x;y.push(V),X<=y.length&&D(x)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);f?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(f)})}sI.bufferTime=py});var JO=q((ZO)=>{Object.defineProperty(ZO,"__esModule",{value:!0});ZO.bufferToggle=void 0;var L9=I(),eI=X0(),iy=G9();function ny(Z,$){return(J)=>new L9.Observable((Y)=>{let X=[];(0,L9.from)(Z).subscribe((0,L9.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new L9.Subscription,W=()=>{(0,iy.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,L9.from)($(z)).subscribe((0,L9.operate)({destination:Y,next:W,complete:eI.noop})))},complete:eI.noop})),J.subscribe((0,L9.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}ZO.bufferToggle=ny});var zO=q((YO)=>{Object.defineProperty(YO,"__esModule",{value:!0});YO.bufferWhen=void 0;var Wq=I(),ay=X0();function ry(Z){return($)=>new Wq.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,Wq.from)(Z()).subscribe(X=(0,Wq.operate)({destination:J,next:z,complete:ay.noop}))};z(),$.subscribe((0,Wq.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}YO.bufferWhen=ry});var qO=q((HO)=>{Object.defineProperty(HO,"__esModule",{value:!0});HO.catchError=void 0;var JN=I();function KO(Z){return($)=>new JN.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,JN.operate)({destination:J,error:(K)=>{if(z=(0,JN.from)(Z(K,KO(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}HO.catchError=KO});var YN=q((WO)=>{Object.defineProperty(WO,"__esModule",{value:!0});WO.scanInternals=void 0;var sy=I();function ty(Z,$,J,Y,X,z,K){let Q=J,W=$,D=0;z.subscribe((0,sy.operate)({destination:K,next:(w)=>{let f=D++;W=Q?Z(W,w,f):(Q=!0,w),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}WO.scanInternals=ty});var uH=q((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.reduce=void 0;var oy=YN(),ey=I();function Zm(Z,$){let J=arguments.length>=2;return(Y)=>new ey.Observable((X)=>(0,oy.scanInternals)(Z,$,J,!1,!0,Y,X))}BO.reduce=Zm});var XN=q((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.toArray=void 0;var $m=uH(),Jm=I(),Ym=(Z,$)=>(Z.push($),Z);function Xm(){return(Z)=>new Jm.Observable(($)=>{(0,$m.reduce)(Ym,[])(Z).subscribe($)})}GO.toArray=Xm});var zN=q((LO)=>{Object.defineProperty(LO,"__esModule",{value:!0});LO.joinAllInternals=void 0;var zm=v0(),Km=cH(),Hm=vW(),Qm=D9(),qm=XN();function Wm(Z,$){return(0,Hm.pipe)((0,qm.toArray)(),(0,Qm.mergeMap)((J)=>Z(J)),$?(0,Km.mapOneOrManyArgs)($):zm.identity)}LO.joinAllInternals=Wm});var OO=q((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.combineLatestAll=void 0;var Nm=Jq(),Bm=zN();function Fm(Z){return(0,Bm.joinAllInternals)(Nm.combineLatest,Z)}UO.combineLatestAll=Fm});var fO=q((kO)=>{Object.defineProperty(kO,"__esModule",{value:!0});kO.combineLatestWith=void 0;var Gm=Jq(),Dm=I();function Lm(...Z){return($)=>new Dm.Observable((J)=>(0,Gm.combineLatestInit)([$,...Z])(J))}kO.combineLatestWith=Lm});var KN=q((VO)=>{Object.defineProperty(VO,"__esModule",{value:!0});VO.concatMap=void 0;var wm=D9();function Um(Z){return(0,wm.mergeMap)(Z,1)}VO.concatMap=Um});var MO=q((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.concatMapTo=void 0;var Im=KN();function Om(Z){return(0,Im.concatMap)(()=>Z)}AO.concatMapTo=Om});var TO=q((hO)=>{Object.defineProperty(hO,"__esModule",{value:!0});hO.concatWith=void 0;var CO=I(),km=Xq();function Em(...Z){return($)=>new CO.Observable((J)=>{(0,km.concatAll)()((0,CO.from)([$,...Z])).subscribe(J)})}hO.concatWith=Em});var mO=q((RO)=>{Object.defineProperty(RO,"__esModule",{value:!0});RO.fromSubscribable=void 0;var fm=I();function Vm(Z){return new fm.Observable(($)=>Z.subscribe($))}RO.fromSubscribable=Vm});var gO=q((_O)=>{Object.defineProperty(_O,"__esModule",{value:!0});_O.connect=void 0;var jO=I(),Pm=q0(),Am=mO(),xm={connector:()=>new Pm.Subject};function Mm(Z,$=xm){let{connector:J}=$;return(Y)=>new jO.Observable((X)=>{let z=J();(0,jO.from)(Z((0,Am.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}_O.connect=Mm});var cO=q((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.count=void 0;var Cm=uH();function hm(Z){return(0,Cm.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}bO.count=hm});var pO=q((uO)=>{Object.defineProperty(uO,"__esModule",{value:!0});uO.debounce=void 0;var Nq=I(),vm=X0();function Tm(Z){return($)=>new Nq.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,Nq.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,Nq.operate)({destination:J,next:K,complete:vm.noop}),(0,Nq.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}uO.debounce=Tm});var rO=q((nO)=>{Object.defineProperty(nO,"__esModule",{value:!0});nO.debounceTime=void 0;var Rm=h0(),iO=I(),ym=u0();function mm(Z,$=Rm.asyncScheduler){return(J)=>new iO.Observable((Y)=>{let X,z;J.subscribe((0,iO.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,ym.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}nO.debounceTime=mm});var eO=q((tO)=>{Object.defineProperty(tO,"__esModule",{value:!0});tO.defaultIfEmpty=void 0;var sO=I();function jm(Z){return($)=>new sO.Observable((J)=>{let Y=!1;$.subscribe((0,sO.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}tO.defaultIfEmpty=jm});var HN=q(($k)=>{Object.defineProperty($k,"__esModule",{value:!0});$k.take=void 0;var _m=C8(),Zk=I();function Sm(Z){return Z<=0?()=>_m.EMPTY:($)=>new Zk.Observable((J)=>{let Y=0,X=(0,Zk.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}$k.take=Sm});var QN=q((Xk)=>{Object.defineProperty(Xk,"__esModule",{value:!0});Xk.ignoreElements=void 0;var Yk=I(),gm=X0();function bm(){return(Z)=>new Yk.Observable(($)=>{Z.subscribe((0,Yk.operate)({destination:$,next:gm.noop}))})}Xk.ignoreElements=bm});var WN=q((Qk)=>{Object.defineProperty(Qk,"__esModule",{value:!0});Qk.delayWhen=void 0;var dm=nW(),Kk=HN(),cm=QN(),um=D9(),qN=hW(),lm=dH();function Hk(Z,$){if($)return(J)=>(0,dm.concat)((0,qN.rx)($,(0,Kk.take)(1),(0,cm.ignoreElements)()),(0,qN.rx)(J,Hk(Z)));return(0,um.mergeMap)((J,Y)=>(0,qN.rx)(Z(J,Y),(0,Kk.take)(1),(0,lm.map)(()=>J)))}Qk.delayWhen=Hk});var Bk=q((Wk)=>{Object.defineProperty(Wk,"__esModule",{value:!0});Wk.delay=void 0;var pm=h0(),im=WN(),nm=k6();function am(Z,$=pm.asyncScheduler){let J=(0,nm.timer)(Z,$);return(0,im.delayWhen)(()=>J)}Wk.delay=am});var Dk=q((Fk)=>{Object.defineProperty(Fk,"__esModule",{value:!0});Fk.observeNotification=void 0;function rm(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}Fk.observeNotification=rm});var Ik=q((wk)=>{Object.defineProperty(wk,"__esModule",{value:!0});wk.dematerialize=void 0;var sm=Dk(),Lk=I();function tm(){return(Z)=>new Lk.Observable(($)=>{Z.subscribe((0,Lk.operate)({destination:$,next:(J)=>(0,sm.observeNotification)(J,$)}))})}wk.dematerialize=tm});var Ek=q((Ok)=>{Object.defineProperty(Ok,"__esModule",{value:!0});Ok.distinct=void 0;var Bq=I(),om=X0();function em(Z,$){return(J)=>new Bq.Observable((Y)=>{let X=new Set;J.subscribe((0,Bq.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,Bq.from)($).subscribe((0,Bq.operate)({destination:Y,next:()=>X.clear(),complete:om.noop}))})}Ok.distinct=em});var NN=q((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.distinctUntilChanged=void 0;var Zj=v0(),fk=I();function $j(Z,$=Zj.identity){return Z=Z??Jj,(J)=>new fk.Observable((Y)=>{let X,z=!0;J.subscribe((0,fk.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}Vk.distinctUntilChanged=$j;function Jj(Z,$){return Z===$}});var Mk=q((Ak)=>{Object.defineProperty(Ak,"__esModule",{value:!0});Ak.distinctUntilKeyChanged=void 0;var Yj=NN();function Xj(Z,$){return(0,Yj.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}Ak.distinctUntilKeyChanged=Xj});var Rk=q((vk)=>{Object.defineProperty(vk,"__esModule",{value:!0});vk.elementAt=void 0;var Ck=TW(),hk=I();function zj(Z,$){if(Z<0)throw new Ck.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new hk.Observable((X)=>{let z=0,K=(0,hk.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new Ck.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}vk.elementAt=zj});var jk=q((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.endWith=void 0;var BN=I();function Kj(...Z){return($)=>new BN.Observable((J)=>{$.subscribe((0,BN.operate)({destination:J,complete:()=>{(0,BN.subscribeToArray)(Z,J)}}))})}yk.endWith=Kj});var bk=q((Sk)=>{Object.defineProperty(Sk,"__esModule",{value:!0});Sk.every=void 0;var _k=I();function Hj(Z,$){return(J)=>new _k.Observable((Y)=>{let X=0;J.subscribe((0,_k.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}Sk.every=Hj});var FN=q((dk)=>{Object.defineProperty(dk,"__esModule",{value:!0});dk.exhaustMap=void 0;var Fq=I();function Qj(Z){return($)=>new Fq.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,Fq.operate)({destination:J,next:(K)=>{if(!X)X=(0,Fq.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,Fq.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}dk.exhaustMap=Qj});var pk=q((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.exhaustAll=void 0;var qj=FN(),Wj=v0();function Nj(){return(0,qj.exhaustMap)(Wj.identity)}uk.exhaustAll=Nj});var ak=q((ik)=>{Object.defineProperty(ik,"__esModule",{value:!0});ik.expand=void 0;var Bj=I(),Fj=Yq();function Gj(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new Bj.Observable((X)=>(0,Fj.mergeInternals)(Y,X,Z,$,void 0,!0,J))}ik.expand=Gj});var tk=q((rk)=>{Object.defineProperty(rk,"__esModule",{value:!0});rk.finalize=void 0;var Dj=I();function Lj(Z){return($)=>new Dj.Observable((J)=>{$.subscribe(J),J.add(Z)})}rk.finalize=Lj});var GN=q((ZE)=>{Object.defineProperty(ZE,"__esModule",{value:!0});ZE.createFind=ZE.find=void 0;var ok=I();function wj(Z){return($)=>new ok.Observable((J)=>ek(Z,"value",$,J))}ZE.find=wj;function ek(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,ok.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}ZE.createFind=ek});var XE=q((JE)=>{Object.defineProperty(JE,"__esModule",{value:!0});JE.findIndex=void 0;var Ij=I(),Oj=GN();function kj(Z){return($)=>new Ij.Observable((J)=>(0,Oj.createFind)(Z,"index",$,J))}JE.findIndex=kj});var QE=q((KE)=>{Object.defineProperty(KE,"__esModule",{value:!0});KE.first=void 0;var zE=I(),Ej=d8();function fj(Z,$){let J=arguments.length>=2;return(Y)=>new zE.Observable((X)=>{let z=0,K=(0,zE.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new Ej.EmptyError)}});Y.subscribe(K)})}KE.first=fj});var NE=q((qE)=>{Object.defineProperty(qE,"__esModule",{value:!0});qE.groupBy=void 0;var kQ=I(),Vj=q0();function Pj(Z,$,J,Y){return(X)=>new kQ.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(V)=>{Q.forEach(V),V(z)},D=(V)=>W((A)=>A.error(V)),w=(0,kQ.operate)({destination:z,next:(V)=>{try{let A=Z(V),x=Q.get(A);if(!x){Q.set(A,x=Y?Y():new Vj.Subject);let y=f(A,x);if(z.next(y),J){let V0=(0,kQ.operate)({destination:x,next:()=>{x.complete(),V0?.unsubscribe()},finalize:()=>Q.delete(A)});w.add((0,kQ.from)(J(y)).subscribe(V0))}}x.next(K?K(V):V)}catch(A){D(A)}},error:D,complete:()=>W((V)=>V.complete()),finalize:()=>Q.clear()});X.subscribe(w);function f(V,A){let x=new kQ.Observable((y)=>A.subscribe(y));return x.key=V,x}})}qE.groupBy=Pj});var DE=q((FE)=>{Object.defineProperty(FE,"__esModule",{value:!0});FE.isEmpty=void 0;var BE=I();function Aj(){return(Z)=>new BE.Observable(($)=>{Z.subscribe((0,BE.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}FE.isEmpty=Aj});var IE=q((wE)=>{Object.defineProperty(wE,"__esModule",{value:!0});wE.last=void 0;var LE=I(),xj=d8();function Mj(Z,$){let J=arguments.length>=2;return(Y)=>new LE.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,LE.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new xj.EmptyError)}}))})}wE.last=Mj});var EE=q((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.mapTo=void 0;var Cj=dH();function hj(Z){return(0,Cj.map)(()=>Z)}OE.mapTo=hj});var PE=q((fE)=>{Object.defineProperty(fE,"__esModule",{value:!0});fE.materialize=void 0;var EQ=I();function vj(){return(Z)=>new EQ.Observable(($)=>{Z.subscribe((0,EQ.operate)({destination:$,next:(J)=>{$.next((0,EQ.nextNotification)(J))},error:(J)=>{$.next((0,EQ.errorNotification)(J)),$.complete()},complete:()=>{$.next(EQ.COMPLETE_NOTIFICATION),$.complete()}}))})}fE.materialize=vj});var ME=q((AE)=>{Object.defineProperty(AE,"__esModule",{value:!0});AE.max=void 0;var Tj=uH(),Rj=I();function yj(Z){return(0,Tj.reduce)((0,Rj.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}AE.max=yj});var vE=q((CE)=>{Object.defineProperty(CE,"__esModule",{value:!0});CE.mergeMapTo=void 0;var mj=D9();function jj(Z,$){return(0,mj.mergeMap)(()=>Z,$)}CE.mergeMapTo=jj});var yE=q((TE)=>{Object.defineProperty(TE,"__esModule",{value:!0});TE.mergeScan=void 0;var _j=I(),Sj=Yq();function gj(Z,$,J=1/0){return(Y)=>new _j.Observable((X)=>{let z=$;return(0,Sj.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}TE.mergeScan=gj});var SE=q((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.mergeWith=void 0;var mE=I(),bj=UQ();function dj(...Z){return($)=>new mE.Observable((J)=>{(0,bj.mergeAll)()((0,mE.from)([$,...Z])).subscribe(J)})}jE.mergeWith=dj});var dE=q((gE)=>{Object.defineProperty(gE,"__esModule",{value:!0});gE.min=void 0;var cj=uH(),uj=I();function lj(Z){return(0,cj.reduce)((0,uj.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}gE.min=lj});var lE=q((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.onErrorResumeNextWith=void 0;var pj=OQ(),ij=tW();function nj(...Z){let $=(0,pj.argsOrArgArray)(Z);return(J)=>(0,ij.onErrorResumeNext)(J,...$)}cE.onErrorResumeNextWith=nj});var aE=q((iE)=>{Object.defineProperty(iE,"__esModule",{value:!0});iE.pairwise=void 0;var pE=I();function aj(){return(Z)=>new pE.Observable(($)=>{let J,Y=!1;Z.subscribe((0,pE.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}iE.pairwise=aj});var tE=q((rE)=>{Object.defineProperty(rE,"__esModule",{value:!0});rE.raceWith=void 0;var rj=oW(),sj=I(),tj=v0();function oj(...Z){return!Z.length?tj.identity:($)=>new sj.Observable((J)=>{(0,rj.raceInit)([$,...Z])(J)})}rE.raceWith=oj});var Zf=q((oE)=>{Object.defineProperty(oE,"__esModule",{value:!0});oE.repeat=void 0;var Gq=I(),ej=C8(),Z_=k6();function $_(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>ej.EMPTY:(Y)=>new Gq.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let D=typeof J==="number"?(0,Z_.timer)(J):(0,Gq.from)(J(z)),w=(0,Gq.operate)({destination:X,next:()=>{w.unsubscribe(),W()}});D.subscribe(w)}else W()},W=()=>{let D=!1;if(K=Y.subscribe((0,Gq.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else D=!0;else X.complete()}})),D)Q()};W()})}oE.repeat=$_});var Yf=q(($f)=>{Object.defineProperty($f,"__esModule",{value:!0});$f.repeatWhen=void 0;var Dq=I(),J_=q0();function Y_(Z){return($)=>new Dq.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),D=()=>{if(!z)z=new J_.Subject,(0,Dq.from)(Z(z)).subscribe((0,Dq.operate)({destination:J,next:()=>{if(Y)w();else X=!0},complete:()=>{K=!0,W()}}));return z},w=()=>{if(Q=!1,Y=$.subscribe((0,Dq.operate)({destination:J,complete:()=>{Q=!0,!W()&&D().next()}})),X)Y.unsubscribe(),Y=null,X=!1,w()};w()})}$f.repeatWhen=Y_});var Kf=q((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.retry=void 0;var Lq=I(),X_=v0(),z_=k6();function K_(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?X_.identity:(z)=>new Lq.Observable((K)=>{let Q=0,W,D=()=>{let w=!1;if(W=z.subscribe((0,Lq.operate)({destination:K,next:(f)=>{if(X)Q=0;K.next(f)},error:(f)=>{if(Q++<J){let V=()=>{if(W)W.unsubscribe(),W=null,D();else w=!0};if(Y!=null){let A=typeof Y==="number"?(0,z_.timer)(Y):(0,Lq.from)(Y(f,Q)),x=(0,Lq.operate)({destination:K,next:()=>{x.unsubscribe(),V()},complete:()=>{K.complete()}});A.subscribe(x)}else V()}else K.error(f)}})),w)W.unsubscribe(),W=null,D()};D()})}Xf.retry=K_});var qf=q((Hf)=>{Object.defineProperty(Hf,"__esModule",{value:!0});Hf.retryWhen=void 0;var wq=I(),H_=q0();function Q_(Z){return($)=>new wq.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,wq.operate)({destination:J,error:(Q)=>{if(!z)z=new H_.Subject,(0,wq.from)(Z(z)).subscribe((0,wq.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}Hf.retryWhen=Q_});var DN=q((Wf)=>{Object.defineProperty(Wf,"__esModule",{value:!0});Wf.sample=void 0;var Uq=I(),q_=X0();function W_(Z){return($)=>new Uq.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,Uq.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,Uq.from)(Z).subscribe((0,Uq.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:q_.noop}))})}Wf.sample=W_});var Gf=q((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.sampleTime=void 0;var N_=h0(),B_=DN(),F_=rW();function G_(Z,$=N_.asyncScheduler){return(0,B_.sample)((0,F_.interval)(Z,$))}Bf.sampleTime=G_});var wf=q((Df)=>{Object.defineProperty(Df,"__esModule",{value:!0});Df.scan=void 0;var D_=I(),L_=YN();function w_(Z,$){let J=arguments.length>=2;return(Y)=>new D_.Observable((X)=>(0,L_.scanInternals)(Z,$,J,!0,!1,Y,X))}Df.scan=w_});var kf=q((If)=>{Object.defineProperty(If,"__esModule",{value:!0});If.sequenceEqual=void 0;var LN=I();function U_(Z,$=(J,Y)=>J===Y){return(J)=>new LN.Observable((Y)=>{let X=Uf(),z=Uf(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,D)=>{let w=(0,LN.operate)({destination:Y,next:(f)=>{let{buffer:V,complete:A}=D;if(V.length===0)A?K(!1):W.buffer.push(f);else!$(f,V.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:f,buffer:V}=D;f&&K(V.length===0),w?.unsubscribe()}});return w};J.subscribe(Q(X,z)),(0,LN.from)(Z).subscribe(Q(z,X))})}If.sequenceEqual=U_;function Uf(){return{buffer:[],complete:!1}}});var UN=q((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.share=void 0;var fQ=I(),I_=q0();function O_(Z={}){let{connector:$=()=>new I_.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,D=0,w=!1,f=!1,V=()=>{Q?.unsubscribe(),Q=void 0},A=()=>{V(),K=W=void 0,w=f=!1},x=()=>{let y=K;A(),y?.unsubscribe()};return new fQ.Observable((y)=>{if(D++,!f&&!w)V();let V0=W=W??$();if(y.add(()=>{if(D--,D===0&&!f&&!w)Q=wN(x,X)}),V0.subscribe(y),!K&&D>0)K=new fQ.Subscriber({next:(z0)=>V0.next(z0),error:(z0)=>{f=!0,V(),Q=wN(A,J,z0),V0.error(z0)},complete:()=>{w=!0,V(),Q=wN(A,Y),V0.complete()}}),(0,fQ.from)(z).subscribe(K)})}}Ef.share=O_;function wN(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new fQ.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,fQ.from)($(...J)).subscribe(Y)}});var Af=q((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});Vf.shareReplay=void 0;var k_=PW(),E_=UN();function f_(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,E_.share)({connector:()=>new k_.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}Vf.shareReplay=f_});var hf=q((Mf)=>{Object.defineProperty(Mf,"__esModule",{value:!0});Mf.single=void 0;var xf=I(),V_=d8(),P_=yW(),A_=RW();function x_(Z){return($)=>new xf.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,xf.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new P_.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new A_.NotFoundError("No matching values"):new V_.EmptyError)}}))})}Mf.single=x_});var Rf=q((vf)=>{Object.defineProperty(vf,"__esModule",{value:!0});vf.skip=void 0;var M_=zq();function C_(Z){return(0,M_.filter)(($,J)=>Z<=J)}vf.skip=C_});var _f=q((mf)=>{Object.defineProperty(mf,"__esModule",{value:!0});mf.skipLast=void 0;var h_=v0(),yf=I();function v_(Z){return Z<=0?h_.identity:($)=>new yf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,yf.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}mf.skipLast=v_});var bf=q((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});Sf.skipUntil=void 0;var Iq=I(),T_=X0();function R_(Z){return($)=>new Iq.Observable((J)=>{let Y=!1,X=(0,Iq.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:T_.noop});(0,Iq.from)(Z).subscribe(X),$.subscribe((0,Iq.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}Sf.skipUntil=R_});var lf=q((cf)=>{Object.defineProperty(cf,"__esModule",{value:!0});cf.skipWhile=void 0;var df=I();function y_(Z){return($)=>new df.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,df.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}cf.skipWhile=y_});var af=q((pf)=>{Object.defineProperty(pf,"__esModule",{value:!0});pf.startWith=void 0;var IN=I();function m_(...Z){return($)=>new IN.Observable((J)=>{(0,IN.subscribeToArray)(Z,(0,IN.operate)({destination:J,complete:()=>$.subscribe(J)}))})}pf.startWith=m_});var VQ=q((rf)=>{Object.defineProperty(rf,"__esModule",{value:!0});rf.switchMap=void 0;var Oq=I();function j_(Z){return($)=>new Oq.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,Oq.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,Oq.from)(Z(Q,W)).subscribe(Y=(0,Oq.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}rf.switchMap=j_});var ef=q((tf)=>{Object.defineProperty(tf,"__esModule",{value:!0});tf.switchAll=void 0;var __=VQ(),S_=v0();function g_(){return(0,__.switchMap)(S_.identity)}tf.switchAll=g_});var JV=q((ZV)=>{Object.defineProperty(ZV,"__esModule",{value:!0});ZV.switchMapTo=void 0;var b_=VQ();function d_(Z){return(0,b_.switchMap)(()=>Z)}ZV.switchMapTo=d_});var KV=q((XV)=>{Object.defineProperty(XV,"__esModule",{value:!0});XV.switchScan=void 0;var c_=VQ(),YV=I();function u_(Z,$){return(J)=>new YV.Observable((Y)=>{let X=$;return(0,c_.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,YV.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}XV.switchScan=u_});var WV=q((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});QV.takeLast=void 0;var l_=C8(),HV=I();function p_(Z){return Z<=0?()=>l_.EMPTY:($)=>new HV.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,HV.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}QV.takeLast=p_});var FV=q((NV)=>{Object.defineProperty(NV,"__esModule",{value:!0});NV.takeUntil=void 0;var ON=I(),i_=X0();function n_(Z){return($)=>new ON.Observable((J)=>{(0,ON.from)(Z).subscribe((0,ON.operate)({destination:J,next:()=>J.complete(),complete:i_.noop})),!J.closed&&$.subscribe(J)})}NV.takeUntil=n_});var wV=q((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.takeWhile=void 0;var GV=I();function a_(Z,$=!1){return(J)=>new GV.Observable((Y)=>{let X=0,z=(0,GV.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}DV.takeWhile=a_});var OV=q((UV)=>{Object.defineProperty(UV,"__esModule",{value:!0});UV.tap=void 0;var kN=I(),r_=v0();function s_(Z){let $=(0,kN.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new kN.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,kN.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):r_.identity}UV.tap=s_});var EN=q((kV)=>{Object.defineProperty(kV,"__esModule",{value:!0});kV.throttle=void 0;var kq=I();function t_(Z,$){return(J)=>new kq.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,D=!1,w=()=>{if(W?.unsubscribe(),W=null,z)A(),D&&Y.complete()},f=()=>{W=null,D&&Y.complete()},V=(x)=>W=(0,kq.from)(Z(x)).subscribe((0,kq.operate)({destination:Y,next:w,complete:f})),A=()=>{if(K){K=!1;let x=Q;Q=null,Y.next(x),!D&&V(x)}};J.subscribe((0,kq.operate)({destination:Y,next:(x)=>{K=!0,Q=x,!(W&&!W.closed)&&(X?A():V(x))},complete:()=>{D=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}kV.throttle=t_});var PV=q((fV)=>{Object.defineProperty(fV,"__esModule",{value:!0});fV.throttleTime=void 0;var o_=h0(),e_=EN(),ZS=k6();function $S(Z,$=o_.asyncScheduler,J){let Y=(0,ZS.timer)(Z,$);return(0,e_.throttle)(()=>Y,J)}fV.throttleTime=$S});var CV=q((xV)=>{Object.defineProperty(xV,"__esModule",{value:!0});xV.throwIfEmpty=void 0;var JS=d8(),AV=I();function YS(Z=XS){return($)=>new AV.Observable((J)=>{let Y=!1;$.subscribe((0,AV.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}xV.throwIfEmpty=YS;function XS(){return new JS.EmptyError}});var RV=q((vV)=>{Object.defineProperty(vV,"__esModule",{value:!0});vV.TimeInterval=vV.timeInterval=void 0;var zS=h0(),hV=I();function KS(Z=zS.asyncScheduler){return($)=>new hV.Observable((J)=>{let Y=Z.now();$.subscribe((0,hV.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new fN(X,K))}}))})}vV.timeInterval=KS;class fN{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}vV.TimeInterval=fN});var jV=q((yV)=>{Object.defineProperty(yV,"__esModule",{value:!0});yV.timeoutWith=void 0;var QS=h0(),qS=oQ(),WS=eQ();function NS(Z,$,J){let Y,X,z;if(J=J??QS.asyncScheduler,(0,qS.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,WS.timeout)({first:Y,each:X,scheduler:J,with:z})}yV.timeoutWith=NS});var gV=q((_V)=>{Object.defineProperty(_V,"__esModule",{value:!0});_V.timestamp=void 0;var BS=aQ(),FS=dH();function GS(Z=BS.dateTimestampProvider){return(0,FS.map)(($)=>({value:$,timestamp:Z.now()}))}_V.timestamp=GS});var uV=q((dV)=>{Object.defineProperty(dV,"__esModule",{value:!0});dV.window=void 0;var Eq=I(),bV=q0(),DS=X0();function LS(Z){return($)=>new Eq.Observable((J)=>{let Y=new bV.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,Eq.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,Eq.from)(Z).subscribe((0,Eq.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new bV.Subject)},complete:DS.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}dV.window=LS});var aV=q((iV)=>{Object.defineProperty(iV,"__esModule",{value:!0});iV.windowCount=void 0;var lV=I(),pV=q0();function wS(Z,$=0){let J=$>0?$:Z;return(Y)=>new lV.Observable((X)=>{let z=[new pV.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,lV.operate)({destination:X,next:(W)=>{for(let w of z)w.next(W);let D=Q-Z+1;if(D>=0&&D%J===0)z.shift().complete();if(++Q%J===0){let w=new pV.Subject;z.push(w),X.next(w.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}iV.windowCount=wS});var oV=q((sV)=>{Object.defineProperty(sV,"__esModule",{value:!0});sV.windowTime=void 0;var US=q0(),IS=h0(),VN=I(),OS=G9(),kS=O6(),rV=u0();function ES(Z,...$){let J=(0,kS.popScheduler)($)??IS.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new VN.Observable((K)=>{let Q=[],W=!1,D=(A)=>{let{window:x,subs:y}=A;x.complete(),y.unsubscribe(),(0,OS.arrRemove)(Q,A),W&&w()},w=()=>{if(Q){let A=new VN.Subscription;K.add(A);let x=new US.Subject,y={window:x,subs:A,seen:0};Q.push(y),K.next(x.asObservable()),(0,rV.executeSchedule)(A,J,()=>D(y),Z)}};if(Y!==null&&Y>=0)(0,rV.executeSchedule)(K,J,w,Y,!0);else W=!0;w();let f=(A)=>Q.slice().forEach(A),V=(A)=>{f(({window:x})=>A(x)),A(K),K.unsubscribe()};return z.subscribe((0,VN.operate)({destination:K,next:(A)=>{f((x)=>{x.window.next(A),X<=++x.seen&&D(x)})},error:(A)=>V((x)=>x.error(A)),complete:()=>V((A)=>A.complete())})),()=>{Q=null}})}sV.windowTime=ES});var JP=q((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.windowToggle=void 0;var w9=I(),fS=q0(),eV=X0(),VS=G9();function PS(Z,$){return(J)=>new w9.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,w9.from)(Z).subscribe((0,w9.operate)({destination:Y,next:(K)=>{let Q=new fS.Subject;X.push(Q);let W=new w9.Subscription,D=()=>{(0,VS.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},w;try{w=(0,w9.from)($(K))}catch(f){z(f);return}Y.next(Q),W.add(w.subscribe((0,w9.operate)({destination:Y,next:D,error:z,complete:eV.noop})))},complete:eV.noop})),J.subscribe((0,w9.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}ZP.windowToggle=PS});var zP=q((YP)=>{Object.defineProperty(YP,"__esModule",{value:!0});YP.windowWhen=void 0;var fq=I(),AS=q0(),xS=X0();function MS(Z){return($)=>new fq.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new AS.Subject,J.next(Y.asObservable());let Q;try{Q=(0,fq.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,fq.operate)({destination:J,next:K,error:z,complete:xS.noop}))};K(),$.subscribe((0,fq.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}YP.windowWhen=MS});var QP=q((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.withLatestFrom=void 0;var Vq=I(),CS=v0(),hS=X0(),vS=O6();function TS(...Z){let $=(0,vS.popResultSelector)(Z);return(J)=>new Vq.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,Vq.from)(Z[W]).subscribe((0,Vq.operate)({destination:Y,next:(D)=>{if(z[W]=D,!Q&&!K[W])K[W]=!0,(Q=K.every(CS.identity))&&(K=null)},complete:hS.noop}));J.subscribe((0,Vq.operate)({destination:Y,next:(W)=>{if(Q){let D=[W,...z];Y.next($?$(...D):D)}}}))})}KP.withLatestFrom=TS});var NP=q((qP)=>{Object.defineProperty(qP,"__esModule",{value:!0});qP.zipAll=void 0;var RS=Hq(),yS=zN();function mS(Z){return(0,yS.joinAllInternals)(RS.zip,Z)}qP.zipAll=mS});var GP=q((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.zipWith=void 0;var jS=I(),_S=Hq();function SS(...Z){return($)=>new jS.Observable((J)=>{(0,_S.zip)($,...Z).subscribe(J)})}BP.zipWith=SS});var LP=q((H)=>{var gS=H&&H.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),bS=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))gS($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var E6=I();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return E6.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return E6.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return E6.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return E6.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return E6.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return E6.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return E6.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return E6.isObservable}});var dS=nD();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return dS.animationFrames}});var cS=q0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return cS.Subject}});var uS=ZL();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return uS.BehaviorSubject}});var lS=PW();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return lS.ReplaySubject}});var pS=AW();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return pS.AsyncSubject}});var iS=uL();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return iS.asapScheduler}});var nS=h0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return nS.asyncScheduler}});var aS=Jw();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return aS.queueScheduler}});var rS=Gw();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return rS.animationFrameScheduler}});var DP=Uw();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return DP.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return DP.VirtualAction}});var sS=CW();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return sS.Scheduler}});var tS=hW();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return tS.rx}});var oS=vW();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return oS.pipe}});var eS=X0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return eS.noop}});var Zg=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return Zg.identity}});var $g=Tw();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return $g.lastValueFrom}});var Jg=mw();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return Jg.firstValueFrom}});var Yg=TW();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Yg.ArgumentOutOfRangeError}});var Xg=d8();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return Xg.EmptyError}});var zg=RW();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return zg.NotFoundError}});var Kg=yW();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return Kg.SequenceError}});var Hg=eQ();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return Hg.TimeoutError}});var Qg=gU();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return Qg.bindCallback}});var qg=cU();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return qg.bindNodeCallback}});var Wg=Jq();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return Wg.combineLatest}});var Ng=nW();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return Ng.concat}});var Bg=w2();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return Bg.connectable}});var Fg=IQ();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return Fg.defer}});var Gg=O2();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return Gg.forkJoin}});var Dg=M2();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return Dg.fromEvent}});var Lg=R2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return Lg.fromEventPattern}});var wg=_2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return wg.generate}});var Ug=b2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return Ug.iif}});var Ig=rW();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return Ig.interval}});var Og=s2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return Og.merge}});var kg=e2();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return kg.of}});var Eg=tW();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return Eg.onErrorResumeNext}});var fg=DI();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return fg.partition}});var Vg=oW();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return Vg.race}});var Pg=EI();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return Pg.range}});var Ag=PI();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return Ag.throwError}});var xg=k6();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return xg.timer}});var Mg=CI();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return Mg.using}});var Cg=Hq();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return Cg.zip}});var hg=wQ();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return hg.scheduled}});var vg=C8();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return vg.EMPTY}});var Tg=yI();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return Tg.NEVER}});bS(jI(),H);var Rg=ZN();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return Rg.audit}});var yg=dI();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return yg.auditTime}});var mg=lI();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return mg.buffer}});var jg=aI();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return jg.bufferCount}});var _g=oI();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return _g.bufferTime}});var Sg=JO();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return Sg.bufferToggle}});var gg=zO();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return gg.bufferWhen}});var bg=qO();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return bg.catchError}});var dg=OO();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return dg.combineLatestAll}});var cg=fO();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return cg.combineLatestWith}});var ug=Xq();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return ug.concatAll}});var lg=KN();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return lg.concatMap}});var pg=MO();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return pg.concatMapTo}});var ig=TO();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return ig.concatWith}});var ng=gO();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return ng.connect}});var ag=cO();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return ag.count}});var rg=pO();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return rg.debounce}});var sg=rO();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return sg.debounceTime}});var tg=eO();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return tg.defaultIfEmpty}});var og=Bk();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return og.delay}});var eg=WN();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return eg.delayWhen}});var Zb=Ik();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return Zb.dematerialize}});var $b=Ek();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return $b.distinct}});var Jb=NN();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return Jb.distinctUntilChanged}});var Yb=Mk();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Yb.distinctUntilKeyChanged}});var Xb=Rk();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return Xb.elementAt}});var zb=jk();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return zb.endWith}});var Kb=bk();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return Kb.every}});var Hb=pk();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return Hb.exhaustAll}});var Qb=FN();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return Qb.exhaustMap}});var qb=ak();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return qb.expand}});var Wb=zq();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return Wb.filter}});var Nb=tk();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return Nb.finalize}});var Bb=GN();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return Bb.find}});var Fb=XE();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return Fb.findIndex}});var Gb=QE();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return Gb.first}});var Db=NE();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return Db.groupBy}});var Lb=QN();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return Lb.ignoreElements}});var wb=DE();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return wb.isEmpty}});var Ub=IE();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return Ub.last}});var Ib=dH();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return Ib.map}});var Ob=EE();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return Ob.mapTo}});var kb=PE();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return kb.materialize}});var Eb=ME();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return Eb.max}});var fb=UQ();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return fb.mergeAll}});var Vb=D9();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return Vb.mergeMap}});var Pb=vE();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return Pb.mergeMapTo}});var Ab=yE();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return Ab.mergeScan}});var xb=SE();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return xb.mergeWith}});var Mb=dE();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return Mb.min}});var Cb=Zq();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return Cb.observeOn}});var hb=lE();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return hb.onErrorResumeNextWith}});var vb=aE();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return vb.pairwise}});var Tb=tE();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return Tb.raceWith}});var Rb=uH();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return Rb.reduce}});var yb=Zf();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return yb.repeat}});var mb=Yf();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return mb.repeatWhen}});var jb=Kf();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return jb.retry}});var _b=qf();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return _b.retryWhen}});var Sb=DN();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return Sb.sample}});var gb=Gf();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return gb.sampleTime}});var bb=wf();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return bb.scan}});var db=kf();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return db.sequenceEqual}});var cb=UN();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return cb.share}});var ub=Af();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return ub.shareReplay}});var lb=hf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return lb.single}});var pb=Rf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return pb.skip}});var ib=_f();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return ib.skipLast}});var nb=bf();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return nb.skipUntil}});var ab=lf();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return ab.skipWhile}});var rb=af();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return rb.startWith}});var sb=$q();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return sb.subscribeOn}});var tb=ef();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return tb.switchAll}});var ob=VQ();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return ob.switchMap}});var eb=JV();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return eb.switchMapTo}});var Zd=KV();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return Zd.switchScan}});var $d=HN();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return $d.take}});var Jd=WV();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Jd.takeLast}});var Yd=FV();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return Yd.takeUntil}});var Xd=wV();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return Xd.takeWhile}});var zd=OV();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return zd.tap}});var Kd=EN();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return Kd.throttle}});var Hd=PV();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Hd.throttleTime}});var Qd=CV();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return Qd.throwIfEmpty}});var qd=RV();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return qd.timeInterval}});var Wd=eQ();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return Wd.timeout}});var Nd=jV();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Nd.timeoutWith}});var Bd=gV();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return Bd.timestamp}});var Fd=XN();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return Fd.toArray}});var Gd=uV();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return Gd.window}});var Dd=aV();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return Dd.windowCount}});var Ld=oV();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return Ld.windowTime}});var wd=JP();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return wd.windowToggle}});var Ud=zP();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return Ud.windowWhen}});var Id=QP();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return Id.withLatestFrom}});var Od=NP();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return Od.zipAll}});var kd=GP();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return kd.zipWith}})});async function PN(Z,$,J){let{max:Y=4}=J??{},X=(K)=>v.defer(()=>v.from($(Z[K])).pipe(v.map((Q)=>({idx:K,v:Q})))),z=v.from(Z.map((K,Q)=>Q)).pipe(v.map(X),v.mergeAll(Y),v.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return v.firstValueFrom(z)}class wP{opQueue=new v.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(v.mergeAll($),v.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=v.defer(()=>v.from(Z()).pipe(v.map((X)=>({id:$,result:X})),v.catchError((X)=>v.of({id:$,error:X})))),Y=v.firstValueFrom(this.opResultStream.pipe(v.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return v.firstValueFrom(v.from(Z).pipe(v.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),v.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=v.lastValueFrom(this.opResultStream.pipe(v.materialize(),v.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var v;var UP=U(()=>{v=YF(LP(),1)});import{randomUUID as Ed}from"crypto";import{closeSync as fd,openSync as Vd,readSync as Pd}from"fs";function xd(Z){if(IP)return;try{if(lH===void 0)lH=Vd(Ad,"r");let $=Buffer.alloc(Z),J=0;while(J<Z){let Y=Pd(lH,$,J,Z-J,null);if(Y<=0)return;J+=Y}return $}catch{if(IP=!0,lH!==void 0){try{fd(lH)}catch{}lH=void 0}return}}function Md(Z){let $=Z[6]??0,J=Z[8]??0;Z[6]=$&15|64,Z[8]=J&63|128;let Y=Z.toString("hex");return`${Y.slice(0,8)}-${Y.slice(8,12)}-${Y.slice(12,16)}-${Y.slice(16,20)}-${Y.slice(20)}`}function Pq(){let Z=xd(16);if(Z===void 0)return Ed({disableEntropyCache:!0});return Md(Z)}var Ad="/dev/urandom",lH,IP=!1;var OP=()=>{};function kP(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function Cd(Z){return/^[A-Za-z]:[\\/]/.test(Z)||Z.startsWith("\\\\")||Z.startsWith("//")}function hd(Z,...$){if(!Cd(Z))return[Z.replace(/\/+$/,""),...$].join("/");let Y=Z.replace(/\//g,"\\").replace(/\\+$/,""),X=$.map((z)=>z.replace(/\//g,"\\"));if(Y.length===0)return["","",...X].join("\\");return[Y,...X].join("\\")}function AN(Z,$){return hd(Z,".cursor","projects",kP($))}var pH=U(()=>{UP();OP()});var VP=q((EP)=>{Object.defineProperty(EP,"__esModule",{value:!0});EP._globalThis=void 0;EP._globalThis=typeof globalThis==="object"?globalThis:global});var PP=q((U9)=>{var vd=U9&&U9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),Td=U9&&U9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))vd($,Z,J)};Object.defineProperty(U9,"__esModule",{value:!0});Td(VP(),U9)});var AP=q((I9)=>{var Rd=I9&&I9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),yd=I9&&I9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))Rd($,Z,J)};Object.defineProperty(I9,"__esModule",{value:!0});yd(PP(),I9)});var xN=q((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.VERSION=void 0;xP.VERSION="1.9.0"});var RP=q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.isCompatible=vP._makeCompatibilityCheck=void 0;var md=xN(),CP=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function hP(Z){let $=new Set([Z]),J=new Set,Y=Z.match(CP);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let D=W.match(CP);if(!D)return z(W);let w={major:+D[1],minor:+D[2],patch:+D[3],prerelease:D[4]};if(w.prerelease!=null)return z(W);if(X.major!==w.major)return z(W);if(X.major===0){if(X.minor===w.minor&&X.patch<=w.patch)return K(W);return z(W)}if(X.minor<=w.minor)return K(W);return z(W)}}vP._makeCompatibilityCheck=hP;vP.isCompatible=hP(md.VERSION)});var O9=q((yP)=>{Object.defineProperty(yP,"__esModule",{value:!0});yP.unregisterGlobal=yP.getGlobal=yP.registerGlobal=void 0;var _d=AP(),iH=xN(),Sd=RP(),gd=iH.VERSION.split(".")[0],PQ=Symbol.for(`opentelemetry.js.api.${gd}`),AQ=_d._globalThis;function bd(Z,$,J,Y=!1){var X;let z=AQ[PQ]=(X=AQ[PQ])!==null&&X!==void 0?X:{version:iH.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==iH.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${iH.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${iH.VERSION}.`),!0}yP.registerGlobal=bd;function dd(Z){var $,J;let Y=($=AQ[PQ])===null||$===void 0?void 0:$.version;if(!Y||!(0,Sd.isCompatible)(Y))return;return(J=AQ[PQ])===null||J===void 0?void 0:J[Z]}yP.getGlobal=dd;function cd(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${iH.VERSION}.`);let J=AQ[PQ];if(J)delete J[Z]}yP.unregisterGlobal=cd});var gP=q((_P)=>{Object.defineProperty(_P,"__esModule",{value:!0});_P.DiagComponentLogger=void 0;var pd=O9();class jP{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return xQ("debug",this._namespace,Z)}error(...Z){return xQ("error",this._namespace,Z)}info(...Z){return xQ("info",this._namespace,Z)}warn(...Z){return xQ("warn",this._namespace,Z)}verbose(...Z){return xQ("verbose",this._namespace,Z)}}_P.DiagComponentLogger=jP;function xQ(Z,$,J){let Y=(0,pd.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var Aq=q((bP)=>{Object.defineProperty(bP,"__esModule",{value:!0});bP.DiagLogLevel=void 0;var id;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(id=bP.DiagLogLevel||(bP.DiagLogLevel={}))});var uP=q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.createLogLevelDiagLogger=void 0;var u8=Aq();function nd(Z,$){if(Z<u8.DiagLogLevel.NONE)Z=u8.DiagLogLevel.NONE;else if(Z>u8.DiagLogLevel.ALL)Z=u8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",u8.DiagLogLevel.ERROR),warn:J("warn",u8.DiagLogLevel.WARN),info:J("info",u8.DiagLogLevel.INFO),debug:J("debug",u8.DiagLogLevel.DEBUG),verbose:J("verbose",u8.DiagLogLevel.VERBOSE)}}dP.createLogLevelDiagLogger=nd});var k9=q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.DiagAPI=void 0;var ad=gP(),rd=uP(),lP=Aq(),xq=O9(),sd="diag";class CN{constructor(){function Z(Y){return function(...X){let z=(0,xq.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:lP.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let w=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=w.stack)!==null&&z!==void 0?z:w.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,xq.getGlobal)("diag"),D=(0,rd.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:lP.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let w=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${w}`),D.warn(`Current logger will overwrite one already registered from ${w}`)}return(0,xq.registerGlobal)("diag",D,$,!0)};$.setLogger=J,$.disable=()=>{(0,xq.unregisterGlobal)(sd,$)},$.createComponentLogger=(Y)=>{return new ad.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new CN;return this._instance}}pP.DiagAPI=CN});var rP=q((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.BaggageImpl=void 0;class nH{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new nH(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new nH(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new nH(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new nH}}nP.BaggageImpl=nH});var oP=q((sP)=>{Object.defineProperty(sP,"__esModule",{value:!0});sP.baggageEntryMetadataSymbol=void 0;sP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var hN=q((eP)=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.baggageEntryMetadataFromString=eP.createBaggage=void 0;var td=k9(),od=rP(),ed=oP(),Zc=td.DiagAPI.instance();function $c(Z={}){return new od.BaggageImpl(new Map(Object.entries(Z)))}eP.createBaggage=$c;function Jc(Z){if(typeof Z!=="string")Zc.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:ed.baggageEntryMetadataSymbol,toString(){return Z}}}eP.baggageEntryMetadataFromString=Jc});var MQ=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.ROOT_CONTEXT=$4.createContextKey=void 0;function Xc(Z){return Symbol.for(Z)}$4.createContextKey=Xc;class Mq{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new Mq($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new Mq($._currentContext);return Y._currentContext.delete(J),Y}}}$4.ROOT_CONTEXT=new Mq});var K4=q((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.DiagConsoleLogger=void 0;var vN=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class Y4{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<vN.length;$++)this[vN[$].n]=Z(vN[$].c)}}X4.DiagConsoleLogger=Y4});var bN=q((H4)=>{Object.defineProperty(H4,"__esModule",{value:!0});H4.createNoopMeter=H4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=H4.NOOP_OBSERVABLE_GAUGE_METRIC=H4.NOOP_OBSERVABLE_COUNTER_METRIC=H4.NOOP_UP_DOWN_COUNTER_METRIC=H4.NOOP_HISTOGRAM_METRIC=H4.NOOP_GAUGE_METRIC=H4.NOOP_COUNTER_METRIC=H4.NOOP_METER=H4.NoopObservableUpDownCounterMetric=H4.NoopObservableGaugeMetric=H4.NoopObservableCounterMetric=H4.NoopObservableMetric=H4.NoopHistogramMetric=H4.NoopGaugeMetric=H4.NoopUpDownCounterMetric=H4.NoopCounterMetric=H4.NoopMetric=H4.NoopMeter=void 0;class TN{constructor(){}createGauge(Z,$){return H4.NOOP_GAUGE_METRIC}createHistogram(Z,$){return H4.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return H4.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return H4.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return H4.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return H4.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return H4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}H4.NoopMeter=TN;class aH{}H4.NoopMetric=aH;class RN extends aH{add(Z,$){}}H4.NoopCounterMetric=RN;class yN extends aH{add(Z,$){}}H4.NoopUpDownCounterMetric=yN;class mN extends aH{record(Z,$){}}H4.NoopGaugeMetric=mN;class jN extends aH{record(Z,$){}}H4.NoopHistogramMetric=jN;class CQ{addCallback(Z){}removeCallback(Z){}}H4.NoopObservableMetric=CQ;class _N extends CQ{}H4.NoopObservableCounterMetric=_N;class SN extends CQ{}H4.NoopObservableGaugeMetric=SN;class gN extends CQ{}H4.NoopObservableUpDownCounterMetric=gN;H4.NOOP_METER=new TN;H4.NOOP_COUNTER_METRIC=new RN;H4.NOOP_GAUGE_METRIC=new mN;H4.NOOP_HISTOGRAM_METRIC=new jN;H4.NOOP_UP_DOWN_COUNTER_METRIC=new yN;H4.NOOP_OBSERVABLE_COUNTER_METRIC=new _N;H4.NOOP_OBSERVABLE_GAUGE_METRIC=new SN;H4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new gN;function Kc(){return H4.NOOP_METER}H4.createNoopMeter=Kc});var U4=q((w4)=>{Object.defineProperty(w4,"__esModule",{value:!0});w4.ValueType=void 0;var wc;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(wc=w4.ValueType||(w4.ValueType={}))});var cN=q((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.defaultTextMapSetter=I4.defaultTextMapGetter=void 0;I4.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};I4.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var V4=q((E4)=>{Object.defineProperty(E4,"__esModule",{value:!0});E4.NoopContextManager=void 0;var Ic=MQ();class k4{active(){return Ic.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}E4.NoopContextManager=k4});var hQ=q((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.ContextAPI=void 0;var Oc=V4(),uN=O9(),P4=k9(),lN="context",kc=new Oc.NoopContextManager;class pN{constructor(){}static getInstance(){if(!this._instance)this._instance=new pN;return this._instance}setGlobalContextManager(Z){return(0,uN.registerGlobal)(lN,Z,P4.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,uN.getGlobal)(lN)||kc}disable(){this._getContextManager().disable(),(0,uN.unregisterGlobal)(lN,P4.DiagAPI.instance())}}A4.ContextAPI=pN});var nN=q((M4)=>{Object.defineProperty(M4,"__esModule",{value:!0});M4.TraceFlags=void 0;var Ec;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Ec=M4.TraceFlags||(M4.TraceFlags={}))});var Cq=q((C4)=>{Object.defineProperty(C4,"__esModule",{value:!0});C4.INVALID_SPAN_CONTEXT=C4.INVALID_TRACEID=C4.INVALID_SPANID=void 0;var fc=nN();C4.INVALID_SPANID="0000000000000000";C4.INVALID_TRACEID="00000000000000000000000000000000";C4.INVALID_SPAN_CONTEXT={traceId:C4.INVALID_TRACEID,spanId:C4.INVALID_SPANID,traceFlags:fc.TraceFlags.NONE}});var hq=q((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.NonRecordingSpan=void 0;var Vc=Cq();class R4{constructor(Z=Vc.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}y4.NonRecordingSpan=R4});var sN=q((_4)=>{Object.defineProperty(_4,"__esModule",{value:!0});_4.getSpanContext=_4.setSpanContext=_4.deleteSpan=_4.setSpan=_4.getActiveSpan=_4.getSpan=void 0;var Pc=MQ(),Ac=hq(),xc=hQ(),aN=(0,Pc.createContextKey)("OpenTelemetry Context Key SPAN");function rN(Z){return Z.getValue(aN)||void 0}_4.getSpan=rN;function Mc(){return rN(xc.ContextAPI.getInstance().active())}_4.getActiveSpan=Mc;function j4(Z,$){return Z.setValue(aN,$)}_4.setSpan=j4;function Cc(Z){return Z.deleteValue(aN)}_4.deleteSpan=Cc;function hc(Z,$){return j4(Z,new Ac.NonRecordingSpan($))}_4.setSpanContext=hc;function vc(Z){var $;return($=rN(Z))===null||$===void 0?void 0:$.spanContext()}_4.getSpanContext=vc});var vq=q((c4)=>{Object.defineProperty(c4,"__esModule",{value:!0});c4.wrapSpanContext=c4.isSpanContextValid=c4.isValidSpanId=c4.isValidTraceId=void 0;var g4=Cq(),_c=hq(),Sc=/^([0-9a-f]{32})$/i,gc=/^[0-9a-f]{16}$/i;function b4(Z){return Sc.test(Z)&&Z!==g4.INVALID_TRACEID}c4.isValidTraceId=b4;function d4(Z){return gc.test(Z)&&Z!==g4.INVALID_SPANID}c4.isValidSpanId=d4;function bc(Z){return b4(Z.traceId)&&d4(Z.spanId)}c4.isSpanContextValid=bc;function dc(Z){return new _c.NonRecordingSpan(Z)}c4.wrapSpanContext=dc});var eN=q((i4)=>{Object.defineProperty(i4,"__esModule",{value:!0});i4.NoopTracer=void 0;var pc=hQ(),l4=sN(),tN=hq(),ic=vq(),oN=pc.ContextAPI.getInstance();class p4{startSpan(Z,$,J=oN.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new tN.NonRecordingSpan;let X=J&&(0,l4.getSpanContext)(J);if(nc(X)&&(0,ic.isSpanContextValid)(X))return new tN.NonRecordingSpan(X);else return new tN.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let Q=z!==null&&z!==void 0?z:oN.active(),W=this.startSpan(Z,X,Q),D=(0,l4.setSpan)(Q,W);return oN.with(D,K,void 0,W)}}i4.NoopTracer=p4;function nc(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var ZB=q((r4)=>{Object.defineProperty(r4,"__esModule",{value:!0});r4.ProxyTracer=void 0;var ac=eN(),rc=new ac.NoopTracer;class a4{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return rc;return this._delegate=Z,this._delegate}}r4.ProxyTracer=a4});var ZA=q((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.NoopTracerProvider=void 0;var sc=eN();class t4{getTracer(Z,$,J){return new sc.NoopTracer}}o4.NoopTracerProvider=t4});var $B=q((JA)=>{Object.defineProperty(JA,"__esModule",{value:!0});JA.ProxyTracerProvider=void 0;var tc=ZB(),oc=ZA(),ec=new oc.NoopTracerProvider;class $A{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new tc.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:ec}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}JA.ProxyTracerProvider=$A});var zA=q((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.SamplingDecision=void 0;var Zu;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Zu=XA.SamplingDecision||(XA.SamplingDecision={}))});var HA=q((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.SpanKind=void 0;var $u;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})($u=KA.SpanKind||(KA.SpanKind={}))});var qA=q((QA)=>{Object.defineProperty(QA,"__esModule",{value:!0});QA.SpanStatusCode=void 0;var Ju;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Ju=QA.SpanStatusCode||(QA.SpanStatusCode={}))});var BA=q((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.validateValue=WA.validateKey=void 0;var zB="[_0-9a-z-*/]",Yu=`[a-z]${zB}{0,255}`,Xu=`[a-z0-9]${zB}{0,240}@[a-z]${zB}{0,13}`,zu=new RegExp(`^(?:${Yu}|${Xu})$`),Ku=/^[ -~]{0,255}[!-~]$/,Hu=/,|=/;function Qu(Z){return zu.test(Z)}WA.validateKey=Qu;function qu(Z){return Ku.test(Z)&&!Hu.test(Z)}WA.validateValue=qu});var IA=q((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.TraceStateImpl=void 0;var FA=BA(),GA=32,Nu=512,DA=",",LA="=";class KB{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+LA+this.get($)),Z},[]).join(DA)}_parse(Z){if(Z.length>Nu)return;if(this._internalState=Z.split(DA).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(LA);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,FA.validateKey)(z)&&(0,FA.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>GA)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,GA))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new KB;return Z._internalState=new Map(this._internalState),Z}}wA.TraceStateImpl=KB});var EA=q((OA)=>{Object.defineProperty(OA,"__esModule",{value:!0});OA.createTraceState=void 0;var Bu=IA();function Fu(Z){return new Bu.TraceStateImpl(Z)}OA.createTraceState=Fu});var PA=q((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.context=void 0;var Gu=hQ();fA.context=Gu.ContextAPI.getInstance()});var MA=q((AA)=>{Object.defineProperty(AA,"__esModule",{value:!0});AA.diag=void 0;var Du=k9();AA.diag=Du.DiagAPI.instance()});var vA=q((CA)=>{Object.defineProperty(CA,"__esModule",{value:!0});CA.NOOP_METER_PROVIDER=CA.NoopMeterProvider=void 0;var Lu=bN();class HB{getMeter(Z,$,J){return Lu.NOOP_METER}}CA.NoopMeterProvider=HB;CA.NOOP_METER_PROVIDER=new HB});var mA=q((RA)=>{Object.defineProperty(RA,"__esModule",{value:!0});RA.MetricsAPI=void 0;var Uu=vA(),QB=O9(),TA=k9(),qB="metrics";class WB{constructor(){}static getInstance(){if(!this._instance)this._instance=new WB;return this._instance}setGlobalMeterProvider(Z){return(0,QB.registerGlobal)(qB,Z,TA.DiagAPI.instance())}getMeterProvider(){return(0,QB.getGlobal)(qB)||Uu.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,QB.unregisterGlobal)(qB,TA.DiagAPI.instance())}}RA.MetricsAPI=WB});var SA=q((jA)=>{Object.defineProperty(jA,"__esModule",{value:!0});jA.metrics=void 0;var Iu=mA();jA.metrics=Iu.MetricsAPI.getInstance()});var cA=q((bA)=>{Object.defineProperty(bA,"__esModule",{value:!0});bA.NoopTextMapPropagator=void 0;class gA{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}bA.NoopTextMapPropagator=gA});var iA=q((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});lA.deleteBaggage=lA.setBaggage=lA.getActiveBaggage=lA.getBaggage=void 0;var Ou=hQ(),ku=MQ(),NB=(0,ku.createContextKey)("OpenTelemetry Baggage Key");function uA(Z){return Z.getValue(NB)||void 0}lA.getBaggage=uA;function Eu(){return uA(Ou.ContextAPI.getInstance().active())}lA.getActiveBaggage=Eu;function fu(Z,$){return Z.setValue(NB,$)}lA.setBaggage=fu;function Vu(Z){return Z.deleteValue(NB)}lA.deleteBaggage=Vu});var tA=q((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.PropagationAPI=void 0;var BB=O9(),Mu=cA(),nA=cN(),Tq=iA(),Cu=hN(),aA=k9(),FB="propagation",hu=new Mu.NoopTextMapPropagator;class GB{constructor(){this.createBaggage=Cu.createBaggage,this.getBaggage=Tq.getBaggage,this.getActiveBaggage=Tq.getActiveBaggage,this.setBaggage=Tq.setBaggage,this.deleteBaggage=Tq.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new GB;return this._instance}setGlobalPropagator(Z){return(0,BB.registerGlobal)(FB,Z,aA.DiagAPI.instance())}inject(Z,$,J=nA.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=nA.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,BB.unregisterGlobal)(FB,aA.DiagAPI.instance())}_getGlobalPropagator(){return(0,BB.getGlobal)(FB)||hu}}rA.PropagationAPI=GB});var Zx=q((oA)=>{Object.defineProperty(oA,"__esModule",{value:!0});oA.propagation=void 0;var vu=tA();oA.propagation=vu.PropagationAPI.getInstance()});var Kx=q((Xx)=>{Object.defineProperty(Xx,"__esModule",{value:!0});Xx.TraceAPI=void 0;var DB=O9(),$x=$B(),Jx=vq(),rH=sN(),Yx=k9(),LB="trace";class wB{constructor(){this._proxyTracerProvider=new $x.ProxyTracerProvider,this.wrapSpanContext=Jx.wrapSpanContext,this.isSpanContextValid=Jx.isSpanContextValid,this.deleteSpan=rH.deleteSpan,this.getSpan=rH.getSpan,this.getActiveSpan=rH.getActiveSpan,this.getSpanContext=rH.getSpanContext,this.setSpan=rH.setSpan,this.setSpanContext=rH.setSpanContext}static getInstance(){if(!this._instance)this._instance=new wB;return this._instance}setGlobalTracerProvider(Z){let $=(0,DB.registerGlobal)(LB,this._proxyTracerProvider,Yx.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,DB.getGlobal)(LB)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,DB.unregisterGlobal)(LB,Yx.DiagAPI.instance()),this._proxyTracerProvider=new $x.ProxyTracerProvider}}Xx.TraceAPI=wB});var qx=q((Hx)=>{Object.defineProperty(Hx,"__esModule",{value:!0});Hx.trace=void 0;var Tu=Kx();Hx.trace=Tu.TraceAPI.getInstance()});var wx=q((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.trace=S.propagation=S.metrics=S.diag=S.context=S.INVALID_SPAN_CONTEXT=S.INVALID_TRACEID=S.INVALID_SPANID=S.isValidSpanId=S.isValidTraceId=S.isSpanContextValid=S.createTraceState=S.TraceFlags=S.SpanStatusCode=S.SpanKind=S.SamplingDecision=S.ProxyTracerProvider=S.ProxyTracer=S.defaultTextMapSetter=S.defaultTextMapGetter=S.ValueType=S.createNoopMeter=S.DiagLogLevel=S.DiagConsoleLogger=S.ROOT_CONTEXT=S.createContextKey=S.baggageEntryMetadataFromString=void 0;var Ru=hN();Object.defineProperty(S,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return Ru.baggageEntryMetadataFromString}});var Wx=MQ();Object.defineProperty(S,"createContextKey",{enumerable:!0,get:function(){return Wx.createContextKey}});Object.defineProperty(S,"ROOT_CONTEXT",{enumerable:!0,get:function(){return Wx.ROOT_CONTEXT}});var yu=K4();Object.defineProperty(S,"DiagConsoleLogger",{enumerable:!0,get:function(){return yu.DiagConsoleLogger}});var mu=Aq();Object.defineProperty(S,"DiagLogLevel",{enumerable:!0,get:function(){return mu.DiagLogLevel}});var ju=bN();Object.defineProperty(S,"createNoopMeter",{enumerable:!0,get:function(){return ju.createNoopMeter}});var _u=U4();Object.defineProperty(S,"ValueType",{enumerable:!0,get:function(){return _u.ValueType}});var Nx=cN();Object.defineProperty(S,"defaultTextMapGetter",{enumerable:!0,get:function(){return Nx.defaultTextMapGetter}});Object.defineProperty(S,"defaultTextMapSetter",{enumerable:!0,get:function(){return Nx.defaultTextMapSetter}});var Su=ZB();Object.defineProperty(S,"ProxyTracer",{enumerable:!0,get:function(){return Su.ProxyTracer}});var gu=$B();Object.defineProperty(S,"ProxyTracerProvider",{enumerable:!0,get:function(){return gu.ProxyTracerProvider}});var bu=zA();Object.defineProperty(S,"SamplingDecision",{enumerable:!0,get:function(){return bu.SamplingDecision}});var du=HA();Object.defineProperty(S,"SpanKind",{enumerable:!0,get:function(){return du.SpanKind}});var cu=qA();Object.defineProperty(S,"SpanStatusCode",{enumerable:!0,get:function(){return cu.SpanStatusCode}});var uu=nN();Object.defineProperty(S,"TraceFlags",{enumerable:!0,get:function(){return uu.TraceFlags}});var lu=EA();Object.defineProperty(S,"createTraceState",{enumerable:!0,get:function(){return lu.createTraceState}});var UB=vq();Object.defineProperty(S,"isSpanContextValid",{enumerable:!0,get:function(){return UB.isSpanContextValid}});Object.defineProperty(S,"isValidTraceId",{enumerable:!0,get:function(){return UB.isValidTraceId}});Object.defineProperty(S,"isValidSpanId",{enumerable:!0,get:function(){return UB.isValidSpanId}});var IB=Cq();Object.defineProperty(S,"INVALID_SPANID",{enumerable:!0,get:function(){return IB.INVALID_SPANID}});Object.defineProperty(S,"INVALID_TRACEID",{enumerable:!0,get:function(){return IB.INVALID_TRACEID}});Object.defineProperty(S,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return IB.INVALID_SPAN_CONTEXT}});var Bx=PA();Object.defineProperty(S,"context",{enumerable:!0,get:function(){return Bx.context}});var Fx=MA();Object.defineProperty(S,"diag",{enumerable:!0,get:function(){return Fx.diag}});var Gx=SA();Object.defineProperty(S,"metrics",{enumerable:!0,get:function(){return Gx.metrics}});var Dx=Zx();Object.defineProperty(S,"propagation",{enumerable:!0,get:function(){return Dx.propagation}});var Lx=qx();Object.defineProperty(S,"trace",{enumerable:!0,get:function(){return Lx.trace}});S.default={context:Bx.context,diag:Fx.diag,metrics:Gx.metrics,propagation:Dx.propagation,trace:Lx.trace}});function Ox(Z){if(vQ+Z>Rq.length)crypto.getRandomValues(Rq),vQ=0;let $="",J=vQ+Z;for(let Y=vQ;Y<J;Y++)$+=ru[Rq[Y]];return vQ=J,$}function Ix(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class kx{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:f0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=Ox(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=Ix($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{TQ?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{TQ?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=Ix(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===f0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{TQ?.spanEnded(J)}catch{}if(Ux)try{Ux(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class Ex{startSpan(Z,$,J){let Y=J||f0.context.active(),X=f0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||TQ!==void 0;else Q=TQ!==void 0||au?.(Z)||Math.random()<nu,z=Ox(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new kx(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=f0.trace.setSpan(Y||f0.context.active(),z);return f0.context.with(K,()=>{try{let Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class su{tracer=new Ex;getTracer(){return this.tracer}}var f0,Ux,TQ,nu=0.01,au,ru,Rq,vQ;var fx=U(()=>{f0=YF(wx(),1),ru=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),Rq=new Uint8Array(1024),vQ=Rq.length});function l0(Z,$){return{symbol:Z,defaultValue:$}}function OB(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),$;let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)}}}class f6{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new f6(this,void 0,J)}withCancel(){let Z=OB(this.signal);return[new f6(this,Z.signal),(J)=>Z.abort(J)]}withTimeout(Z){let $=OB(this.signal),J=new f6(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=OB(this.signal);return J.abort(Error("context deadline exceeded")),new f6(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new f6(this,void 0,void 0,Z)}withDetached(){return new f6(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function l8(){return new f6}function Jl(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return process.stdout?.isTTY??!1}function Yl(Z){let J=(A)=>(x)=>Z?`\x1B[${A.join(";")}m${x}\x1B[0m`:x,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),D=J([35]),w=J([36]),f=J([1]),V=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:D,cyan:w,bold:f,level:(A,x)=>{switch(A){case"debug":return D(x);case"info":return W(x);case"warn":return Q(x);case"error":return V(x);default:return A}}}}function Xl(Z){return{indent:" ".repeat(Z.indent??tu),maxDepth:Z.maxDepth??ou,maxEntries:Z.maxEntries??eu,maxArrayLength:Z.maxArrayLength??Zl,maxStringLength:Z.maxStringLength??$l,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function zl(Z){return Z.toISOString().slice(11,23)}function Vx(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function kB(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Kl(Z){return typeof Z==="object"&&Z!==null&&"kind"in Z&&Z.kind==="summary"&&"summary"in Z&&typeof Z.summary==="string"}function Hl(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Ql(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function V6(Z,$,J,Y,X,z){let K=Ql(Z,$,z,Y);if(Kl(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let Q=Hl(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(kB(Z))return Ax(Z,$,J,Y,X,z);if(Array.isArray(Z))return Px(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return ql(Z,$,J,Y,X,z);if(Z instanceof Set)return Px(Array.from(Z.values()),$,J,Y,X,z);return typeof Z==="object"?Wl(Z,$,J,Y,X,z):J.dim(`[${typeof Z}]`)}function Ax(Z,$,J,Y,X,z){if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=typeof Z.name==="string"?Z.name:"Error",Q=typeof Z.message==="string"?Z.message:"",W=Q?`${K}: ${Q}`:K,D=J.red(W);if("cause"in Z&&Z.cause!==void 0){let w=V6(Z.cause,$,J,Y+1,X,z.concat("cause"));D=`${D} ${J.dim("cause=")}${w}`}return X.delete(Z),D}function Px(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let w=J.dim("[]");return X.delete(Z),w}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((w,f)=>V6(w,$,J,Y+1,X,z.concat(f)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),D=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),D}function ql(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([f,V])=>{let A=V6(f,$,J,Y+1,X,z.concat("<key>")),x=V6(V,$,J,Y+1,X,z.concat(String(f)));return`${A} ${J.dim("=>")} ${x}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let D=J.dim(", "),w=`${J.dim("Map{")}${W.join(D)}${J.dim("}")}`;return X.delete(Z),w}function Wl(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let f=Z?.constructor?.name??"Object";return J.dim(`[${f}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let f=J.dim("{}");return X.delete(Z),f}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([f,V])=>{let A=V6(V,$,J,Y+1,X,z.concat(f));return`${J.cyan(f)}: ${A}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let D=J.dim(", "),w=`${J.dim("{")}${W.join(D)}${J.dim("}")}`;return X.delete(Z),w}function Nl(Z={}){let $=Xl(Z),J=Yl(Jl(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(zl(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&Vx(z.context)){let V=z.context.getPath();if(V.length>0)K.push(J.dim(`ctx=${V.join("/")}`))}let D=new WeakSet;if(!Vx(z.context)&&z.context&&Object.keys(z.context).length>0){let V=V6(z.context,$,J,0,D,["context"]);K.push(`${J.dim("context=")}${V}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let V=V6(z.metadata,$,J,0,D,["metadata"]);K.push(`${J.dim("meta=")}${V}`)}let w=[K.join(" ")];if(z.error!==void 0){let V=kB(z.error)?Ax(z.error,$,J,0,D,["error"]):V6(z.error,$,J,0,D,["error"]);if(w[0]=`${w[0]} ${J.dim("error=")}${V}`,kB(z.error)&&typeof z.error.stack==="string"){let A=z.error.stack.split(`
|
|
5
|
-
`).slice(1);for(let x of A){let y=x.trim();if(y)
|
|
6
|
-
`);switch(z.level){case"debug":case"info":Y.log(f);break;case"warn":Y.warn(f);break;case"error":Y.error(f);break;default:{let V=z.level;throw Error(`Unhandled log level: ${String(V)}`)}}}}}function Dl(Z){return Z.get(Gl)}function p0(Z){function $(J,Y){let X=new Date;Dl(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var tu=2,ou=6,eu=50,Zl=40,$l=200,Bl,Fl,Gl;var xx=U(()=>{i0();Bl=Nl(),Fl={log:(Z,$)=>Bl.log(Z,$)},Gl=l0(Symbol("loggerBackend"),Fl)});var G90,D90,L90,w90,U90;var Mx=U(()=>{G90=l0(Symbol("otel.span"),void 0),D90=l0(Symbol("otel.root_span"),void 0),L90=l0(Symbol("otel.root_start_ms"),void 0),w90=l0(Symbol("otel.suppress_child_spans"),!1),U90=l0(Symbol("otel.inheritable_span_attributes"),{})});var i0=U(()=>{fx();xx();Mx()});function yq(Z){return Z.get(wl)}function h8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{yq(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{yq(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{yq(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{yq(Y).record(Y,J,X,z)}}}var Ll,wl;var P6=U(()=>{i0();Ll={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},wl=l0(Symbol("metricsBackend"),Ll)});class EB{serialize(Z){return Il.encode(Z)}deserialize(Z){return Ul.decode(Z)}getBlobType(){return{kind:"string"}}}class U8{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function W0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=Ol[Z[J]];return $}function fl(Z){if(!kl.test(Z))return;try{let $=new Uint8Array(Z.length/2);if(Buffer.from($.buffer,$.byteOffset,$.byteLength).write(Z,"hex")===$.length)return $}catch{}return}function n0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");if($.length>=El&&typeof Buffer<"u"){let Y=fl($);if(Y!==void 0)return Y}let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var Ul,Il,mq,Ol,kl,El=64;var sH=U(()=>{Ul=new TextDecoder,Il=new TextEncoder;mq=new EB;Ol=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"));kl=/^[0-9a-f]*$/});function jq(Z){let $=Z.buffer;if($ instanceof ArrayBuffer)return new Uint8Array($,Z.byteOffset,Z.byteLength);return new Uint8Array(Z)}async function RQ(Z){let $=await crypto.subtle.digest("SHA-256",jq(Z));return new Uint8Array($)}var y90,m90;var tH=U(()=>{P6();sH();y90=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),m90=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function hx(Z,$){Vl.warn(Z,"Subagent state ref blob not found; restoring without its transcript",$),Pl.increment(Z,1,{reader:$.reader,fallback:$.fallback})}async function fB(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await PN(X,async([Q,W])=>{let D=await J.getBlob(Z,W);if(D===void 0)return{kind:"missing",subagentId:Q,blobIdHex:W0(W)};try{return{kind:"loaded",subagentId:Q,state:U6.fromBinary(D)}}catch(w){return{kind:"failed",error:w}}},{max:Cx}),K=z.find((Q)=>Q.kind==="failed");if(K!==void 0&&K.kind==="failed")throw K.error;for(let Q of z)if(Q.kind==="loaded")Y[Q.subagentId]=Q.state;else if(Q.kind==="missing"){let W=Y[Q.subagentId]!==void 0;hx(Z,{reader:"resolve",fallback:W?"inline":"dropped",subagentId:Q.subagentId,blobIdHex:Q.blobIdHex})}return Y}var Cx=8,Vl,Pl;var VB=U(()=>{i0();P6();iQ();pH();sH();Vl=p0("@anysphere/agent-kv:subagent-states"),Pl=h8("agent_kv.subagent_state_ref.missing_blob",{description:"Subagent state refs whose blob was missing, counted per read until a checkpoint rewrites the ref. fallback=inline kept the entry saved beside the ref (usually a transcript-free summary), dropped omitted the subagent, superseded kept a newer in-memory state.",labelNames:["reader","fallback"]})});import*as c from"zod/v4";function xl(){let Z=new Uint8Array(vx);return crypto.getRandomValues(Z),W0(Z)}function Tx(Z){return typeof Z==="string"&&Z.length===vx*2&&Al.test(Z)}function Ml(){if(PB===null)PB=c.object({agentId:c.string(),latestRootBlobId:c.custom((Z)=>Z instanceof Uint8Array,{error:"Expected Uint8Array"}),name:c.string(),createdAt:c.number(),mode:c.enum(AB),isRunEverything:c.boolean(),approvalMode:c.enum(xB).optional(),lastUsedModel:c.string().optional(),lastDebugServerPort:c.number().int().positive().optional(),currentPlanUri:c.string().optional(),subagentInfo:c.object({parentAgentId:c.string().min(1),rootParentAgentId:c.string().min(1),toolCallId:c.string().min(1),typeName:c.string().min(1)}).optional(),blobEncryptionKey:c.string().optional()});return PB}function hl(Z){return Cl.has(Z)}function Tl(Z){return vl.has(Z)}function _q(Z,$){let J=Reflect.get(Z,$);return typeof J==="string"&&J.length>0?J:void 0}function Rl(Z){if(!Z||typeof Z!=="object")return;let $=_q(Z,"parentAgentId"),J=_q(Z,"rootParentAgentId"),Y=_q(Z,"toolCallId"),X=_q(Z,"typeName");if($===void 0||J===void 0||Y===void 0||X===void 0)return;return{parentAgentId:$,rootParentAgentId:J,toolCallId:Y,typeName:X}}class Sq{serialize(Z){let $=W0(Z.latestRootBlobId);return mq.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(mq.deserialize(Z)),J=yQ($.agentId),Y=typeof $.latestRootBlobId==="string"?n0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&hl(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&Tl(Q)?Q:void 0,D=Rl($.subagentInfo),w=Tx($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return Ml().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:D,blobEncryptionKey:w})}getBlobType(){return{kind:"json"}}}async function yx(Z,$,J){let Y=new L6,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let D=Rx.deserialize(W),w;switch(D.turn.case){case"agentConversationTurn":{let f=D.turn.value,V=await J.getBlob(Z,f.userMessage);if(!V)continue;let A=ml.deserialize(V),x=[];for(let V0 of f.steps){let z0=await J.getBlob(Z,V0);if(z0){let hM=jl.deserialize(z0);x.push(hM)}}let y=new F6({userMessage:A,steps:x});w=new g8({turn:{case:"agentConversationTurn",value:y}});break}case"shellConversationTurn":{let f=D.turn.value,V=await J.getBlob(Z,f.shellCommand);if(!V)continue;let A=Sl.deserialize(V),x=await J.getBlob(Z,f.shellOutput);if(!x)continue;let y=gl.deserialize(x),V0=new G6({shellCommand:A,shellOutput:y});w=new g8({turn:{case:"shellConversationTurn",value:V0}});break}}if(!w)continue;X.push(w)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let D=yl.deserialize(W);K.push(D)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=_l.deserialize(Q);Y.summary=W}}return Y}class mQ{blobStore;metadataStore;conversationStateStructure;serde=new U8(j0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new j0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=Rx.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return yx(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await fB(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await RQ(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new j0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new j0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new j0,!1}}async dispose(){if(this.blobStore instanceof jH)await this.blobStore.dispose()}}var AB,xB,vx=32,Al,PB=null,yQ=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:xl()}),Cl,vl,yl,ml,jl,Rx,_l,Sl,gl;var mx=U(()=>{iQ();dQ();pH();tH();sH();VB();AB=["default","plan","debug","search"],xB=["allowlist","unrestricted","auto-review"],Al=/^[0-9a-f]+$/;Cl=new Set(AB);vl=new Set(xB);yl=new U8(B0),ml=new U8(W6),jl=new U8(S8),Rx=new U8(W9),_l=new U8(D6),Sl=new U8(N6),gl=new U8(B6)});var bl;var MB=U(()=>{i0();bl=l0(Symbol("blob-read-kind"),void 0)});var CB=()=>{};var J70,Y70,X70,z70,K70,H70,Q70,q70,W70,N70;var jx=U(()=>{i0();P6();tH();J70=p0("@anysphere/agent-kv"),Y70=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),X70=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),z70=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),K70=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),H70=h8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),Q70=h8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),q70=h8("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),W70=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),N70=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as D70,proto3 as L70}from"@bufbuild/protobuf";var _x=()=>{};var P70,A70,x70;var Sx=U(()=>{i0();P6();_x();tH();P70=p0("ControlledKvManager"),A70=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),x70=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var T70,R70,y70,m70;var RB=U(()=>{i0();P6();T70=p0("@anysphere/agent-kv"),R70=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),y70=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),m70=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var yB=U(()=>{RB()});var n70,a70,r70,s70;var gx=U(()=>{i0();P6();CB();MB();tH();sH();yB();n70=p0("@anysphere/agent-kv:reference"),a70=h8("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),r70=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),s70=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var Z50,$50,J50,Y50,X50,z50;var bx=U(()=>{i0();P6();Z50=p0("RetryBlobStore"),$50=h8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),J50=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),Y50=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),X50=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),z50=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var jQ=U(()=>{mx();MB();CB();tH();jx();Sx();gx();bx();sH();VB();yB();RB()});class ax{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.({value:void 0,done:!0})};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function rx(){return new ax}import{chmodSync as Fp,existsSync as Gp,mkdirSync as Dp}from"fs";function $Q(Z){if(!Gp(Z))Dp(Z,{recursive:!0,mode:sx});try{Fp(Z,sx)}catch{}}var sx=448;var iB=()=>{};var nB;var tx=U(()=>{nB=class nB extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var ex={};x6(ex,{openBunSqliteDriver:()=>wp});import{Database as Lp}from"bun:sqlite";class ox{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:Number(J)}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function wp(Z){return new ox(new Lp(Z,{create:!0}))}var ZM=()=>{};class aB{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var JM={};x6(JM,{openNodeSqliteDriver:()=>Up});class $M{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Up(Z){return new $M(new aB(Z))}var YM=()=>{};function Ip(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function Op(){return typeof globalThis.Bun<"u"}async function JQ(Z){if(Op())return(await Promise.resolve().then(() => (ZM(),ex))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (YM(),JM))}catch(J){if(Ip(J))throw new nB("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:J});throw J}return $.openNodeSqliteDriver(Z)}var lq=U(()=>{tx()});var XM={};x6(XM,{SQLiteBlobStoreWithMetadata:()=>sB});import{existsSync as kp,mkdirSync as Ep,rmSync as fp}from"fs";import{basename as Vp,dirname as rB}from"path";var pq,sB;var zM=U(()=>{jQ();pH();lq();pq=new Sq;sB=class sB extends jH{dbPath;driverPromise;driver;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new sB(Z);return await $.getDriver(),$}constructor(Z){super();this.dbPath=Z;let $=Vp(rB(this.dbPath));this.metadata=yQ($)}async getDriver(){if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=rB(this.dbPath);if(!kp(J))Ep(J,{recursive:!0});let Y=await JQ(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
4
|
+
`)}`:"");this.errors=Z,this.name="UnsubscriptionError"}}gL.UnsubscriptionError=FQ;class SH{initialTeardown;static EMPTY=(()=>{let Z=new SH;return Z.closed=!0,Z})();closed=!1;_finalizers=null;constructor(Z){this.initialTeardown=Z}unsubscribe(){let Z;if(!this.closed){this.closed=!0;let{initialTeardown:$}=this;if(E0($))try{$()}catch(Y){Z=Y instanceof FQ?Y.errors:[Y]}let{_finalizers:J}=this;if(J){this._finalizers=null;for(let Y of J)try{AL(Y)}catch(X){if(Z=Z??[],X instanceof FQ)Z.push(...X.errors);else Z.push(X)}}if(Z)throw new FQ(Z)}}add(Z){if(Z&&Z!==this)if(this.closed)AL(Z);else{if(Z&&"add"in Z)Z.add(()=>{this.remove(Z)});this._finalizers??=new Set,this._finalizers.add(Z)}}remove(Z){this._finalizers?.delete(Z)}}gL.Subscription=SH;if(typeof Symbol.dispose==="symbol")SH.prototype[Symbol.dispose]=SH.prototype.unsubscribe;function AL(Z){if(E0(Z))Z();else Z.unsubscribe()}class F9 extends SH{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(Z,$){super();if(this.destination=Z instanceof F9?Z:Vh(Z),this._nextOverride=$?.next??null,this._errorOverride=$?.error??null,this._completeOverride=$?.complete??null,this._onFinalize=$?.finalize??null,this._next=this._nextOverride?kh:this._next,this._error=this._errorOverride?Eh:this._error,this._complete=this._completeOverride?fh:this._complete,Ph(Z))Z.add(this)}next(Z){if(this.isStopped)kW(SL(Z),this);else this._next(Z)}error(Z){if(this.isStopped)kW(_L(Z),this);else this.isStopped=!0,this._error(Z)}complete(){if(this.isStopped)kW(gL.COMPLETE_NOTIFICATION,this);else this.isStopped=!0,this._complete()}unsubscribe(){if(!this.closed)this.isStopped=!0,super.unsubscribe(),this._onFinalize?.()}_next(Z){this.destination.next(Z)}_error(Z){try{this.destination.error(Z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}gL.Subscriber=F9;gL.config={onUnhandledError:null,onStoppedNotification:null};function kh(Z){try{this._nextOverride(Z)}catch($){this.destination.error($)}}function Eh(Z){try{this._errorOverride(Z)}catch($){this.destination.error($)}finally{this.unsubscribe()}}function fh(){try{this._completeOverride()}catch(Z){this.destination.error(Z)}finally{this.unsubscribe()}}class ML{partialObserver;constructor(Z){this.partialObserver=Z}next(Z){let{partialObserver:$}=this;if($.next)try{$.next(Z)}catch(J){_H(J)}}error(Z){let{partialObserver:$}=this;if($.error)try{$.error(Z)}catch(J){_H(J)}else _H(Z)}complete(){let{partialObserver:Z}=this;if(Z.complete)try{Z.complete()}catch($){_H($)}}}function Vh(Z){return new ML(!Z||E0(Z)?{next:Z??void 0}:Z)}function kW(Z,$){let{onStoppedNotification:J}=gL.config;J&&setTimeout(()=>J(Z,$))}function Ph(Z){return Z&&E0(Z.unsubscribe)&&E0(Z.add)}function Ah({destination:Z,...$}){return new F9(Z,$)}gL.operate=Ah;class b8{constructor(Z){if(Z)this._subscribe=Z}subscribe(Z){let $=Z instanceof F9?Z:new F9(Z);return $.add(this._trySubscribe($)),$}_trySubscribe(Z){try{return this._subscribe(Z)}catch($){Z.error($)}}forEach(Z){return new Promise(($,J)=>{let Y=new F9({next:(X)=>{try{Z(X)}catch(z){J(z),Y.unsubscribe()}},error:J,complete:$});this.subscribe(Y)})}_subscribe(Z){return}[Symbol.observable??"@@observable"](){return this}pipe(...Z){return Z.reduce(xh,this)}[Symbol.asyncIterator](){let Z,$=!1,J,Y=!1,X=[],z=[],K=(W)=>{$=!0,J=W;while(z.length){let[L,D]=z.shift();D(W)}},Q=()=>{Y=!0;while(z.length){let[W]=z.shift();W({value:void 0,done:!0})}};return{next:()=>{if(!Z)Z=this.subscribe({next:(W)=>{if(z.length){let[L]=z.shift();L({value:W,done:!1})}else X.push(W)},error:K,complete:Q});if(X.length)return Promise.resolve({value:X.shift(),done:!1});if(Y)return Promise.resolve({value:void 0,done:!0});if($)return Promise.reject(J);return new Promise((W,L)=>{z.push([W,L])})},throw:(W)=>{return Z?.unsubscribe(),K(W),Promise.reject(W)},return:()=>{return Z?.unsubscribe(),Q(),Promise.resolve({value:void 0,done:!0})},[Symbol.asyncIterator](){return this}}}}gL.Observable=b8;function xh(Z,$){return $(Z)}function _H(Z){setTimeout(()=>{let{onUnhandledError:$}=gL.config;if($)$(Z);else throw Z})}gL.reportUnhandledError=_H;function Mh(Z){switch(RL(Z)){case k0.Own:return Z;case k0.InteropObservable:return Ch(Z);case k0.ArrayLike:return CL(Z);case k0.Promise:return hL(Z);case k0.AsyncIterable:return vL(Z);case k0.Iterable:return hh(Z);case k0.ReadableStreamLike:return vh(Z)}}gL.from=Mh;function Ch(Z){return new b8(($)=>{let J=Z[Symbol.observable??"@@observable"]();if(E0(J.subscribe))return J.subscribe($);throw TypeError("Provided object does not correctly implement Symbol.observable")})}function CL(Z){return new b8(($)=>{TL(Z,$)})}gL.fromArrayLike=CL;function hL(Z){return new b8(($)=>{Z.then((J)=>{if(!$.closed)$.next(J),$.complete()},(J)=>$.error(J)).then(null,_H)})}gL.fromPromise=hL;function hh(Z){return new b8(($)=>{for(let J of Z)if($.next(J),$.closed)return;$.complete()})}function vL(Z){return new b8(($)=>{Th(Z,$).catch((J)=>$.error(J))})}function vh(Z){return vL(yL(Z))}async function Th(Z,$){for await(let J of Z)if($.next(J),$.closed)return;$.complete()}function TL(Z,$){let J=Z.length;for(let Y=0;Y<J;Y++){if($.closed)return;$.next(Z[Y])}$.complete()}gL.subscribeToArray=TL;var k0;(function(Z){Z[Z.Own=0]="Own",Z[Z.InteropObservable=1]="InteropObservable",Z[Z.ArrayLike=2]="ArrayLike",Z[Z.Promise=3]="Promise",Z[Z.AsyncIterable=4]="AsyncIterable",Z[Z.Iterable=5]="Iterable",Z[Z.ReadableStreamLike=6]="ReadableStreamLike"})(k0=gL.ObservableInputType||(gL.ObservableInputType={}));function RL(Z){if(Z instanceof b8)return k0.Own;if(mh(Z))return k0.InteropObservable;if(jL(Z))return k0.ArrayLike;if(mL(Z))return k0.Promise;if(Rh(Z))return k0.AsyncIterable;if(jh(Z))return k0.Iterable;if(yh(Z))return k0.ReadableStreamLike;throw TypeError(`You provided ${Z!==null&&typeof Z==="object"?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}gL.getObservableInputType=RL;function E0(Z){return typeof Z==="function"}gL.isFunction=E0;function Rh(Z){return Symbol.asyncIterator&&E0(Z?.[Symbol.asyncIterator])}async function*yL(Z){let $=Z.getReader();try{while(!0){let{value:J,done:Y}=await $.read();if(Y)return;yield J}}finally{$.releaseLock()}}gL.readableStreamLikeToAsyncGenerator=yL;function yh(Z){return E0(Z?.getReader)}function mL(Z){return E0(Z?.then)}gL.isPromise=mL;function mh(Z){return E0(Z[Symbol.observable??"@@observable"])}function jh(Z){return E0(Z?.[Symbol.iterator])}function jL(Z){return Z&&typeof Z.length==="number"&&!E0(Z)}gL.isArrayLike=jL;function _h(Z){return!!Z&&(Z instanceof b8||E0(Z.lift)&&E0(Z.subscribe))}gL.isObservable=_h;gL.COMPLETE_NOTIFICATION=(()=>nQ("C",void 0,void 0))();function _L(Z){return nQ("E",void 0,Z)}gL.errorNotification=_L;function SL(Z){return nQ("N",Z,void 0)}gL.nextNotification=SL;function nQ(Z,$,J){return{kind:Z,value:$,error:J}}gL.createNotification=nQ});var uL=q((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});dL.performanceTimestampProvider=void 0;dL.performanceTimestampProvider={now(){return(dL.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var VW=q((lL)=>{Object.defineProperty(lL,"__esModule",{value:!0});lL.animationFrameProvider=void 0;var Jv=I();lL.animationFrameProvider={schedule(Z){let $=requestAnimationFrame,J=cancelAnimationFrame,{delegate:Y}=lL.animationFrameProvider;if(Y)$=Y.requestAnimationFrame,J=Y.cancelAnimationFrame;let X=$((z)=>{J=void 0,Z(z)});return new Jv.Subscription(()=>J?.(X))},requestAnimationFrame(...Z){let{delegate:$}=lL.animationFrameProvider;return($?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){let{delegate:$}=lL.animationFrameProvider;return($?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0}});var rL=q((nL)=>{Object.defineProperty(nL,"__esModule",{value:!0});nL.animationFrames=void 0;var Yv=I(),Xv=uL(),pL=VW();function zv(Z){return Z?iL(Z):Kv}nL.animationFrames=zv;function iL(Z){return new Yv.Observable(($)=>{let J=Z||Xv.performanceTimestampProvider,Y=J.now(),X=0,z=()=>{if(!$.closed)X=pL.animationFrameProvider.requestAnimationFrame((K)=>{X=0;let Q=J.now();$.next({timestamp:Z?Q:K,elapsed:Q-Y}),z()})};return z(),()=>{if(X)pL.animationFrameProvider.cancelAnimationFrame(X)}})}var Kv=iL()});var q0=q((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});tL.Subject=void 0;var PW=I();class sL extends PW.Observable{_closed=!1;get closed(){return this._closed}_observerCounter=0;currentObservers=new Map;observerSnapshot;get observers(){return this.observerSnapshot??=Array.from(this.currentObservers.values())}hasError=!1;thrownError=null;constructor(){super()}_clearObservers(){this.currentObservers.clear(),this.observerSnapshot=void 0}next(Z){if(!this._closed){let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].next(Z)}}error(Z){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=Z;let{observers:$}=this,J=$.length;for(let Y=0;Y<J;Y++)$[Y].error(Z);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;let{observers:Z}=this,$=Z.length;for(let J=0;J<$;J++)Z[J].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(Z){return this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){if(this.hasError||this._closed)return PW.Subscription.EMPTY;let{currentObservers:$}=this,J=this._observerCounter++;return $.set(J,Z),this.observerSnapshot=void 0,Z.add(()=>{$.delete(J),this.observerSnapshot=void 0}),Z}_checkFinalizedStatuses(Z){let{hasError:$,thrownError:J,_closed:Y}=this;if($)Z.error(J);else if(Y)Z.complete()}asObservable(){return new PW.Observable((Z)=>this.subscribe(Z))}}tL.Subject=sL});var Jw=q((Zw)=>{Object.defineProperty(Zw,"__esModule",{value:!0});Zw.BehaviorSubject=void 0;var Hv=q0();class eL extends Hv.Subject{_value;constructor(Z){super();this._value=Z}get value(){return this.getValue()}_subscribe(Z){let $=super._subscribe(Z);return!$.closed&&Z.next(this._value),$}getValue(){let{hasError:Z,thrownError:$,_value:J}=this;if(Z)throw $;return J}next(Z){super.next(this._value=Z)}}Zw.BehaviorSubject=eL});var aQ=q((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.dateTimestampProvider=void 0;Yw.dateTimestampProvider={now(){return(Yw.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var xW=q((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.ReplaySubject=void 0;var Qv=q0(),qv=aQ();class Xw extends Qv.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(Z=1/0,$=1/0,J=qv.dateTimestampProvider){super();this._bufferSize=Z,this._windowTime=$,this._timestampProvider=J,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,Z),this._windowTime=Math.max(1,$)}next(Z){let{_closed:$,_buffer:J,_infiniteTimeWindow:Y,_timestampProvider:X,_windowTime:z}=this;if(!$)J.push(Z),!Y&&J.push(X.now()+z);this._trimBuffer(),super.next(Z)}_subscribe(Z){this._trimBuffer();let $=this._innerSubscribe(Z),{_infiniteTimeWindow:J,_buffer:Y}=this,X=Y.slice();for(let z=0;z<X.length&&!Z.closed;z+=J?1:2)Z.next(X[z]);return this._checkFinalizedStatuses(Z),$}_trimBuffer(){let{_bufferSize:Z,_timestampProvider:$,_buffer:J,_infiniteTimeWindow:Y}=this,X=(Y?1:2)*Z;if(Z<1/0&&X<J.length&&J.splice(0,J.length-X),!Y){let z=$.now(),K=0;for(let Q=1;Q<J.length&&J[Q]<=z;Q+=2)K=Q;K&&J.splice(0,K+1)}}}zw.ReplaySubject=Xw});var MW=q((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AsyncSubject=void 0;var Wv=q0();class Hw extends Wv.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(Z){let{hasError:$,_hasValue:J,_value:Y,thrownError:X,_closed:z,_isComplete:K}=this;if($)Z.error(X);else if(z||K)J&&Z.next(Y),Z.complete()}next(Z){if(!this._closed)this._value=Z,this._hasValue=!0}complete(){let{_hasValue:Z,_value:$,_isComplete:J}=this;if(!J)this._isComplete=!0,Z&&super.next($),super.complete()}}Qw.AsyncSubject=Hw});var Fw=q((Nw)=>{Object.defineProperty(Nw,"__esModule",{value:!0});Nw.Action=void 0;var Nv=I();class Ww extends Nv.Subscription{constructor(Z,$){super()}schedule(Z,$=0){return this}}Nw.Action=Ww});var Lw=q((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.intervalProvider=void 0;Gw.intervalProvider={setInterval(Z,$,...J){let{delegate:Y}=Gw.intervalProvider;if(Y?.setInterval)return Y.setInterval(Z,$,...J);return setInterval(Z,$,...J)},clearInterval(Z){let{delegate:$}=Gw.intervalProvider;return($?.clearInterval||clearInterval)(Z)},delegate:void 0}});var G9=q((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.arrRemove=void 0;function Bv(Z,$){if(Z){let J=Z.indexOf($);0<=J&&Z.splice(J,1)}}ww.arrRemove=Bv});var gH=q((Ow)=>{Object.defineProperty(Ow,"__esModule",{value:!0});Ow.AsyncAction=void 0;var Fv=Fw(),Uw=Lw(),Gv=G9();class Iw extends Fv.Action{scheduler;work;id;state;delay;pending=!1;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if(this.closed)return this;this.state=Z;let J=this.id,Y=this.scheduler;if(J!=null)this.id=this.recycleAsyncId(Y,J,$);return this.pending=!0,this.delay=$,this.id=this.id??this.requestAsyncId(Y,this.id,$),this}requestAsyncId(Z,$,J=0){return Uw.intervalProvider.setInterval(Z.flush.bind(Z,this),J)}recycleAsyncId(Z,$,J=0){if(J!=null&&this.delay===J&&this.pending===!1)return $;if($!=null)Uw.intervalProvider.clearInterval($);return}execute(Z,$){if(this.closed)return Error("executing a cancelled action");this.pending=!1;let J=this._execute(Z,$);if(J)return J;else if(this.pending===!1&&this.id!=null)this.id=this.recycleAsyncId(this.scheduler,this.id,null)}_execute(Z,$){let J=!1,Y;try{this.work(Z)}catch(X){J=!0,Y=X?X:Error("Scheduled action threw falsy error")}if(J)return this.unsubscribe(),Y}unsubscribe(){if(!this.closed){let{id:Z,scheduler:$}=this,{actions:J}=$;if(this.work=this.state=this.scheduler=null,this.pending=!1,(0,Gv.arrRemove)(J,this),Z!=null)this.id=this.recycleAsyncId($,Z,null);this.delay=null,super.unsubscribe()}}}Ow.AsyncAction=Iw});var Pw=q((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.TestTools=fw.Immediate=void 0;var Lv=1,CW,sQ={};function Ew(Z){if(Z in sQ)return delete sQ[Z],!0;return!1}fw.Immediate={setImmediate(Z){let $=Lv++;if(sQ[$]=!0,!CW)CW=Promise.resolve();return CW.then(()=>Ew($)&&Z()),$},clearImmediate(Z){Ew(Z)}};fw.TestTools={pending(){return Object.keys(sQ).length}}});var xw=q((Aw)=>{Object.defineProperty(Aw,"__esModule",{value:!0});Aw.immediateProvider=void 0;var Dv=Pw(),{setImmediate:Uv,clearImmediate:Iv}=Dv.Immediate;Aw.immediateProvider={setImmediate(...Z){let{delegate:$}=Aw.immediateProvider;return($?.setImmediate||Uv)(...Z)},clearImmediate(Z){let{delegate:$}=Aw.immediateProvider;return($?.clearImmediate||Iv)(Z)},delegate:void 0}});var Tw=q((hw)=>{Object.defineProperty(hw,"__esModule",{value:!0});hw.AsapAction=void 0;var Ov=gH(),Mw=xw();class Cw extends Ov.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=Mw.immediateProvider.setImmediate(Z.flush.bind(Z,void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$){if(Mw.immediateProvider.clearImmediate($),Z._scheduled===$)Z._scheduled=void 0}return}}hw.AsapAction=Cw});var vW=q((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.Scheduler=void 0;var kv=aQ();class hW{schedulerActionCtor;static now=kv.dateTimestampProvider.now;constructor(Z,$=hW.now){this.schedulerActionCtor=Z,this.now=$}now;schedule(Z,$=0,J){return new this.schedulerActionCtor(this,Z).schedule(J,$)}}Rw.Scheduler=hW});var bH=q((_w)=>{Object.defineProperty(_w,"__esModule",{value:!0});_w.AsyncScheduler=void 0;var mw=vW();class jw extends mw.Scheduler{actions=[];_active=!1;_scheduled;constructor(Z,$=mw.Scheduler.now){super(Z,$)}flush(Z){let{actions:$}=this;if(this._active){$.push(Z);return}let J;this._active=!0;do if(J=Z.execute(Z.state,Z.delay))break;while(Z=$.shift());if(this._active=!1,J){while(Z=$.shift())Z.unsubscribe();throw J}}}_w.AsyncScheduler=jw});var dw=q((bw)=>{Object.defineProperty(bw,"__esModule",{value:!0});bw.AsapScheduler=void 0;var Ev=bH();class gw extends Ev.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}bw.AsapScheduler=gw});var pw=q((uw)=>{Object.defineProperty(uw,"__esModule",{value:!0});uw.asapScheduler=void 0;var fv=Tw(),Vv=dw();uw.asapScheduler=new Vv.AsapScheduler(fv.AsapAction)});var h0=q((iw)=>{Object.defineProperty(iw,"__esModule",{value:!0});iw.asyncScheduler=void 0;var Pv=gH(),Av=bH();iw.asyncScheduler=new Av.AsyncScheduler(Pv.AsyncAction)});var tw=q((rw)=>{Object.defineProperty(rw,"__esModule",{value:!0});rw.QueueAction=void 0;var xv=gH();class aw extends xv.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}schedule(Z,$=0){if($>0)return super.schedule(Z,$);return this.delay=$,this.state=Z,this.scheduler.flush(this),this}execute(Z,$){return $>0||this.closed?super.execute(Z,$):this._execute(Z,$)}requestAsyncId(Z,$,J=0){if(J!=null&&J>0||J==null&&this.delay>0)return super.requestAsyncId(Z,$,J);return Z.flush(this),0}}rw.QueueAction=aw});var $D=q((ew)=>{Object.defineProperty(ew,"__esModule",{value:!0});ew.QueueScheduler=void 0;var Mv=bH();class ow extends Mv.AsyncScheduler{}ew.QueueScheduler=ow});var XD=q((JD)=>{Object.defineProperty(JD,"__esModule",{value:!0});JD.queueScheduler=void 0;var Cv=tw(),hv=$D();JD.queueScheduler=new hv.QueueScheduler(Cv.QueueAction)});var qD=q((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.AnimationFrameAction=void 0;var vv=gH(),zD=VW();class KD extends vv.AsyncAction{scheduler;work;constructor(Z,$){super(Z,$);this.scheduler=Z,this.work=$}requestAsyncId(Z,$,J=0){if(J!==null&&J>0)return super.requestAsyncId(Z,$,J);return Z.actions.push(this),Z._scheduled||(Z._scheduled=zD.animationFrameProvider.requestAnimationFrame(()=>Z.flush(void 0)))}recycleAsyncId(Z,$,J=0){if(J!=null?J>0:this.delay>0)return super.recycleAsyncId(Z,$,J);let{actions:Y}=Z;if($!=null&&Y[Y.length-1]?.id!==$)zD.animationFrameProvider.cancelAnimationFrame($),Z._scheduled=void 0;return}}HD.AnimationFrameAction=KD});var FD=q((ND)=>{Object.defineProperty(ND,"__esModule",{value:!0});ND.AnimationFrameScheduler=void 0;var Tv=bH();class WD extends Tv.AsyncScheduler{flush(Z){this._active=!0;let $=this._scheduled;this._scheduled=void 0;let{actions:J}=this,Y;Z=Z||J.shift();do if(Y=Z.execute(Z.state,Z.delay))break;while((Z=J[0])&&Z.id===$&&J.shift());if(this._active=!1,Y){while((Z=J[0])&&Z.id===$&&J.shift())Z.unsubscribe();throw Y}}}ND.AnimationFrameScheduler=WD});var wD=q((GD)=>{Object.defineProperty(GD,"__esModule",{value:!0});GD.animationFrameScheduler=void 0;var Rv=qD(),yv=FD();GD.animationFrameScheduler=new yv.AnimationFrameScheduler(Rv.AnimationFrameAction)});var OD=q((UD)=>{Object.defineProperty(UD,"__esModule",{value:!0});UD.VirtualAction=UD.VirtualTimeScheduler=void 0;var mv=gH(),jv=I(),_v=bH();class DD extends _v.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(Z=LQ,$=1/0){super(Z,()=>this.frame);this.maxFrames=$}flush(){let{actions:Z,maxFrames:$}=this,J,Y;while((Y=Z[0])&&Y.delay<=$)if(Z.shift(),this.frame=Y.delay,J=Y.execute(Y.state,Y.delay))break;if(J){while(Y=Z.shift())Y.unsubscribe();throw J}}}UD.VirtualTimeScheduler=DD;class LQ extends mv.AsyncAction{scheduler;work;index;active=!0;constructor(Z,$,J=Z.index+=1){super(Z,$);this.scheduler=Z,this.work=$,this.index=J,this.index=Z.index=J}schedule(Z,$=0){if(Number.isFinite($)){if(!this.id)return super.schedule(Z,$);this.active=!1;let J=new LQ(this.scheduler,this.work);return this.add(J),J.schedule(Z,$)}else return jv.Subscription.EMPTY}requestAsyncId(Z,$,J=0){this.delay=Z.frame+J;let{actions:Y}=Z;return Y.push(this),Y.sort(LQ.sortActions),1}recycleAsyncId(Z,$,J=0){return}_execute(Z,$){if(this.active===!0)return super._execute(Z,$)}static sortActions(Z,$){if(Z.delay===$.delay)if(Z.index===$.index)return 0;else if(Z.index>$.index)return 1;else return-1;else if(Z.delay>$.delay)return 1;else return-1}}UD.VirtualAction=LQ});var TW=q((kD)=>{Object.defineProperty(kD,"__esModule",{value:!0});kD.rx=void 0;var gv=I();function bv(Z,...$){return $.reduce(cv,(0,gv.from)(Z))}kD.rx=bv;function cv(Z,$){return $(Z)}});var RW=q((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.pipe=void 0;function dv(...Z){return Z.length===1?Z[0]:($)=>Z.reduce(uv,$)}fD.pipe=dv;function uv(Z,$){return $(Z)}});var X0=q((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.noop=void 0;function lv(){}PD.noop=lv});var v0=q((xD)=>{Object.defineProperty(xD,"__esModule",{value:!0});xD.identity=void 0;function pv(Z){return Z}xD.identity=pv});var c8=q((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.EmptyError=void 0;class CD extends Error{constructor(){super("no elements in sequence");this.name="EmptyError"}}hD.EmptyError=CD});var yD=q((TD)=>{Object.defineProperty(TD,"__esModule",{value:!0});TD.lastValueFrom=void 0;var iv=c8();function nv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=!1,K;Z.subscribe({next:(Q)=>{K=Q,z=!0},error:X,complete:()=>{if(z)Y(K);else if(J)Y($.defaultValue);else X(new iv.EmptyError)}})})}TD.lastValueFrom=nv});var _D=q((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.firstValueFrom=void 0;var av=I(),rv=c8();function sv(Z,$){let J=typeof $==="object";return new Promise((Y,X)=>{let z=new av.Subscriber({next:(K)=>{Y(K),z.unsubscribe()},error:X,complete:()=>{if(J)Y($.defaultValue);else X(new rv.EmptyError)}});Z.subscribe(z)})}mD.firstValueFrom=sv});var yW=q((gD)=>{Object.defineProperty(gD,"__esModule",{value:!0});gD.ArgumentOutOfRangeError=void 0;class SD extends Error{constructor(){super("argument out of range");this.name="ArgumentOutOfRangeError"}}gD.ArgumentOutOfRangeError=SD});var mW=q((dD)=>{Object.defineProperty(dD,"__esModule",{value:!0});dD.NotFoundError=void 0;class cD extends Error{constructor(Z){super(Z);this.name="NotFoundError"}}dD.NotFoundError=cD});var jW=q((pD)=>{Object.defineProperty(pD,"__esModule",{value:!0});pD.SequenceError=void 0;class lD extends Error{constructor(Z){super(Z);this.name="SequenceError"}}pD.SequenceError=lD});var oQ=q((nD)=>{Object.defineProperty(nD,"__esModule",{value:!0});nD.isValidDate=void 0;function tv(Z){return Z instanceof Date&&!isNaN(Z)}nD.isValidDate=tv});var u0=q((rD)=>{Object.defineProperty(rD,"__esModule",{value:!0});rD.executeSchedule=void 0;function ov(Z,$,J,Y=0,X=!1){if(!Z.closed){let z=$.schedule(function(){if(J(),X)Z.add(this.schedule(null,Y));else this.unsubscribe()},Y);if(Z.add(z),!X)return z}}rD.executeSchedule=ov});var eQ=q((tD)=>{Object.defineProperty(tD,"__esModule",{value:!0});tD.timeout=tD.TimeoutError=void 0;var ev=h0(),ZT=oQ(),_W=I(),$T=u0();class SW extends Error{info;constructor(Z=null){super("Timeout has occurred");this.info=Z,this.name="TimeoutError"}}tD.TimeoutError=SW;function JT(Z,$){let{first:J,each:Y,with:X=YT,scheduler:z=$??ev.asyncScheduler,meta:K=null}=(0,ZT.isValidDate)(Z)?{first:Z}:typeof Z==="number"?{each:Z}:Z;if(J==null&&Y==null)throw TypeError("No timeout provided.");return(Q)=>new _W.Observable((W)=>{let L,D,f=null,V=0,A=(x)=>{D=(0,$T.executeSchedule)(W,z,()=>{try{L.unsubscribe(),(0,_W.from)(X({meta:K,lastValue:f,seen:V})).subscribe(W)}catch(y){W.error(y)}},x)};L=Q.subscribe((0,_W.operate)({destination:W,next:(x)=>{D?.unsubscribe(),V++,W.next(f=x),Y>0&&A(Y)},finalize:()=>{D?.unsubscribe(),f=null}})),!V&&A(J!=null?typeof J==="number"?J:+J-z.now():Y)})}tD.timeout=JT;function YT(Z){throw new SW(Z)}});var wQ=q((eD)=>{Object.defineProperty(eD,"__esModule",{value:!0});eD.isScheduler=void 0;var zT=I();function KT(Z){return Z&&(0,zT.isFunction)(Z.schedule)}eD.isScheduler=KT});var cH=q((JU)=>{Object.defineProperty(JU,"__esModule",{value:!0});JU.map=void 0;var $U=I();function HT(Z){return($)=>new $U.Observable((J)=>{let Y=0;$.subscribe((0,$U.operate)({destination:J,next:(X)=>{J.next(Z(X,Y++))}}))})}JU.map=HT});var dH=q((XU)=>{Object.defineProperty(XU,"__esModule",{value:!0});XU.mapOneOrManyArgs=void 0;var QT=cH(),{isArray:qT}=Array;function WT(Z,$){return qT($)?Z(...$):Z($)}function NT(Z){return(0,QT.map)(($)=>WT(Z,$))}XU.mapOneOrManyArgs=NT});var Zq=q((HU)=>{Object.defineProperty(HU,"__esModule",{value:!0});HU.observeOn=void 0;var gW=u0(),KU=I();function BT(Z,$=0){return(J)=>new KU.Observable((Y)=>{J.subscribe((0,KU.operate)({destination:Y,next:(X)=>(0,gW.executeSchedule)(Y,Z,()=>Y.next(X),$),error:(X)=>(0,gW.executeSchedule)(Y,Z,()=>Y.error(X),$),complete:()=>(0,gW.executeSchedule)(Y,Z,()=>Y.complete(),$)}))})}HU.observeOn=BT});var $q=q((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.subscribeOn=void 0;var FT=I();function GT(Z,$=0){return(J)=>new FT.Observable((Y)=>{Y.add(Z.schedule(()=>J.subscribe(Y),$))})}qU.subscribeOn=GT});var FU=q((NU)=>{Object.defineProperty(NU,"__esModule",{value:!0});NU.scheduleObservable=void 0;var LT=I(),wT=Zq(),DT=$q();function UT(Z,$){return(0,LT.from)(Z).pipe((0,DT.subscribeOn)($),(0,wT.observeOn)($))}NU.scheduleObservable=UT});var wU=q((GU)=>{Object.defineProperty(GU,"__esModule",{value:!0});GU.schedulePromise=void 0;var IT=I(),OT=Zq(),kT=$q();function ET(Z,$){return(0,IT.from)(Z).pipe((0,kT.subscribeOn)($),(0,OT.observeOn)($))}GU.schedulePromise=ET});var OU=q((UU)=>{Object.defineProperty(UU,"__esModule",{value:!0});UU.scheduleArray=void 0;var fT=I(),DU=u0();function VT(Z,$){return new fT.Observable((J)=>{let Y=0,X=()=>{if(Y===Z.length)J.complete();else J.next(Z[Y++]),(0,DU.executeSchedule)(J,$,X)};return(0,DU.executeSchedule)(J,$,X)})}UU.scheduleArray=VT});var VU=q((EU)=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.iterator=EU.getSymbolIterator=void 0;function kU(){if(typeof Symbol!=="function"||!Symbol.iterator)return"@@iterator";return Symbol.iterator}EU.getSymbolIterator=kU;EU.iterator=kU()});var bW=q((xU)=>{Object.defineProperty(xU,"__esModule",{value:!0});xU.scheduleIterable=void 0;var PU=I(),AT=VU(),AU=u0();function xT(Z,$){return new PU.Observable((J)=>{let Y;return(0,AU.executeSchedule)(J,$,()=>{Y=Z[AT.iterator](),(0,AU.executeSchedule)(J,$,()=>{let X,z;try{({value:X,done:z}=Y.next())}catch(K){J.error(K);return}if(z)J.complete();else J.next(X)},0,!0)}),()=>(0,PU.isFunction)(Y?.return)&&Y.return()})}xU.scheduleIterable=xT});var cW=q((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.scheduleAsyncIterable=void 0;var MT=I(),CU=u0();function CT(Z,$){if(!Z)throw Error("Iterable cannot be null");return new MT.Observable((J)=>{(0,CU.executeSchedule)(J,$,()=>{let Y=Z[Symbol.asyncIterator]();(0,CU.executeSchedule)(J,$,()=>{Y.next().then((X)=>{if(X.done)J.complete();else J.next(X.value)})},0,!0)})})}hU.scheduleAsyncIterable=CT});var yU=q((TU)=>{Object.defineProperty(TU,"__esModule",{value:!0});TU.scheduleReadableStreamLike=void 0;var hT=I(),vT=cW();function TT(Z,$){return(0,vT.scheduleAsyncIterable)((0,hT.readableStreamLikeToAsyncGenerator)(Z),$)}TU.scheduleReadableStreamLike=TT});var DQ=q((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.scheduled=void 0;var RT=FU(),yT=wU(),mT=OU(),jT=bW(),_T=cW(),O6=I(),ST=yU();function gT(Z,$){switch((0,O6.getObservableInputType)(Z)){case O6.ObservableInputType.Own:case O6.ObservableInputType.InteropObservable:return(0,RT.scheduleObservable)(Z,$);case O6.ObservableInputType.Promise:return(0,yT.schedulePromise)(Z,$);case O6.ObservableInputType.ArrayLike:return(0,mT.scheduleArray)(Z,$);case O6.ObservableInputType.Iterable:return(0,jT.scheduleIterable)(Z,$);case O6.ObservableInputType.AsyncIterable:return(0,_T.scheduleAsyncIterable)(Z,$);case O6.ObservableInputType.ReadableStreamLike:return(0,ST.scheduleReadableStreamLike)(Z,$)}}mU.scheduled=gT});var uW=q((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.bindCallbackInternals=void 0;var bT=wQ(),cT=I(),dT=dH(),uT=MW(),lT=DQ();function dW(Z,$,J,Y){if(J)if((0,bT.isScheduler)(J))Y=J;else return function(...X){return(0,dT.mapOneOrManyArgs)(J)(dW(Z,$,Y).apply(this,X))};if(Y)return function(...X){return(0,lT.scheduled)(dW(Z,$).apply(this,X),Y)};return function(...X){let z=new uT.AsyncSubject,K=!0;return new cT.Observable((Q)=>{let W=z.subscribe(Q);if(K){K=!1;let L=!1,D=!1;if($.apply(this,[...X,(...f)=>{if(Z){let V=f.shift();if(V!=null){z.error(V);return}}if(z.next(1<f.length?f:f[0]),D=!0,L)z.complete()}]),D)z.complete();L=!0}return W})}}_U.bindCallbackInternals=dW});var cU=q((gU)=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.bindCallback=void 0;var pT=uW();function iT(Z,$,J){return(0,pT.bindCallbackInternals)(!1,Z,$,J)}gU.bindCallback=iT});var lU=q((dU)=>{Object.defineProperty(dU,"__esModule",{value:!0});dU.bindNodeCallback=void 0;var nT=uW();function aT(Z,$,J){return(0,nT.bindCallbackInternals)(!0,Z,$,J)}dU.bindNodeCallback=aT});var lW=q((iU)=>{Object.defineProperty(iU,"__esModule",{value:!0});iU.arrayOrObject=iU.argsArgArrayOrObject=void 0;var{isArray:rT}=Array,{getPrototypeOf:sT,prototype:tT,keys:oT}=Object;function eT(Z){if(Z.length===1){let $=Z[0],J=pU($);if(J)return J}return{args:Z,keys:null}}iU.argsArgArrayOrObject=eT;function pU(Z){if(rT(Z))return{args:Z,keys:null};if(ZR(Z)){let $=oT(Z);return{args:$.map((J)=>Z[J]),keys:$}}return null}iU.arrayOrObject=pU;function ZR(Z){return Z&&typeof Z==="object"&&sT(Z)===tT}});var pW=q((aU)=>{Object.defineProperty(aU,"__esModule",{value:!0});aU.createObject=void 0;function JR(Z,$){return Z.reduce((J,Y,X)=>(J[Y]=$[X],J),{})}aU.createObject=JR});var C8=q((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.EMPTY=void 0;var YR=I();sU.EMPTY=new YR.Observable((Z)=>Z.complete())});var Jq=q((Z2)=>{Object.defineProperty(Z2,"__esModule",{value:!0});Z2.combineLatestInit=Z2.combineLatest=void 0;var iW=I(),XR=lW(),oU=v0(),zR=pW(),KR=C8();function HR(Z,$){let J=(0,XR.arrayOrObject)(Z);if(!J)throw TypeError("sources must be an array or object");let{args:Y,keys:X}=J;if(Y.length===0)return KR.EMPTY;return new iW.Observable(eU(Y,X?(z)=>(0,zR.createObject)(X,z):$?(z)=>$(...z):oU.identity))}Z2.combineLatest=HR;function eU(Z,$=oU.identity){return(J)=>{let{length:Y}=Z,X=Array(Y),z=Y,K=Y;for(let Q=0;Q<Y;Q++){let W=(0,iW.from)(Z[Q]),L=!1;W.subscribe((0,iW.operate)({destination:J,next:(D)=>{if(X[Q]=D,!L)L=!0,K--;if(!K)J.next($(Array.from(X)))},complete:()=>{if(!--z)J.complete()}}))}}}Z2.combineLatestInit=eU});var Yq=q((J2)=>{Object.defineProperty(J2,"__esModule",{value:!0});J2.mergeInternals=void 0;var nW=I(),qR=u0();function WR(Z,$,J,Y,X,z,K,Q){let W=[],L=0,D=0,f=!1,V=()=>{if(f&&!W.length&&!L)$.complete()},A=(y)=>L<Y?x(y):W.push(y),x=(y)=>{z&&$.next(y),L++;let V0=!1;(0,nW.from)(J(y,D++)).subscribe((0,nW.operate)({destination:$,next:(z0)=>{if(X?.(z0),z)A(z0);else $.next(z0)},complete:()=>{V0=!0},finalize:()=>{if(V0)try{L--;while(W.length&&L<Y){let z0=W.shift();if(K)(0,qR.executeSchedule)($,K,()=>x(z0));else x(z0)}V()}catch(z0){$.error(z0)}}}))};return Z.subscribe((0,nW.operate)({destination:$,next:A,complete:()=>{f=!0,V()}})),()=>{Q?.()}}J2.mergeInternals=WR});var L9=q((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});X2.mergeMap=void 0;var NR=I(),BR=Yq();function FR(Z,$=1/0){return(J)=>new NR.Observable((Y)=>(0,BR.mergeInternals)(J,Y,Z,$))}X2.mergeMap=FR});var UQ=q((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});K2.mergeAll=void 0;var GR=L9(),LR=v0();function wR(Z=1/0){return(0,GR.mergeMap)(LR.identity,Z)}K2.mergeAll=wR});var Xq=q((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.concatAll=void 0;var DR=UQ();function UR(){return(0,DR.mergeAll)(1)}Q2.concatAll=UR});var k6=q((W2)=>{Object.defineProperty(W2,"__esModule",{value:!0});W2.popNumber=W2.popScheduler=W2.popResultSelector=void 0;var IR=I(),OR=wQ();function aW(Z){return Z[Z.length-1]}function kR(Z){return(0,IR.isFunction)(aW(Z))?Z.pop():void 0}W2.popResultSelector=kR;function ER(Z){return(0,OR.isScheduler)(aW(Z))?Z.pop():void 0}W2.popScheduler=ER;function fR(Z,$){return typeof aW(Z)==="number"?Z.pop():$}W2.popNumber=fR});var rW=q((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.concat=void 0;var AR=I(),xR=Xq(),MR=k6(),CR=DQ();function hR(...Z){let $=(0,MR.popScheduler)(Z);return(0,xR.concatAll)()($?(0,CR.scheduled)(Z,$):(0,AR.from)(Z))}B2.concat=hR});var IQ=q((L2)=>{Object.defineProperty(L2,"__esModule",{value:!0});L2.defer=void 0;var G2=I();function vR(Z){return new G2.Observable(($)=>{(0,G2.from)(Z()).subscribe($)})}L2.defer=vR});var I2=q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});D2.connectable=void 0;var TR=q0(),RR=I(),yR=IQ(),mR={connector:()=>new TR.Subject,resetOnDisconnect:!0};function jR(Z,$=mR){let J=null,{connector:Y,resetOnDisconnect:X=!0}=$,z=Y(),K=new RR.Observable((Q)=>{return z.subscribe(Q)});return K.connect=()=>{if(!J||J.closed){if(J=(0,yR.defer)(()=>Z).subscribe(z),X)J.add(()=>z=Y())}return J},K}D2.connectable=jR});var E2=q((O2)=>{Object.defineProperty(O2,"__esModule",{value:!0});O2.forkJoin=void 0;var sW=I(),_R=lW(),SR=k6(),gR=dH(),bR=pW(),cR=c8();function dR(...Z){let $=(0,SR.popResultSelector)(Z),{args:J,keys:Y}=(0,_R.argsArgArrayOrObject)(Z),X=new sW.Observable((z)=>{let{length:K}=J;if(!K){z.complete();return}let Q=Array(K),W=K,L=K;for(let D=0;D<K;D++){let f=!1;(0,sW.from)(J[D]).subscribe((0,sW.operate)({destination:z,next:(V)=>{if(!f)f=!0,L--;Q[D]=V},complete:()=>W--,finalize:()=>{if(!W||!f)if(L===0)z.next(Y?(0,bR.createObject)(Y,Q):Q),z.complete();else z.error(new cR.EmptyError)}}))}});return $?(0,gR.mapOneOrManyArgs)($)(X):X}O2.forkJoin=dR});var h2=q((M2)=>{Object.defineProperty(M2,"__esModule",{value:!0});M2.fromEvent=void 0;var d8=I(),uR=dH(),lR=["addListener","removeListener"],pR=["addEventListener","removeEventListener"],iR=["on","off"];function V2(Z,$,J,Y){if((0,d8.isFunction)(J))Y=J,J=void 0;if(Y)return(0,uR.mapOneOrManyArgs)(Y)(V2(Z,$,J));let X=P2(Z)||A2(Z)||x2(Z);if(!X&&!(0,d8.isArrayLike)(Z))throw TypeError("Invalid event target");return new d8.Observable((z)=>{let K=(...Q)=>z.next(1<Q.length?Q:Q[0]);if(X)f2(K,z,Z,$,J);else for(let Q=0;Q<Z.length&&!z.closed;Q++){let W=Z[Q];f2(K,z,W,$,J)}})}M2.fromEvent=V2;function f2(Z,$,J,Y,X){let[z,K]=nR(J);if(!z||!K)throw TypeError("Invalid event target");J[z](Y,Z,X),$.add(()=>J[K](Y,Z,X))}function nR(Z){return x2(Z)?pR:P2(Z)?lR:A2(Z)?iR:[]}function P2(Z){return(0,d8.isFunction)(Z.addListener)&&(0,d8.isFunction)(Z.removeListener)}function A2(Z){return(0,d8.isFunction)(Z.on)&&(0,d8.isFunction)(Z.off)}function x2(Z){return(0,d8.isFunction)(Z.addEventListener)&&(0,d8.isFunction)(Z.removeEventListener)}});var m2=q((R2)=>{Object.defineProperty(R2,"__esModule",{value:!0});R2.fromEventPattern=void 0;var v2=I(),aR=dH();function T2(Z,$,J){if(J)return(0,aR.mapOneOrManyArgs)(J)(T2(Z,$));return new v2.Observable((Y)=>{let X=(...K)=>Y.next(K.length===1?K[0]:K),z=Z(X);return(0,v2.isFunction)($)?()=>$(X,z):void 0})}R2.fromEventPattern=T2});var g2=q((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.generate=void 0;var j2=v0(),rR=wQ(),sR=IQ(),tR=bW();function oR(Z,$,J,Y,X){let z,K;if(arguments.length===1)({initialState:K,condition:$,iterate:J,resultSelector:z=j2.identity,scheduler:X}=Z);else if(K=Z,!Y||(0,rR.isScheduler)(Y))z=j2.identity,X=Y;else z=Y;function*Q(){for(let W=K;!$||$(W);W=J(W))yield z(W)}return(0,sR.defer)(X?()=>(0,tR.scheduleIterable)(Q(),X):Q)}_2.generate=oR});var d2=q((b2)=>{Object.defineProperty(b2,"__esModule",{value:!0});b2.iif=void 0;var eR=IQ();function Zy(Z,$,J){return(0,eR.defer)(()=>Z()?$:J)}b2.iif=Zy});var E6=q((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});l2.timer=void 0;var $y=I(),Jy=h0(),Yy=wQ(),Xy=oQ(),u2=u0();function zy(Z=0,$,J=Jy.asyncScheduler){let Y=-1;if($!=null)if((0,Yy.isScheduler)($))J=$;else Y=$;return new $y.Observable((X)=>{let z=(0,Xy.isValidDate)(Z)?+Z-J.now():Z;if(z<0)z=0;let K=0;return(0,u2.executeSchedule)(X,J,()=>{if(X.next(K++),0<=Y)(0,u2.executeSchedule)(X,J,()=>{X.next(K++)},Y,!0);else X.complete()},z)})}l2.timer=zy});var tW=q((i2)=>{Object.defineProperty(i2,"__esModule",{value:!0});i2.interval=void 0;var Ky=h0(),Hy=E6();function Qy(Z=0,$=Ky.asyncScheduler){if(Z<0)Z=0;return(0,Hy.timer)(Z,Z,$)}i2.interval=Qy});var o2=q((s2)=>{Object.defineProperty(s2,"__esModule",{value:!0});s2.merge=void 0;var a2=I(),qy=UQ(),Wy=C8(),r2=k6(),Ny=DQ();function By(...Z){let $=(0,r2.popScheduler)(Z),J=(0,r2.popNumber)(Z,1/0),Y=Z;return!Y.length?Wy.EMPTY:Y.length===1?(0,a2.from)(Y[0]):(0,qy.mergeAll)(J)($?(0,Ny.scheduled)(Y,$):(0,a2.from)(Y))}s2.merge=By});var $I=q((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.of=void 0;var Fy=I();function Gy(...Z){return(0,Fy.fromArrayLike)(Z)}e2.of=Gy});var OQ=q((JI)=>{Object.defineProperty(JI,"__esModule",{value:!0});JI.argsOrArgArray=void 0;var{isArray:Ly}=Array;function wy(Z){return Z.length===1&&Ly(Z[0])?Z[0]:Z}JI.argsOrArgArray=wy});var eW=q((zI)=>{Object.defineProperty(zI,"__esModule",{value:!0});zI.onErrorResumeNext=void 0;var oW=I(),Dy=OQ(),XI=X0();function Uy(...Z){let $=(0,Dy.argsOrArgArray)(Z);return new oW.Observable((J)=>{let Y=0,X=()=>{if(Y<$.length){let z;try{z=(0,oW.from)($[Y++])}catch(Q){X();return}let K=(0,oW.operate)({destination:J,error:XI.noop,complete:XI.noop});z.subscribe(K),K.add(X)}else J.complete()};X()})}zI.onErrorResumeNext=Uy});var qI=q((HI)=>{Object.defineProperty(HI,"__esModule",{value:!0});HI.not=void 0;function Iy(Z,$){return(J,Y)=>!Z.call($,J,Y)}HI.not=Iy});var zq=q((NI)=>{Object.defineProperty(NI,"__esModule",{value:!0});NI.filter=void 0;var WI=I();function Oy(Z,$){return(J)=>new WI.Observable((Y)=>{let X=0;J.subscribe((0,WI.operate)({destination:Y,next:(z)=>Z.call($,z,X++)&&Y.next(z)}))})}NI.filter=Oy});var DI=q((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.partition=void 0;var ky=qI(),FI=zq(),GI=I();function Ey(Z,$,J){return[(0,FI.filter)($,J)((0,GI.from)(Z)),(0,FI.filter)((0,ky.not)($,J))((0,GI.from)(Z))]}LI.partition=Ey});var ZN=q((II)=>{Object.defineProperty(II,"__esModule",{value:!0});II.raceInit=II.race=void 0;var Kq=I(),fy=OQ();function Vy(...Z){return Z=(0,fy.argsOrArgArray)(Z),Z.length===1?(0,Kq.from)(Z[0]):new Kq.Observable(UI(Z))}II.race=Vy;function UI(Z){return($)=>{let J=[];for(let Y=0;J&&!$.closed&&Y<Z.length;Y++)J.push((0,Kq.from)(Z[Y]).subscribe((0,Kq.operate)({destination:$,next:(X)=>{if(J){for(let z=0;z<J.length;z++)z!==Y&&J[z].unsubscribe();J=null}$.next(X)}})))}}II.raceInit=UI});var VI=q((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.range=void 0;var Ay=I(),xy=C8(),kI=u0();function My(Z,$,J){if($==null)$=Z,Z=0;if($<=0)return xy.EMPTY;let Y=$+Z;return new Ay.Observable(J?(X)=>{let z=Z,K=()=>{if(z<Y){if(X.next(z++),!X.closed)(0,kI.executeSchedule)(X,J,K)}else X.complete()};(0,kI.executeSchedule)(X,J,K)}:(X)=>{let z=Z;while(z<Y&&!X.closed)X.next(z++);X.complete()})}EI.range=My});var xI=q((PI)=>{Object.defineProperty(PI,"__esModule",{value:!0});PI.throwError=void 0;var Cy=I();function hy(Z){return new Cy.Observable(($)=>{$.error(Z())})}PI.throwError=hy});var vI=q((CI)=>{Object.defineProperty(CI,"__esModule",{value:!0});CI.using=void 0;var MI=I(),vy=C8();function Ty(Z,$){return new MI.Observable((J)=>{let Y=Z(),X=$(Y);return(X?(0,MI.from)(X):vy.EMPTY).subscribe(J),()=>{if(Y)Y.unsubscribe()}})}CI.using=Ty});var Hq=q((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.zip=void 0;var $N=I(),Ry=OQ(),yy=C8(),my=k6();function jy(...Z){let $=(0,my.popResultSelector)(Z),J=(0,Ry.argsOrArgArray)(Z);return J.length?new $N.Observable((Y)=>{let X=J.map(()=>[]),z=J.map(()=>!1);Y.add(()=>{X=z=null});for(let K=0;!Y.closed&&K<J.length;K++)(0,$N.from)(J[K]).subscribe((0,$N.operate)({destination:Y,next:(Q)=>{if(X[K].push(Q),X.every((W)=>W.length)){let W=X.map((L)=>L.shift());if(Y.next($?$(...W):W),X.some((L,D)=>!L.length&&z[D]))Y.complete()}},complete:()=>{z[K]=!0,!X[K].length&&Y.complete()}}));return()=>{X=z=null}}):yy.EMPTY}TI.zip=jy});var jI=q((yI)=>{Object.defineProperty(yI,"__esModule",{value:!0});yI.NEVER=void 0;var _y=I(),Sy=X0();yI.NEVER=new _y.Observable(Sy.noop)});var SI=q((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0})});var JN=q((gI)=>{Object.defineProperty(gI,"__esModule",{value:!0});gI.audit=void 0;var Qq=I();function gy(Z){return($)=>new Qq.Observable((J)=>{let Y=!1,X=null,z=null,K=!1,Q=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let L=X;X=null,J.next(L)}K&&J.complete()},W=()=>{z=null,K&&J.complete()};$.subscribe((0,Qq.operate)({destination:J,next:(L)=>{if(Y=!0,X=L,!z)(0,Qq.from)(Z(L)).subscribe(z=(0,Qq.operate)({destination:J,next:Q,complete:W}))},complete:()=>{K=!0,(!Y||!z||z.closed)&&J.complete()}}))})}gI.audit=gy});var uI=q((cI)=>{Object.defineProperty(cI,"__esModule",{value:!0});cI.auditTime=void 0;var by=h0(),cy=JN(),dy=E6();function uy(Z,$=by.asyncScheduler){return(0,cy.audit)(()=>(0,dy.timer)(Z,$))}cI.auditTime=uy});var iI=q((lI)=>{Object.defineProperty(lI,"__esModule",{value:!0});lI.buffer=void 0;var qq=I(),ly=X0();function py(Z){return($)=>new qq.Observable((J)=>{let Y=[];return(0,qq.from)(Z).subscribe((0,qq.operate)({destination:J,next:()=>{let X=Y;Y=[],J.next(X)},complete:ly.noop})),$.subscribe((0,qq.operate)({destination:J,next:(X)=>Y.push(X),complete:()=>{J.next(Y),J.complete()}})),()=>{Y=null}})}lI.buffer=py});var sI=q((aI)=>{Object.defineProperty(aI,"__esModule",{value:!0});aI.bufferCount=void 0;var nI=I(),iy=G9();function ny(Z,$=null){return $=$??Z,(J)=>new nI.Observable((Y)=>{let X=[],z=0;J.subscribe((0,nI.operate)({destination:Y,next:(K)=>{let Q=null;if(z++%$===0)X.push([]);for(let W of X)if(W.push(K),Z<=W.length)Q=Q??[],Q.push(W);if(Q)for(let W of Q)(0,iy.arrRemove)(X,W),Y.next(W)},complete:()=>{for(let K of X)Y.next(K);Y.complete()},finalize:()=>{X=null}}))})}aI.bufferCount=ny});var ZO=q((oI)=>{Object.defineProperty(oI,"__esModule",{value:!0});oI.bufferTime=void 0;var YN=I(),ay=G9(),ry=h0(),sy=k6(),tI=u0();function ty(Z,...$){let J=(0,sy.popScheduler)($)??ry.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new YN.Observable((K)=>{let Q=[],W=!1,L=(V)=>{let{buffer:A,subs:x}=V;x.unsubscribe(),(0,ay.arrRemove)(Q,V),K.next(A),W&&D()},D=()=>{if(Q){let V=new YN.Subscription;K.add(V);let x={buffer:[],subs:V};Q.push(x),(0,tI.executeSchedule)(V,J,()=>L(x),Z)}};if(Y!==null&&Y>=0)(0,tI.executeSchedule)(K,J,D,Y,!0);else W=!0;D();let f=(0,YN.operate)({destination:K,next:(V)=>{let A=Q.slice();for(let x of A){let{buffer:y}=x;y.push(V),X<=y.length&&L(x)}},complete:()=>{while(Q?.length)K.next(Q.shift().buffer);f?.unsubscribe(),K.complete(),K.unsubscribe()},finalize:()=>Q=null});z.subscribe(f)})}oI.bufferTime=ty});var XO=q((JO)=>{Object.defineProperty(JO,"__esModule",{value:!0});JO.bufferToggle=void 0;var w9=I(),$O=X0(),oy=G9();function ey(Z,$){return(J)=>new w9.Observable((Y)=>{let X=[];(0,w9.from)(Z).subscribe((0,w9.operate)({destination:Y,next:(z)=>{let K=[];X.push(K);let Q=new w9.Subscription,W=()=>{(0,oy.arrRemove)(X,K),Y.next(K),Q.unsubscribe()};Q.add((0,w9.from)($(z)).subscribe((0,w9.operate)({destination:Y,next:W,complete:$O.noop})))},complete:$O.noop})),J.subscribe((0,w9.operate)({destination:Y,next:(z)=>{for(let K of X)K.push(z)},complete:()=>{while(X.length>0)Y.next(X.shift());Y.complete()}}))})}JO.bufferToggle=ey});var HO=q((zO)=>{Object.defineProperty(zO,"__esModule",{value:!0});zO.bufferWhen=void 0;var Wq=I(),Zm=X0();function $m(Z){return($)=>new Wq.Observable((J)=>{let Y=null,X=null,z=()=>{X?.unsubscribe();let K=Y;Y=[],K&&J.next(K),(0,Wq.from)(Z()).subscribe(X=(0,Wq.operate)({destination:J,next:z,complete:Zm.noop}))};z(),$.subscribe((0,Wq.operate)({destination:J,next:(K)=>Y?.push(K),complete:()=>{Y&&J.next(Y),J.complete()},finalize:()=>Y=X=null}))})}zO.bufferWhen=$m});var NO=q((qO)=>{Object.defineProperty(qO,"__esModule",{value:!0});qO.catchError=void 0;var XN=I();function QO(Z){return($)=>new XN.Observable((J)=>{let Y=null,X=!1,z;if(Y=$.subscribe((0,XN.operate)({destination:J,error:(K)=>{if(z=(0,XN.from)(Z(K,QO(Z)($))),Y)Y.unsubscribe(),Y=null,z.subscribe(J);else X=!0}})),X)Y.unsubscribe(),Y=null,z.subscribe(J)})}qO.catchError=QO});var zN=q((BO)=>{Object.defineProperty(BO,"__esModule",{value:!0});BO.scanInternals=void 0;var Jm=I();function Ym(Z,$,J,Y,X,z,K){let Q=J,W=$,L=0;z.subscribe((0,Jm.operate)({destination:K,next:(D)=>{let f=L++;W=Q?Z(W,D,f):(Q=!0,D),Y&&K.next(W)},complete:X?()=>{Q&&K.next(W),K.complete()}:void 0}))}BO.scanInternals=Ym});var uH=q((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.reduce=void 0;var Xm=zN(),zm=I();function Km(Z,$){let J=arguments.length>=2;return(Y)=>new zm.Observable((X)=>(0,Xm.scanInternals)(Z,$,J,!1,!0,Y,X))}GO.reduce=Km});var KN=q((wO)=>{Object.defineProperty(wO,"__esModule",{value:!0});wO.toArray=void 0;var Hm=uH(),Qm=I(),qm=(Z,$)=>(Z.push($),Z);function Wm(){return(Z)=>new Qm.Observable(($)=>{(0,Hm.reduce)(qm,[])(Z).subscribe($)})}wO.toArray=Wm});var HN=q((UO)=>{Object.defineProperty(UO,"__esModule",{value:!0});UO.joinAllInternals=void 0;var Nm=v0(),Bm=dH(),Fm=RW(),Gm=L9(),Lm=KN();function wm(Z,$){return(0,Fm.pipe)((0,Lm.toArray)(),(0,Gm.mergeMap)((J)=>Z(J)),$?(0,Bm.mapOneOrManyArgs)($):Nm.identity)}UO.joinAllInternals=wm});var EO=q((OO)=>{Object.defineProperty(OO,"__esModule",{value:!0});OO.combineLatestAll=void 0;var Dm=Jq(),Um=HN();function Im(Z){return(0,Um.joinAllInternals)(Dm.combineLatest,Z)}OO.combineLatestAll=Im});var PO=q((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.combineLatestWith=void 0;var Om=Jq(),km=I();function Em(...Z){return($)=>new km.Observable((J)=>(0,Om.combineLatestInit)([$,...Z])(J))}fO.combineLatestWith=Em});var QN=q((AO)=>{Object.defineProperty(AO,"__esModule",{value:!0});AO.concatMap=void 0;var fm=L9();function Vm(Z){return(0,fm.mergeMap)(Z,1)}AO.concatMap=Vm});var hO=q((MO)=>{Object.defineProperty(MO,"__esModule",{value:!0});MO.concatMapTo=void 0;var Pm=QN();function Am(Z){return(0,Pm.concatMap)(()=>Z)}MO.concatMapTo=Am});var yO=q((TO)=>{Object.defineProperty(TO,"__esModule",{value:!0});TO.concatWith=void 0;var vO=I(),xm=Xq();function Mm(...Z){return($)=>new vO.Observable((J)=>{(0,xm.concatAll)()((0,vO.from)([$,...Z])).subscribe(J)})}TO.concatWith=Mm});var _O=q((mO)=>{Object.defineProperty(mO,"__esModule",{value:!0});mO.fromSubscribable=void 0;var Cm=I();function hm(Z){return new Cm.Observable(($)=>Z.subscribe($))}mO.fromSubscribable=hm});var cO=q((gO)=>{Object.defineProperty(gO,"__esModule",{value:!0});gO.connect=void 0;var SO=I(),vm=q0(),Tm=_O(),Rm={connector:()=>new vm.Subject};function ym(Z,$=Rm){let{connector:J}=$;return(Y)=>new SO.Observable((X)=>{let z=J();(0,SO.from)(Z((0,Tm.fromSubscribable)(z))).subscribe(X),X.add(Y.subscribe(z))})}gO.connect=ym});var lO=q((dO)=>{Object.defineProperty(dO,"__esModule",{value:!0});dO.count=void 0;var mm=uH();function jm(Z){return(0,mm.reduce)(($,J,Y)=>!Z||Z(J,Y)?$+1:$,0)}dO.count=jm});var nO=q((pO)=>{Object.defineProperty(pO,"__esModule",{value:!0});pO.debounce=void 0;var Nq=I(),_m=X0();function Sm(Z){return($)=>new Nq.Observable((J)=>{let Y=!1,X=null,z=null,K=()=>{if(z?.unsubscribe(),z=null,Y){Y=!1;let Q=X;X=null,J.next(Q)}};$.subscribe((0,Nq.operate)({destination:J,next:(Q)=>{z?.unsubscribe(),Y=!0,X=Q,z=(0,Nq.operate)({destination:J,next:K,complete:_m.noop}),(0,Nq.from)(Z(Q)).subscribe(z)},complete:()=>{K(),J.complete()},finalize:()=>{X=z=null}}))})}pO.debounce=Sm});var tO=q((rO)=>{Object.defineProperty(rO,"__esModule",{value:!0});rO.debounceTime=void 0;var gm=h0(),aO=I(),bm=u0();function cm(Z,$=gm.asyncScheduler){return(J)=>new aO.Observable((Y)=>{let X,z;J.subscribe((0,aO.operate)({destination:Y,next:(K)=>{X=K,z?.unsubscribe(),z=(0,bm.executeSchedule)(Y,$,()=>{z=void 0;let Q=X;X=null,Y.next(Q)},Z)},complete:()=>{if(z)Y.next(X);Y.complete()},finalize:()=>{X=z=null}}))})}rO.debounceTime=cm});var $k=q((eO)=>{Object.defineProperty(eO,"__esModule",{value:!0});eO.defaultIfEmpty=void 0;var oO=I();function dm(Z){return($)=>new oO.Observable((J)=>{let Y=!1;$.subscribe((0,oO.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>{if(!Y)J.next(Z);J.complete()}}))})}eO.defaultIfEmpty=dm});var qN=q((Yk)=>{Object.defineProperty(Yk,"__esModule",{value:!0});Yk.take=void 0;var um=C8(),Jk=I();function lm(Z){return Z<=0?()=>um.EMPTY:($)=>new Jk.Observable((J)=>{let Y=0,X=(0,Jk.operate)({destination:J,next:(z)=>{if(++Y<Z)J.next(z);else X.unsubscribe(),J.next(z),J.complete()}});$.subscribe(X)})}Yk.take=lm});var WN=q((Kk)=>{Object.defineProperty(Kk,"__esModule",{value:!0});Kk.ignoreElements=void 0;var zk=I(),pm=X0();function im(){return(Z)=>new zk.Observable(($)=>{Z.subscribe((0,zk.operate)({destination:$,next:pm.noop}))})}Kk.ignoreElements=im});var BN=q((Wk)=>{Object.defineProperty(Wk,"__esModule",{value:!0});Wk.delayWhen=void 0;var nm=rW(),Qk=qN(),am=WN(),rm=L9(),NN=TW(),sm=cH();function qk(Z,$){if($)return(J)=>(0,nm.concat)((0,NN.rx)($,(0,Qk.take)(1),(0,am.ignoreElements)()),(0,NN.rx)(J,qk(Z)));return(0,rm.mergeMap)((J,Y)=>(0,NN.rx)(Z(J,Y),(0,Qk.take)(1),(0,sm.map)(()=>J)))}Wk.delayWhen=qk});var Gk=q((Bk)=>{Object.defineProperty(Bk,"__esModule",{value:!0});Bk.delay=void 0;var tm=h0(),om=BN(),em=E6();function Zj(Z,$=tm.asyncScheduler){let J=(0,em.timer)(Z,$);return(0,om.delayWhen)(()=>J)}Bk.delay=Zj});var Dk=q((Lk)=>{Object.defineProperty(Lk,"__esModule",{value:!0});Lk.observeNotification=void 0;function $j(Z,$){let{kind:J,value:Y,error:X}=Z;if(typeof J!=="string")throw TypeError('Invalid notification, missing "kind"');J==="N"?$.next?.(Y):J==="E"?$.error?.(X):$.complete?.()}Lk.observeNotification=$j});var kk=q((Ik)=>{Object.defineProperty(Ik,"__esModule",{value:!0});Ik.dematerialize=void 0;var Jj=Dk(),Uk=I();function Yj(){return(Z)=>new Uk.Observable(($)=>{Z.subscribe((0,Uk.operate)({destination:$,next:(J)=>(0,Jj.observeNotification)(J,$)}))})}Ik.dematerialize=Yj});var Vk=q((Ek)=>{Object.defineProperty(Ek,"__esModule",{value:!0});Ek.distinct=void 0;var Bq=I(),Xj=X0();function zj(Z,$){return(J)=>new Bq.Observable((Y)=>{let X=new Set;J.subscribe((0,Bq.operate)({destination:Y,next:(z)=>{let K=Z?Z(z):z;if(!X.has(K))X.add(K),Y.next(z)}})),$&&(0,Bq.from)($).subscribe((0,Bq.operate)({destination:Y,next:()=>X.clear(),complete:Xj.noop}))})}Ek.distinct=zj});var FN=q((Ak)=>{Object.defineProperty(Ak,"__esModule",{value:!0});Ak.distinctUntilChanged=void 0;var Kj=v0(),Pk=I();function Hj(Z,$=Kj.identity){return Z=Z??Qj,(J)=>new Pk.Observable((Y)=>{let X,z=!0;J.subscribe((0,Pk.operate)({destination:Y,next:(K)=>{let Q=$(K);if(z||!Z(X,Q))z=!1,X=Q,Y.next(K)}}))})}Ak.distinctUntilChanged=Hj;function Qj(Z,$){return Z===$}});var hk=q((Mk)=>{Object.defineProperty(Mk,"__esModule",{value:!0});Mk.distinctUntilKeyChanged=void 0;var qj=FN();function Wj(Z,$){return(0,qj.distinctUntilChanged)((J,Y)=>$?$(J[Z],Y[Z]):J[Z]===Y[Z])}Mk.distinctUntilKeyChanged=Wj});var mk=q((Rk)=>{Object.defineProperty(Rk,"__esModule",{value:!0});Rk.elementAt=void 0;var vk=yW(),Tk=I();function Nj(Z,$){if(Z<0)throw new vk.ArgumentOutOfRangeError;let J=arguments.length>=2;return(Y)=>new Tk.Observable((X)=>{let z=0,K=(0,Tk.operate)({destination:X,next:(Q)=>{if(z++===Z)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(!J)X.error(new vk.ArgumentOutOfRangeError);else X.next($),X.complete()}});Y.subscribe(K)})}Rk.elementAt=Nj});var Sk=q((jk)=>{Object.defineProperty(jk,"__esModule",{value:!0});jk.endWith=void 0;var GN=I();function Bj(...Z){return($)=>new GN.Observable((J)=>{$.subscribe((0,GN.operate)({destination:J,complete:()=>{(0,GN.subscribeToArray)(Z,J)}}))})}jk.endWith=Bj});var dk=q((bk)=>{Object.defineProperty(bk,"__esModule",{value:!0});bk.every=void 0;var gk=I();function Fj(Z,$){return(J)=>new gk.Observable((Y)=>{let X=0;J.subscribe((0,gk.operate)({destination:Y,next:(z)=>{if(!Z.call($,z,X++,J))Y.next(!1),Y.complete()},complete:()=>{Y.next(!0),Y.complete()}}))})}bk.every=Fj});var LN=q((uk)=>{Object.defineProperty(uk,"__esModule",{value:!0});uk.exhaustMap=void 0;var Fq=I();function Gj(Z){return($)=>new Fq.Observable((J)=>{let Y=0,X=null,z=!1;$.subscribe((0,Fq.operate)({destination:J,next:(K)=>{if(!X)X=(0,Fq.operate)({destination:J,complete:()=>{X=null,z&&J.complete()}}),(0,Fq.from)(Z(K,Y++)).subscribe(X)},complete:()=>{z=!0,!X&&J.complete()}}))})}uk.exhaustMap=Gj});var nk=q((pk)=>{Object.defineProperty(pk,"__esModule",{value:!0});pk.exhaustAll=void 0;var Lj=LN(),wj=v0();function Dj(){return(0,Lj.exhaustMap)(wj.identity)}pk.exhaustAll=Dj});var sk=q((ak)=>{Object.defineProperty(ak,"__esModule",{value:!0});ak.expand=void 0;var Uj=I(),Ij=Yq();function Oj(Z,$=1/0,J){return $=($||0)<1?1/0:$,(Y)=>new Uj.Observable((X)=>(0,Ij.mergeInternals)(Y,X,Z,$,void 0,!0,J))}ak.expand=Oj});var ek=q((tk)=>{Object.defineProperty(tk,"__esModule",{value:!0});tk.finalize=void 0;var kj=I();function Ej(Z){return($)=>new kj.Observable((J)=>{$.subscribe(J),J.add(Z)})}tk.finalize=Ej});var wN=q((JE)=>{Object.defineProperty(JE,"__esModule",{value:!0});JE.createFind=JE.find=void 0;var ZE=I();function fj(Z){return($)=>new ZE.Observable((J)=>$E(Z,"value",$,J))}JE.find=fj;function $E(Z,$,J,Y){let X=$==="index",z=0;J.subscribe((0,ZE.operate)({destination:Y,next:(K)=>{let Q=z++;if(Z(K,Q,J))Y.next(X?Q:K),Y.complete()},complete:()=>{Y.next(X?-1:void 0),Y.complete()}}))}JE.createFind=$E});var KE=q((XE)=>{Object.defineProperty(XE,"__esModule",{value:!0});XE.findIndex=void 0;var Pj=I(),Aj=wN();function xj(Z){return($)=>new Pj.Observable((J)=>(0,Aj.createFind)(Z,"index",$,J))}XE.findIndex=xj});var WE=q((QE)=>{Object.defineProperty(QE,"__esModule",{value:!0});QE.first=void 0;var HE=I(),Mj=c8();function Cj(Z,$){let J=arguments.length>=2;return(Y)=>new HE.Observable((X)=>{let z=0,K=(0,HE.operate)({destination:X,next:(Q)=>{if(Z?Z(Q,z++,Y):!0)K.unsubscribe(),X.next(Q),X.complete()},complete:()=>{if(J)X.next($),X.complete();else X.error(new Mj.EmptyError)}});Y.subscribe(K)})}QE.first=Cj});var FE=q((NE)=>{Object.defineProperty(NE,"__esModule",{value:!0});NE.groupBy=void 0;var kQ=I(),hj=q0();function vj(Z,$,J,Y){return(X)=>new kQ.Observable((z)=>{let K;if(!$||typeof $==="function")K=$;else({duration:J,element:K,connector:Y}=$);let Q=new Map,W=(V)=>{Q.forEach(V),V(z)},L=(V)=>W((A)=>A.error(V)),D=(0,kQ.operate)({destination:z,next:(V)=>{try{let A=Z(V),x=Q.get(A);if(!x){Q.set(A,x=Y?Y():new hj.Subject);let y=f(A,x);if(z.next(y),J){let V0=(0,kQ.operate)({destination:x,next:()=>{x.complete(),V0?.unsubscribe()},finalize:()=>Q.delete(A)});D.add((0,kQ.from)(J(y)).subscribe(V0))}}x.next(K?K(V):V)}catch(A){L(A)}},error:L,complete:()=>W((V)=>V.complete()),finalize:()=>Q.clear()});X.subscribe(D);function f(V,A){let x=new kQ.Observable((y)=>A.subscribe(y));return x.key=V,x}})}NE.groupBy=vj});var DE=q((LE)=>{Object.defineProperty(LE,"__esModule",{value:!0});LE.isEmpty=void 0;var GE=I();function Tj(){return(Z)=>new GE.Observable(($)=>{Z.subscribe((0,GE.operate)({destination:$,next:()=>{$.next(!1),$.complete()},complete:()=>{$.next(!0),$.complete()}}))})}LE.isEmpty=Tj});var kE=q((IE)=>{Object.defineProperty(IE,"__esModule",{value:!0});IE.last=void 0;var UE=I(),Rj=c8();function yj(Z,$){let J=arguments.length>=2;return(Y)=>new UE.Observable((X)=>{let z=0,K=!1,Q;Y.subscribe((0,UE.operate)({destination:X,next(W){if(!Z||Z(W,z++,Y))K=!0,Q=W},complete(){if(K)X.next(Q),X.complete();else if(J)X.next($),X.complete();else X.error(new Rj.EmptyError)}}))})}IE.last=yj});var VE=q((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.mapTo=void 0;var mj=cH();function jj(Z){return(0,mj.map)(()=>Z)}EE.mapTo=jj});var xE=q((PE)=>{Object.defineProperty(PE,"__esModule",{value:!0});PE.materialize=void 0;var EQ=I();function _j(){return(Z)=>new EQ.Observable(($)=>{Z.subscribe((0,EQ.operate)({destination:$,next:(J)=>{$.next((0,EQ.nextNotification)(J))},error:(J)=>{$.next((0,EQ.errorNotification)(J)),$.complete()},complete:()=>{$.next(EQ.COMPLETE_NOTIFICATION),$.complete()}}))})}PE.materialize=_j});var hE=q((ME)=>{Object.defineProperty(ME,"__esModule",{value:!0});ME.max=void 0;var Sj=uH(),gj=I();function bj(Z){return(0,Sj.reduce)((0,gj.isFunction)(Z)?($,J)=>Z($,J)>0?$:J:($,J)=>$>J?$:J)}ME.max=bj});var RE=q((vE)=>{Object.defineProperty(vE,"__esModule",{value:!0});vE.mergeMapTo=void 0;var cj=L9();function dj(Z,$){return(0,cj.mergeMap)(()=>Z,$)}vE.mergeMapTo=dj});var jE=q((yE)=>{Object.defineProperty(yE,"__esModule",{value:!0});yE.mergeScan=void 0;var uj=I(),lj=Yq();function pj(Z,$,J=1/0){return(Y)=>new uj.Observable((X)=>{let z=$;return(0,lj.mergeInternals)(Y,X,(K,Q)=>Z(z,K,Q),J,(K)=>{z=K},!1,void 0,()=>z=null)})}yE.mergeScan=pj});var bE=q((SE)=>{Object.defineProperty(SE,"__esModule",{value:!0});SE.mergeWith=void 0;var _E=I(),ij=UQ();function nj(...Z){return($)=>new _E.Observable((J)=>{(0,ij.mergeAll)()((0,_E.from)([$,...Z])).subscribe(J)})}SE.mergeWith=nj});var uE=q((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.min=void 0;var aj=uH(),rj=I();function sj(Z){return(0,aj.reduce)((0,rj.isFunction)(Z)?($,J)=>Z($,J)<0?$:J:($,J)=>$<J?$:J)}cE.min=sj});var iE=q((lE)=>{Object.defineProperty(lE,"__esModule",{value:!0});lE.onErrorResumeNextWith=void 0;var tj=OQ(),oj=eW();function ej(...Z){let $=(0,tj.argsOrArgArray)(Z);return(J)=>(0,oj.onErrorResumeNext)(J,...$)}lE.onErrorResumeNextWith=ej});var sE=q((aE)=>{Object.defineProperty(aE,"__esModule",{value:!0});aE.pairwise=void 0;var nE=I();function Z_(){return(Z)=>new nE.Observable(($)=>{let J,Y=!1;Z.subscribe((0,nE.operate)({destination:$,next:(X)=>{let z=J;J=X,Y&&$.next([z,X]),Y=!0}}))})}aE.pairwise=Z_});var eE=q((tE)=>{Object.defineProperty(tE,"__esModule",{value:!0});tE.raceWith=void 0;var $_=ZN(),J_=I(),Y_=v0();function X_(...Z){return!Z.length?Y_.identity:($)=>new J_.Observable((J)=>{(0,$_.raceInit)([$,...Z])(J)})}tE.raceWith=X_});var Jf=q((Zf)=>{Object.defineProperty(Zf,"__esModule",{value:!0});Zf.repeat=void 0;var Gq=I(),z_=C8(),K_=E6();function H_(Z){let $=1/0,J;if(Z!=null)if(typeof Z==="object")({count:$=1/0,delay:J}=Z);else $=Z;return $<=0?()=>z_.EMPTY:(Y)=>new Gq.Observable((X)=>{let z=0,K,Q=()=>{if(K?.unsubscribe(),K=null,J!=null){let L=typeof J==="number"?(0,K_.timer)(J):(0,Gq.from)(J(z)),D=(0,Gq.operate)({destination:X,next:()=>{D.unsubscribe(),W()}});L.subscribe(D)}else W()},W=()=>{let L=!1;if(K=Y.subscribe((0,Gq.operate)({destination:X,complete:()=>{if(++z<$)if(K)Q();else L=!0;else X.complete()}})),L)Q()};W()})}Zf.repeat=H_});var zf=q((Yf)=>{Object.defineProperty(Yf,"__esModule",{value:!0});Yf.repeatWhen=void 0;var Lq=I(),Q_=q0();function q_(Z){return($)=>new Lq.Observable((J)=>{let Y,X=!1,z,K=!1,Q=!1,W=()=>Q&&K&&(J.complete(),!0),L=()=>{if(!z)z=new Q_.Subject,(0,Lq.from)(Z(z)).subscribe((0,Lq.operate)({destination:J,next:()=>{if(Y)D();else X=!0},complete:()=>{K=!0,W()}}));return z},D=()=>{if(Q=!1,Y=$.subscribe((0,Lq.operate)({destination:J,complete:()=>{Q=!0,!W()&&L().next()}})),X)Y.unsubscribe(),Y=null,X=!1,D()};D()})}Yf.repeatWhen=q_});var Qf=q((Kf)=>{Object.defineProperty(Kf,"__esModule",{value:!0});Kf.retry=void 0;var wq=I(),W_=v0(),N_=E6();function B_(Z=1/0){let $;if(Z&&typeof Z==="object")$=Z;else $={count:Z};let{count:J=1/0,delay:Y,resetOnSuccess:X=!1}=$;return J<=0?W_.identity:(z)=>new wq.Observable((K)=>{let Q=0,W,L=()=>{let D=!1;if(W=z.subscribe((0,wq.operate)({destination:K,next:(f)=>{if(X)Q=0;K.next(f)},error:(f)=>{if(Q++<J){let V=()=>{if(W)W.unsubscribe(),W=null,L();else D=!0};if(Y!=null){let A=typeof Y==="number"?(0,N_.timer)(Y):(0,wq.from)(Y(f,Q)),x=(0,wq.operate)({destination:K,next:()=>{x.unsubscribe(),V()},complete:()=>{K.complete()}});A.subscribe(x)}else V()}else K.error(f)}})),D)W.unsubscribe(),W=null,L()};L()})}Kf.retry=B_});var Nf=q((qf)=>{Object.defineProperty(qf,"__esModule",{value:!0});qf.retryWhen=void 0;var Dq=I(),F_=q0();function G_(Z){return($)=>new Dq.Observable((J)=>{let Y,X=!1,z,K=()=>{if(Y=$.subscribe((0,Dq.operate)({destination:J,error:(Q)=>{if(!z)z=new F_.Subject,(0,Dq.from)(Z(z)).subscribe((0,Dq.operate)({destination:J,next:()=>Y?K():X=!0}));if(z)z.next(Q)}})),X)Y.unsubscribe(),Y=null,X=!1,K()};K()})}qf.retryWhen=G_});var DN=q((Bf)=>{Object.defineProperty(Bf,"__esModule",{value:!0});Bf.sample=void 0;var Uq=I(),L_=X0();function w_(Z){return($)=>new Uq.Observable((J)=>{let Y=!1,X=null;$.subscribe((0,Uq.operate)({destination:J,next:(z)=>{Y=!0,X=z}})),(0,Uq.from)(Z).subscribe((0,Uq.operate)({destination:J,next:()=>{if(Y){Y=!1;let z=X;X=null,J.next(z)}},complete:L_.noop}))})}Bf.sample=w_});var wf=q((Gf)=>{Object.defineProperty(Gf,"__esModule",{value:!0});Gf.sampleTime=void 0;var D_=h0(),U_=DN(),I_=tW();function O_(Z,$=D_.asyncScheduler){return(0,U_.sample)((0,I_.interval)(Z,$))}Gf.sampleTime=O_});var If=q((Df)=>{Object.defineProperty(Df,"__esModule",{value:!0});Df.scan=void 0;var k_=I(),E_=zN();function f_(Z,$){let J=arguments.length>=2;return(Y)=>new k_.Observable((X)=>(0,E_.scanInternals)(Z,$,J,!0,!1,Y,X))}Df.scan=f_});var ff=q((kf)=>{Object.defineProperty(kf,"__esModule",{value:!0});kf.sequenceEqual=void 0;var UN=I();function V_(Z,$=(J,Y)=>J===Y){return(J)=>new UN.Observable((Y)=>{let X=Of(),z=Of(),K=(W)=>{Y.next(W),Y.complete()},Q=(W,L)=>{let D=(0,UN.operate)({destination:Y,next:(f)=>{let{buffer:V,complete:A}=L;if(V.length===0)A?K(!1):W.buffer.push(f);else!$(f,V.shift())&&K(!1)},complete:()=>{W.complete=!0;let{complete:f,buffer:V}=L;f&&K(V.length===0),D?.unsubscribe()}});return D};J.subscribe(Q(X,z)),(0,UN.from)(Z).subscribe(Q(z,X))})}kf.sequenceEqual=V_;function Of(){return{buffer:[],complete:!1}}});var ON=q((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});Vf.share=void 0;var fQ=I(),P_=q0();function A_(Z={}){let{connector:$=()=>new P_.Subject,resetOnError:J=!0,resetOnComplete:Y=!0,resetOnRefCountZero:X=!0}=Z;return(z)=>{let K,Q,W,L=0,D=!1,f=!1,V=()=>{Q?.unsubscribe(),Q=void 0},A=()=>{V(),K=W=void 0,D=f=!1},x=()=>{let y=K;A(),y?.unsubscribe()};return new fQ.Observable((y)=>{if(L++,!f&&!D)V();let V0=W=W??$();if(y.add(()=>{if(L--,L===0&&!f&&!D)Q=IN(x,X)}),V0.subscribe(y),!K&&L>0)K=new fQ.Subscriber({next:(z0)=>V0.next(z0),error:(z0)=>{f=!0,V(),Q=IN(A,J,z0),V0.error(z0)},complete:()=>{D=!0,V(),Q=IN(A,Y),V0.complete()}}),(0,fQ.from)(z).subscribe(K)})}}Vf.share=A_;function IN(Z,$,...J){if($===!0){Z();return}if($===!1)return;let Y=new fQ.Subscriber({next:()=>{Y.unsubscribe(),Z()}});return(0,fQ.from)($(...J)).subscribe(Y)}});var Mf=q((Af)=>{Object.defineProperty(Af,"__esModule",{value:!0});Af.shareReplay=void 0;var x_=xW(),M_=ON();function C_(Z,$,J){let Y,X=!1;if(Z&&typeof Z==="object")({bufferSize:Y=1/0,windowTime:$=1/0,refCount:X=!1,scheduler:J}=Z);else Y=Z??1/0;return(0,M_.share)({connector:()=>new x_.ReplaySubject(Y,$,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:X})}Af.shareReplay=C_});var Tf=q((hf)=>{Object.defineProperty(hf,"__esModule",{value:!0});hf.single=void 0;var Cf=I(),h_=c8(),v_=jW(),T_=mW();function R_(Z){return($)=>new Cf.Observable((J)=>{let Y=!1,X,z=!1,K=0;$.subscribe((0,Cf.operate)({destination:J,next:(Q)=>{if(z=!0,!Z||Z(Q,K++,$))Y&&J.error(new v_.SequenceError("Too many matching values")),Y=!0,X=Q},complete:()=>{if(Y)J.next(X),J.complete();else J.error(z?new T_.NotFoundError("No matching values"):new h_.EmptyError)}}))})}hf.single=R_});var mf=q((Rf)=>{Object.defineProperty(Rf,"__esModule",{value:!0});Rf.skip=void 0;var y_=zq();function m_(Z){return(0,y_.filter)(($,J)=>Z<=J)}Rf.skip=m_});var gf=q((_f)=>{Object.defineProperty(_f,"__esModule",{value:!0});_f.skipLast=void 0;var j_=v0(),jf=I();function __(Z){return Z<=0?j_.identity:($)=>new jf.Observable((J)=>{let Y=Array(Z),X=0;return $.subscribe((0,jf.operate)({destination:J,next:(z)=>{let K=X++;if(K<Z)Y[K]=z;else{let Q=K%Z,W=Y[Q];Y[Q]=z,J.next(W)}}})),()=>{Y=null}})}_f.skipLast=__});var df=q((bf)=>{Object.defineProperty(bf,"__esModule",{value:!0});bf.skipUntil=void 0;var Iq=I(),S_=X0();function g_(Z){return($)=>new Iq.Observable((J)=>{let Y=!1,X=(0,Iq.operate)({destination:J,next:()=>{X?.unsubscribe(),Y=!0},complete:S_.noop});(0,Iq.from)(Z).subscribe(X),$.subscribe((0,Iq.operate)({destination:J,next:(z)=>Y&&J.next(z)}))})}bf.skipUntil=g_});var nf=q((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.skipWhile=void 0;var uf=I();function b_(Z){return($)=>new uf.Observable((J)=>{let Y=!1,X=0;$.subscribe((0,uf.operate)({destination:J,next:(z)=>(Y||(Y=!Z(z,X++)))&&J.next(z)}))})}lf.skipWhile=b_});var sf=q((af)=>{Object.defineProperty(af,"__esModule",{value:!0});af.startWith=void 0;var kN=I();function c_(...Z){return($)=>new kN.Observable((J)=>{(0,kN.subscribeToArray)(Z,(0,kN.operate)({destination:J,complete:()=>$.subscribe(J)}))})}af.startWith=c_});var VQ=q((tf)=>{Object.defineProperty(tf,"__esModule",{value:!0});tf.switchMap=void 0;var Oq=I();function d_(Z){return($)=>new Oq.Observable((J)=>{let Y=null,X=0,z=!1,K=()=>z&&!Y&&J.complete();$.subscribe((0,Oq.operate)({destination:J,next:(Q)=>{Y?.unsubscribe();let W=X++;(0,Oq.from)(Z(Q,W)).subscribe(Y=(0,Oq.operate)({destination:J,complete:()=>{Y=null,K()}}))},complete:()=>{z=!0,K()}}))})}tf.switchMap=d_});var $V=q((ef)=>{Object.defineProperty(ef,"__esModule",{value:!0});ef.switchAll=void 0;var u_=VQ(),l_=v0();function p_(){return(0,u_.switchMap)(l_.identity)}ef.switchAll=p_});var XV=q((JV)=>{Object.defineProperty(JV,"__esModule",{value:!0});JV.switchMapTo=void 0;var i_=VQ();function n_(Z){return(0,i_.switchMap)(()=>Z)}JV.switchMapTo=n_});var QV=q((KV)=>{Object.defineProperty(KV,"__esModule",{value:!0});KV.switchScan=void 0;var a_=VQ(),zV=I();function r_(Z,$){return(J)=>new zV.Observable((Y)=>{let X=$;return(0,a_.switchMap)((z,K)=>Z(X,z,K))(J).subscribe((0,zV.operate)({destination:Y,next:(z)=>{X=z,Y.next(z)}})),()=>{X=null}})}KV.switchScan=r_});var BV=q((WV)=>{Object.defineProperty(WV,"__esModule",{value:!0});WV.takeLast=void 0;var s_=C8(),qV=I();function t_(Z){return Z<=0?()=>s_.EMPTY:($)=>new qV.Observable((J)=>{let Y=Array(Z),X=0;$.subscribe((0,qV.operate)({destination:J,next:(z)=>{Y[X++%Z]=z},complete:()=>{let z=Z<=X?X:0,K=Math.min(Z,X);for(let Q=0;Q<K;Q++)J.next(Y[(z+Q)%Z]);J.complete()},finalize:()=>{Y=null}}))})}WV.takeLast=t_});var LV=q((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.takeUntil=void 0;var EN=I(),o_=X0();function e_(Z){return($)=>new EN.Observable((J)=>{(0,EN.from)(Z).subscribe((0,EN.operate)({destination:J,next:()=>J.complete(),complete:o_.noop})),!J.closed&&$.subscribe(J)})}FV.takeUntil=e_});var IV=q((DV)=>{Object.defineProperty(DV,"__esModule",{value:!0});DV.takeWhile=void 0;var wV=I();function ZS(Z,$=!1){return(J)=>new wV.Observable((Y)=>{let X=0,z=(0,wV.operate)({destination:Y,next:(K)=>{if(Z(K,X++))Y.next(K);else{if(z.unsubscribe(),$)Y.next(K);Y.complete()}}});J.subscribe(z)})}DV.takeWhile=ZS});var EV=q((OV)=>{Object.defineProperty(OV,"__esModule",{value:!0});OV.tap=void 0;var fN=I(),$S=v0();function JS(Z){let $=(0,fN.isFunction)(Z)?{next:Z}:Z;return $?(J)=>new fN.Observable((Y)=>{$.subscribe?.();let X=!0;J.subscribe((0,fN.operate)({destination:Y,next:(z)=>{$.next?.(z),Y.next(z)},error:(z)=>{X=!1,$.error?.(z),Y.error(z)},complete:()=>{X=!1,$.complete?.(),Y.complete()},finalize:()=>{if(X)$.unsubscribe?.();$.finalize?.()}}))}):$S.identity}OV.tap=JS});var VN=q((fV)=>{Object.defineProperty(fV,"__esModule",{value:!0});fV.throttle=void 0;var kq=I();function YS(Z,$){return(J)=>new kq.Observable((Y)=>{let{leading:X=!0,trailing:z=!1}=$??{},K=!1,Q=null,W=null,L=!1,D=()=>{if(W?.unsubscribe(),W=null,z)A(),L&&Y.complete()},f=()=>{W=null,L&&Y.complete()},V=(x)=>W=(0,kq.from)(Z(x)).subscribe((0,kq.operate)({destination:Y,next:D,complete:f})),A=()=>{if(K){K=!1;let x=Q;Q=null,Y.next(x),!L&&V(x)}};J.subscribe((0,kq.operate)({destination:Y,next:(x)=>{K=!0,Q=x,!(W&&!W.closed)&&(X?A():V(x))},complete:()=>{L=!0,!(z&&K&&W&&!W.closed)&&Y.complete()}}))})}fV.throttle=YS});var xV=q((PV)=>{Object.defineProperty(PV,"__esModule",{value:!0});PV.throttleTime=void 0;var XS=h0(),zS=VN(),KS=E6();function HS(Z,$=XS.asyncScheduler,J){let Y=(0,KS.timer)(Z,$);return(0,zS.throttle)(()=>Y,J)}PV.throttleTime=HS});var vV=q((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.throwIfEmpty=void 0;var QS=c8(),MV=I();function qS(Z=WS){return($)=>new MV.Observable((J)=>{let Y=!1;$.subscribe((0,MV.operate)({destination:J,next:(X)=>{Y=!0,J.next(X)},complete:()=>Y?J.complete():J.error(Z())}))})}CV.throwIfEmpty=qS;function WS(){return new QS.EmptyError}});var mV=q((RV)=>{Object.defineProperty(RV,"__esModule",{value:!0});RV.TimeInterval=RV.timeInterval=void 0;var NS=h0(),TV=I();function BS(Z=NS.asyncScheduler){return($)=>new TV.Observable((J)=>{let Y=Z.now();$.subscribe((0,TV.operate)({destination:J,next:(X)=>{let z=Z.now(),K=z-Y;Y=z,J.next(new PN(X,K))}}))})}RV.timeInterval=BS;class PN{value;interval;constructor(Z,$){this.value=Z,this.interval=$}}RV.TimeInterval=PN});var SV=q((jV)=>{Object.defineProperty(jV,"__esModule",{value:!0});jV.timeoutWith=void 0;var GS=h0(),LS=oQ(),wS=eQ();function DS(Z,$,J){let Y,X,z;if(J=J??GS.asyncScheduler,(0,LS.isValidDate)(Z))Y=Z;else if(typeof Z==="number")X=Z;if($)z=()=>$;else throw TypeError("No observable provided to switch to");if(Y==null&&X==null)throw TypeError("No timeout provided.");return(0,wS.timeout)({first:Y,each:X,scheduler:J,with:z})}jV.timeoutWith=DS});var cV=q((gV)=>{Object.defineProperty(gV,"__esModule",{value:!0});gV.timestamp=void 0;var US=aQ(),IS=cH();function OS(Z=US.dateTimestampProvider){return(0,IS.map)(($)=>({value:$,timestamp:Z.now()}))}gV.timestamp=OS});var pV=q((uV)=>{Object.defineProperty(uV,"__esModule",{value:!0});uV.window=void 0;var Eq=I(),dV=q0(),kS=X0();function ES(Z){return($)=>new Eq.Observable((J)=>{let Y=new dV.Subject;J.next(Y.asObservable());let X=(z)=>{Y.error(z),J.error(z)};return $.subscribe((0,Eq.operate)({destination:J,next:(z)=>Y?.next(z),complete:()=>{Y.complete(),J.complete()},error:X})),(0,Eq.from)(Z).subscribe((0,Eq.operate)({destination:J,next:()=>{Y.complete(),J.next(Y=new dV.Subject)},complete:kS.noop,error:X})),()=>{Y?.unsubscribe(),Y=null}})}uV.window=ES});var sV=q((aV)=>{Object.defineProperty(aV,"__esModule",{value:!0});aV.windowCount=void 0;var iV=I(),nV=q0();function fS(Z,$=0){let J=$>0?$:Z;return(Y)=>new iV.Observable((X)=>{let z=[new nV.Subject],K=[],Q=0;X.next(z[0].asObservable()),Y.subscribe((0,iV.operate)({destination:X,next:(W)=>{for(let D of z)D.next(W);let L=Q-Z+1;if(L>=0&&L%J===0)z.shift().complete();if(++Q%J===0){let D=new nV.Subject;z.push(D),X.next(D.asObservable())}},error:(W)=>{while(z.length>0)z.shift().error(W);X.error(W)},complete:()=>{while(z.length>0)z.shift().complete();X.complete()},finalize:()=>{K=null,z=null}}))})}aV.windowCount=fS});var ZP=q((oV)=>{Object.defineProperty(oV,"__esModule",{value:!0});oV.windowTime=void 0;var VS=q0(),PS=h0(),AN=I(),AS=G9(),xS=k6(),tV=u0();function MS(Z,...$){let J=(0,xS.popScheduler)($)??PS.asyncScheduler,Y=$[0]??null,X=$[1]||1/0;return(z)=>new AN.Observable((K)=>{let Q=[],W=!1,L=(A)=>{let{window:x,subs:y}=A;x.complete(),y.unsubscribe(),(0,AS.arrRemove)(Q,A),W&&D()},D=()=>{if(Q){let A=new AN.Subscription;K.add(A);let x=new VS.Subject,y={window:x,subs:A,seen:0};Q.push(y),K.next(x.asObservable()),(0,tV.executeSchedule)(A,J,()=>L(y),Z)}};if(Y!==null&&Y>=0)(0,tV.executeSchedule)(K,J,D,Y,!0);else W=!0;D();let f=(A)=>Q.slice().forEach(A),V=(A)=>{f(({window:x})=>A(x)),A(K),K.unsubscribe()};return z.subscribe((0,AN.operate)({destination:K,next:(A)=>{f((x)=>{x.window.next(A),X<=++x.seen&&L(x)})},error:(A)=>V((x)=>x.error(A)),complete:()=>V((A)=>A.complete())})),()=>{Q=null}})}oV.windowTime=MS});var XP=q((JP)=>{Object.defineProperty(JP,"__esModule",{value:!0});JP.windowToggle=void 0;var D9=I(),CS=q0(),$P=X0(),hS=G9();function vS(Z,$){return(J)=>new D9.Observable((Y)=>{let X=[],z=(K)=>{while(0<X.length)X.shift().error(K);Y.error(K)};(0,D9.from)(Z).subscribe((0,D9.operate)({destination:Y,next:(K)=>{let Q=new CS.Subject;X.push(Q);let W=new D9.Subscription,L=()=>{(0,hS.arrRemove)(X,Q),Q.complete(),W.unsubscribe()},D;try{D=(0,D9.from)($(K))}catch(f){z(f);return}Y.next(Q),W.add(D.subscribe((0,D9.operate)({destination:Y,next:L,error:z,complete:$P.noop})))},complete:$P.noop})),J.subscribe((0,D9.operate)({destination:Y,next:(K)=>{let Q=X.slice();for(let W of Q)W.next(K)},error:z,complete:()=>{while(0<X.length)X.shift().complete();Y.complete()},finalize:()=>{while(0<X.length)X.shift().unsubscribe()}}))})}JP.windowToggle=vS});var HP=q((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.windowWhen=void 0;var fq=I(),TS=q0(),RS=X0();function yS(Z){return($)=>new fq.Observable((J)=>{let Y,X,z=(Q)=>{Y.error(Q),J.error(Q)},K=()=>{X?.unsubscribe(),Y?.complete(),Y=new TS.Subject,J.next(Y.asObservable());let Q;try{Q=(0,fq.from)(Z())}catch(W){z(W);return}Q.subscribe(X=(0,fq.operate)({destination:J,next:K,error:z,complete:RS.noop}))};K(),$.subscribe((0,fq.operate)({destination:J,next:(Q)=>Y.next(Q),error:z,complete:()=>{Y.complete(),J.complete()},finalize:()=>{X?.unsubscribe(),Y=null}}))})}zP.windowWhen=yS});var WP=q((QP)=>{Object.defineProperty(QP,"__esModule",{value:!0});QP.withLatestFrom=void 0;var Vq=I(),mS=v0(),jS=X0(),_S=k6();function SS(...Z){let $=(0,_S.popResultSelector)(Z);return(J)=>new Vq.Observable((Y)=>{let X=Z.length,z=Array(X),K=Z.map(()=>!1),Q=!1;for(let W=0;W<X;W++)(0,Vq.from)(Z[W]).subscribe((0,Vq.operate)({destination:Y,next:(L)=>{if(z[W]=L,!Q&&!K[W])K[W]=!0,(Q=K.every(mS.identity))&&(K=null)},complete:jS.noop}));J.subscribe((0,Vq.operate)({destination:Y,next:(W)=>{if(Q){let L=[W,...z];Y.next($?$(...L):L)}}}))})}QP.withLatestFrom=SS});var FP=q((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.zipAll=void 0;var gS=Hq(),bS=HN();function cS(Z){return(0,bS.joinAllInternals)(gS.zip,Z)}NP.zipAll=cS});var wP=q((GP)=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.zipWith=void 0;var dS=I(),uS=Hq();function lS(...Z){return($)=>new dS.Observable((J)=>{(0,uS.zip)($,...Z).subscribe(J)})}GP.zipWith=lS});var UP=q((H)=>{var pS=H&&H.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;var X=Object.getOwnPropertyDescriptor($,J);if(!X||("get"in X?!$.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return $[J]}};Object.defineProperty(Z,Y,X)}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),iS=H&&H.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))pS($,Z,J)};Object.defineProperty(H,"__esModule",{value:!0});H.throwError=H.range=H.race=H.partition=H.onErrorResumeNext=H.of=H.merge=H.interval=H.iif=H.generate=H.fromEventPattern=H.fromEvent=H.forkJoin=H.defer=H.connectable=H.concat=H.combineLatest=H.bindNodeCallback=H.bindCallback=H.TimeoutError=H.SequenceError=H.NotFoundError=H.EmptyError=H.ArgumentOutOfRangeError=H.firstValueFrom=H.lastValueFrom=H.identity=H.noop=H.pipe=H.rx=H.Scheduler=H.VirtualAction=H.VirtualTimeScheduler=H.animationFrameScheduler=H.queueScheduler=H.asyncScheduler=H.asapScheduler=H.AsyncSubject=H.ReplaySubject=H.BehaviorSubject=H.Subject=H.animationFrames=H.isObservable=H.UnsubscriptionError=H.operate=H.Subscriber=H.Subscription=H.config=H.from=H.Observable=void 0;H.max=H.materialize=H.mapTo=H.map=H.last=H.isEmpty=H.ignoreElements=H.groupBy=H.first=H.findIndex=H.find=H.finalize=H.filter=H.expand=H.exhaustMap=H.exhaustAll=H.every=H.endWith=H.elementAt=H.distinctUntilKeyChanged=H.distinctUntilChanged=H.distinct=H.dematerialize=H.delayWhen=H.delay=H.defaultIfEmpty=H.debounceTime=H.debounce=H.count=H.connect=H.concatWith=H.concatMapTo=H.concatMap=H.concatAll=H.combineLatestWith=H.combineLatestAll=H.catchError=H.bufferWhen=H.bufferToggle=H.bufferTime=H.bufferCount=H.buffer=H.auditTime=H.audit=H.NEVER=H.EMPTY=H.scheduled=H.zip=H.using=H.timer=void 0;H.windowWhen=H.windowToggle=H.windowTime=H.windowCount=H.window=H.toArray=H.timestamp=H.timeoutWith=H.timeout=H.timeInterval=H.throwIfEmpty=H.throttleTime=H.throttle=H.tap=H.takeWhile=H.takeUntil=H.takeLast=H.take=H.switchScan=H.switchMapTo=H.switchMap=H.switchAll=H.subscribeOn=H.startWith=H.skipWhile=H.skipUntil=H.skipLast=H.skip=H.single=H.shareReplay=H.share=H.sequenceEqual=H.scan=H.sampleTime=H.sample=H.retryWhen=H.retry=H.repeatWhen=H.repeat=H.reduce=H.raceWith=H.pairwise=H.onErrorResumeNextWith=H.observeOn=H.min=H.mergeWith=H.mergeScan=H.mergeMapTo=H.mergeMap=H.mergeAll=void 0;H.zipWith=H.zipAll=H.withLatestFrom=void 0;var f6=I();Object.defineProperty(H,"Observable",{enumerable:!0,get:function(){return f6.Observable}});Object.defineProperty(H,"from",{enumerable:!0,get:function(){return f6.from}});Object.defineProperty(H,"config",{enumerable:!0,get:function(){return f6.config}});Object.defineProperty(H,"Subscription",{enumerable:!0,get:function(){return f6.Subscription}});Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return f6.Subscriber}});Object.defineProperty(H,"operate",{enumerable:!0,get:function(){return f6.operate}});Object.defineProperty(H,"UnsubscriptionError",{enumerable:!0,get:function(){return f6.UnsubscriptionError}});Object.defineProperty(H,"isObservable",{enumerable:!0,get:function(){return f6.isObservable}});var nS=rL();Object.defineProperty(H,"animationFrames",{enumerable:!0,get:function(){return nS.animationFrames}});var aS=q0();Object.defineProperty(H,"Subject",{enumerable:!0,get:function(){return aS.Subject}});var rS=Jw();Object.defineProperty(H,"BehaviorSubject",{enumerable:!0,get:function(){return rS.BehaviorSubject}});var sS=xW();Object.defineProperty(H,"ReplaySubject",{enumerable:!0,get:function(){return sS.ReplaySubject}});var tS=MW();Object.defineProperty(H,"AsyncSubject",{enumerable:!0,get:function(){return tS.AsyncSubject}});var oS=pw();Object.defineProperty(H,"asapScheduler",{enumerable:!0,get:function(){return oS.asapScheduler}});var eS=h0();Object.defineProperty(H,"asyncScheduler",{enumerable:!0,get:function(){return eS.asyncScheduler}});var Zg=XD();Object.defineProperty(H,"queueScheduler",{enumerable:!0,get:function(){return Zg.queueScheduler}});var $g=wD();Object.defineProperty(H,"animationFrameScheduler",{enumerable:!0,get:function(){return $g.animationFrameScheduler}});var DP=OD();Object.defineProperty(H,"VirtualTimeScheduler",{enumerable:!0,get:function(){return DP.VirtualTimeScheduler}});Object.defineProperty(H,"VirtualAction",{enumerable:!0,get:function(){return DP.VirtualAction}});var Jg=vW();Object.defineProperty(H,"Scheduler",{enumerable:!0,get:function(){return Jg.Scheduler}});var Yg=TW();Object.defineProperty(H,"rx",{enumerable:!0,get:function(){return Yg.rx}});var Xg=RW();Object.defineProperty(H,"pipe",{enumerable:!0,get:function(){return Xg.pipe}});var zg=X0();Object.defineProperty(H,"noop",{enumerable:!0,get:function(){return zg.noop}});var Kg=v0();Object.defineProperty(H,"identity",{enumerable:!0,get:function(){return Kg.identity}});var Hg=yD();Object.defineProperty(H,"lastValueFrom",{enumerable:!0,get:function(){return Hg.lastValueFrom}});var Qg=_D();Object.defineProperty(H,"firstValueFrom",{enumerable:!0,get:function(){return Qg.firstValueFrom}});var qg=yW();Object.defineProperty(H,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return qg.ArgumentOutOfRangeError}});var Wg=c8();Object.defineProperty(H,"EmptyError",{enumerable:!0,get:function(){return Wg.EmptyError}});var Ng=mW();Object.defineProperty(H,"NotFoundError",{enumerable:!0,get:function(){return Ng.NotFoundError}});var Bg=jW();Object.defineProperty(H,"SequenceError",{enumerable:!0,get:function(){return Bg.SequenceError}});var Fg=eQ();Object.defineProperty(H,"TimeoutError",{enumerable:!0,get:function(){return Fg.TimeoutError}});var Gg=cU();Object.defineProperty(H,"bindCallback",{enumerable:!0,get:function(){return Gg.bindCallback}});var Lg=lU();Object.defineProperty(H,"bindNodeCallback",{enumerable:!0,get:function(){return Lg.bindNodeCallback}});var wg=Jq();Object.defineProperty(H,"combineLatest",{enumerable:!0,get:function(){return wg.combineLatest}});var Dg=rW();Object.defineProperty(H,"concat",{enumerable:!0,get:function(){return Dg.concat}});var Ug=I2();Object.defineProperty(H,"connectable",{enumerable:!0,get:function(){return Ug.connectable}});var Ig=IQ();Object.defineProperty(H,"defer",{enumerable:!0,get:function(){return Ig.defer}});var Og=E2();Object.defineProperty(H,"forkJoin",{enumerable:!0,get:function(){return Og.forkJoin}});var kg=h2();Object.defineProperty(H,"fromEvent",{enumerable:!0,get:function(){return kg.fromEvent}});var Eg=m2();Object.defineProperty(H,"fromEventPattern",{enumerable:!0,get:function(){return Eg.fromEventPattern}});var fg=g2();Object.defineProperty(H,"generate",{enumerable:!0,get:function(){return fg.generate}});var Vg=d2();Object.defineProperty(H,"iif",{enumerable:!0,get:function(){return Vg.iif}});var Pg=tW();Object.defineProperty(H,"interval",{enumerable:!0,get:function(){return Pg.interval}});var Ag=o2();Object.defineProperty(H,"merge",{enumerable:!0,get:function(){return Ag.merge}});var xg=$I();Object.defineProperty(H,"of",{enumerable:!0,get:function(){return xg.of}});var Mg=eW();Object.defineProperty(H,"onErrorResumeNext",{enumerable:!0,get:function(){return Mg.onErrorResumeNext}});var Cg=DI();Object.defineProperty(H,"partition",{enumerable:!0,get:function(){return Cg.partition}});var hg=ZN();Object.defineProperty(H,"race",{enumerable:!0,get:function(){return hg.race}});var vg=VI();Object.defineProperty(H,"range",{enumerable:!0,get:function(){return vg.range}});var Tg=xI();Object.defineProperty(H,"throwError",{enumerable:!0,get:function(){return Tg.throwError}});var Rg=E6();Object.defineProperty(H,"timer",{enumerable:!0,get:function(){return Rg.timer}});var yg=vI();Object.defineProperty(H,"using",{enumerable:!0,get:function(){return yg.using}});var mg=Hq();Object.defineProperty(H,"zip",{enumerable:!0,get:function(){return mg.zip}});var jg=DQ();Object.defineProperty(H,"scheduled",{enumerable:!0,get:function(){return jg.scheduled}});var _g=C8();Object.defineProperty(H,"EMPTY",{enumerable:!0,get:function(){return _g.EMPTY}});var Sg=jI();Object.defineProperty(H,"NEVER",{enumerable:!0,get:function(){return Sg.NEVER}});iS(SI(),H);var gg=JN();Object.defineProperty(H,"audit",{enumerable:!0,get:function(){return gg.audit}});var bg=uI();Object.defineProperty(H,"auditTime",{enumerable:!0,get:function(){return bg.auditTime}});var cg=iI();Object.defineProperty(H,"buffer",{enumerable:!0,get:function(){return cg.buffer}});var dg=sI();Object.defineProperty(H,"bufferCount",{enumerable:!0,get:function(){return dg.bufferCount}});var ug=ZO();Object.defineProperty(H,"bufferTime",{enumerable:!0,get:function(){return ug.bufferTime}});var lg=XO();Object.defineProperty(H,"bufferToggle",{enumerable:!0,get:function(){return lg.bufferToggle}});var pg=HO();Object.defineProperty(H,"bufferWhen",{enumerable:!0,get:function(){return pg.bufferWhen}});var ig=NO();Object.defineProperty(H,"catchError",{enumerable:!0,get:function(){return ig.catchError}});var ng=EO();Object.defineProperty(H,"combineLatestAll",{enumerable:!0,get:function(){return ng.combineLatestAll}});var ag=PO();Object.defineProperty(H,"combineLatestWith",{enumerable:!0,get:function(){return ag.combineLatestWith}});var rg=Xq();Object.defineProperty(H,"concatAll",{enumerable:!0,get:function(){return rg.concatAll}});var sg=QN();Object.defineProperty(H,"concatMap",{enumerable:!0,get:function(){return sg.concatMap}});var tg=hO();Object.defineProperty(H,"concatMapTo",{enumerable:!0,get:function(){return tg.concatMapTo}});var og=yO();Object.defineProperty(H,"concatWith",{enumerable:!0,get:function(){return og.concatWith}});var eg=cO();Object.defineProperty(H,"connect",{enumerable:!0,get:function(){return eg.connect}});var Zb=lO();Object.defineProperty(H,"count",{enumerable:!0,get:function(){return Zb.count}});var $b=nO();Object.defineProperty(H,"debounce",{enumerable:!0,get:function(){return $b.debounce}});var Jb=tO();Object.defineProperty(H,"debounceTime",{enumerable:!0,get:function(){return Jb.debounceTime}});var Yb=$k();Object.defineProperty(H,"defaultIfEmpty",{enumerable:!0,get:function(){return Yb.defaultIfEmpty}});var Xb=Gk();Object.defineProperty(H,"delay",{enumerable:!0,get:function(){return Xb.delay}});var zb=BN();Object.defineProperty(H,"delayWhen",{enumerable:!0,get:function(){return zb.delayWhen}});var Kb=kk();Object.defineProperty(H,"dematerialize",{enumerable:!0,get:function(){return Kb.dematerialize}});var Hb=Vk();Object.defineProperty(H,"distinct",{enumerable:!0,get:function(){return Hb.distinct}});var Qb=FN();Object.defineProperty(H,"distinctUntilChanged",{enumerable:!0,get:function(){return Qb.distinctUntilChanged}});var qb=hk();Object.defineProperty(H,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return qb.distinctUntilKeyChanged}});var Wb=mk();Object.defineProperty(H,"elementAt",{enumerable:!0,get:function(){return Wb.elementAt}});var Nb=Sk();Object.defineProperty(H,"endWith",{enumerable:!0,get:function(){return Nb.endWith}});var Bb=dk();Object.defineProperty(H,"every",{enumerable:!0,get:function(){return Bb.every}});var Fb=nk();Object.defineProperty(H,"exhaustAll",{enumerable:!0,get:function(){return Fb.exhaustAll}});var Gb=LN();Object.defineProperty(H,"exhaustMap",{enumerable:!0,get:function(){return Gb.exhaustMap}});var Lb=sk();Object.defineProperty(H,"expand",{enumerable:!0,get:function(){return Lb.expand}});var wb=zq();Object.defineProperty(H,"filter",{enumerable:!0,get:function(){return wb.filter}});var Db=ek();Object.defineProperty(H,"finalize",{enumerable:!0,get:function(){return Db.finalize}});var Ub=wN();Object.defineProperty(H,"find",{enumerable:!0,get:function(){return Ub.find}});var Ib=KE();Object.defineProperty(H,"findIndex",{enumerable:!0,get:function(){return Ib.findIndex}});var Ob=WE();Object.defineProperty(H,"first",{enumerable:!0,get:function(){return Ob.first}});var kb=FE();Object.defineProperty(H,"groupBy",{enumerable:!0,get:function(){return kb.groupBy}});var Eb=WN();Object.defineProperty(H,"ignoreElements",{enumerable:!0,get:function(){return Eb.ignoreElements}});var fb=DE();Object.defineProperty(H,"isEmpty",{enumerable:!0,get:function(){return fb.isEmpty}});var Vb=kE();Object.defineProperty(H,"last",{enumerable:!0,get:function(){return Vb.last}});var Pb=cH();Object.defineProperty(H,"map",{enumerable:!0,get:function(){return Pb.map}});var Ab=VE();Object.defineProperty(H,"mapTo",{enumerable:!0,get:function(){return Ab.mapTo}});var xb=xE();Object.defineProperty(H,"materialize",{enumerable:!0,get:function(){return xb.materialize}});var Mb=hE();Object.defineProperty(H,"max",{enumerable:!0,get:function(){return Mb.max}});var Cb=UQ();Object.defineProperty(H,"mergeAll",{enumerable:!0,get:function(){return Cb.mergeAll}});var hb=L9();Object.defineProperty(H,"mergeMap",{enumerable:!0,get:function(){return hb.mergeMap}});var vb=RE();Object.defineProperty(H,"mergeMapTo",{enumerable:!0,get:function(){return vb.mergeMapTo}});var Tb=jE();Object.defineProperty(H,"mergeScan",{enumerable:!0,get:function(){return Tb.mergeScan}});var Rb=bE();Object.defineProperty(H,"mergeWith",{enumerable:!0,get:function(){return Rb.mergeWith}});var yb=uE();Object.defineProperty(H,"min",{enumerable:!0,get:function(){return yb.min}});var mb=Zq();Object.defineProperty(H,"observeOn",{enumerable:!0,get:function(){return mb.observeOn}});var jb=iE();Object.defineProperty(H,"onErrorResumeNextWith",{enumerable:!0,get:function(){return jb.onErrorResumeNextWith}});var _b=sE();Object.defineProperty(H,"pairwise",{enumerable:!0,get:function(){return _b.pairwise}});var Sb=eE();Object.defineProperty(H,"raceWith",{enumerable:!0,get:function(){return Sb.raceWith}});var gb=uH();Object.defineProperty(H,"reduce",{enumerable:!0,get:function(){return gb.reduce}});var bb=Jf();Object.defineProperty(H,"repeat",{enumerable:!0,get:function(){return bb.repeat}});var cb=zf();Object.defineProperty(H,"repeatWhen",{enumerable:!0,get:function(){return cb.repeatWhen}});var db=Qf();Object.defineProperty(H,"retry",{enumerable:!0,get:function(){return db.retry}});var ub=Nf();Object.defineProperty(H,"retryWhen",{enumerable:!0,get:function(){return ub.retryWhen}});var lb=DN();Object.defineProperty(H,"sample",{enumerable:!0,get:function(){return lb.sample}});var pb=wf();Object.defineProperty(H,"sampleTime",{enumerable:!0,get:function(){return pb.sampleTime}});var ib=If();Object.defineProperty(H,"scan",{enumerable:!0,get:function(){return ib.scan}});var nb=ff();Object.defineProperty(H,"sequenceEqual",{enumerable:!0,get:function(){return nb.sequenceEqual}});var ab=ON();Object.defineProperty(H,"share",{enumerable:!0,get:function(){return ab.share}});var rb=Mf();Object.defineProperty(H,"shareReplay",{enumerable:!0,get:function(){return rb.shareReplay}});var sb=Tf();Object.defineProperty(H,"single",{enumerable:!0,get:function(){return sb.single}});var tb=mf();Object.defineProperty(H,"skip",{enumerable:!0,get:function(){return tb.skip}});var ob=gf();Object.defineProperty(H,"skipLast",{enumerable:!0,get:function(){return ob.skipLast}});var eb=df();Object.defineProperty(H,"skipUntil",{enumerable:!0,get:function(){return eb.skipUntil}});var Zc=nf();Object.defineProperty(H,"skipWhile",{enumerable:!0,get:function(){return Zc.skipWhile}});var $c=sf();Object.defineProperty(H,"startWith",{enumerable:!0,get:function(){return $c.startWith}});var Jc=$q();Object.defineProperty(H,"subscribeOn",{enumerable:!0,get:function(){return Jc.subscribeOn}});var Yc=$V();Object.defineProperty(H,"switchAll",{enumerable:!0,get:function(){return Yc.switchAll}});var Xc=VQ();Object.defineProperty(H,"switchMap",{enumerable:!0,get:function(){return Xc.switchMap}});var zc=XV();Object.defineProperty(H,"switchMapTo",{enumerable:!0,get:function(){return zc.switchMapTo}});var Kc=QV();Object.defineProperty(H,"switchScan",{enumerable:!0,get:function(){return Kc.switchScan}});var Hc=qN();Object.defineProperty(H,"take",{enumerable:!0,get:function(){return Hc.take}});var Qc=BV();Object.defineProperty(H,"takeLast",{enumerable:!0,get:function(){return Qc.takeLast}});var qc=LV();Object.defineProperty(H,"takeUntil",{enumerable:!0,get:function(){return qc.takeUntil}});var Wc=IV();Object.defineProperty(H,"takeWhile",{enumerable:!0,get:function(){return Wc.takeWhile}});var Nc=EV();Object.defineProperty(H,"tap",{enumerable:!0,get:function(){return Nc.tap}});var Bc=VN();Object.defineProperty(H,"throttle",{enumerable:!0,get:function(){return Bc.throttle}});var Fc=xV();Object.defineProperty(H,"throttleTime",{enumerable:!0,get:function(){return Fc.throttleTime}});var Gc=vV();Object.defineProperty(H,"throwIfEmpty",{enumerable:!0,get:function(){return Gc.throwIfEmpty}});var Lc=mV();Object.defineProperty(H,"timeInterval",{enumerable:!0,get:function(){return Lc.timeInterval}});var wc=eQ();Object.defineProperty(H,"timeout",{enumerable:!0,get:function(){return wc.timeout}});var Dc=SV();Object.defineProperty(H,"timeoutWith",{enumerable:!0,get:function(){return Dc.timeoutWith}});var Uc=cV();Object.defineProperty(H,"timestamp",{enumerable:!0,get:function(){return Uc.timestamp}});var Ic=KN();Object.defineProperty(H,"toArray",{enumerable:!0,get:function(){return Ic.toArray}});var Oc=pV();Object.defineProperty(H,"window",{enumerable:!0,get:function(){return Oc.window}});var kc=sV();Object.defineProperty(H,"windowCount",{enumerable:!0,get:function(){return kc.windowCount}});var Ec=ZP();Object.defineProperty(H,"windowTime",{enumerable:!0,get:function(){return Ec.windowTime}});var fc=XP();Object.defineProperty(H,"windowToggle",{enumerable:!0,get:function(){return fc.windowToggle}});var Vc=HP();Object.defineProperty(H,"windowWhen",{enumerable:!0,get:function(){return Vc.windowWhen}});var Pc=WP();Object.defineProperty(H,"withLatestFrom",{enumerable:!0,get:function(){return Pc.withLatestFrom}});var Ac=FP();Object.defineProperty(H,"zipAll",{enumerable:!0,get:function(){return Ac.zipAll}});var xc=wP();Object.defineProperty(H,"zipWith",{enumerable:!0,get:function(){return xc.zipWith}})});async function xN(Z,$,J){let{max:Y=4}=J??{},X=(K)=>v.defer(()=>v.from($(Z[K])).pipe(v.map((Q)=>({idx:K,v:Q})))),z=v.from(Z.map((K,Q)=>Q)).pipe(v.map(X),v.mergeAll(Y),v.reduce((K,Q)=>{return K[Q.idx]=Q.v,K},[]));return v.firstValueFrom(z)}class IP{opQueue=new v.Subject;opResultStream;nextOperation=1;dispose;constructor(Z){let{max:$=4}=Z??{};this.opResultStream=this.opQueue.pipe(v.mergeAll($),v.share()),this.dispose=this.opResultStream.subscribe()}enqueue(Z){let $=this.nextOperation++,J=v.defer(()=>v.from(Z()).pipe(v.map((X)=>({id:$,result:X})),v.catchError((X)=>v.of({id:$,error:X})))),Y=v.firstValueFrom(this.opResultStream.pipe(v.filter((X)=>X.id===$))).then((X)=>{if(X.error)return Promise.reject(X.error);else return Promise.resolve(X.result)});return this.opQueue.next(J),Y}enqueueList(Z,$){if(Z.length===0)return Promise.resolve(new Map);return v.firstValueFrom(v.from(Z).pipe(v.mergeMap((J)=>this.enqueue(()=>$(J)).then((Y)=>({key:J,value:Y}))),v.reduce((J,Y)=>{return J.set(Y.key,Y.value),J},new Map)))}close(){this.opQueue.complete();let Z=v.lastValueFrom(this.opResultStream.pipe(v.materialize(),v.map(()=>{return})));return this.dispose.unsubscribe(),Z}}var v;var OP=U(()=>{v=zF(UP(),1)});import{randomUUID as Mc}from"crypto";import{closeSync as Cc,openSync as hc,readSync as vc}from"fs";function Rc(Z){if(kP)return;try{if(lH===void 0)lH=hc(Tc,"r");let $=Buffer.alloc(Z),J=0;while(J<Z){let Y=vc(lH,$,J,Z-J,null);if(Y<=0)return;J+=Y}return $}catch{if(kP=!0,lH!==void 0){try{Cc(lH)}catch{}lH=void 0}return}}function yc(Z){let $=Z[6]??0,J=Z[8]??0;Z[6]=$&15|64,Z[8]=J&63|128;let Y=Z.toString("hex");return`${Y.slice(0,8)}-${Y.slice(8,12)}-${Y.slice(12,16)}-${Y.slice(16,20)}-${Y.slice(20)}`}function Pq(){let Z=Rc(16);if(Z===void 0)return Mc({disableEntropyCache:!0});return yc(Z)}var Tc="/dev/urandom",lH,kP=!1;var EP=()=>{};function fP(Z){return Z.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function mc(Z){return/^[A-Za-z]:[\\/]/.test(Z)||Z.startsWith("\\\\")||Z.startsWith("//")}function jc(Z,...$){if(!mc(Z))return[Z.replace(/\/+$/,""),...$].join("/");let Y=Z.replace(/\//g,"\\").replace(/\\+$/,""),X=$.map((z)=>z.replace(/\//g,"\\"));if(Y.length===0)return["","",...X].join("\\");return[Y,...X].join("\\")}function MN(Z,$){return jc(Z,".cursor","projects",fP($))}var pH=U(()=>{OP();EP()});var AP=q((VP)=>{Object.defineProperty(VP,"__esModule",{value:!0});VP._globalThis=void 0;VP._globalThis=typeof globalThis==="object"?globalThis:global});var xP=q((U9)=>{var _c=U9&&U9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),Sc=U9&&U9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))_c($,Z,J)};Object.defineProperty(U9,"__esModule",{value:!0});Sc(AP(),U9)});var MP=q((I9)=>{var gc=I9&&I9.__createBinding||(Object.create?function(Z,$,J,Y){if(Y===void 0)Y=J;Object.defineProperty(Z,Y,{enumerable:!0,get:function(){return $[J]}})}:function(Z,$,J,Y){if(Y===void 0)Y=J;Z[Y]=$[J]}),bc=I9&&I9.__exportStar||function(Z,$){for(var J in Z)if(J!=="default"&&!Object.prototype.hasOwnProperty.call($,J))gc($,Z,J)};Object.defineProperty(I9,"__esModule",{value:!0});bc(xP(),I9)});var CN=q((CP)=>{Object.defineProperty(CP,"__esModule",{value:!0});CP.VERSION=void 0;CP.VERSION="1.9.0"});var mP=q((RP)=>{Object.defineProperty(RP,"__esModule",{value:!0});RP.isCompatible=RP._makeCompatibilityCheck=void 0;var cc=CN(),vP=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function TP(Z){let $=new Set([Z]),J=new Set,Y=Z.match(vP);if(!Y)return()=>!1;let X={major:+Y[1],minor:+Y[2],patch:+Y[3],prerelease:Y[4]};if(X.prerelease!=null)return function(W){return W===Z};function z(Q){return J.add(Q),!1}function K(Q){return $.add(Q),!0}return function(W){if($.has(W))return!0;if(J.has(W))return!1;let L=W.match(vP);if(!L)return z(W);let D={major:+L[1],minor:+L[2],patch:+L[3],prerelease:L[4]};if(D.prerelease!=null)return z(W);if(X.major!==D.major)return z(W);if(X.major===0){if(X.minor===D.minor&&X.patch<=D.patch)return K(W);return z(W)}if(X.minor<=D.minor)return K(W);return z(W)}}RP._makeCompatibilityCheck=TP;RP.isCompatible=TP(cc.VERSION)});var O9=q((jP)=>{Object.defineProperty(jP,"__esModule",{value:!0});jP.unregisterGlobal=jP.getGlobal=jP.registerGlobal=void 0;var uc=MP(),iH=CN(),lc=mP(),pc=iH.VERSION.split(".")[0],PQ=Symbol.for(`opentelemetry.js.api.${pc}`),AQ=uc._globalThis;function ic(Z,$,J,Y=!1){var X;let z=AQ[PQ]=(X=AQ[PQ])!==null&&X!==void 0?X:{version:iH.VERSION};if(!Y&&z[Z]){let K=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return J.error(K.stack||K.message),!1}if(z.version!==iH.VERSION){let K=Error(`@opentelemetry/api: Registration of version v${z.version} for ${Z} does not match previously registered API v${iH.VERSION}`);return J.error(K.stack||K.message),!1}return z[Z]=$,J.debug(`@opentelemetry/api: Registered a global for ${Z} v${iH.VERSION}.`),!0}jP.registerGlobal=ic;function nc(Z){var $,J;let Y=($=AQ[PQ])===null||$===void 0?void 0:$.version;if(!Y||!(0,lc.isCompatible)(Y))return;return(J=AQ[PQ])===null||J===void 0?void 0:J[Z]}jP.getGlobal=nc;function ac(Z,$){$.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${iH.VERSION}.`);let J=AQ[PQ];if(J)delete J[Z]}jP.unregisterGlobal=ac});var cP=q((gP)=>{Object.defineProperty(gP,"__esModule",{value:!0});gP.DiagComponentLogger=void 0;var tc=O9();class SP{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return xQ("debug",this._namespace,Z)}error(...Z){return xQ("error",this._namespace,Z)}info(...Z){return xQ("info",this._namespace,Z)}warn(...Z){return xQ("warn",this._namespace,Z)}verbose(...Z){return xQ("verbose",this._namespace,Z)}}gP.DiagComponentLogger=SP;function xQ(Z,$,J){let Y=(0,tc.getGlobal)("diag");if(!Y)return;return J.unshift($),Y[Z](...J)}});var Aq=q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.DiagLogLevel=void 0;var oc;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(oc=dP.DiagLogLevel||(dP.DiagLogLevel={}))});var pP=q((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.createLogLevelDiagLogger=void 0;var u8=Aq();function ec(Z,$){if(Z<u8.DiagLogLevel.NONE)Z=u8.DiagLogLevel.NONE;else if(Z>u8.DiagLogLevel.ALL)Z=u8.DiagLogLevel.ALL;$=$||{};function J(Y,X){let z=$[Y];if(typeof z==="function"&&Z>=X)return z.bind($);return function(){}}return{error:J("error",u8.DiagLogLevel.ERROR),warn:J("warn",u8.DiagLogLevel.WARN),info:J("info",u8.DiagLogLevel.INFO),debug:J("debug",u8.DiagLogLevel.DEBUG),verbose:J("verbose",u8.DiagLogLevel.VERBOSE)}}uP.createLogLevelDiagLogger=ec});var k9=q((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.DiagAPI=void 0;var Zd=cP(),$d=pP(),iP=Aq(),xq=O9(),Jd="diag";class vN{constructor(){function Z(Y){return function(...X){let z=(0,xq.getGlobal)("diag");if(!z)return;return z[Y](...X)}}let $=this,J=(Y,X={logLevel:iP.DiagLogLevel.INFO})=>{var z,K,Q;if(Y===$){let D=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return $.error((z=D.stack)!==null&&z!==void 0?z:D.message),!1}if(typeof X==="number")X={logLevel:X};let W=(0,xq.getGlobal)("diag"),L=(0,$d.createLogLevelDiagLogger)((K=X.logLevel)!==null&&K!==void 0?K:iP.DiagLogLevel.INFO,Y);if(W&&!X.suppressOverrideMessage){let D=(Q=Error().stack)!==null&&Q!==void 0?Q:"<failed to generate stacktrace>";W.warn(`Current logger will be overwritten from ${D}`),L.warn(`Current logger will overwrite one already registered from ${D}`)}return(0,xq.registerGlobal)("diag",L,$,!0)};$.setLogger=J,$.disable=()=>{(0,xq.unregisterGlobal)(Jd,$)},$.createComponentLogger=(Y)=>{return new Zd.DiagComponentLogger(Y)},$.verbose=Z("verbose"),$.debug=Z("debug"),$.info=Z("info"),$.warn=Z("warn"),$.error=Z("error")}static instance(){if(!this._instance)this._instance=new vN;return this._instance}}nP.DiagAPI=vN});var tP=q((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.BaggageImpl=void 0;class nH{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let $=this._entries.get(Z);if(!$)return;return Object.assign({},$)}getAllEntries(){return Array.from(this._entries.entries()).map(([Z,$])=>[Z,$])}setEntry(Z,$){let J=new nH(this._entries);return J._entries.set(Z,$),J}removeEntry(Z){let $=new nH(this._entries);return $._entries.delete(Z),$}removeEntries(...Z){let $=new nH(this._entries);for(let J of Z)$._entries.delete(J);return $}clear(){return new nH}}rP.BaggageImpl=nH});var Z4=q((oP)=>{Object.defineProperty(oP,"__esModule",{value:!0});oP.baggageEntryMetadataSymbol=void 0;oP.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var TN=q(($4)=>{Object.defineProperty($4,"__esModule",{value:!0});$4.baggageEntryMetadataFromString=$4.createBaggage=void 0;var Yd=k9(),Xd=tP(),zd=Z4(),Kd=Yd.DiagAPI.instance();function Hd(Z={}){return new Xd.BaggageImpl(new Map(Object.entries(Z)))}$4.createBaggage=Hd;function Qd(Z){if(typeof Z!=="string")Kd.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:zd.baggageEntryMetadataSymbol,toString(){return Z}}}$4.baggageEntryMetadataFromString=Qd});var MQ=q((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.ROOT_CONTEXT=Y4.createContextKey=void 0;function Wd(Z){return Symbol.for(Z)}Y4.createContextKey=Wd;class Mq{constructor(Z){let $=this;$._currentContext=Z?new Map(Z):new Map,$.getValue=(J)=>$._currentContext.get(J),$.setValue=(J,Y)=>{let X=new Mq($._currentContext);return X._currentContext.set(J,Y),X},$.deleteValue=(J)=>{let Y=new Mq($._currentContext);return Y._currentContext.delete(J),Y}}}Y4.ROOT_CONTEXT=new Mq});var Q4=q((K4)=>{Object.defineProperty(K4,"__esModule",{value:!0});K4.DiagConsoleLogger=void 0;var RN=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class z4{constructor(){function Z($){return function(...J){if(console){let Y=console[$];if(typeof Y!=="function")Y=console.log;if(typeof Y==="function")return Y.apply(console,J)}}}for(let $=0;$<RN.length;$++)this[RN[$].n]=Z(RN[$].c)}}K4.DiagConsoleLogger=z4});var dN=q((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.createNoopMeter=q4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=q4.NOOP_OBSERVABLE_GAUGE_METRIC=q4.NOOP_OBSERVABLE_COUNTER_METRIC=q4.NOOP_UP_DOWN_COUNTER_METRIC=q4.NOOP_HISTOGRAM_METRIC=q4.NOOP_GAUGE_METRIC=q4.NOOP_COUNTER_METRIC=q4.NOOP_METER=q4.NoopObservableUpDownCounterMetric=q4.NoopObservableGaugeMetric=q4.NoopObservableCounterMetric=q4.NoopObservableMetric=q4.NoopHistogramMetric=q4.NoopGaugeMetric=q4.NoopUpDownCounterMetric=q4.NoopCounterMetric=q4.NoopMetric=q4.NoopMeter=void 0;class yN{constructor(){}createGauge(Z,$){return q4.NOOP_GAUGE_METRIC}createHistogram(Z,$){return q4.NOOP_HISTOGRAM_METRIC}createCounter(Z,$){return q4.NOOP_COUNTER_METRIC}createUpDownCounter(Z,$){return q4.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,$){return q4.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,$){return q4.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,$){return q4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,$){}removeBatchObservableCallback(Z){}}q4.NoopMeter=yN;class aH{}q4.NoopMetric=aH;class mN extends aH{add(Z,$){}}q4.NoopCounterMetric=mN;class jN extends aH{add(Z,$){}}q4.NoopUpDownCounterMetric=jN;class _N extends aH{record(Z,$){}}q4.NoopGaugeMetric=_N;class SN extends aH{record(Z,$){}}q4.NoopHistogramMetric=SN;class CQ{addCallback(Z){}removeCallback(Z){}}q4.NoopObservableMetric=CQ;class gN extends CQ{}q4.NoopObservableCounterMetric=gN;class bN extends CQ{}q4.NoopObservableGaugeMetric=bN;class cN extends CQ{}q4.NoopObservableUpDownCounterMetric=cN;q4.NOOP_METER=new yN;q4.NOOP_COUNTER_METRIC=new mN;q4.NOOP_GAUGE_METRIC=new _N;q4.NOOP_HISTOGRAM_METRIC=new SN;q4.NOOP_UP_DOWN_COUNTER_METRIC=new jN;q4.NOOP_OBSERVABLE_COUNTER_METRIC=new gN;q4.NOOP_OBSERVABLE_GAUGE_METRIC=new bN;q4.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new cN;function Bd(){return q4.NOOP_METER}q4.createNoopMeter=Bd});var O4=q((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.ValueType=void 0;var fd;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(fd=I4.ValueType||(I4.ValueType={}))});var lN=q((k4)=>{Object.defineProperty(k4,"__esModule",{value:!0});k4.defaultTextMapSetter=k4.defaultTextMapGetter=void 0;k4.defaultTextMapGetter={get(Z,$){if(Z==null)return;return Z[$]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};k4.defaultTextMapSetter={set(Z,$,J){if(Z==null)return;Z[$]=J}}});var A4=q((V4)=>{Object.defineProperty(V4,"__esModule",{value:!0});V4.NoopContextManager=void 0;var Pd=MQ();class f4{active(){return Pd.ROOT_CONTEXT}with(Z,$,J,...Y){return $.call(J,...Y)}bind(Z,$){return $}enable(){return this}disable(){return this}}V4.NoopContextManager=f4});var hQ=q((M4)=>{Object.defineProperty(M4,"__esModule",{value:!0});M4.ContextAPI=void 0;var Ad=A4(),pN=O9(),x4=k9(),iN="context",xd=new Ad.NoopContextManager;class nN{constructor(){}static getInstance(){if(!this._instance)this._instance=new nN;return this._instance}setGlobalContextManager(Z){return(0,pN.registerGlobal)(iN,Z,x4.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,$,J,...Y){return this._getContextManager().with(Z,$,J,...Y)}bind(Z,$){return this._getContextManager().bind(Z,$)}_getContextManager(){return(0,pN.getGlobal)(iN)||xd}disable(){this._getContextManager().disable(),(0,pN.unregisterGlobal)(iN,x4.DiagAPI.instance())}}M4.ContextAPI=nN});var rN=q((h4)=>{Object.defineProperty(h4,"__esModule",{value:!0});h4.TraceFlags=void 0;var Md;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(Md=h4.TraceFlags||(h4.TraceFlags={}))});var Cq=q((v4)=>{Object.defineProperty(v4,"__esModule",{value:!0});v4.INVALID_SPAN_CONTEXT=v4.INVALID_TRACEID=v4.INVALID_SPANID=void 0;var Cd=rN();v4.INVALID_SPANID="0000000000000000";v4.INVALID_TRACEID="00000000000000000000000000000000";v4.INVALID_SPAN_CONTEXT={traceId:v4.INVALID_TRACEID,spanId:v4.INVALID_SPANID,traceFlags:Cd.TraceFlags.NONE}});var hq=q((j4)=>{Object.defineProperty(j4,"__esModule",{value:!0});j4.NonRecordingSpan=void 0;var hd=Cq();class m4{constructor(Z=hd.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,$){return this}setAttributes(Z){return this}addEvent(Z,$){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,$){}}j4.NonRecordingSpan=m4});var oN=q((g4)=>{Object.defineProperty(g4,"__esModule",{value:!0});g4.getSpanContext=g4.setSpanContext=g4.deleteSpan=g4.setSpan=g4.getActiveSpan=g4.getSpan=void 0;var vd=MQ(),Td=hq(),Rd=hQ(),sN=(0,vd.createContextKey)("OpenTelemetry Context Key SPAN");function tN(Z){return Z.getValue(sN)||void 0}g4.getSpan=tN;function yd(){return tN(Rd.ContextAPI.getInstance().active())}g4.getActiveSpan=yd;function S4(Z,$){return Z.setValue(sN,$)}g4.setSpan=S4;function md(Z){return Z.deleteValue(sN)}g4.deleteSpan=md;function jd(Z,$){return S4(Z,new Td.NonRecordingSpan($))}g4.setSpanContext=jd;function _d(Z){var $;return($=tN(Z))===null||$===void 0?void 0:$.spanContext()}g4.getSpanContext=_d});var vq=q((l4)=>{Object.defineProperty(l4,"__esModule",{value:!0});l4.wrapSpanContext=l4.isSpanContextValid=l4.isValidSpanId=l4.isValidTraceId=void 0;var c4=Cq(),ud=hq(),ld=/^([0-9a-f]{32})$/i,pd=/^[0-9a-f]{16}$/i;function d4(Z){return ld.test(Z)&&Z!==c4.INVALID_TRACEID}l4.isValidTraceId=d4;function u4(Z){return pd.test(Z)&&Z!==c4.INVALID_SPANID}l4.isValidSpanId=u4;function id(Z){return d4(Z.traceId)&&u4(Z.spanId)}l4.isSpanContextValid=id;function nd(Z){return new ud.NonRecordingSpan(Z)}l4.wrapSpanContext=nd});var $B=q((a4)=>{Object.defineProperty(a4,"__esModule",{value:!0});a4.NoopTracer=void 0;var td=hQ(),i4=oN(),eN=hq(),od=vq(),ZB=td.ContextAPI.getInstance();class n4{startSpan(Z,$,J=ZB.active()){if(Boolean($===null||$===void 0?void 0:$.root))return new eN.NonRecordingSpan;let X=J&&(0,i4.getSpanContext)(J);if(ed(X)&&(0,od.isSpanContextValid)(X))return new eN.NonRecordingSpan(X);else return new eN.NonRecordingSpan}startActiveSpan(Z,$,J,Y){let X,z,K;if(arguments.length<2)return;else if(arguments.length===2)K=$;else if(arguments.length===3)X=$,K=J;else X=$,z=J,K=Y;let Q=z!==null&&z!==void 0?z:ZB.active(),W=this.startSpan(Z,X,Q),L=(0,i4.setSpan)(Q,W);return ZB.with(L,K,void 0,W)}}a4.NoopTracer=n4;function ed(Z){return typeof Z==="object"&&typeof Z.spanId==="string"&&typeof Z.traceId==="string"&&typeof Z.traceFlags==="number"}});var JB=q((t4)=>{Object.defineProperty(t4,"__esModule",{value:!0});t4.ProxyTracer=void 0;var Zu=$B(),$u=new Zu.NoopTracer;class s4{constructor(Z,$,J,Y){this._provider=Z,this.name=$,this.version=J,this.options=Y}startSpan(Z,$,J){return this._getTracer().startSpan(Z,$,J)}startActiveSpan(Z,$,J,Y){let X=this._getTracer();return Reflect.apply(X.startActiveSpan,X,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return $u;return this._delegate=Z,this._delegate}}t4.ProxyTracer=s4});var JA=q((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.NoopTracerProvider=void 0;var Ju=$B();class e4{getTracer(Z,$,J){return new Ju.NoopTracer}}ZA.NoopTracerProvider=e4});var YB=q((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.ProxyTracerProvider=void 0;var Yu=JB(),Xu=JA(),zu=new Xu.NoopTracerProvider;class YA{getTracer(Z,$,J){var Y;return(Y=this.getDelegateTracer(Z,$,J))!==null&&Y!==void 0?Y:new Yu.ProxyTracer(this,Z,$,J)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:zu}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,$,J){var Y;return(Y=this._delegate)===null||Y===void 0?void 0:Y.getTracer(Z,$,J)}}XA.ProxyTracerProvider=YA});var HA=q((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.SamplingDecision=void 0;var Ku;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ku=KA.SamplingDecision||(KA.SamplingDecision={}))});var qA=q((QA)=>{Object.defineProperty(QA,"__esModule",{value:!0});QA.SpanKind=void 0;var Hu;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Hu=QA.SpanKind||(QA.SpanKind={}))});var NA=q((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.SpanStatusCode=void 0;var Qu;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Qu=WA.SpanStatusCode||(WA.SpanStatusCode={}))});var GA=q((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.validateValue=BA.validateKey=void 0;var HB="[_0-9a-z-*/]",qu=`[a-z]${HB}{0,255}`,Wu=`[a-z0-9]${HB}{0,240}@[a-z]${HB}{0,13}`,Nu=new RegExp(`^(?:${qu}|${Wu})$`),Bu=/^[ -~]{0,255}[!-~]$/,Fu=/,|=/;function Gu(Z){return Nu.test(Z)}BA.validateKey=Gu;function Lu(Z){return Bu.test(Z)&&!Fu.test(Z)}BA.validateValue=Lu});var kA=q((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.TraceStateImpl=void 0;var LA=GA(),wA=32,Du=512,DA=",",UA="=";class QB{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,$){let J=this._clone();if(J._internalState.has(Z))J._internalState.delete(Z);return J._internalState.set(Z,$),J}unset(Z){let $=this._clone();return $._internalState.delete(Z),$}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,$)=>{return Z.push($+UA+this.get($)),Z},[]).join(DA)}_parse(Z){if(Z.length>Du)return;if(this._internalState=Z.split(DA).reverse().reduce(($,J)=>{let Y=J.trim(),X=Y.indexOf(UA);if(X!==-1){let z=Y.slice(0,X),K=Y.slice(X+1,J.length);if((0,LA.validateKey)(z)&&(0,LA.validateValue)(K))$.set(z,K)}return $},new Map),this._internalState.size>wA)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,wA))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new QB;return Z._internalState=new Map(this._internalState),Z}}IA.TraceStateImpl=QB});var VA=q((EA)=>{Object.defineProperty(EA,"__esModule",{value:!0});EA.createTraceState=void 0;var Uu=kA();function Iu(Z){return new Uu.TraceStateImpl(Z)}EA.createTraceState=Iu});var xA=q((PA)=>{Object.defineProperty(PA,"__esModule",{value:!0});PA.context=void 0;var Ou=hQ();PA.context=Ou.ContextAPI.getInstance()});var hA=q((MA)=>{Object.defineProperty(MA,"__esModule",{value:!0});MA.diag=void 0;var ku=k9();MA.diag=ku.DiagAPI.instance()});var RA=q((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.NOOP_METER_PROVIDER=vA.NoopMeterProvider=void 0;var Eu=dN();class qB{getMeter(Z,$,J){return Eu.NOOP_METER}}vA.NoopMeterProvider=qB;vA.NOOP_METER_PROVIDER=new qB});var _A=q((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.MetricsAPI=void 0;var Vu=RA(),WB=O9(),yA=k9(),NB="metrics";class BB{constructor(){}static getInstance(){if(!this._instance)this._instance=new BB;return this._instance}setGlobalMeterProvider(Z){return(0,WB.registerGlobal)(NB,Z,yA.DiagAPI.instance())}getMeterProvider(){return(0,WB.getGlobal)(NB)||Vu.NOOP_METER_PROVIDER}getMeter(Z,$,J){return this.getMeterProvider().getMeter(Z,$,J)}disable(){(0,WB.unregisterGlobal)(NB,yA.DiagAPI.instance())}}mA.MetricsAPI=BB});var bA=q((SA)=>{Object.defineProperty(SA,"__esModule",{value:!0});SA.metrics=void 0;var Pu=_A();SA.metrics=Pu.MetricsAPI.getInstance()});var lA=q((dA)=>{Object.defineProperty(dA,"__esModule",{value:!0});dA.NoopTextMapPropagator=void 0;class cA{inject(Z,$){}extract(Z,$){return Z}fields(){return[]}}dA.NoopTextMapPropagator=cA});var aA=q((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.deleteBaggage=iA.setBaggage=iA.getActiveBaggage=iA.getBaggage=void 0;var Au=hQ(),xu=MQ(),FB=(0,xu.createContextKey)("OpenTelemetry Baggage Key");function pA(Z){return Z.getValue(FB)||void 0}iA.getBaggage=pA;function Mu(){return pA(Au.ContextAPI.getInstance().active())}iA.getActiveBaggage=Mu;function Cu(Z,$){return Z.setValue(FB,$)}iA.setBaggage=Cu;function hu(Z){return Z.deleteValue(FB)}iA.deleteBaggage=hu});var eA=q((tA)=>{Object.defineProperty(tA,"__esModule",{value:!0});tA.PropagationAPI=void 0;var GB=O9(),yu=lA(),rA=lN(),Tq=aA(),mu=TN(),sA=k9(),LB="propagation",ju=new yu.NoopTextMapPropagator;class wB{constructor(){this.createBaggage=mu.createBaggage,this.getBaggage=Tq.getBaggage,this.getActiveBaggage=Tq.getActiveBaggage,this.setBaggage=Tq.setBaggage,this.deleteBaggage=Tq.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new wB;return this._instance}setGlobalPropagator(Z){return(0,GB.registerGlobal)(LB,Z,sA.DiagAPI.instance())}inject(Z,$,J=rA.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,$,J)}extract(Z,$,J=rA.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,$,J)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,GB.unregisterGlobal)(LB,sA.DiagAPI.instance())}_getGlobalPropagator(){return(0,GB.getGlobal)(LB)||ju}}tA.PropagationAPI=wB});var Jx=q((Zx)=>{Object.defineProperty(Zx,"__esModule",{value:!0});Zx.propagation=void 0;var _u=eA();Zx.propagation=_u.PropagationAPI.getInstance()});var Qx=q((Kx)=>{Object.defineProperty(Kx,"__esModule",{value:!0});Kx.TraceAPI=void 0;var DB=O9(),Yx=YB(),Xx=vq(),rH=oN(),zx=k9(),UB="trace";class IB{constructor(){this._proxyTracerProvider=new Yx.ProxyTracerProvider,this.wrapSpanContext=Xx.wrapSpanContext,this.isSpanContextValid=Xx.isSpanContextValid,this.deleteSpan=rH.deleteSpan,this.getSpan=rH.getSpan,this.getActiveSpan=rH.getActiveSpan,this.getSpanContext=rH.getSpanContext,this.setSpan=rH.setSpan,this.setSpanContext=rH.setSpanContext}static getInstance(){if(!this._instance)this._instance=new IB;return this._instance}setGlobalTracerProvider(Z){let $=(0,DB.registerGlobal)(UB,this._proxyTracerProvider,zx.DiagAPI.instance());if($)this._proxyTracerProvider.setDelegate(Z);return $}getTracerProvider(){return(0,DB.getGlobal)(UB)||this._proxyTracerProvider}getTracer(Z,$){return this.getTracerProvider().getTracer(Z,$)}disable(){(0,DB.unregisterGlobal)(UB,zx.DiagAPI.instance()),this._proxyTracerProvider=new Yx.ProxyTracerProvider}}Kx.TraceAPI=IB});var Nx=q((qx)=>{Object.defineProperty(qx,"__esModule",{value:!0});qx.trace=void 0;var Su=Qx();qx.trace=Su.TraceAPI.getInstance()});var Ix=q((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.trace=S.propagation=S.metrics=S.diag=S.context=S.INVALID_SPAN_CONTEXT=S.INVALID_TRACEID=S.INVALID_SPANID=S.isValidSpanId=S.isValidTraceId=S.isSpanContextValid=S.createTraceState=S.TraceFlags=S.SpanStatusCode=S.SpanKind=S.SamplingDecision=S.ProxyTracerProvider=S.ProxyTracer=S.defaultTextMapSetter=S.defaultTextMapGetter=S.ValueType=S.createNoopMeter=S.DiagLogLevel=S.DiagConsoleLogger=S.ROOT_CONTEXT=S.createContextKey=S.baggageEntryMetadataFromString=void 0;var gu=TN();Object.defineProperty(S,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return gu.baggageEntryMetadataFromString}});var Bx=MQ();Object.defineProperty(S,"createContextKey",{enumerable:!0,get:function(){return Bx.createContextKey}});Object.defineProperty(S,"ROOT_CONTEXT",{enumerable:!0,get:function(){return Bx.ROOT_CONTEXT}});var bu=Q4();Object.defineProperty(S,"DiagConsoleLogger",{enumerable:!0,get:function(){return bu.DiagConsoleLogger}});var cu=Aq();Object.defineProperty(S,"DiagLogLevel",{enumerable:!0,get:function(){return cu.DiagLogLevel}});var du=dN();Object.defineProperty(S,"createNoopMeter",{enumerable:!0,get:function(){return du.createNoopMeter}});var uu=O4();Object.defineProperty(S,"ValueType",{enumerable:!0,get:function(){return uu.ValueType}});var Fx=lN();Object.defineProperty(S,"defaultTextMapGetter",{enumerable:!0,get:function(){return Fx.defaultTextMapGetter}});Object.defineProperty(S,"defaultTextMapSetter",{enumerable:!0,get:function(){return Fx.defaultTextMapSetter}});var lu=JB();Object.defineProperty(S,"ProxyTracer",{enumerable:!0,get:function(){return lu.ProxyTracer}});var pu=YB();Object.defineProperty(S,"ProxyTracerProvider",{enumerable:!0,get:function(){return pu.ProxyTracerProvider}});var iu=HA();Object.defineProperty(S,"SamplingDecision",{enumerable:!0,get:function(){return iu.SamplingDecision}});var nu=qA();Object.defineProperty(S,"SpanKind",{enumerable:!0,get:function(){return nu.SpanKind}});var au=NA();Object.defineProperty(S,"SpanStatusCode",{enumerable:!0,get:function(){return au.SpanStatusCode}});var ru=rN();Object.defineProperty(S,"TraceFlags",{enumerable:!0,get:function(){return ru.TraceFlags}});var su=VA();Object.defineProperty(S,"createTraceState",{enumerable:!0,get:function(){return su.createTraceState}});var OB=vq();Object.defineProperty(S,"isSpanContextValid",{enumerable:!0,get:function(){return OB.isSpanContextValid}});Object.defineProperty(S,"isValidTraceId",{enumerable:!0,get:function(){return OB.isValidTraceId}});Object.defineProperty(S,"isValidSpanId",{enumerable:!0,get:function(){return OB.isValidSpanId}});var kB=Cq();Object.defineProperty(S,"INVALID_SPANID",{enumerable:!0,get:function(){return kB.INVALID_SPANID}});Object.defineProperty(S,"INVALID_TRACEID",{enumerable:!0,get:function(){return kB.INVALID_TRACEID}});Object.defineProperty(S,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return kB.INVALID_SPAN_CONTEXT}});var Gx=xA();Object.defineProperty(S,"context",{enumerable:!0,get:function(){return Gx.context}});var Lx=hA();Object.defineProperty(S,"diag",{enumerable:!0,get:function(){return Lx.diag}});var wx=bA();Object.defineProperty(S,"metrics",{enumerable:!0,get:function(){return wx.metrics}});var Dx=Jx();Object.defineProperty(S,"propagation",{enumerable:!0,get:function(){return Dx.propagation}});var Ux=Nx();Object.defineProperty(S,"trace",{enumerable:!0,get:function(){return Ux.trace}});S.default={context:Gx.context,diag:Lx.diag,metrics:wx.metrics,propagation:Dx.propagation,trace:Ux.trace}});function Ex(Z){if(vQ+Z>Rq.length)crypto.getRandomValues(Rq),vQ=0;let $="",J=vQ+Z;for(let Y=vQ;Y<J;Y++)$+=$l[Rq[Y]];return vQ=J,$}function kx(Z,$){if(Z===void 0)return $;if(typeof Z==="number")return Z;if(Z instanceof Date)return Z.getTime();let[J,Y]=Z;return J*1000+Y/1e6}class fx{_traceId;_spanId;_parentSpanId;_name;_startTime;_endTime;_attributes={};_status={code:f0.SpanStatusCode.UNSET};_kind;_ended=!1;constructor(Z,$,J,Y){if(this._name=Z,this._traceId=J,this._spanId=Ex(8),this._parentSpanId=Y,this._kind=$.kind||f0.SpanKind.INTERNAL,this._startTime=kx($.startTime,Date.now()),$.attributes)for(let[X,z]of Object.entries($.attributes))this._attributes[X]=String(z);try{TQ?.spanStarted({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}notifySpanUpdated(){try{TQ?.spanUpdated({traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,attributes:{...this._attributes},flags:1,kind:this._kind,links:[]})}catch{}}spanContext(){return{traceId:this._traceId,spanId:this._spanId,traceFlags:1,isRemote:!1}}setAttribute(Z,$){if(!this._ended)this._attributes[Z]=String($),this.notifySpanUpdated();return this}setAttributes(Z){if(!this._ended){for(let[$,J]of Object.entries(Z))this._attributes[$]=String(J);this.notifySpanUpdated()}return this}addEvent(){return this}addLink(){return this}addLinks(){return this}setStatus(Z){if(!this._ended)this._status=Z;return this}updateName(Z){if(!this._ended)this._name=Z,this.notifySpanUpdated();return this}end(Z){if(this._ended)return;this._ended=!0,this._endTime=kx(Z,Date.now());let $=this._endTime,J={traceId:this._traceId,spanId:this._spanId,parentSpanId:this._parentSpanId,name:this._name,startTime:this._startTime,endTime:$,attributes:{...this._attributes},error:this._status.code===f0.SpanStatusCode.ERROR,flags:1,kind:this._kind,statusCode:this._status.code,statusMessage:this._status.message,links:[]};try{TQ?.spanEnded(J)}catch{}if(Ox)try{Ox(J)}catch(Y){console.error("[browser-bridge] Error in collector callback",Y)}}isRecording(){return!this._ended}recordException(){return this}}class Vx{startSpan(Z,$,J){let Y=J||f0.context.active(),X=f0.trace.getSpanContext(Y),z,K,Q;if(X?.traceId)z=X.traceId,K=X.spanId,Q=(X.traceFlags&1)===1||TQ!==void 0;else Q=TQ!==void 0||Zl?.(Z)||Math.random()<eu,z=Ex(16);if(!Q)return f0.trace.wrapSpanContext({traceId:z,spanId:"",traceFlags:0});return new fx(Z,$||{},z,K)}startActiveSpan(Z,...$){let J={},Y,X;if($.length===1)X=$[0];else if($.length===2)J=$[0],X=$[1];else J=$[0],Y=$[1],X=$[2];let z=this.startSpan(Z,J,Y),K=f0.trace.setSpan(Y||f0.context.active(),z);return f0.context.with(K,()=>{try{let Q=X(z);if(Q&&typeof Q.then==="function")return Q.then((W)=>{return z.end(),W},(W)=>{throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:W?.message}),z.end(),W});return z.end(),Q}catch(Q){throw z.setStatus({code:f0.SpanStatusCode.ERROR,message:Q?.message}),z.end(),Q}})}}class Jl{tracer=new Vx;getTracer(){return this.tracer}}var f0,Ox,TQ,eu=0.01,Zl,$l,Rq,vQ;var Px=U(()=>{f0=zF(Ix(),1),$l=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0")),Rq=new Uint8Array(1024),vQ=Rq.length});function l0(Z,$){return{symbol:Z,defaultValue:$}}function yq(Z){let $=new AbortController;if(Z.aborted)return $.abort(Z.reason),{signal:$.signal,abort(Y){$.abort(Y)},unlink(){}};let J=()=>$.abort(Z.reason);return Z.addEventListener("abort",J,{once:!0}),{signal:$.signal,abort(Y){Z.removeEventListener("abort",J),$.abort(Y)},unlink(){Z.removeEventListener("abort",J)}}}class l8{values;signal;parent;name;constructor(Z,$,J,Y){if(this.parent=Z,this.values=J||new Map,this.name=Y,$)this.signal=$;else if(Z)this.signal=Z.signal;else this.signal=new AbortController().signal}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(Z){if(this.values.has(Z.symbol))return this.values.get(Z.symbol);if(this.parent)return this.parent.get(Z);return Z.defaultValue}with(Z,$){let J=new Map(this.values);return J.set(Z.symbol,$),new l8(this,void 0,J)}withCancel(){let Z=yq(this.signal);return[new l8(this,Z.signal),(J)=>Z.abort(J)]}withUnlinkableCancel(){let Z=yq(this.signal);return[new l8(this,Z.signal),(J)=>Z.abort(J),()=>Z.unlink()]}withTimeout(Z){let $=yq(this.signal),J=new l8(this,$.signal),Y=setTimeout(()=>{$.abort(Error("context deadline exceeded"))},Z);return $.signal.addEventListener("abort",()=>{clearTimeout(Y)},{once:!0}),J}withDeadline(Z){let $=Z.getTime()-Date.now();if($<=0){let J=yq(this.signal);return J.abort(Error("context deadline exceeded")),new l8(this,J.signal)}return this.withTimeout($)}withTimeoutAndCancel(Z){let[$,J]=this.withCancel();return[$.withTimeout(Z),J]}withName(Z){return new l8(this,void 0,void 0,Z)}withDetached(){return new l8(this,new AbortController().signal)}getParent(){return this.parent}getPath(){let Z=[],$=this;while($){if($.name)Z.unshift($.name);$=$.getParent()}return Z}}function p8(){return new l8}function Ql(Z){if(typeof Z==="boolean")return Z;if(typeof process>"u")return!1;let $=process.env??{};if("NO_COLOR"in $)return!1;if($.TERM==="dumb")return!1;let J=$.FORCE_COLOR;if(J==="1"||J==="true")return!0;if(J==="0")return!1;return process.stdout?.isTTY??!1}function ql(Z){let J=(A)=>(x)=>Z?`\x1B[${A.join(";")}m${x}\x1B[0m`:x,Y=J([2]),X=J([90]),z=J([31]),K=J([32]),Q=J([33]),W=J([34]),L=J([35]),D=J([36]),f=J([1]),V=J([1,31]);return{dim:Y,gray:X,red:z,green:K,yellow:Q,blue:W,magenta:L,cyan:D,bold:f,level:(A,x)=>{switch(A){case"debug":return L(x);case"info":return W(x);case"warn":return Q(x);case"error":return V(x);default:return A}}}}function Wl(Z){return{indent:" ".repeat(Z.indent??Yl),maxDepth:Z.maxDepth??Xl,maxEntries:Z.maxEntries??zl,maxArrayLength:Z.maxArrayLength??Kl,maxStringLength:Z.maxStringLength??Hl,includeTimestamp:Z.includeTimestamp??!0,includeContextPath:Z.includeContextPath??!0,inlineSerializer:Z.inlineSerializer}}function Nl(Z){return Z.toISOString().slice(11,23)}function Ax(Z){return typeof Z==="object"&&Z!==null&&"getPath"in Z&&typeof Z.getPath==="function"}function EB(Z){if(typeof Z!=="object"||Z===null)return!1;return"message"in Z||"stack"in Z||"name"in Z||"cause"in Z}function Bl(Z){return typeof Z==="object"&&Z!==null&&"kind"in Z&&Z.kind==="summary"&&"summary"in Z&&typeof Z.summary==="string"}function Fl(Z,$){if(Z.length<=$)return Z;return`${Z.slice(0,$)}...`}function Gl(Z,$,J,Y){if(!$.inlineSerializer)return Z;try{let X=$.inlineSerializer(Z,{path:J,depth:Y});return X===void 0?Z:X}catch{return Z}}function V6(Z,$,J,Y,X,z){let K=Gl(Z,$,z,Y);if(Bl(K))return J.dim(`<${K.summary}>`);if(Z=K,Z===null)return J.gray("null");if(Z===void 0)return J.gray("undefined");if(typeof Z==="string"){let Q=Fl(Z,$.maxStringLength);return J.green(JSON.stringify(Q))}if(typeof Z==="number")return J.yellow(String(Z));if(typeof Z==="boolean")return J.magenta(String(Z));if(typeof Z==="bigint")return J.yellow(`${Z}n`);if(typeof Z==="symbol")return J.cyan(Z.toString());if(typeof Z==="function"){let Q=Z.name?` ${Z.name}`:"";return J.dim(`[Function${Q}]`)}if(Z instanceof Date){let Q=Number.isNaN(Z.getTime())?"Invalid Date":Z.toISOString();return J.green(Q)}if(Z instanceof RegExp)return J.cyan(Z.toString());if(EB(Z))return Mx(Z,$,J,Y,X,z);if(Array.isArray(Z))return xx(Z,$,J,Y,X,z);if(typeof ArrayBuffer<"u"&&Z instanceof ArrayBuffer)return J.dim(`ArrayBuffer(${Z.byteLength})`);if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView==="function"&&ArrayBuffer.isView(Z)){let Q=Z,W=Q.constructor?.name??"TypedArray";return J.dim(`${W}(${Q.byteLength})`)}if(Z instanceof Map)return Ll(Z,$,J,Y,X,z);if(Z instanceof Set)return xx(Array.from(Z.values()),$,J,Y,X,z);return typeof Z==="object"?wl(Z,$,J,Y,X,z):J.dim(`[${typeof Z}]`)}function Mx(Z,$,J,Y,X,z){if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=typeof Z.name==="string"?Z.name:"Error",Q=typeof Z.message==="string"?Z.message:"",W=Q?`${K}: ${Q}`:K,L=J.red(W);if("cause"in Z&&Z.cause!==void 0){let D=V6(Z.cause,$,J,Y+1,X,z.concat("cause"));L=`${L} ${J.dim("cause=")}${D}`}return X.delete(Z),L}function xx(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`[Array(${Z.length})]`);if(X.has(Z))return J.dim("[Circular]");if(X.add(Z),Z.length===0){let D=J.dim("[]");return X.delete(Z),D}let K=Math.min(Z.length,$.maxArrayLength),Q=Z.slice(0,K).map((D,f)=>V6(D,$,J,Y+1,X,z.concat(f)));if(Z.length>K)Q.push(J.dim(`... ${Z.length-K} more`));let W=J.dim(", "),L=`${J.dim("[")}${Q.join(W)}${J.dim("]")}`;return X.delete(Z),L}function Ll(Z,$,J,Y,X,z){if(Y>=$.maxDepth)return J.dim(`Map(${Z.size})`);if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Array.from(Z.entries()),Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([f,V])=>{let A=V6(f,$,J,Y+1,X,z.concat("<key>")),x=V6(V,$,J,Y+1,X,z.concat(String(f)));return`${A} ${J.dim("=>")} ${x}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let L=J.dim(", "),D=`${J.dim("Map{")}${W.join(L)}${J.dim("}")}`;return X.delete(Z),D}function wl(Z,$,J,Y,X,z){if(Y>=$.maxDepth){let f=Z?.constructor?.name??"Object";return J.dim(`[${f}]`)}if(X.has(Z))return J.dim("[Circular]");X.add(Z);let K=Object.entries(Z);if(K.length===0){let f=J.dim("{}");return X.delete(Z),f}let Q=Math.min(K.length,$.maxEntries),W=K.slice(0,Q).map(([f,V])=>{let A=V6(V,$,J,Y+1,X,z.concat(f));return`${J.cyan(f)}: ${A}`});if(K.length>Q)W.push(J.dim(`... ${K.length-Q} more`));let L=J.dim(", "),D=`${J.dim("{")}${W.join(L)}${J.dim("}")}`;return X.delete(Z),D}function Dl(Z={}){let $=Wl(Z),J=ql(Ql(Z.useColors)),Y=Z.console??console;return{log:(X,z)=>{let K=[];if($.includeTimestamp)K.push(J.dim(Nl(z.timestamp)));let Q=z.level.toUpperCase().padEnd(5);K.push(J.level(z.level,Q));let W=z.level==="error"?J.bold(z.message):z.message;if(K.push(W),$.includeContextPath&&Ax(z.context)){let V=z.context.getPath();if(V.length>0)K.push(J.dim(`ctx=${V.join("/")}`))}let L=new WeakSet;if(!Ax(z.context)&&z.context&&Object.keys(z.context).length>0){let V=V6(z.context,$,J,0,L,["context"]);K.push(`${J.dim("context=")}${V}`)}if(z.metadata&&Object.keys(z.metadata).length>0){let V=V6(z.metadata,$,J,0,L,["metadata"]);K.push(`${J.dim("meta=")}${V}`)}let D=[K.join(" ")];if(z.error!==void 0){let V=EB(z.error)?Mx(z.error,$,J,0,L,["error"]):V6(z.error,$,J,0,L,["error"]);if(D[0]=`${D[0]} ${J.dim("error=")}${V}`,EB(z.error)&&typeof z.error.stack==="string"){let A=z.error.stack.split(`
|
|
5
|
+
`).slice(1);for(let x of A){let y=x.trim();if(y)D.push(`${$.indent}${J.dim(y)}`)}}}let f=D.join(`
|
|
6
|
+
`);switch(z.level){case"debug":case"info":Y.log(f);break;case"warn":Y.warn(f);break;case"error":Y.error(f);break;default:{let V=z.level;throw Error(`Unhandled log level: ${String(V)}`)}}}}}function kl(Z){return Z.get(Ol)}function p0(Z){function $(J,Y){let X=new Date;kl(J).log(J,{...Y,timestamp:X,logger:Z})}return{debug:(J,Y,X)=>{$(J,{level:"debug",message:Y,context:J,metadata:X})},info:(J,Y,X)=>{$(J,{level:"info",message:Y,context:J,metadata:X})},warn:(J,Y,X)=>{$(J,{level:"warn",message:Y,context:J,metadata:X})},error:(J,Y,X,z)=>{$(J,{level:"error",message:Y,context:J,error:X,metadata:z})}}}var Yl=2,Xl=6,zl=50,Kl=40,Hl=200,Ul,Il,Ol;var Cx=U(()=>{i0();Ul=Dl(),Il={log:(Z,$)=>Ul.log(Z,$)},Ol=l0(Symbol("loggerBackend"),Il)});var A90,x90,M90,C90,h90;var hx=U(()=>{A90=l0(Symbol("otel.span"),void 0),x90=l0(Symbol("otel.root_span"),void 0),M90=l0(Symbol("otel.root_start_ms"),void 0),C90=l0(Symbol("otel.suppress_child_spans"),!1),h90=l0(Symbol("otel.inheritable_span_attributes"),{})});var i0=U(()=>{Px();Cx();hx()});function mq(Z){return Z.get(fl)}function h8(Z,$){let J={name:Z,type:"counter",description:$?.description,labelNames:$?.labelNames};return{increment:(Y,X,z)=>{mq(Y).increment(Y,J,X??1,z)},record:(Y,X,z)=>{mq(Y).record(Y,J,X,z)}}}function g(Z,$){let J={name:Z,type:"histogram",description:$?.description,labelNames:$?.labelNames};return{histogram:(Y,X,z)=>{mq(Y).histogram(Y,J,X,z)},record:(Y,X,z)=>{mq(Y).record(Y,J,X,z)}}}var El,fl;var P6=U(()=>{i0();El={record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}},fl=l0(Symbol("metricsBackend"),El)});class fB{serialize(Z){return Pl.encode(Z)}deserialize(Z){return Vl.decode(Z)}getBlobType(){return{kind:"string"}}}class U8{proto;constructor(Z){this.proto=Z}serialize(Z){return Z.toBinary()}deserialize(Z){return this.proto.fromBinary(Z)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function W0(Z){if(typeof Buffer<"u")return Buffer.from(Z).toString("hex");let $="";for(let J=0;J<Z.length;J++)$+=Al[Z[J]];return $}function Cl(Z){if(!xl.test(Z))return;try{let $=new Uint8Array(Z.length/2);if(Buffer.from($.buffer,$.byteOffset,$.byteLength).write(Z,"hex")===$.length)return $}catch{}return}function n0(Z){let $=Z.trim().toLowerCase();if($.length%2!==0)throw Error("Invalid hex string length");if($.length>=Ml&&typeof Buffer<"u"){let Y=Cl($);if(Y!==void 0)return Y}let J=new Uint8Array($.length/2);for(let Y=0;Y<$.length;Y+=2)J[Y/2]=parseInt($.slice(Y,Y+2),16);return J}var Vl,Pl,jq,Al,xl,Ml=64;var sH=U(()=>{Vl=new TextDecoder,Pl=new TextEncoder;jq=new fB;Al=Array.from({length:256},(Z,$)=>$.toString(16).padStart(2,"0"));xl=/^[0-9a-f]*$/});function _q(Z){let $=Z.buffer;if($ instanceof ArrayBuffer)return new Uint8Array($,Z.byteOffset,Z.byteLength);return new Uint8Array(Z)}async function RQ(Z){let $=await crypto.subtle.digest("SHA-256",_q(Z));return new Uint8Array($)}var i90,n90;var tH=U(()=>{P6();sH();i90=g("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),n90=g("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"})});function Tx(Z,$){hl.warn(Z,"Subagent state ref blob not found; restoring without its transcript",$),vl.increment(Z,1,{reader:$.reader,fallback:$.fallback})}async function VB(Z,$,J){let Y={...$.subagentStates??{}},X=Object.entries($.subagentStateRefs??{});if(X.length===0)return Y;let z=await xN(X,async([Q,W])=>{let L=await J.getBlob(Z,W);if(L===void 0)return{kind:"missing",subagentId:Q,blobIdHex:W0(W)};try{return{kind:"loaded",subagentId:Q,state:I6.fromBinary(L)}}catch(D){return{kind:"failed",error:D}}},{max:vx}),K=z.find((Q)=>Q.kind==="failed");if(K!==void 0&&K.kind==="failed")throw K.error;for(let Q of z)if(Q.kind==="loaded")Y[Q.subagentId]=Q.state;else if(Q.kind==="missing"){let W=Y[Q.subagentId]!==void 0;Tx(Z,{reader:"resolve",fallback:W?"inline":"dropped",subagentId:Q.subagentId,blobIdHex:Q.blobIdHex})}return Y}var vx=8,hl,vl;var PB=U(()=>{i0();P6();iQ();pH();sH();hl=p0("@anysphere/agent-kv:subagent-states"),vl=h8("agent_kv.subagent_state_ref.missing_blob",{description:"Subagent state refs whose blob was missing, counted per read until a checkpoint rewrites the ref. fallback=inline kept the entry saved beside the ref (usually a transcript-free summary), dropped omitted the subagent, superseded kept a newer in-memory state.",labelNames:["reader","fallback"]})});import*as d from"zod/v4";function Rl(){let Z=new Uint8Array(Rx);return crypto.getRandomValues(Z),W0(Z)}function yx(Z){return typeof Z==="string"&&Z.length===Rx*2&&Tl.test(Z)}function yl(){if(AB===null)AB=d.object({agentId:d.string(),latestRootBlobId:d.custom((Z)=>Z instanceof Uint8Array,{error:"Expected Uint8Array"}),name:d.string(),createdAt:d.number(),mode:d.enum(xB),isRunEverything:d.boolean(),approvalMode:d.enum(MB).optional(),lastUsedModel:d.string().optional(),lastDebugServerPort:d.number().int().positive().optional(),currentPlanUri:d.string().optional(),subagentInfo:d.object({parentAgentId:d.string().min(1),rootParentAgentId:d.string().min(1),toolCallId:d.string().min(1),typeName:d.string().min(1)}).optional(),blobEncryptionKey:d.string().optional()});return AB}function jl(Z){return ml.has(Z)}function Sl(Z){return _l.has(Z)}function Sq(Z,$){let J=Reflect.get(Z,$);return typeof J==="string"&&J.length>0?J:void 0}function gl(Z){if(!Z||typeof Z!=="object")return;let $=Sq(Z,"parentAgentId"),J=Sq(Z,"rootParentAgentId"),Y=Sq(Z,"toolCallId"),X=Sq(Z,"typeName");if($===void 0||J===void 0||Y===void 0||X===void 0)return;return{parentAgentId:$,rootParentAgentId:J,toolCallId:Y,typeName:X}}class gq{serialize(Z){let $=W0(Z.latestRootBlobId);return jq.serialize(JSON.stringify({...Z,latestRootBlobId:$}))}deserialize(Z){let $=JSON.parse(jq.deserialize(Z)),J=yQ($.agentId),Y=typeof $.latestRootBlobId==="string"?n0($.latestRootBlobId):J.latestRootBlobId,X=$.isRunEverything===!0,z=$.mode;if(z==="auto-run")z="default",X=!0;let K=typeof z==="string"&&jl(z)?z:"default",Q=$.approvalMode,W=typeof Q==="string"&&Sl(Q)?Q:void 0,L=gl($.subagentInfo),D=yx($.blobEncryptionKey)?$.blobEncryptionKey:J.blobEncryptionKey;return yl().parse({...J,...$,mode:K,isRunEverything:X,approvalMode:W,latestRootBlobId:Y,subagentInfo:L,blobEncryptionKey:D})}getBlobType(){return{kind:"json"}}}async function jx(Z,$,J){let Y=new D6,X=[],z=$.turns;for(let Q of z){let W=await J.getBlob(Z,Q);if(!W)continue;let L=mx.deserialize(W),D;switch(L.turn.case){case"agentConversationTurn":{let f=L.turn.value,V=await J.getBlob(Z,f.userMessage);if(!V)continue;let A=cl.deserialize(V),x=[];for(let V0 of f.steps){let z0=await J.getBlob(Z,V0);if(z0){let jM=dl.deserialize(z0);x.push(jM)}}let y=new G6({userMessage:A,steps:x});D=new g8({turn:{case:"agentConversationTurn",value:y}});break}case"shellConversationTurn":{let f=L.turn.value,V=await J.getBlob(Z,f.shellCommand);if(!V)continue;let A=ll.deserialize(V),x=await J.getBlob(Z,f.shellOutput);if(!x)continue;let y=pl.deserialize(x),V0=new L6({shellCommand:A,shellOutput:y});D=new g8({turn:{case:"shellConversationTurn",value:V0}});break}}if(!D)continue;X.push(D)}Y.turns=X;let K=[];for(let Q of $.todos){let W=await J.getBlob(Z,Q);if(W){let L=bl.deserialize(W);K.push(L)}}if(Y.todos=K,$.summary){let Q=await J.getBlob(Z,$.summary);if(Q){let W=ul.deserialize(Q);Y.summary=W}}return Y}class mQ{blobStore;metadataStore;conversationStateStructure;serde=new U8(j0);fixedRootBlobId;constructor(Z,$,J={}){this.blobStore=Z;this.metadataStore=$;this.conversationStateStructure=new j0,this.fixedRootBlobId=J.fixedRootBlobId}subscribeToMetadata(Z,$){return this.metadataStore.subscribe(Z,()=>{$(this.metadataStore.get(Z))})}setMetadata(Z,$){this.metadataStore.set(Z,$)}getMetadata(Z){return this.metadataStore.get(Z)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}async getLastRequestIdFromConversation(Z){let $=this.conversationStateStructure.turns;if($.length===0)return null;for(let J=$.length-1;J>=0;J--){let Y=$[J],X=await this.blobStore.getBlob(Z,Y);if(!X)continue;let z=mx.deserialize(X);if(z.turn.case==="agentConversationTurn")return z.turn.value.requestId??null}return null}async getFullConversation(Z){return this.deserializeConversationStateStructure(Z,this.conversationStateStructure)}async deserializeConversationStateStructure(Z,$){return jx(Z,$,this.blobStore)}async getFullConversationWithSubagents(Z){let $=this.conversationStateStructure,J=await this.deserializeConversationStateStructure(Z,$),Y={},X=await VB(Z,$,this.blobStore);for(let[z,K]of Object.entries(X))if(K.conversationState){let Q=await this.deserializeConversationStateStructure(Z,K.conversationState);Y[z]={conversationState:Q,createdTimestampMs:K.createdTimestampMs,lastUsedTimestampMs:K.lastUsedTimestampMs,subagentType:K.subagentType}}return{conversationState:J,subagentStates:Y}}getLatestCheckpoint(){return this.getConversationStateStructure()}async handleCheckpoint(Z,$){let J=this.serde.serialize($),Y=this.fixedRootBlobId??await RQ(J);await this.blobStore.setBlob(Z,Y,J),this.setMetadata("latestRootBlobId",Y),this.conversationStateStructure=$}async resetFromDb(Z){await this.tryResetFromDb(Z)}async tryResetFromDb(Z){try{let $=this.getMetadata("latestRootBlobId");if(!$||$.length===0)return this.conversationStateStructure=new j0,!1;let J=await this.blobStore.getBlob(Z,$);if(!J)return this.conversationStateStructure=new j0,!1;let Y=this.serde.deserialize(J);return this.conversationStateStructure=Y,!0}catch($){return this.conversationStateStructure=new j0,!1}}async dispose(){if(this.blobStore instanceof jH)await this.blobStore.dispose()}}var xB,MB,Rx=32,Tl,AB=null,yQ=(Z)=>({agentId:Z??crypto.randomUUID(),latestRootBlobId:new Uint8Array,name:"New Agent",mode:"default",isRunEverything:!1,approvalMode:void 0,createdAt:Date.now(),lastUsedModel:void 0,lastDebugServerPort:void 0,currentPlanUri:void 0,subagentInfo:void 0,blobEncryptionKey:Rl()}),ml,_l,bl,cl,dl,mx,ul,ll,pl;var _x=U(()=>{iQ();cQ();pH();tH();sH();PB();xB=["default","plan","debug","search"],MB=["allowlist","unrestricted","auto-review"],Tl=/^[0-9a-f]+$/;ml=new Set(xB);_l=new Set(MB);bl=new U8(B0),cl=new U8(N6),dl=new U8(S8),mx=new U8(W9),ul=new U8(w6),ll=new U8(B6),pl=new U8(F6)});var il;var CB=U(()=>{i0();il=l0(Symbol("blob-read-kind"),void 0)});var hB=()=>{};var G70,L70,w70,D70,U70,I70,O70,k70,E70,f70;var Sx=U(()=>{i0();P6();tH();G70=p0("@anysphere/agent-kv"),L70=g("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),w70=g("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),D70=g("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),U70=g("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),I70=h8("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),O70=h8("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"}),k70=h8("agent_kv.nearby.decrypt_fallback_success",{description:"Number of nearby blob reads where the primary encryption key failed but the fallback key decrypted the blob"}),E70=g("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),f70=g("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"})});import{Message as x70,proto3 as M70}from"@bufbuild/protobuf";var gx=()=>{};var _70,S70,g70;var bx=U(()=>{i0();P6();gx();tH();_70=p0("ControlledKvManager"),S70=g("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),g70=g("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"})});var l70,p70,i70,n70;var yB=U(()=>{i0();P6();l70=p0("@anysphere/agent-kv"),p70=g("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),i70=g("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),n70=g("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})});var mB=U(()=>{yB()});var z50,K50,H50,Q50;var cx=U(()=>{i0();P6();hB();CB();tH();sH();mB();z50=p0("@anysphere/agent-kv:reference"),K50=h8("agent_kv.lazy_reference.cache_miss",{description:"Number of large or slow LazyReference cache misses that require loading and deserializing a blob",labelNames:["blob_type"]}),H50=g("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),Q50=g("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]})});var B50,F50,G50,L50,w50,D50;var dx=U(()=>{i0();P6();B50=p0("RetryBlobStore"),F50=h8("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),G50=g("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),L50=g("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),w50=g("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),D50=g("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})});var jQ=U(()=>{_x();CB();hB();tH();Sx();bx();cx();dx();sH();PB();mB();yB()});class sx{subscribersByRun=new Map;async publishRunEventAppended(Z){let $=this.subscribersByRun.get(Z.runId);if(!$)return;for(let J of $){if(J.closed)continue;let Y=J.waiters.shift();if(Y)Y({value:Z,done:!1});else J.queue.push(Z)}}subscribeRunEvents(Z){let $={closed:!1,queue:[],waiters:[]},J=this.subscribersByRun.get(Z.runId)??new Set;J.add($),this.subscribersByRun.set(Z.runId,J);let Y=Z.signal,X=()=>{if(Y?.removeEventListener("abort",X),$.closed)return;if($.closed=!0,J.delete($),J.size===0)this.subscribersByRun.delete(Z.runId);while($.waiters.length>0)$.waiters.shift()?.({value:void 0,done:!0})};if(Y?.aborted)X();else Y?.addEventListener("abort",X,{once:!0});return{[Symbol.asyncIterator]:()=>({next:async()=>{let z=$.queue.shift();if(z)return{value:z,done:!1};if($.closed||Y?.aborted)return X(),{value:void 0,done:!0};return new Promise((K)=>{$.waiters.push(K)})},return:async()=>{return X(),{value:void 0,done:!0}}})}}}function tx(){return new sx}import{chmodSync as Ip,existsSync as Op,mkdirSync as kp}from"fs";function $Q(Z){if(!Op(Z))kp(Z,{recursive:!0,mode:ox});try{Ip(Z,ox)}catch{}}var ox=448;var nB=()=>{};import{AsyncLocalStorage as Ep}from"async_hooks";function ex(){return Pp.getStore()??Vp}var fp,Vp,Pp,ZM;var $M=U(()=>{fp={warn:console.warn.bind(console),error:console.error.bind(console)},Vp=fp,Pp=new Ep;ZM={warn(...Z){ex().warn(...Z)},error(...Z){ex().error(...Z)}}});var aB;var JM=U(()=>{aB=class aB extends Error{constructor(Z,$){super(Z,$);this.name="NoSqliteDriverError"}}});var XM={};x6(XM,{openBunSqliteDriver:()=>xp});import{Database as Ap}from"bun:sqlite";class YM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.run(Z)}run(Z,$=[]){let{changes:J}=this.prepare(Z).run(...$);return{changes:Number(J)}}get(Z,$=[]){return this.prepare(Z).get(...$)??void 0}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function xp(Z){return new YM(new Ap(Z,{create:!0}))}var zM=()=>{};class rB{constructor(){throw Error("node:sqlite is not available in this runtime (the @cursor/sdk/bundled entry targets Bun, which uses bun:sqlite)")}}var HM={};x6(HM,{openNodeSqliteDriver:()=>Mp});class KM{db;statements=new Map;constructor(Z){this.db=Z}exec(Z){this.db.exec(Z)}run(Z,$=[]){let J=this.prepare(Z).run(...$);return{changes:Number(J.changes)}}get(Z,$=[]){return this.prepare(Z).get(...$)}all(Z,$=[]){return this.prepare(Z).all(...$)}close(){this.statements.clear(),this.db.close()}prepare(Z){let $=this.statements.get(Z);if(!$)$=this.db.prepare(Z),this.statements.set(Z,$);return $}}function Mp(Z){return new KM(new rB(Z))}var QM=()=>{};function Cp(Z){if((typeof Z==="object"&&Z!==null&&"code"in Z&&typeof Z.code==="string"?Z.code:void 0)==="ERR_UNKNOWN_BUILTIN_MODULE")return!0;return(Z instanceof Error?Z.message.toLowerCase():String(Z).toLowerCase()).includes("node:sqlite")}function hp(){return typeof globalThis.Bun<"u"}async function JQ(Z){if(hp())return(await Promise.resolve().then(() => (zM(),XM))).openBunSqliteDriver(Z);let $;try{$=await Promise.resolve().then(() => (QM(),HM))}catch(J){if(Cp(J))throw new aB("node:sqlite is not available in this runtime. The default local agent store requires Node >= 22.13 (or another runtime that implements node:sqlite). Configure a JsonlLocalAgentStore instead.",{cause:J});throw J}return $.openNodeSqliteDriver(Z)}var pq=U(()=>{JM()});var WM={};x6(WM,{subscribeLocalStoreDegradation:()=>jp,isLocalStoreOpenFailure:()=>nq,SQLiteBlobStoreWithMetadata:()=>oB,LOCAL_STORE_OPEN_FAILURE_WARNING:()=>tB});import{existsSync as vp,mkdirSync as Tp,rmSync as Rp}from"fs";import{basename as yp,dirname as sB}from"path";function nq(Z){let $=new Set,J=Z;while(J!==void 0&&J!==null&&!$.has(J)){if($.add(J),typeof J!=="object")return typeof J==="string"&&J.toLowerCase().includes(qM);let Y=J;if(Y.code==="SQLITE_CANTOPEN")return!0;if(Y.code==="ERR_SQLITE_ERROR"&&typeof Y.errcode==="number"&&(Y.errcode&255)===mp)return!0;if(typeof Y.message==="string"&&Y.message.toLowerCase().includes(qM))return!0;J=Y.cause}return!1}function jp(Z,$){let J=Z;if(typeof J.onLocalStoreDegraded!=="function")return()=>{};return J.onLocalStoreDegraded($)}var iq,tB="Local agent storage could not open its database, so this run is continuing in memory. Its checkpoint may be unavailable after the process exits.",mp=14,qM="unable to open database file",oB;var NM=U(()=>{jQ();pH();$M();pq();iq=new gq;oB=class oB extends jH{dbPath;driverPromise;driver;openDriver;openDisabled=!1;memoryBlobs=new Map;deletedBlobIds=new Set;degradationWarning;degradationListeners=new Set;metadata;listeners={agentId:new Set,latestRootBlobId:new Set,name:new Set,createdAt:new Set,mode:new Set,isRunEverything:new Set,approvalMode:new Set,lastUsedModel:new Set,lastDebugServerPort:new Set,currentPlanUri:new Set,subagentInfo:new Set};persistScheduled=!1;isDisposing=!1;disposePromise;static async initAndLoad(Z){let $=new oB(Z);return await $.getDriver(),$}constructor(Z,$){super();this.dbPath=Z;this.openDriver=$?.openDriver??JQ;let J=yp(sB(this.dbPath));this.metadata=yQ(J)}onLocalStoreDegraded(Z){if(this.degradationListeners.add(Z),this.degradationWarning!==void 0)this.notifyDegradationListener(Z,this.degradationWarning);return()=>{this.degradationListeners.delete(Z)}}async getDriver(){if(this.openDisabled)return;if(this.driver)return this.driver;if(!this.driverPromise){let $=(async()=>{let J=sB(this.dbPath);if(!vp(J))Tp(J,{recursive:!0});let Y=await this.openDriver(this.dbPath);try{this.initializeDriver(Y)}catch(X){throw Y.close(),X}return this.driver=Y,Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});this.driverPromise=$}try{return await this.driverPromise}catch(Z){if(nq(Z)){this.openDisabled=!0,this.degrade(Z);return}throw Z}}degrade(Z){if(this.degradationWarning!==void 0)return;this.degradationWarning=tB,ZM.warn(tB,Z instanceof Error?Z.message:String(Z));for(let $ of this.degradationListeners)this.notifyDegradationListener($,this.degradationWarning)}notifyDegradationListener(Z,$){try{Z($)}catch{}}rememberBlob(Z,$){this.memoryBlobs.set(Z,Uint8Array.from($))}readRememberedBlob(Z){let $=this.memoryBlobs.get(Z);return $===void 0?void 0:Uint8Array.from($)}async withDriver(Z,$){try{let J=await this.getDriver();if(!J)return Z();return $(J)}catch(J){if(!nq(J))throw J;return this.degrade(J),Z()}}initializeDriver(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
7
7
|
PRAGMA synchronous = NORMAL;
|
|
8
8
|
PRAGMA busy_timeout = 5000;
|
|
9
9
|
PRAGMA user_version = 1;
|
|
10
10
|
CREATE TABLE IF NOT EXISTS blobs (id TEXT PRIMARY KEY, data BLOB);
|
|
11
|
-
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=n0($.value);this.metadata=
|
|
11
|
+
CREATE TABLE IF NOT EXISTS meta (key TEXT PRIMARY KEY, value TEXT);`);let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]);if($?.value){let Y=n0($.value);this.metadata=iq.deserialize(Y);return}let J=iq.serialize(this.metadata);Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",W0(J)])}async getBlob(Z,$){if(this.isDisposing)return;let J=W0($);if(this.deletedBlobIds.has(J))return;let Y=this.readRememberedBlob(J);if(Y!==void 0)return Y;return this.withDriver(()=>{return},(X)=>{let z=X.get("SELECT data FROM blobs WHERE id = ?",[J]);return z?.data==null?void 0:new Uint8Array(z.data)})}async listBlobIds(){if(this.isDisposing)return[];let Z=new Set(this.memoryBlobs.keys()),$=await this.withDriver(()=>[],(J)=>J.all("SELECT id FROM blobs ORDER BY id ASC").map((Y)=>Y.id));for(let J of $)Z.add(J);return[...Z].filter((J)=>!this.deletedBlobIds.has(J)).sort()}async deleteBlob(Z){if(this.isDisposing)return;this.memoryBlobs.delete(Z),await this.withDriver(()=>{this.deletedBlobIds.add(Z)},($)=>{$.run("DELETE FROM blobs WHERE id = ?",[Z]),this.deletedBlobIds.delete(Z)})}async setBlob(Z,$,J){if(this.isDisposing)return;let Y=W0($);await this.withDriver(()=>{this.deletedBlobIds.delete(Y),this.rememberBlob(Y,J)},(X)=>{X.run("INSERT OR REPLACE INTO blobs (id, data) VALUES (?, ?)",[Y,Buffer.from(J)]),this.memoryBlobs.delete(Y),this.deletedBlobIds.delete(Y)})}async setBlobLocallyOnly(Z,$,J){return Promise.resolve()}async flush(Z){return Promise.resolve()}get(Z){return this.metadata[Z]}valuesEqual(Z,$,J){if(Z==="latestRootBlobId"){let Y=$,X=J;if(Y===X)return!0;if(!Y||!X)return!1;if(Y.length!==X.length)return!1;for(let z=0;z<Y.length;z++)if(Y[z]!==X[z])return!1;return!0}return $===J}schedulePersist(){if(this.isDisposing||!this.driver)return;if(this.persistScheduled)return;this.persistScheduled=!0,queueMicrotask(()=>{if(this.persistScheduled=!1,this.isDisposing||!this.driver)return;this.persistMetadata()})}set(Z,$){let J=this.metadata[Z];if(this.valuesEqual(Z,J,$))return;if(this.metadata={...this.metadata,[Z]:$},this.driver)this.schedulePersist();let Y=this.listeners[Z];if(Y&&Y.size>0)queueMicrotask(()=>{Y.forEach((X)=>{X()})})}persistMetadata(){let Z=this.driver;if(!Z)return;let $=iq.serialize(this.metadata);try{Z.run("INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",["0",W0($)])}catch(J){if(!nq(J))throw J;this.degrade(J)}}subscribe(Z,$){let J=this.listeners[Z];if(J)return J.add($),()=>J.delete($);return()=>{}}async dispose(){if(this.disposePromise)return this.disposePromise;if(!this.driverPromise)return;return this.disposePromise=this.cleanup().then(()=>{this.driverPromise=void 0,this.driver=void 0}),this.disposePromise}async cleanup(){if(!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(!Z){this.driverPromise=void 0,this.driver=void 0;return}this.persistScheduled=!1,this.persistMetadata(),this.isDisposing=!0;let $=Z.get("SELECT value FROM meta WHERE key = ?",["0"]),J=0;if($?.value){let z=n0($.value);J=iq.deserialize(z).latestRootBlobId.length}let Y=Z.get("SELECT COUNT(*) AS count FROM blobs"),X=Number(Y?.count??0);if(Z.close(),J===0&&X===0){this.driverPromise=void 0,this.driver=void 0;let z=sB(this.dbPath);try{Rp(z,{recursive:!0,force:!0})}catch{}}}}});var GM={};x6(GM,{LocalAgentCheckpointStore:()=>FM});import{createHash as _p}from"crypto";import{rm as Sp}from"fs/promises";import{join as aq}from"path";class FM{options;stores=new Map;constructor(Z){this.options=Z}async loadLatest(Z){let{agentStore:$}=await this.getOrCreate(Z),J=$.getMetadata("latestRootBlobId");if(!J||J.length===0)return null;return await $.resetFromDb(p8()),$.getConversationStateStructure()}async saveCheckpoint(Z,$){let{agentStore:J}=await this.getOrCreate(Z);return await J.handleCheckpoint(p8(),$),{blobId:W0(J.getMetadata("latestRootBlobId")),storeKind:"local-sqlite"}}async getBlobStore(Z){return(await this.getOrCreate(Z)).sqliteStore}async listCheckpointBlobIds(Z){let{sqliteStore:$}=await this.getOrCreate(Z);return $.listBlobIds()}async getFullConversation(Z){let{agentStore:$}=await this.getOrCreate(Z);return await $.resetFromDb(p8()),$.getFullConversation(p8())}async dispose(){let Z=[...this.stores.values()];this.stores.clear();let $=await Promise.allSettled(Z);await Promise.all($.filter((J)=>J.status==="fulfilled").map((J)=>J.value.sqliteStore.dispose()))}async deleteAgent(Z){let $=this.stores.get(Z);if($){this.stores.delete(Z);let Y=await $.catch(()=>{return});if(Y)await Y.sqliteStore.dispose().catch(()=>{return})}let J=aq(this.options.stateRoot,"agents",BM(Z));await Sp(J,{recursive:!0,force:!0})}async getOrCreate(Z){let $=this.stores.get(Z);if($)return $;let J;return J=this.createEntry(Z).catch((Y)=>{if(this.stores.get(Z)===J)this.stores.delete(Z);throw Y}),this.stores.set(Z,J),J}async createEntry(Z){let $=aq(this.options.stateRoot,"agents"),J=aq($,BM(Z));$Q(this.options.stateRoot),$Q($),$Q(J);let{SQLiteBlobStoreWithMetadata:Y}=await Promise.resolve().then(() => (NM(),WM)),X=await Y.initAndLoad(aq(J,"store.db"));try{X.set("agentId",Z);let z=new mQ(X,X);return await z.resetFromDb(p8()),{sqliteStore:X,agentStore:z}}catch(z){throw await X.dispose().catch(()=>{return}),z}}}function BM(Z){return`agent-${_p("sha256").update(Z).digest("hex")}`}var LM=U(()=>{jQ();i0();nB()});function wM(){return`agent-${Pq()}`}function eB(){return`run-${Pq()}`}var DM=U(()=>{pH()});function _Q(Z){return gp.has(Z)}var gp;var UM=U(()=>{gp=new Set(["FINISHED","ERROR","CANCELLED","EXPIRED"])});var EM={};x6(EM,{SqliteAgentRunStore:()=>JF});import{dirname as bp,join as cp}from"path";function OM(Z){if(Z.length===0)return[];let $=[];for(let J=0;J<Z.length;J+=IM)$.push(Z.slice(J,J+IM));return $}function E9(){return new Date().toISOString()}function rq(Z){return Z?new Date(Z):null}function XQ(Z,$){if(!Z)return $;return JSON.parse(Z)}function YQ(Z){return JSON.stringify(Z)}function A6(Z){return Z?YQ(Z):null}function dp(Z,$){if(Z===null)return null;if($===null)return{id:Z};return{id:Z,params:XQ($,[])}}function ZF(Z){let $=Z?.params;return $&&$.length>0?YQ($):null}function $F(Z){return{agentId:Z.agent_id,workspaceRef:Z.workspace_ref,status:Z.status,activeRunId:Z.active_run_id,latestCheckpointRef:XQ(Z.latest_checkpoint_ref_json,null),name:Z.name,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),metadata:XQ(Z.metadata_json,{})}}function sq(Z){return{runId:Z.run_id,requestId:Z.request_id,agentId:Z.agent_id,turnNumber:Z.turn_number,status:Z.status,model:dp(Z.model,Z.model_params_json),startCheckpointRef:XQ(Z.start_checkpoint_ref_json,null),latestCheckpointRef:XQ(Z.latest_checkpoint_ref_json,null),errorCode:Z.error_code,usageRef:Z.usage_ref,usage:XQ(Z.usage_json??null,null),result:Z.result,createdAt:new Date(Z.created_at),updatedAt:new Date(Z.updated_at),startedAt:rq(Z.started_at),finishedAt:rq(Z.finished_at),cancelledAt:rq(Z.cancelled_at),expiredAt:rq(Z.expired_at)}}function kM(Z){let $=Z?.limit??50,J=Z?.cursor?Number.parseInt(Z.cursor,10):0,Y=Number.isFinite(J)&&J>0?J:0;return{limit:$,offset:Y}}class JF{options;driverPromise;disposed=!1;static async open(Z){let $=new JF(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get stateRoot(){return this.options.stateRoot}get dbPath(){return cp(this.options.stateRoot,"index.db")}async createAgent(Z){let $=await this.getDriver();return a0($,()=>{let J=Z.agentId??wM(),Y=eB(),X=E9();$.run(`INSERT INTO agents (
|
|
12
12
|
agent_id, workspace_ref, status, active_run_id,
|
|
13
13
|
latest_checkpoint_ref_json, name,
|
|
14
14
|
metadata_json, created_at, updated_at
|
|
@@ -18,13 +18,13 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
18
18
|
error_code, usage_ref, usage_json, result,
|
|
19
19
|
created_at, updated_at, started_at, finished_at,
|
|
20
20
|
cancelled_at, expired_at
|
|
21
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,
|
|
21
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Y,Z.requestId??null,J,1,"QUEUED",Z.model?.id??null,ZF(Z.model),null,null,null,null,null,null,X,X,null,null,null,null]);let z=this.getAgentFromDb($,J),K=this.getRunFromDb($,J,Y);if(!z||!K)throw Error(`Failed to create agent ${J}`);return{agent:z,run:K}})}async createFollowUpRun(Z,$){let J=await this.getDriver();return a0(J,()=>{let Y=this.getAgentFromDb(J,Z);if(!Y)throw Error(`Agent ${Z} not found`);if(Y.status==="ARCHIVED")throw Error(`Cannot create follow-up run on archived agent ${Z}. Unarchive it first.`);if(Y.activeRunId){let W=this.getRunFromDb(J,Z,Y.activeRunId);if(W&&!_Q(W.status))throw Error(`Agent ${Z} already has active run`)}let X=J.get("SELECT COUNT(*) as count FROM runs WHERE agent_id = ?",[Z]),z=eB(),K=E9();J.run(`INSERT INTO runs (
|
|
22
22
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
23
23
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
24
24
|
error_code, usage_ref, usage_json, result,
|
|
25
25
|
created_at, updated_at, started_at, finished_at,
|
|
26
26
|
cancelled_at, expired_at
|
|
27
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,
|
|
27
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[z,$.requestId??null,Z,(X?.count??0)+1,"QUEUED",$.model?.id??null,ZF($.model),A6(Y.latestCheckpointRef),Y.latestCheckpointRef?A6(Y.latestCheckpointRef):null,null,null,null,null,K,K,null,null,null,null]),J.run("UPDATE agents SET active_run_id = ?, status = ?, metadata_json = ?, updated_at = ? WHERE agent_id = ?",[z,"IDLE",YQ({...Y.metadata,...$.metadata}),K,Z]);let Q=this.getRunFromDb(J,Z,z);if(!Q)throw Error(`Failed to create run ${z}`);return Q})}async listAgents(Z){let $=await this.getDriver(),{limit:J,offset:Y}=kM(Z),X=$.all("SELECT * FROM agents ORDER BY updated_at DESC LIMIT ? OFFSET ?",[J+1,Y]),z=X.slice(0,J),K=X.length>J?String(Y+J):void 0;return{items:z.map($F),...K?{nextCursor:K}:{}}}async getAgent(Z){let $=await this.getDriver();return this.getAgentFromDb($,Z)}async listRuns(Z,$){let J=await this.getDriver(),{limit:Y,offset:X}=kM($),z=J.all("SELECT * FROM runs WHERE agent_id = ? ORDER BY turn_number ASC LIMIT ? OFFSET ?",[Z,Y+1,X]),K=z.slice(0,Y),Q=z.length>Y?String(X+Y):void 0;return{items:K.map(sq),...Q?{nextCursor:Q}:{}}}async getRun(Z,$){let J=await this.getDriver();return this.getRunFromDb(J,Z,$)}async markRunStarting(Z,$,J){let Y=await this.getDriver();a0(Y,()=>{let X=this.requireRunFromDb(Y,Z,$);if(_Q(X.status))throw Error(`Cannot start terminal run ${$}`);let z=E9();Y.run("UPDATE runs SET request_id = COALESCE(?, request_id), status = ?, started_at = COALESCE(started_at, ?), updated_at = ? WHERE run_id = ? AND agent_id = ?",[J?.requestId??null,"RUNNING",z,z,$,Z]),Y.run(`UPDATE agents
|
|
28
28
|
SET active_run_id = ?,
|
|
29
29
|
status = CASE
|
|
30
30
|
WHEN status = 'ARCHIVED' THEN status
|
|
@@ -67,7 +67,7 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
67
67
|
agent_id, workspace_ref, status, active_run_id,
|
|
68
68
|
latest_checkpoint_ref_json, name,
|
|
69
69
|
metadata_json, created_at, updated_at
|
|
70
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,A6(Z.latestCheckpointRef),Z.name,YQ(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();a0($,()=>{let J=this.getRunFromDb($,Z.agentId,Z.runId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString(),z=Z.startedAt?.toISOString()??null,K=Z.finishedAt?.toISOString()??null,Q=Z.cancelledAt?.toISOString()??null,W=Z.expiredAt?.toISOString()??null,
|
|
70
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.agentId,Z.workspaceRef,Z.status,Z.activeRunId,A6(Z.latestCheckpointRef),Z.name,YQ(Z.metadata),Y,X])})}async upsertRunRecord(Z){let $=await this.getDriver();a0($,()=>{let J=this.getRunFromDb($,Z.agentId,Z.runId),Y=Z.createdAt.toISOString(),X=Z.updatedAt.toISOString(),z=Z.startedAt?.toISOString()??null,K=Z.finishedAt?.toISOString()??null,Q=Z.cancelledAt?.toISOString()??null,W=Z.expiredAt?.toISOString()??null,L=Z.usage===null||Z.usage===void 0?null:JSON.stringify(Z.usage),D=[Z.requestId??null,Z.turnNumber,Z.status,Z.model?.id??null,ZF(Z.model),A6(Z.startCheckpointRef),A6(Z.latestCheckpointRef),Z.errorCode,Z.usageRef,L,Z.result,X,z,K,Q,W];if(J){$.run(`UPDATE runs SET
|
|
71
71
|
request_id = ?,
|
|
72
72
|
turn_number = ?,
|
|
73
73
|
status = ?,
|
|
@@ -84,13 +84,13 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
84
84
|
finished_at = ?,
|
|
85
85
|
cancelled_at = ?,
|
|
86
86
|
expired_at = ?
|
|
87
|
-
WHERE run_id = ? AND agent_id = ?`,[...
|
|
87
|
+
WHERE run_id = ? AND agent_id = ?`,[...D,Z.runId,Z.agentId]);return}$.run(`INSERT INTO runs (
|
|
88
88
|
run_id, request_id, agent_id, turn_number, status, model, model_params_json,
|
|
89
89
|
start_checkpoint_ref_json, latest_checkpoint_ref_json,
|
|
90
90
|
error_code, usage_ref, usage_json, result,
|
|
91
91
|
created_at, updated_at, started_at, finished_at,
|
|
92
92
|
cancelled_at, expired_at
|
|
93
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...
|
|
93
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,...D.slice(0,1),Z.agentId,...D.slice(1,11),Y,...D.slice(11)])})}async listAllAgentRecords(){return(await this.getDriver()).all("SELECT * FROM agents",[]).map($F)}async listAllRunRecords(Z){let $=await this.getDriver();if(Z&&Z.length>0){let Y=[];for(let X of OM(Z)){let z=X.map(()=>"?").join(", "),K=$.all(`SELECT * FROM runs WHERE agent_id IN (${z})`,[...X]);Y.push(...K.map(sq))}return Y}return $.all("SELECT * FROM runs",[]).map(sq)}async deleteRunRecordsForAgents(Z){if(Z.length===0)return;let $=await this.getDriver();a0($,()=>{for(let J of OM(Z)){let Y=J.map(()=>"?").join(", ");$.run(`DELETE FROM runs WHERE agent_id IN (${Y})`,[...J])}})}async deleteRunRecordsByKeys(Z){if(Z.length===0)return;let $=await this.getDriver();a0($,()=>{for(let{agentId:J,runId:Y}of Z)$.run("DELETE FROM runs WHERE agent_id = ? AND run_id = ?",[J,Y])})}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteAgentRunStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=bp(this.dbPath);$Q(J);let Y=await JQ(this.dbPath);try{up(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}getAgentFromDb(Z,$){let J=Z.get("SELECT * FROM agents WHERE agent_id = ?",[$]);return J?$F(J):null}getRunFromDb(Z,$,J){let Y=Z.get("SELECT * FROM runs WHERE run_id = ? AND agent_id = ?",[J,$]);return Y?sq(Y):null}requireRunFromDb(Z,$,J){let Y=this.getRunFromDb(Z,$,J);if(!Y)throw Error(`Run ${J} not found for agent ${$}`);return Y}}function a0(Z,$){Z.exec("BEGIN IMMEDIATE");try{let J=$();return Z.exec("COMMIT"),J}catch(J){try{Z.exec("ROLLBACK")}catch{}throw J}}function up(Z){Z.exec(`PRAGMA journal_mode = WAL;
|
|
94
94
|
PRAGMA synchronous = NORMAL;
|
|
95
95
|
PRAGMA busy_timeout = 5000;
|
|
96
96
|
PRAGMA foreign_keys = ON;
|
|
@@ -126,16 +126,16 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
126
126
|
cancelled_at TEXT,
|
|
127
127
|
expired_at TEXT,
|
|
128
128
|
UNIQUE(agent_id, turn_number)
|
|
129
|
-
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var
|
|
129
|
+
);`);let $=Z.all("PRAGMA table_info(runs)");if(!$.some((J)=>J.name==="request_id"))Z.exec("ALTER TABLE runs ADD COLUMN request_id TEXT");if(!$.some((J)=>J.name==="model_params_json"))Z.exec("ALTER TABLE runs ADD COLUMN model_params_json TEXT");if(!$.some((J)=>J.name==="result"))Z.exec("ALTER TABLE runs ADD COLUMN result TEXT");if(!$.some((J)=>J.name==="usage_json"))Z.exec("ALTER TABLE runs ADD COLUMN usage_json TEXT")}var IM=100;var fM=U(()=>{DM();nB();pq();UM()});function VM(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}var AM={};x6(AM,{SqliteRunEventStore:()=>YF});import{existsSync as lp,mkdirSync as pp}from"fs";import{dirname as ip,join as np}from"path";function ap(){return new Date().toISOString()}function PM(Z){return{runId:Z.run_id,seq:Z.seq,offset:Z.offset,eventType:Z.event_type,payload:Z.payload_json?JSON.parse(Z.payload_json):null,payloadRef:Z.payload_ref,idempotencyKey:Z.idempotency_key,createdAt:new Date(Z.created_at)}}class YF{options;driverPromise;disposed=!1;static async open(Z){let $=new YF(Z);return await $.getDriver(),$}constructor(Z){this.options=Z}get dbPath(){return np(this.options.stateRoot,"index.db")}async appendRunEvent(Z){let $=await this.getDriver();$.exec("BEGIN IMMEDIATE");try{let J=Z.idempotencyKey??null;if(J){let Q=$.get(`SELECT *
|
|
130
130
|
FROM run_events
|
|
131
131
|
WHERE run_id = ? AND idempotency_key = ?
|
|
132
|
-
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),
|
|
132
|
+
LIMIT 1`,[Z.runId,J]);if(Q)return $.exec("COMMIT"),PM(Q)}let X=($.get("SELECT MAX(seq) as max_seq FROM run_events WHERE run_id = ?",[Z.runId])?.max_seq??0)+1,z=String(X),K=ap();return $.run(`INSERT INTO run_events (
|
|
133
133
|
run_id, seq, offset, event_type, payload_json, payload_ref, idempotency_key, created_at
|
|
134
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=
|
|
134
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)`,[Z.runId,X,z,Z.eventType,JSON.stringify(Z.payload??null),Z.payloadRef??null,J,K]),$.exec("COMMIT"),{runId:Z.runId,seq:X,offset:z,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:J,createdAt:new Date(K)}}catch(J){try{$.exec("ROLLBACK")}catch{}throw J}}async listRunEvents(Z){let $=await this.getDriver(),J=VM(Z.afterOffset),Y=Z.limit??100,X=$.all(`SELECT *
|
|
135
135
|
FROM run_events
|
|
136
136
|
WHERE run_id = ? AND seq > ?
|
|
137
137
|
ORDER BY seq ASC
|
|
138
|
-
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(
|
|
138
|
+
LIMIT ?`,[Z.runId,J,Y+1]),z=X.length>Y,K=X.slice(0,Y).map(PM);return{events:K,...z&&K.length>0?{nextOffset:K[K.length-1]?.offset}:{}}}async deleteRunEvents(Z){(await this.getDriver()).run("DELETE FROM run_events WHERE run_id = ?",[Z.runId])}async dispose(){if(this.disposed=!0,!this.driverPromise)return;let Z=await this.driverPromise.catch(()=>{return});if(Z)Z.close();this.driverPromise=void 0}async getDriver(){if(this.disposed)throw Error("SqliteRunEventStore has been disposed");if(this.driverPromise)return this.driverPromise;let $=(async()=>{let J=ip(this.dbPath);if(!lp(J))pp(J,{recursive:!0});let Y=await JQ(this.dbPath);try{rp(Y)}catch(X){throw Y.close(),X}return Y})().catch((J)=>{if(this.driverPromise===$)this.driverPromise=void 0;throw J});return this.driverPromise=$,$}}function rp(Z){if(Z.exec(`PRAGMA journal_mode = WAL;
|
|
139
139
|
PRAGMA synchronous = NORMAL;
|
|
140
140
|
PRAGMA busy_timeout = 5000;
|
|
141
141
|
PRAGMA foreign_keys = ON;
|
|
@@ -152,4 +152,4 @@ ${Z.map(($,J)=>`${J+1}) ${$.toString()}`).join(`
|
|
|
152
152
|
UNIQUE(run_id, offset)
|
|
153
153
|
);`),!Z.all("PRAGMA table_info(run_events)").some((J)=>J.name==="idempotency_key"))Z.exec("ALTER TABLE run_events ADD COLUMN idempotency_key TEXT");Z.exec(`CREATE UNIQUE INDEX IF NOT EXISTS run_events_idempotency_key_idx
|
|
154
154
|
ON run_events (run_id, idempotency_key)
|
|
155
|
-
WHERE idempotency_key IS NOT NULL`)}var kM=U(()=>{lq()});var AM={};x6(AM,{createDefaultLocalRunEventStore:()=>VM,createDefaultLocalRunEventNotifier:()=>PM,createDefaultLocalAgentStores:()=>Sp,createDefaultLocalAgentRunStore:()=>fM,createDefaultLocalAgentCheckpointStore:()=>EM});async function EM(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (qM(),QM));return new $({stateRoot:Z.stateRoot})}async function fM(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (wM(),LM));return $.open(Z)}async function VM(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (kM(),OM));return $.open(Z)}function PM(){return rx()}async function Sp(Z){return{store:await fM(Z),checkpointStore:await EM(Z),eventStore:await VM(Z),eventNotifier:PM()}}var xM=()=>{};jQ();i0();function oH(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:nl(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?mB(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function eH(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:rl(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?mB(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?mB(Z.latestCheckpointRef):null}}function gq(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:al(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?jB(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function bq(Z){let $=sl(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?jB(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?jB(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function mB(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function jB(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function nl(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function al(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function rl(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function sl(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}jQ();iQ();class bB{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(_B(Z.runId,$));if(K)return SB(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(_B(Z.runId,$),z);return SB(z)}async list(Z){let $=Qp(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>SB(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(_B(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function dx(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?gB(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,gB(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,gB(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of $p(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Zp(Z,J);return cB(Y,J)}}}function dB(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function cx(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>dB(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>uB([...$.values()],J?.filter)}}function tl(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class ol{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new bB;checkpoints=dx(this.checkpointBytes);agents=cx({agentRows:tl(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(dq(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=dq(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=dq(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of ux(this.runMap.values(),Z.filter))this.runMap.delete(dq($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>ZQ(Y,$));return uq(J,$)}}}class el{bundles=new Map;checkpointBytes=new Map;runEvents=new bB;checkpoints=dx(this.checkpointBytes);agents=cx({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of ux([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>ZQ(Y,$));return uq(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function cq(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Zp(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(cq({agentId:Y,blobId:z},$))J.push(z);return J}function $p(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(cq({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function cB(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function ZQ(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function ux(Z,$){return[...Z].filter((J)=>ZQ(J,$))}function uB(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(Jp),X=$?.limit??50,z=Y;if($?.cursor){let W=Kp($.cursor);z=Y.filter((D)=>Xp(D,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:lx({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function uq(Z,$){let J=[...Z].sort(Yp),Y=$?.limit??50,X=J;if($?.cursor){let Q=Hp($.cursor);X=J.filter((W)=>zp(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:lx({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Jp(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function Yp(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Xp(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function zp(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function lx(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Kp(Z){let $=px(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Hp(Z){let $=px(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function px(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function dq(Z,$){return`${Z}:${$}`}function Qp(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function _B(Z,$){return`${Z}:${$}`}function SB(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function gB(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}pH();import{createHash as ix}from"crypto";import{existsSync as lB,renameSync as qp}from"fs";import{homedir as Wp}from"os";import{join as pB}from"path";function nx(Z){let $=pB(AN(Wp(),Z),"sdk-agent-store"),J=pB($,ix("sha256").update(Z).digest("hex"));if(lB(J))return J;let Y=Np(Z);if(Y===void 0)return J;let X=pB($,Y);if(!lB(X))return J;try{return qp(X,J),J}catch{return lB(X)?X:J}}function Np(Z){try{return ix("md5").update(Z).digest("hex")}catch($){if(Bp($))return;throw $}}function Bp(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function gp(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function MM(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function bp(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function CM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function dp(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return MM(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(MM),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function cp(Z){let $=l8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,n0(Y));return z?gp(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,n0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,n0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,n0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,n0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await CM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await CM(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(cq({agentId:K,blobId:W},Y))z.push(W)}return cB(z,Y)}}}async function up(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function lp(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?oH(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(gq($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return oH(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(gq($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return oH(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(oH).filter((Y)=>dB(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await up(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(oH);return uB(J,$?.filter)}}}function pp(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?eH(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(bq($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return eH(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(bq($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return eH(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(eH).filter((z)=>ZQ(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(eH).filter((z)=>ZQ(z,J));return uq(X,J)}}}class JF{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??nx(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (xM(),AM)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return bp(X,K,z),new JF({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=lp(this.deps),this.checkpoints=cp(this.deps),this.runs=pp(this.deps),this.runEvents=dp(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{JF as SqliteLocalAgentStore};
|
|
155
|
+
WHERE idempotency_key IS NOT NULL`)}var xM=U(()=>{pq()});var TM={};x6(TM,{createDefaultLocalRunEventStore:()=>hM,createDefaultLocalRunEventNotifier:()=>vM,createDefaultLocalAgentStores:()=>sp,createDefaultLocalAgentRunStore:()=>CM,createDefaultLocalAgentCheckpointStore:()=>MM});async function MM(Z){let{LocalAgentCheckpointStore:$}=await Promise.resolve().then(() => (LM(),GM));return new $({stateRoot:Z.stateRoot})}async function CM(Z){let{SqliteAgentRunStore:$}=await Promise.resolve().then(() => (fM(),EM));return $.open(Z)}async function hM(Z){let{SqliteRunEventStore:$}=await Promise.resolve().then(() => (xM(),AM));return $.open(Z)}function vM(){return tx()}async function sp(Z){return{store:await CM(Z),checkpointStore:await MM(Z),eventStore:await hM(Z),eventNotifier:vM()}}var RM=()=>{};jQ();i0();function oH(Z){return{agentId:Z.agentId,cwd:Z.workspaceRef,status:el(Z.status),activeRunId:Z.activeRunId??null,latestCheckpoint:Z.latestCheckpointRef?jB(Z.latestCheckpointRef):null,name:Z.name??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),sdkMetadata:Z.metadata}}function eH(Z){let $=Z.finishedAt?.getTime()??Z.cancelledAt?.getTime()??Z.expiredAt?.getTime()??null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$p(Z.status),model:Z.model??null,result:Z.result??null,error:Z.errorCode??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:Z.createdAt.getTime(),updatedAt:Z.updatedAt.getTime(),startedAt:Z.startedAt?.getTime()??null,endedAt:$,startCheckpointRef:Z.startCheckpointRef?jB(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?jB(Z.latestCheckpointRef):null}}function bq(Z){return{agentId:Z.agentId,workspaceRef:Z.cwd,status:Zp(Z.status),activeRunId:Z.activeRunId??null,latestCheckpointRef:Z.latestCheckpoint?_B(Z.latestCheckpoint):null,name:Z.name??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),metadata:Z.sdkMetadata??{}}}function cq(Z){let $=Jp(Z.status),J=Z.endedAt?new Date(Z.endedAt):null;return{runId:Z.runId,requestId:Z.requestId??null,agentId:Z.agentId,turnNumber:Z.turnNumber,status:$,model:Z.model??null,startCheckpointRef:Z.startCheckpointRef?_B(Z.startCheckpointRef):null,latestCheckpointRef:Z.latestCheckpointRef?_B(Z.latestCheckpointRef):null,errorCode:Z.error??null,result:Z.result??null,usageRef:Z.usageRef??null,usage:Z.usage??null,createdAt:new Date(Z.createdAt),updatedAt:new Date(Z.updatedAt),startedAt:Z.startedAt?new Date(Z.startedAt):null,finishedAt:$==="FINISHED"?J:null,cancelledAt:$==="CANCELLED"?J:null,expiredAt:$==="EXPIRED"?J:null}}function jB(Z){return{schemaVersion:1,rootBlobId:Z.blobId}}function _B(Z){return{blobId:Z.rootBlobId,storeKind:"local-agent-store"}}function el(Z){switch(Z){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function Zp(Z){switch(Z){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function $p(Z){switch(Z){case"QUEUED":return"queued";case"CREATING":return"running";case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function Jp(Z){switch(Z){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}jQ();iQ();class cB{eventsByRunId=new Map;idempotencyKeys=new Map;async append(Z){let $=Z.idempotencyKey??null;if($){let K=this.idempotencyKeys.get(SB(Z.runId,$));if(K)return gB(K)}let J=this.eventsByRunId.get(Z.runId)??[],X=(J.at(-1)?.seq??0)+1,z={runId:Z.runId,seq:X,offset:String(X),eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:$,createdAt:Date.now()};if(J.push(z),this.eventsByRunId.set(Z.runId,J),$)this.idempotencyKeys.set(SB(Z.runId,$),z);return gB(z)}async list(Z){let $=Gp(Z.afterOffset),J=Z.limit??100,Y=(this.eventsByRunId.get(Z.runId)??[]).filter((z)=>z.seq>$),X=Y.slice(0,J).map((z)=>gB(z));return{items:X,...Y.length>X.length&&X.length>0?{nextOffset:X.at(-1)?.offset}:{}}}async delete(Z){let $=Z.filter.runIds&&Z.filter.runIds.length>0?Z.filter.runIds:[...this.eventsByRunId.keys()];for(let J of $){let Y=this.eventsByRunId.get(J);if(!Y)continue;for(let X of Y)if(X.idempotencyKey)this.idempotencyKeys.delete(SB(J,X.idempotencyKey));this.eventsByRunId.delete(J)}}}function ux(Z){return{get:async({agentId:$,blobId:J})=>{let Y=Z.get($)?.get(J);return Y?bB(Y):null},create:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(X?.has(J))throw Error(`Checkpoint blob ${J} already exists for agent ${$}`);if(!X)X=new Map,Z.set($,X);X.set(J,bB(Y))},update:async({agentId:$,blobId:J,data:Y})=>{let X=Z.get($);if(!X?.has(J))throw Error(`Checkpoint blob ${J} not found for agent ${$}`);X.set(J,bB(Y))},delete:async($)=>{for(let{agentId:J,blobId:Y}of Hp(Z,$.filter)){let X=Z.get(J);if(X?.delete(Y),X&&X.size===0)Z.delete(J)}},list:async($)=>{let J=$?.filter,Y=Kp(Z,J);return uB(Y,J)}}}function dB(Z,$){if(!$?.agentIds?.length&&$?.cwd===void 0)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.cwd!==void 0&&Z.cwd!==$.cwd)return!1;return!0}function lx(Z){let{agentRows:$}=Z;return{get:async({agentId:J})=>{let Y=$.get(J);return Y?structuredClone(Y):null},create:async({agent:J})=>{if($.has(J.agentId))throw Error(`Agent ${J.agentId} already exists`);return $.create(J),structuredClone($.get(J.agentId))},update:async({agent:J})=>{if(!$.has(J.agentId))throw Error(`Agent ${J.agentId} not found`);return $.set(J.agentId,J),structuredClone($.get(J.agentId))},delete:async({filter:J})=>{let Y=[...$.values()].filter((X)=>dB(X,J));if(Y.length===0)throw Error("No agents matched delete filter");for(let X of Y)$.delete(X.agentId)},list:async(J)=>lB([...$.values()],J?.filter)}}function Yp(Z){return{get:($)=>Z.get($),create:($)=>{Z.set($.agentId,structuredClone($))},set:($,J)=>{Z.set($,structuredClone(J))},delete:($)=>{Z.delete($)},has:($)=>Z.has($),values:()=>Z.values()}}class Xp{agentMap=new Map;runMap=new Map;checkpointBytes=new Map;runEvents=new cB;checkpoints=ux(this.checkpointBytes);agents=lx({agentRows:Yp(this.agentMap)});runs={get:async({agentId:Z,runId:$})=>{let J=this.runMap.get(dq(Z,$));return J?structuredClone(J):null},create:async({run:Z})=>{let $=dq(Z.agentId,Z.runId);if(this.runMap.has($))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},update:async({run:Z})=>{let $=dq(Z.agentId,Z.runId);if(!this.runMap.has($))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);return this.runMap.set($,structuredClone(Z)),structuredClone(this.runMap.get($))},delete:async(Z)=>{for(let $ of px(this.runMap.values(),Z.filter))this.runMap.delete(dq($.agentId,$.runId))},list:async(Z)=>{let $=Z?.filter,J=[...this.runMap.values()].filter((Y)=>ZQ(Y,$));return lq(J,$)}}}class zp{bundles=new Map;checkpointBytes=new Map;runEvents=new cB;checkpoints=ux(this.checkpointBytes);agents=lx({agentRows:{get:(Z)=>this.bundles.get(Z)?.agent,create:(Z)=>{this.bundles.set(Z.agentId,{agent:structuredClone(Z),runs:new Map})},set:(Z,$)=>{let J=this.bundles.get(Z);if(!J)throw Error(`Agent ${Z} not found`);this.bundles.set(Z,{agent:structuredClone($),runs:J.runs})},delete:(Z)=>{this.bundles.delete(Z)},has:(Z)=>this.bundles.has(Z),values:()=>[...this.bundles.values()].map((Z)=>Z.agent)}});runs={get:async({agentId:Z,runId:$})=>{let J=this.bundles.get(Z)?.runs.get($);return J?structuredClone(J):null},create:async({run:Z})=>{let $=this.requireBundle(Z.agentId);if($.runs.has(Z.runId))throw Error(`Run ${Z.runId} already exists for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},update:async({run:Z})=>{let $=this.bundles.get(Z.agentId);if(!$?.runs.has(Z.runId))throw Error(`Run ${Z.runId} not found for agent ${Z.agentId}`);let J=structuredClone(Z);return $.runs.set(Z.runId,J),structuredClone(J)},delete:async(Z)=>{for(let $ of px([...this.bundles.values()].flatMap((J)=>[...J.runs.values()]),Z.filter))this.bundles.get($.agentId)?.runs.delete($.runId)},list:async(Z)=>{let $=Z?.filter,J=[...this.bundles.values()].flatMap((Y)=>[...Y.runs.values()]).filter((Y)=>ZQ(Y,$));return lq(J,$)}};requireBundle(Z){let $=this.bundles.get(Z);if($)return $;let J={agent:{agentId:Z,cwd:"",status:"idle",createdAt:Date.now(),updatedAt:Date.now()},runs:new Map};return this.bundles.set(Z,J),J}}function uq(Z,$){if(!$?.agentIds?.length&&!$?.blobIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.blobIds?.length&&!$.blobIds.includes(Z.blobId))return!1;return!0}function Kp(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(uq({agentId:Y,blobId:z},$))J.push(z);return J}function Hp(Z,$){let J=[];for(let[Y,X]of Z)for(let z of X.keys())if(uq({agentId:Y,blobId:z},$))J.push({agentId:Y,blobId:z});return J}function uB(Z,$){let J=[...Z].sort((Q,W)=>Q.localeCompare(W)),Y=$?.limit??50,X=J;if($?.cursor)X=J.filter((Q)=>Q>$.cursor);let z=X.slice(0,Y),K=z.at(-1);return{items:z,...X.length>Y&&K?{nextCursor:K}:{}}}function ZQ(Z,$){if(!$?.agentIds?.length&&!$?.runIds?.length)return!0;if($.agentIds?.length&&!$.agentIds.includes(Z.agentId))return!1;if($.runIds?.length&&!$.runIds.includes(Z.runId))return!1;return!0}function px(Z,$){return[...Z].filter((J)=>ZQ(J,$))}function lB(Z,$){let Y=[...$?.cwd===void 0?Z:Z.filter((W)=>W.cwd===$.cwd)].sort(Qp),X=$?.limit??50,z=Y;if($?.cursor){let W=Bp($.cursor);z=Y.filter((L)=>Wp(L,W))}let K=z.slice(0,X),Q=K.at(-1);return{items:K.map((W)=>structuredClone(W)),...z.length>X&&Q?{nextCursor:ix({updatedAt:Q.updatedAt,agentId:Q.agentId})}:{}}}function lq(Z,$){let J=[...Z].sort(qp),Y=$?.limit??50,X=J;if($?.cursor){let Q=Fp($.cursor);X=J.filter((W)=>Np(W,Q))}let z=X.slice(0,Y),K=z.at(-1);return{items:z.map((Q)=>structuredClone(Q)),...X.length>Y&&K?{nextCursor:ix({turnNumber:K.turnNumber,runId:K.runId})}:{}}}function Qp(Z,$){if($.updatedAt!==Z.updatedAt)return $.updatedAt-Z.updatedAt;return $.agentId.localeCompare(Z.agentId)}function qp(Z,$){if(Z.turnNumber!==$.turnNumber)return Z.turnNumber-$.turnNumber;return Z.runId.localeCompare($.runId)}function Wp(Z,$){if(Z.updatedAt<$.updatedAt)return!0;if(Z.updatedAt>$.updatedAt)return!1;return Z.agentId<$.agentId}function Np(Z,$){if(Z.turnNumber>$.turnNumber)return!0;if(Z.turnNumber<$.turnNumber)return!1;return Z.runId>$.runId}function ix(Z){return Buffer.from(JSON.stringify(Z),"utf8").toString("base64url")}function Bp(Z){let $=nx(Z);if(typeof $.updatedAt!=="number"||typeof $.agentId!=="string")throw Error("Invalid agent list cursor");return{updatedAt:$.updatedAt,agentId:$.agentId}}function Fp(Z){let $=nx(Z);if(typeof $.turnNumber!=="number"||typeof $.runId!=="string")throw Error("Invalid run list cursor");return{turnNumber:$.turnNumber,runId:$.runId}}function nx(Z){try{let $=JSON.parse(Buffer.from(Z,"base64url").toString("utf8"));if(typeof $==="object"&&$!==null&&!Array.isArray($))return $}catch{}throw Error("Invalid list cursor")}function dq(Z,$){return`${Z}:${$}`}function Gp(Z){if(!Z)return 0;if(!/^\d+$/.test(Z))throw Error(`Invalid run event offset ${Z}`);let $=Number.parseInt(Z,10);if(!Number.isFinite($)||$<0)throw Error(`Invalid run event offset ${Z}`);return $}function SB(Z,$){return`${Z}:${$}`}function gB(Z){return{...Z,payload:Z.payload!==null&&typeof Z.payload==="object"?structuredClone(Z.payload):Z.payload}}function bB(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}pH();import{createHash as ax}from"crypto";import{existsSync as pB,renameSync as Lp}from"fs";import{homedir as wp}from"os";import{join as iB}from"path";function rx(Z){let $=iB(MN(wp(),Z),"sdk-agent-store"),J=iB($,ax("sha256").update(Z).digest("hex"));if(pB(J))return J;let Y=Dp(Z);if(Y===void 0)return J;let X=iB($,Y);if(!pB(X))return J;try{return Lp(X,J),J}catch{return pB(X)?X:J}}function Dp(Z){try{return ax("md5").update(Z).digest("hex")}catch($){if(Up($))return;throw $}}function Up(Z){if(!(Z instanceof Error))return!1;return Z.code==="ERR_OSSL_EVP_UNSUPPORTED"||Z.message==="Digest method not supported"}function tp(Z){let $=new Uint8Array(Z.length);return $.set(Z),$}function yM(Z){return{runId:Z.runId,seq:Z.seq,offset:Z.offset,eventType:Z.eventType,payload:Z.payload??null,payloadRef:Z.payloadRef??null,idempotencyKey:Z.idempotencyKey??null,createdAt:Z.createdAt.getTime()}}function op(Z,$,J){if(typeof Z.upsertAgentRecord!=="function")throw Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if(typeof J.appendRunEvent!=="function")throw Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if(typeof $.listCheckpointBlobIds!=="function")throw Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}async function mM(Z){return(await Z.listAllAgentRecords()).map((J)=>J.agentId)}function ep(Z){return{append:async($)=>{let J=await Z.appendRunEvent({runId:$.runId,eventType:$.eventType,payload:$.payload,payloadRef:$.payloadRef,idempotencyKey:$.idempotencyKey});return yM(J)},list:async($)=>{let J=await Z.listRunEvents({runId:$.runId,afterOffset:$.afterOffset??void 0,limit:$.limit});return{items:J.events.map(yM),...J.nextOffset!==void 0?{nextOffset:J.nextOffset}:{}}},delete:async($)=>{let J=$.filter.runIds??[];for(let Y of J)await Z.deleteRunEvents({runId:Y})}}}function Zi(Z){let $=p8();return{get:async({agentId:J,blobId:Y})=>{let z=await(await Z.checkpointStore.getBlobStore(J)).getBlob($,n0(Y));return z?tp(z):null},create:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(await z.getBlob($,n0(Y)))throw Error(`Checkpoint blob ${Y} already exists for agent ${J}`);await z.setBlob($,n0(Y),X)},update:async({agentId:J,blobId:Y,data:X})=>{let z=await Z.checkpointStore.getBlobStore(J);if(!await z.getBlob($,n0(Y)))throw Error(`Checkpoint blob ${Y} not found for agent ${J}`);await z.setBlob($,n0(Y),X)},delete:async(J)=>{let Y=J.filter.agentIds&&J.filter.agentIds.length>0?J.filter.agentIds:await mM(Z.runStore),X=J.filter.blobIds;for(let z of Y){if(X?.length){let K=await Z.checkpointStore.getBlobStore(z);for(let Q of X)await K.deleteBlob(Q);continue}await Z.checkpointStore.deleteAgent(z)}},list:async(J)=>{let Y=J?.filter,X=Y?.agentIds&&Y.agentIds.length>0?Y.agentIds:await mM(Z.runStore),z=[];for(let K of X){let Q=await Z.checkpointStore.listCheckpointBlobIds(K);for(let W of Q)if(uq({agentId:K,blobId:W},Y))z.push(W)}return uB(z,Y)}}}async function $i(Z,$){return(await Z.runStore.listAllRunRecords([$])).map((Y)=>Y.runId)}function Ji(Z){return{get:async({agentId:$})=>{let J=await Z.runStore.getAgent($);return J?oH(J):null},create:async({agent:$})=>{if(await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} already exists`);await Z.runStore.upsertAgentRecord(bq($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to create agent ${$.agentId}`);return oH(Y)},update:async({agent:$})=>{if(!await Z.runStore.getAgent($.agentId))throw Error(`Agent ${$.agentId} not found`);await Z.runStore.upsertAgentRecord(bq($));let Y=await Z.runStore.getAgent($.agentId);if(!Y)throw Error(`Failed to update agent ${$.agentId}`);return oH(Y)},delete:async({filter:$})=>{let J=(await Z.runStore.listAllAgentRecords()).map(oH).filter((Y)=>dB(Y,$));if(J.length===0)throw Error("No agents matched delete filter");for(let Y of J){let X=await $i(Z,Y.agentId);for(let z of X)await Z.eventStore.deleteRunEvents({runId:z});await Z.checkpointStore.deleteAgent(Y.agentId),await Z.runStore.deleteAgent(Y.agentId)}},list:async($)=>{let J=(await Z.runStore.listAllAgentRecords()).map(oH);return lB(J,$?.filter)}}}function Yi(Z){return{get:async({agentId:$,runId:J})=>{let Y=await Z.runStore.getRun($,J);return Y?eH(Y):null},create:async({run:$})=>{if(await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} already exists for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(cq($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to create run ${$.runId} for agent ${$.agentId}`);return eH(Y)},update:async({run:$})=>{if(!await Z.runStore.getRun($.agentId,$.runId))throw Error(`Run ${$.runId} not found for agent ${$.agentId}`);await Z.runStore.upsertRunRecord(cq($));let Y=await Z.runStore.getRun($.agentId,$.runId);if(!Y)throw Error(`Failed to update run ${$.runId} for agent ${$.agentId}`);return eH(Y)},delete:async($)=>{let J=$.filter,Y=J?.agentIds&&J.agentIds.length>0?J.agentIds:void 0,X=(await Z.runStore.listAllRunRecords(Y)).map(eH).filter((z)=>ZQ(z,J));if(X.length===0)return;for(let z of X)await Z.eventStore.deleteRunEvents({runId:z.runId});await Z.runStore.deleteRunRecordsByKeys(X.map((z)=>({agentId:z.agentId,runId:z.runId})))},list:async($)=>{let J=$?.filter,X=(await Z.runStore.listAllRunRecords(J?.agentIds)).map(eH).filter((z)=>ZQ(z,J));return lq(X,J)}}}class XF{stateRoot;workspaceRef;agents;checkpoints;runs;runEvents;deps;static async open(Z){let $=Z.stateRoot??rx(Z.workspaceRef),{createDefaultLocalAgentStores:J}=await Promise.resolve().then(() => (RM(),TM)),Y=await J({stateRoot:$,workspaceRef:Z.workspaceRef}),X=Y.store,z=Y.eventStore,K=Y.checkpointStore;return op(X,K,z),new XF({stateRoot:$,workspaceRef:Z.workspaceRef,runStore:X,checkpointStore:K,eventStore:z})}constructor(Z){this.stateRoot=Z.stateRoot,this.workspaceRef=Z.workspaceRef,this.deps={runStore:Z.runStore,checkpointStore:Z.checkpointStore,eventStore:Z.eventStore},this.agents=Ji(this.deps),this.checkpoints=Zi(this.deps),this.runs=Yi(this.deps),this.runEvents=ep(Z.eventStore)}async dispose(){await Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}}export{XF as SqliteLocalAgentStore};
|