@cursor/sdk 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/cjs/616.js +1 -0
  2. package/dist/cjs/642.js +1 -1
  3. package/dist/cjs/agent/options.d.ts +86 -1
  4. package/dist/cjs/agent/options.d.ts.map +1 -1
  5. package/dist/cjs/agent/usage-types.d.ts +12 -3
  6. package/dist/cjs/agent/usage-types.d.ts.map +1 -1
  7. package/dist/cjs/agent.d.ts +11 -5
  8. package/dist/cjs/agent.d.ts.map +1 -1
  9. package/dist/cjs/analytics.d.ts.map +1 -1
  10. package/dist/cjs/auth/credential-store.d.ts +56 -0
  11. package/dist/cjs/auth/credential-store.d.ts.map +1 -0
  12. package/dist/cjs/auth/login-flow.d.ts +72 -0
  13. package/dist/cjs/auth/login-flow.d.ts.map +1 -0
  14. package/dist/cjs/auth/login.d.ts +86 -0
  15. package/dist/cjs/auth/login.d.ts.map +1 -0
  16. package/dist/cjs/auth/mint-api-key.d.ts +29 -0
  17. package/dist/cjs/auth/mint-api-key.d.ts.map +1 -0
  18. package/dist/cjs/auth/open-browser.d.ts +12 -0
  19. package/dist/cjs/auth/open-browser.d.ts.map +1 -0
  20. package/dist/cjs/auth/stored-credentials.d.ts +20 -0
  21. package/dist/cjs/auth/stored-credentials.d.ts.map +1 -0
  22. package/dist/cjs/cloud-agent.d.ts +1 -3
  23. package/dist/cjs/cloud-agent.d.ts.map +1 -1
  24. package/dist/cjs/cloud-api-client.d.ts +4 -0
  25. package/dist/cjs/cloud-api-client.d.ts.map +1 -1
  26. package/dist/cjs/cloud-executor.d.ts.map +1 -1
  27. package/dist/cjs/executor-common.d.ts.map +1 -1
  28. package/dist/cjs/executor-types.d.ts +16 -0
  29. package/dist/cjs/executor-types.d.ts.map +1 -1
  30. package/dist/cjs/index.d.ts +2 -2
  31. package/dist/cjs/index.d.ts.map +1 -1
  32. package/dist/cjs/index.js +1 -1
  33. package/dist/cjs/local-executor.d.ts +7 -0
  34. package/dist/cjs/local-executor.d.ts.map +1 -1
  35. package/dist/cjs/native/vendored-tree-sitter.d.ts +19 -0
  36. package/dist/cjs/native/vendored-tree-sitter.d.ts.map +1 -0
  37. package/dist/cjs/options.d.ts +86 -1
  38. package/dist/cjs/options.d.ts.map +1 -1
  39. package/dist/cjs/platform-package-locator.d.ts +23 -0
  40. package/dist/cjs/platform-package-locator.d.ts.map +1 -0
  41. package/dist/cjs/platform.d.ts +9 -2
  42. package/dist/cjs/platform.d.ts.map +1 -1
  43. package/dist/cjs/public-api.d.ts +5 -1
  44. package/dist/cjs/public-api.d.ts.map +1 -1
  45. package/dist/cjs/sqlite.js +1 -1
  46. package/dist/cjs/stubs.d.ts +14 -2
  47. package/dist/cjs/stubs.d.ts.map +1 -1
  48. package/dist/cjs/tools-option.d.ts +31 -0
  49. package/dist/cjs/tools-option.d.ts.map +1 -0
  50. package/dist/cjs/usage-types.d.ts +12 -3
  51. package/dist/cjs/usage-types.d.ts.map +1 -1
  52. package/dist/esm/357.js +1 -1
  53. package/dist/esm/642.js +1 -1
  54. package/dist/esm/agent/options.d.ts +86 -1
  55. package/dist/esm/agent/options.d.ts.map +1 -1
  56. package/dist/esm/agent/usage-types.d.ts +12 -3
  57. package/dist/esm/agent/usage-types.d.ts.map +1 -1
  58. package/dist/esm/agent.d.ts +11 -5
  59. package/dist/esm/agent.d.ts.map +1 -1
  60. package/dist/esm/analytics.d.ts.map +1 -1
  61. package/dist/esm/auth/credential-store.d.ts +56 -0
  62. package/dist/esm/auth/credential-store.d.ts.map +1 -0
  63. package/dist/esm/auth/login-flow.d.ts +72 -0
  64. package/dist/esm/auth/login-flow.d.ts.map +1 -0
  65. package/dist/esm/auth/login.d.ts +86 -0
  66. package/dist/esm/auth/login.d.ts.map +1 -0
  67. package/dist/esm/auth/mint-api-key.d.ts +29 -0
  68. package/dist/esm/auth/mint-api-key.d.ts.map +1 -0
  69. package/dist/esm/auth/open-browser.d.ts +12 -0
  70. package/dist/esm/auth/open-browser.d.ts.map +1 -0
  71. package/dist/esm/auth/stored-credentials.d.ts +20 -0
  72. package/dist/esm/auth/stored-credentials.d.ts.map +1 -0
  73. package/dist/esm/cloud-agent.d.ts +1 -3
  74. package/dist/esm/cloud-agent.d.ts.map +1 -1
  75. package/dist/esm/cloud-api-client.d.ts +4 -0
  76. package/dist/esm/cloud-api-client.d.ts.map +1 -1
  77. package/dist/esm/cloud-executor.d.ts.map +1 -1
  78. package/dist/esm/executor-common.d.ts.map +1 -1
  79. package/dist/esm/executor-types.d.ts +16 -0
  80. package/dist/esm/executor-types.d.ts.map +1 -1
  81. package/dist/esm/index.d.ts +2 -2
  82. package/dist/esm/index.d.ts.map +1 -1
  83. package/dist/esm/index.js +1 -1
  84. package/dist/esm/local-executor.d.ts +7 -0
  85. package/dist/esm/local-executor.d.ts.map +1 -1
  86. package/dist/esm/native/vendored-tree-sitter.d.ts +19 -0
  87. package/dist/esm/native/vendored-tree-sitter.d.ts.map +1 -0
  88. package/dist/esm/options.d.ts +86 -1
  89. package/dist/esm/options.d.ts.map +1 -1
  90. package/dist/esm/platform-package-locator.d.ts +23 -0
  91. package/dist/esm/platform-package-locator.d.ts.map +1 -0
  92. package/dist/esm/platform.d.ts +9 -2
  93. package/dist/esm/platform.d.ts.map +1 -1
  94. package/dist/esm/public-api.d.ts +5 -1
  95. package/dist/esm/public-api.d.ts.map +1 -1
  96. package/dist/esm/sqlite.js +1 -1
  97. package/dist/esm/stubs.d.ts +14 -2
  98. package/dist/esm/stubs.d.ts.map +1 -1
  99. package/dist/esm/tools-option.d.ts +31 -0
  100. package/dist/esm/tools-option.d.ts.map +1 -0
  101. package/dist/esm/usage-types.d.ts +12 -3
  102. package/dist/esm/usage-types.d.ts.map +1 -1
  103. package/package.json +13 -14
  104. package/dist/cjs/223.js +0 -1
@@ -1 +1 @@
1
- import*as e from"@bufbuild/protobuf";import*as t from"node:crypto";import*as n from"node:fs";import*as r from"node:fs/promises";import*as s from"node:path";import*as o from"zod";import{homedir as i}from"node:os";var a,l,u,m,c,d,p,f={"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/index.js"(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.range=t.race=t.partition=t.onErrorResumeNext=t.of=t.merge=t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.forkJoin=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.TimeoutError=t.SequenceError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.identity=t.noop=t.pipe=t.rx=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.queueScheduler=t.asyncScheduler=t.asapScheduler=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.isObservable=t.UnsubscriptionError=t.operate=t.Subscriber=t.Subscription=t.config=t.from=t.Observable=void 0,t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=void 0,t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.mergeAll=void 0,t.zipWith=t.zipAll=t.withLatestFrom=void 0;var o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}}),Object.defineProperty(t,"from",{enumerable:!0,get:function(){return o.from}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return o.config}}),Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return o.Subscription}}),Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return o.Subscriber}}),Object.defineProperty(t,"operate",{enumerable:!0,get:function(){return o.operate}}),Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return o.UnsubscriptionError}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return o.isObservable}});var i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js");Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return i.animationFrames}});var a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return a.Subject}});var l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js");Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var u=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js");Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var m=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js");Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return m.AsyncSubject}});var c=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js");Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return c.asapScheduler}});var d=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js");Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var p=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js");Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return p.queueScheduler}});var f=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js");Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return f.animationFrameScheduler}});var g=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js");Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var _=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js");Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return _.Scheduler}});var h=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js");Object.defineProperty(t,"rx",{enumerable:!0,get:function(){return h.rx}});var T=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js");Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return T.pipe}});var y=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return y.noop}});var S=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return S.identity}});var w=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js");Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return w.lastValueFrom}});var k=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js");Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var J=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js");Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return J.ArgumentOutOfRangeError}});var v=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return v.EmptyError}});var E=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js");Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return E.NotFoundError}});var b=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js");Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return b.SequenceError}});var j=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return j.TimeoutError}});var x=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js");Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return x.bindCallback}});var N=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js");Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return N.bindNodeCallback}});var P=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js");Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return P.combineLatest}});var B=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js");Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return B.concat}});var I=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/connectable.js");Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return I.connectable}});var q=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js");Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return q.defer}});var R=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js");Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return R.forkJoin}});var M=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js");Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var O=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js");Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return O.fromEventPattern}});var F=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/generate.js");Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return F.generate}});var A=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/iif.js");Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return A.iif}});var L=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js");Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return L.interval}});var C=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/merge.js");Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return C.merge}});var U=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/of.js");Object.defineProperty(t,"of",{enumerable:!0,get:function(){return U.of}});var D=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js");Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return D.onErrorResumeNext}});var G=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/partition.js");Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return G.partition}});var H=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js");Object.defineProperty(t,"race",{enumerable:!0,get:function(){return H.race}});var K=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/range.js");Object.defineProperty(t,"range",{enumerable:!0,get:function(){return K.range}});var W=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/throwError.js");Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return W.throwError}});var Y=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return Y.timer}});var z=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/using.js");Object.defineProperty(t,"using",{enumerable:!0,get:function(){return z.using}});var V=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js");Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return V.zip}});var Q=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return Q.scheduled}});var X=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return X.EMPTY}});var $=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/never.js");Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return $.NEVER}}),s(n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/types.js"),t);var Z=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js");Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return Z.audit}});var ee=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js");Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return ee.auditTime}});var te=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/buffer.js");Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return te.buffer}});var ne=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js");Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return ne.bufferCount}});var re=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js");Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return re.bufferTime}});var se=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js");Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return se.bufferToggle}});var oe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js");Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return oe.bufferWhen}});var ie=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/catchError.js");Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ie.catchError}});var ae=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js");Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return ae.combineLatestAll}});var le=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js");Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return le.combineLatestWith}});var ue=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js");Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return ue.concatAll}});var me=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js");Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return me.concatMap}});var ce=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js");Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return ce.concatMapTo}});var de=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js");Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return de.concatWith}});var pe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/connect.js");Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return pe.connect}});var fe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/count.js");Object.defineProperty(t,"count",{enumerable:!0,get:function(){return fe.count}});var ge=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounce.js");Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return ge.debounce}});var _e=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js");Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return _e.debounceTime}});var he=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js");Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return he.defaultIfEmpty}});var Te=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delay.js");Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Te.delay}});var ye=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js");Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return ye.delayWhen}});var Se=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js");Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Se.dematerialize}});var we=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinct.js");Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return we.distinct}});var ke=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js");Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return ke.distinctUntilChanged}});var Je=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js");Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Je.distinctUntilKeyChanged}});var ve=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js");Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return ve.elementAt}});var Ee=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/endWith.js");Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Ee.endWith}});var be=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/every.js");Object.defineProperty(t,"every",{enumerable:!0,get:function(){return be.every}});var je=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js");Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return je.exhaustAll}});var xe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js");Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return xe.exhaustMap}});var Ne=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/expand.js");Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return Ne.expand}});var Pe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js");Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return Pe.filter}});var Be=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/finalize.js");Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return Be.finalize}});var Ie=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js");Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Ie.find}});var qe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js");Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return qe.findIndex}});var Re=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/first.js");Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Re.first}});var Me=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js");Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Me.groupBy}});var Oe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js");Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Oe.ignoreElements}});var Fe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js");Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Fe.isEmpty}});var Ae=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/last.js");Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Ae.last}});var Le=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Le.map}});var Ce=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js");Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return Ce.mapTo}});var Ue=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/materialize.js");Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Ue.materialize}});var De=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/max.js");Object.defineProperty(t,"max",{enumerable:!0,get:function(){return De.max}});var Ge=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return Ge.mergeAll}});var He=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return He.mergeMap}});var Ke=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js");Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return Ke.mergeMapTo}});var We=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js");Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return We.mergeScan}});var Ye=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js");Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return Ye.mergeWith}});var ze=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/min.js");Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ze.min}});var Ve=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js");Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return Ve.observeOn}});var Qe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js");Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Qe.onErrorResumeNextWith}});var Xe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js");Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return Xe.pairwise}});var $e=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js");Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return $e.raceWith}});var Ze=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js");Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return Ze.reduce}});var et=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeat.js");Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return et.repeat}});var tt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js");Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return tt.repeatWhen}});var nt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retry.js");Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return nt.retry}});var rt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js");Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return rt.retryWhen}});var st=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js");Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return st.sample}});var ot=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js");Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return ot.sampleTime}});var it=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scan.js");Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return it.scan}});var at=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js");Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return at.sequenceEqual}});var lt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js");Object.defineProperty(t,"share",{enumerable:!0,get:function(){return lt.share}});var ut=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js");Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return ut.shareReplay}});var mt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/single.js");Object.defineProperty(t,"single",{enumerable:!0,get:function(){return mt.single}});var ct=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skip.js");Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return ct.skip}});var dt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js");Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return dt.skipLast}});var pt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js");Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return pt.skipUntil}});var ft=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js");Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return ft.skipWhile}});var gt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/startWith.js");Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return gt.startWith}});var _t=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return _t.subscribeOn}});var ht=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js");Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return ht.switchAll}});var Tt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js");Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Tt.switchMap}});var yt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js");Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return yt.switchMapTo}});var St=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js");Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return St.switchScan}});var wt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js");Object.defineProperty(t,"take",{enumerable:!0,get:function(){return wt.take}});var kt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js");Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return kt.takeLast}});var Jt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js");Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Jt.takeUntil}});var vt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js");Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return vt.takeWhile}});var Et=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/tap.js");Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Et.tap}});var bt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js");Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return bt.throttle}});var jt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js");Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return jt.throttleTime}});var xt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js");Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return xt.throwIfEmpty}});var Nt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js");Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Nt.timeInterval}});var Pt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Pt.timeout}});var Bt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js");Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Bt.timeoutWith}});var It=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js");Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return It.timestamp}});var qt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js");Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return qt.toArray}});var Rt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/window.js");Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Rt.window}});var Mt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js");Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return Mt.windowCount}});var Ot=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js");Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return Ot.windowTime}});var Ft=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js");Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return Ft.windowToggle}});var At=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js");Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return At.windowWhen}});var Lt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js");Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return Lt.withLatestFrom}});var Ct=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js");Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return Ct.zipAll}});var Ut=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js");Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return Ut.zipWith}})},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");class s extends r.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(e){const{hasError:t,_hasValue:n,_value:r,thrownError:s,_closed:o,_isComplete:i}=this;t?e.error(s):(o||i)&&(n&&e.next(r),e.complete())}next(e){this._closed||(this._value=e,this._hasValue=!0)}complete(){const{_hasValue:e,_value:t,_isComplete:n}=this;n||(this._isComplete=!0,e&&super.next(t),super.complete())}}t.AsyncSubject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");class s extends r.Subject{_value;constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return n}next(e){super.next(this._value=e)}}t.BehaviorSubject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Notification.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=void 0,t.observeNotification=function(e,t){const{kind:n,value:r,error:s}=e;if("string"!=typeof n)throw new TypeError('Invalid notification, missing "kind"');"N"===n?t.next?.(r):"E"===n?t.error?.(s):t.complete?.()}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=t.isObservable=t.isArrayLike=t.isPromise=t.readableStreamLikeToAsyncGenerator=t.isFunction=t.getObservableInputType=t.ObservableInputType=t.subscribeToArray=t.fromPromise=t.fromArrayLike=t.from=t.reportUnhandledError=t.Observable=t.operate=t.config=t.Subscriber=t.Subscription=t.UnsubscriptionError=void 0;class n extends Error{errors;constructor(e){super(e?`${e.length} errors occurred during unsubscription:\n${e.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n ")}`:""),this.errors=e,this.name="UnsubscriptionError"}}t.UnsubscriptionError=n;class r{initialTeardown;static EMPTY=(()=>{const e=new r;return e.closed=!0,e})();closed=!1;_finalizers=null;constructor(e){this.initialTeardown=e}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{initialTeardown:t}=this;if(S(t))try{t()}catch(t){e=t instanceof n?t.errors:[t]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const t of r)try{s(t)}catch(t){e=e??[],t instanceof n?e.push(...t.errors):e.push(t)}}if(e)throw new n(e)}}add(e){e&&e!==this&&(this.closed?s(e):(e&&"add"in e&&e.add((()=>{this.remove(e)})),this._finalizers??=new Set,this._finalizers.add(e)))}remove(e){this._finalizers?.delete(e)}}function s(e){S(e)?e():e.unsubscribe()}t.Subscription=r,"symbol"==typeof Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.unsubscribe);class o extends r{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(e,t){var n,r;super(),this.destination=e instanceof o?e:new u(!(n=e)||S(n)?{next:n??void 0}:n),this._nextOverride=t?.next??null,this._errorOverride=t?.error??null,this._completeOverride=t?.complete??null,this._onFinalize=t?.finalize??null,this._next=this._nextOverride?i:this._next,this._error=this._errorOverride?a:this._error,this._complete=this._completeOverride?l:this._complete,(r=e)&&S(r.unsubscribe)&&S(r.add)&&e.add(this)}next(e){this.isStopped?m(E(e),this):this._next(e)}error(e){this.isStopped?m(v(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?m(t.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this._onFinalize?.())}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}function i(e){try{this._nextOverride(e)}catch(e){this.destination.error(e)}}function a(e){try{this._errorOverride(e)}catch(e){this.destination.error(e)}finally{this.unsubscribe()}}function l(){try{this._completeOverride()}catch(e){this.destination.error(e)}finally{this.unsubscribe()}}t.Subscriber=o,t.config={onUnhandledError:null,onStoppedNotification:null};class u{partialObserver;constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(e){p(e)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(e){p(e)}else p(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(e){p(e)}}}function m(e,n){const{onStoppedNotification:r}=t.config;r&&setTimeout((()=>r(e,n)))}t.operate=function({destination:e,...t}){return new o(e,t)};class c{constructor(e){e&&(this._subscribe=e)}subscribe(e){const t=e instanceof o?e:new o(e);return t.add(this._trySubscribe(t)),t}_trySubscribe(e){try{return this._subscribe(e)}catch(t){e.error(t)}}forEach(e){return new Promise(((t,n)=>{const r=new o({next:t=>{try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:t});this.subscribe(r)}))}_subscribe(e){}[Symbol.observable??"@@observable"](){return this}pipe(...e){return e.reduce(d,this)}[Symbol.asyncIterator](){let e,t,n=!1,r=!1;const s=[],o=[],i=e=>{for(n=!0,t=e;o.length;){const[t,n]=o.shift();n(e)}},a=()=>{for(r=!0;o.length;){const[e]=o.shift();e({value:void 0,done:!0})}};return{next:()=>(e||(e=this.subscribe({next:e=>{if(o.length){const[t]=o.shift();t({value:e,done:!1})}else s.push(e)},error:i,complete:a})),s.length?Promise.resolve({value:s.shift(),done:!1}):r?Promise.resolve({value:void 0,done:!0}):n?Promise.reject(t):new Promise(((e,t)=>{o.push([e,t])}))),throw:t=>(e?.unsubscribe(),i(t),Promise.reject(t)),return:()=>(e?.unsubscribe(),a(),Promise.resolve({value:void 0,done:!0})),[Symbol.asyncIterator](){return this}}}}function d(e,t){return t(e)}function p(e){setTimeout((()=>{const{onUnhandledError:n}=t.config;if(!n)throw e;n(e)}))}function f(e){return new c((t=>{h(e,t)}))}function g(e){return new c((t=>{e.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,p)}))}function _(e){return new c((t=>{(async function(e,t){for await(const n of e)if(t.next(n),t.closed)return;t.complete()})(e,t).catch((e=>t.error(e)))}))}function h(e,t){const n=e.length;for(let r=0;r<n;r++){if(t.closed)return;t.next(e[r])}t.complete()}var T;function y(e){if(e instanceof c)return T.Own;if(function(e){return S(e[Symbol.observable??"@@observable"])}(e))return T.InteropObservable;if(J(e))return T.ArrayLike;if(k(e))return T.Promise;if(t=e,Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator]))return T.AsyncIterable;var t;if(function(e){return S(e?.[Symbol.iterator])}(e))return T.Iterable;if(function(e){return S(e?.getReader)}(e))return T.ReadableStreamLike;throw new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function S(e){return"function"==typeof e}async function*w(e){const t=e.getReader();try{for(;;){const{value:e,done:n}=await t.read();if(n)return;yield e}}finally{t.releaseLock()}}function k(e){return S(e?.then)}function J(e){return e&&"number"==typeof e.length&&!S(e)}function v(e){return b("E",void 0,e)}function E(e){return b("N",e,void 0)}function b(e,t,n){return{kind:e,value:t,error:n}}t.Observable=c,t.reportUnhandledError=p,t.from=function(e){switch(y(e)){case T.Own:return e;case T.InteropObservable:return n=e,new c((e=>{const t=n[Symbol.observable??"@@observable"]();if(S(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));case T.ArrayLike:return f(e);case T.Promise:return g(e);case T.AsyncIterable:return _(e);case T.Iterable:return t=e,new c((e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()}));case T.ReadableStreamLike:return _(w(e))}var t,n},t.fromArrayLike=f,t.fromPromise=g,t.subscribeToArray=h,function(e){e[e.Own=0]="Own",e[e.InteropObservable=1]="InteropObservable",e[e.ArrayLike=2]="ArrayLike",e[e.Promise=3]="Promise",e[e.AsyncIterable=4]="AsyncIterable",e[e.Iterable=5]="Iterable",e[e.ReadableStreamLike=6]="ReadableStreamLike"}(T=t.ObservableInputType||(t.ObservableInputType={})),t.getObservableInputType=y,t.isFunction=S,t.readableStreamLikeToAsyncGenerator=w,t.isPromise=k,t.isArrayLike=J,t.isObservable=function(e){return!!e&&(e instanceof c||S(e.lift)&&S(e.subscribe))},t.COMPLETE_NOTIFICATION=b("C",void 0,void 0),t.errorNotification=v,t.nextNotification=E,t.createNotification=b},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js");class o extends r.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(e=1/0,t=1/0,n=s.dateTimestampProvider){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{_closed:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;t||(n.push(e),!r&&n.push(s.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,s=r.slice();for(let t=0;t<s.length&&!e.closed;t+=n?1:2)e.next(s[t]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){const{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,s=(r?1:2)*e;if(e<1/0&&s<n.length&&n.splice(0,n.length-s),!r){const e=t.now();let r=0;for(let t=1;t<n.length&&n[t]<=e;t+=2)r=t;r&&n.splice(0,r+1)}}}t.ReplaySubject=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js");class s{schedulerActionCtor;static now=r.dateTimestampProvider.now;constructor(e,t=s.now){this.schedulerActionCtor=e,this.now=t}now;schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}t.Scheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Subject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");class s extends r.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(e){if(!this._closed){const{observers:t}=this,n=t.length;for(let r=0;r<n;r++)t[r].next(e)}}error(e){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=e;const{observers:t}=this,n=t.length;for(let r=0;r<n;r++)t[r].error(e);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;const{observers:e}=this,t=e.length;for(let n=0;n<t;n++)e[n].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(e){return this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){if(this.hasError||this._closed)return r.Subscription.EMPTY;const{currentObservers:t}=this,n=this._observerCounter++;return t.set(n,e),this.observerSnapshot=void 0,e.add((()=>{t.delete(n),this.observerSnapshot=void 0})),e}_checkFinalizedStatuses(e){const{hasError:t,thrownError:n,_closed:r}=this;t?e.error(n):r&&e.complete()}asObservable(){return new r.Observable((e=>this.subscribe(e)))}}t.Subject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.firstValueFrom=function(e,t){const n="object"==typeof t;return new Promise(((o,i)=>{const a=new r.Subscriber({next:e=>{o(e),a.unsubscribe()},error:i,complete:()=>{n?o(t.defaultValue):i(new s.EmptyError)}});e.subscribe(a)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.lastValueFrom=function(e,t){const n="object"==typeof t;return new Promise(((s,o)=>{let i,a=!1;e.subscribe({next:e=>{i=e,a=!0},error:o,complete:()=>{a?s(i):n?s(t.defaultValue):o(new r.EmptyError)}})}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js");t.bindCallback=function(e,t,n){return(0,r.bindCallbackInternals)(!1,e,t,n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.bindCallbackInternals=function e(t,n,l,u){if(l){if(!(0,r.isScheduler)(l))return function(...r){return(0,o.mapOneOrManyArgs)(l)(e(t,n,u).apply(this,r))};u=l}return u?function(...r){return(0,a.scheduled)(e(t,n).apply(this,r),u)}:function(...e){const r=new i.AsyncSubject;let o=!0;return new s.Observable((s=>{const i=r.subscribe(s);if(o){o=!1;let s=!1,i=!1;n.apply(this,[...e,(...e)=>{if(t){const t=e.shift();if(null!=t)return void r.error(t)}r.next(1<e.length?e:e[0]),i=!0,s&&r.complete()}]),i&&r.complete(),s=!0}return i}))}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js");t.bindNodeCallback=function(e,t,n){return(0,r.bindCallbackInternals)(!0,e,t,n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");function l(e,t=o.identity){return n=>{const{length:s}=e,o=new Array(s);let i=s,a=s;for(let l=0;l<s;l++){const s=(0,r.from)(e[l]);let u=!1;s.subscribe((0,r.operate)({destination:n,next:e=>{o[l]=e,u||(u=!0,a--),a||n.next(t(Array.from(o)))},complete:()=>{--i||n.complete()}}))}}}t.combineLatest=function(e,t){const n=(0,s.arrayOrObject)(e);if(!n)throw new TypeError("sources must be an array or object");const{args:u,keys:m}=n;return 0===u.length?a.EMPTY:new r.Observable(l(u,m?e=>(0,i.createObject)(m,e):t?e=>t(...e):o.identity))},t.combineLatestInit=l},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.concat=function(...e){const t=(0,o.popScheduler)(e);return(0,s.concatAll)()(t?(0,i.scheduled)(e,t):(0,r.from)(e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/connectable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"),i={connector:()=>new r.Subject,resetOnDisconnect:!0};t.connectable=function(e,t=i){let n=null;const{connector:r,resetOnDisconnect:a=!0}=t;let l=r();const u=new s.Observable((e=>l.subscribe(e)));return u.connect=()=>(n&&!n.closed||(n=(0,o.defer)((()=>e)).subscribe(l),a&&n.add((()=>l=r()))),n),u}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.defer=function(e){return new r.Observable((t=>{(0,r.from)(e()).subscribe(t)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js");function i(e){return new r.Observable((t=>{const n=e||s.performanceTimestampProvider,r=n.now();let i=0;const a=()=>{t.closed||(i=o.animationFrameProvider.requestAnimationFrame((s=>{i=0;const o=n.now();t.next({timestamp:e?o:s,elapsed:o-r}),a()})))};return a(),()=>{i&&o.animationFrameProvider.cancelAnimationFrame(i)}}))}t.animationFrames=function(e){return e?i(e):a};const a=i()},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.EMPTY=new r.Observable((e=>e.complete()))},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.forkJoin=function(...e){const t=(0,o.popResultSelector)(e),{args:n,keys:u}=(0,s.argsArgArrayOrObject)(e),m=new r.Observable((e=>{const{length:t}=n;if(!t)return void e.complete();const s=new Array(t);let o=t,i=t;for(let m=0;m<t;m++){let t=!1;(0,r.from)(n[m]).subscribe((0,r.operate)({destination:e,next:e=>{t||(t=!0,i--),s[m]=e},complete:()=>o--,finalize:()=>{o&&t||(0===i?(e.next(u?(0,a.createObject)(u,s):s),e.complete()):e.error(new l.EmptyError))}}))}}));return t?(0,i.mapOneOrManyArgs)(t)(m):m}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),o=["addListener","removeListener"],i=["addEventListener","removeEventListener"],a=["on","off"];function l(e,t,n,r,s){const[l,d]=c(p=n)?i:u(p)?o:m(p)?a:[];var p;if(!l||!d)throw new TypeError("Invalid event target");n[l](r,e,s),t.add((()=>n[d](r,e,s)))}function u(e){return(0,r.isFunction)(e.addListener)&&(0,r.isFunction)(e.removeListener)}function m(e){return(0,r.isFunction)(e.on)&&(0,r.isFunction)(e.off)}function c(e){return(0,r.isFunction)(e.addEventListener)&&(0,r.isFunction)(e.removeEventListener)}t.fromEvent=function e(t,n,o,i){if((0,r.isFunction)(o)&&(i=o,o=void 0),i)return(0,s.mapOneOrManyArgs)(i)(e(t,n,o));const a=u(t)||m(t)||c(t);if(!a&&!(0,r.isArrayLike)(t))throw new TypeError("Invalid event target");return new r.Observable((e=>{const r=(...t)=>e.next(1<t.length?t:t[0]);if(a)l(r,e,t,n,o);else for(let s=0;s<t.length&&!e.closed;s++){const i=t[s];l(r,e,i,n,o)}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js");t.fromEventPattern=function e(t,n,o){return o?(0,s.mapOneOrManyArgs)(o)(e(t,n)):new r.Observable((e=>{const s=(...t)=>e.next(1===t.length?t[0]:t),o=t(s);return(0,r.isFunction)(n)?()=>n(s,o):void 0}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.fromSubscribable=function(e){return new r.Observable((t=>e.subscribe(t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/generate.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js");t.generate=function(e,t,n,a,l){let u,m;function*c(){for(let e=m;!t||t(e);e=n(e))yield u(e)}return 1===arguments.length?({initialState:m,condition:t,iterate:n,resultSelector:u=r.identity,scheduler:l}=e):(m=e,!a||(0,s.isScheduler)(a)?(u=r.identity,l=a):u=a),(0,o.defer)(l?()=>(0,i.scheduleIterable)(c(),l):c)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/iif.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js");t.iif=function(e,t,n){return(0,r.defer)((()=>e()?t:n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.interval=function(e=0,t=r.asyncScheduler){return e<0&&(e=0),(0,s.timer)(e,e,t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/merge.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.merge=function(...e){const t=(0,i.popScheduler)(e),n=(0,i.popNumber)(e,1/0),l=e;return l.length?1===l.length?(0,r.from)(l[0]):(0,s.mergeAll)(n)(t?(0,a.scheduled)(l,t):(0,r.from)(l)):o.EMPTY}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/never.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NEVER=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.NEVER=new r.Observable(s.noop)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/of.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.of=function(...e){return(0,r.fromArrayLike)(e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.onErrorResumeNext=function(...e){const t=(0,s.argsOrArgArray)(e);return new r.Observable((e=>{let n=0;const s=()=>{if(n<t.length){let i;try{i=(0,r.from)(t[n++])}catch(e){return void s()}const a=(0,r.operate)({destination:e,error:o.noop,complete:o.noop});i.subscribe(a),a.add(s)}else e.complete()};s()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/partition.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/not.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.partition=function(e,t,n){return[(0,s.filter)(t,n)((0,o.from)(e)),(0,s.filter)((0,r.not)(t,n))((0,o.from)(e))]}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js");function o(e){return t=>{let n=[];for(let s=0;n&&!t.closed&&s<e.length;s++)n.push((0,r.from)(e[s]).subscribe((0,r.operate)({destination:t,next:e=>{if(n){for(let e=0;e<n.length;e++)e!==s&&n[e].unsubscribe();n=null}t.next(e)}})))}}t.race=function(...e){return 1===(e=(0,s.argsOrArgArray)(e)).length?(0,r.from)(e[0]):new r.Observable(o(e))},t.raceInit=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/range.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.range=function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return s.EMPTY;const i=t+e;return new r.Observable(n?t=>{let r=e;const s=()=>{r<i?(t.next(r++),t.closed||(0,o.executeSchedule)(t,n,s)):t.complete()};(0,o.executeSchedule)(t,n,s)}:t=>{let n=e;for(;n<i&&!t.closed;)t.next(n++);t.complete()})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/throwError.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.throwError=function(e){return new r.Observable((t=>{t.error(e())}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.timer=function(e=0,t,n=s.asyncScheduler){let l=-1;return null!=t&&((0,o.isScheduler)(t)?n=t:l=t),new r.Observable((t=>{let r=(0,i.isValidDate)(e)?+e-n.now():e;r<0&&(r=0);let s=0;return(0,a.executeSchedule)(t,n,(()=>{t.next(s++),0<=l?(0,a.executeSchedule)(t,n,(()=>{t.next(s++)}),l,!0):t.complete()}),r)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/using.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");t.using=function(e,t){return new r.Observable((n=>{const o=e(),i=t(o);return(i?(0,r.from)(i):s.EMPTY).subscribe(n),()=>{o&&o.unsubscribe()}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js");t.zip=function(...e){const t=(0,i.popResultSelector)(e),n=(0,s.argsOrArgArray)(e);return n.length?new r.Observable((e=>{let s=n.map((()=>[])),o=n.map((()=>!1));e.add((()=>{s=o=null}));for(let i=0;!e.closed&&i<n.length;i++)(0,r.from)(n[i]).subscribe((0,r.operate)({destination:e,next:n=>{if(s[i].push(n),s.every((e=>e.length))){const n=s.map((e=>e.shift()));e.next(t?t(...n):n),s.some(((e,t)=>!e.length&&o[t]))&&e.complete()}},complete:()=>{o[i]=!0,!s[i].length&&e.complete()}}));return()=>{s=o=null}})):o.EMPTY}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.audit=function(e){return t=>new r.Observable((n=>{let s=!1,o=null,i=null,a=!1;const l=()=>{if(i?.unsubscribe(),i=null,s){s=!1;const e=o;o=null,n.next(e)}a&&n.complete()},u=()=>{i=null,a&&n.complete()};t.subscribe((0,r.operate)({destination:n,next:t=>{s=!0,o=t,i||(0,r.from)(e(t)).subscribe(i=(0,r.operate)({destination:n,next:l,complete:u}))},complete:()=>{a=!0,(!s||!i||i.closed)&&n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.auditTime=function(e,t=r.asyncScheduler){return(0,s.audit)((()=>(0,o.timer)(e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/buffer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.buffer=function(e){return t=>new r.Observable((n=>{let o=[];return(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{const e=o;o=[],n.next(e)},complete:s.noop})),t.subscribe((0,r.operate)({destination:n,next:e=>o.push(e),complete:()=>{n.next(o),n.complete()}})),()=>{o=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.bufferCount=function(e,t=null){return t=t??e,n=>new r.Observable((o=>{let i=[],a=0;n.subscribe((0,r.operate)({destination:o,next:n=>{let r=null;a++%t==0&&i.push([]);for(const t of i)t.push(n),e<=t.length&&(r=r??[],r.push(t));if(r)for(const e of r)(0,s.arrRemove)(i,e),o.next(e)},complete:()=>{for(const e of i)o.next(e);o.complete()},finalize:()=>{i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.bufferTime=function(e,...t){const n=(0,i.popScheduler)(t)??o.asyncScheduler,l=t[0]??null,u=t[1]||1/0;return t=>new r.Observable((o=>{let i=[],m=!1;const c=e=>{const{buffer:t,subs:n}=e;n.unsubscribe(),(0,s.arrRemove)(i,e),o.next(t),m&&d()},d=()=>{if(i){const t=new r.Subscription;o.add(t);const s={buffer:[],subs:t};i.push(s),(0,a.executeSchedule)(t,n,(()=>c(s)),e)}};null!==l&&l>=0?(0,a.executeSchedule)(o,n,d,l,!0):m=!0,d();const p=(0,r.operate)({destination:o,next:e=>{const t=i.slice();for(const n of t){const{buffer:t}=n;t.push(e),u<=t.length&&c(n)}},complete:()=>{for(;i?.length;)o.next(i.shift().buffer);p?.unsubscribe(),o.complete(),o.unsubscribe()},finalize:()=>i=null});t.subscribe(p)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.bufferToggle=function(e,t){return n=>new r.Observable((i=>{const a=[];(0,r.from)(e).subscribe((0,r.operate)({destination:i,next:e=>{const n=[];a.push(n);const l=new r.Subscription;l.add((0,r.from)(t(e)).subscribe((0,r.operate)({destination:i,next:()=>{(0,o.arrRemove)(a,n),i.next(n),l.unsubscribe()},complete:s.noop})))},complete:s.noop})),n.subscribe((0,r.operate)({destination:i,next:e=>{for(const t of a)t.push(e)},complete:()=>{for(;a.length>0;)i.next(a.shift());i.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.bufferWhen=function(e){return t=>new r.Observable((n=>{let o=null,i=null;const a=()=>{i?.unsubscribe();const t=o;o=[],t&&n.next(t),(0,r.from)(e()).subscribe(i=(0,r.operate)({destination:n,next:a,complete:s.noop}))};a(),t.subscribe((0,r.operate)({destination:n,next:e=>o?.push(e),complete:()=>{o&&n.next(o),n.complete()},finalize:()=>o=i=null}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/catchError.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.catchError=function e(t){return n=>new r.Observable((s=>{let o,i=null,a=!1;i=n.subscribe((0,r.operate)({destination:s,error:l=>{o=(0,r.from)(t(l,e(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(s)):a=!0}})),a&&(i.unsubscribe(),i=null,o.subscribe(s))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js");t.combineLatestAll=function(e){return(0,s.joinAllInternals)(r.combineLatest,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.combineLatestWith=function(...e){return t=>new s.Observable((n=>(0,r.combineLatestInit)([t,...e])(n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");t.concatAll=function(){return(0,r.mergeAll)(1)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");t.concatMap=function(e){return(0,r.mergeMap)(e,1)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js");t.concatMapTo=function(e){return(0,r.concatMap)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js");t.concatWith=function(...e){return t=>new r.Observable((n=>{(0,s.concatAll)()((0,r.from)([t,...e])).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/connect.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"),i={connector:()=>new s.Subject};t.connect=function(e,t=i){const{connector:n}=t;return t=>new r.Observable((s=>{const i=n();(0,r.from)(e((0,o.fromSubscribable)(i))).subscribe(s),s.add(t.subscribe(i))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/count.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js");t.count=function(e){return(0,r.reduce)(((t,n,r)=>!e||e(n,r)?t+1:t),0)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounce.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.debounce=function(e){return t=>new r.Observable((n=>{let o=!1,i=null,a=null;const l=()=>{if(a?.unsubscribe(),a=null,o){o=!1;const e=i;i=null,n.next(e)}};t.subscribe((0,r.operate)({destination:n,next:t=>{a?.unsubscribe(),o=!0,i=t,a=(0,r.operate)({destination:n,next:l,complete:s.noop}),(0,r.from)(e(t)).subscribe(a)},complete:()=>{l(),n.complete()},finalize:()=>{i=a=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.debounceTime=function(e,t=r.asyncScheduler){return n=>new s.Observable((r=>{let i,a;n.subscribe((0,s.operate)({destination:r,next:n=>{i=n,a?.unsubscribe(),a=(0,o.executeSchedule)(r,t,(()=>{a=void 0;const e=i;i=null,r.next(e)}),e)},complete:()=>{a&&r.next(i),r.complete()},finalize:()=>{i=a=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.defaultIfEmpty=function(e){return t=>new r.Observable((n=>{let s=!1;t.subscribe((0,r.operate)({destination:n,next:e=>{s=!0,n.next(e)},complete:()=>{s||n.next(e),n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delay.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.delay=function(e,t=r.asyncScheduler){const n=(0,o.timer)(e,t);return(0,s.delayWhen)((()=>n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.delayWhen=function e(t,n){return n?i=>(0,r.concat)((0,a.rx)(n,(0,s.take)(1),(0,o.ignoreElements)()),(0,a.rx)(i,e(t))):(0,i.mergeMap)(((e,n)=>(0,a.rx)(t(e,n),(0,s.take)(1),(0,l.map)((()=>e)))))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Notification.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.dematerialize=function(){return e=>new s.Observable((t=>{e.subscribe((0,s.operate)({destination:t,next:e=>(0,r.observeNotification)(e,t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinct.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.distinct=function(e,t){return n=>new r.Observable((o=>{const i=new Set;n.subscribe((0,r.operate)({destination:o,next:t=>{const n=e?e(t):t;i.has(n)||(i.add(n),o.next(t))}})),t&&(0,r.from)(t).subscribe((0,r.operate)({destination:o,next:()=>i.clear(),complete:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function o(e,t){return e===t}t.distinctUntilChanged=function(e,t=r.identity){return e=e??o,n=>new s.Observable((r=>{let o,i=!0;n.subscribe((0,s.operate)({destination:r,next:n=>{const s=t(n);!i&&e(o,s)||(i=!1,o=s,r.next(n))}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js");t.distinctUntilKeyChanged=function(e,t){return(0,r.distinctUntilChanged)(((n,r)=>t?t(n[e],r[e]):n[e]===r[e]))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;const n=arguments.length>=2;return o=>new s.Observable((i=>{let a=0;const l=(0,s.operate)({destination:i,next:t=>{a++===e&&(l.unsubscribe(),i.next(t),i.complete())},complete:()=>{n?(i.next(t),i.complete()):i.error(new r.ArgumentOutOfRangeError)}});o.subscribe(l)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.endWith=function(...e){return t=>new r.Observable((n=>{t.subscribe((0,r.operate)({destination:n,complete:()=>{(0,r.subscribeToArray)(e,n)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/every.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.every=function(e,t){return n=>new r.Observable((s=>{let o=0;n.subscribe((0,r.operate)({destination:s,next:r=>{e.call(t,r,o++,n)||(s.next(!1),s.complete())},complete:()=>{s.next(!0),s.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.exhaustAll=function(){return(0,r.exhaustMap)(s.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.exhaustMap=function(e){return t=>new r.Observable((n=>{let s=0,o=null,i=!1;t.subscribe((0,r.operate)({destination:n,next:t=>{o||(o=(0,r.operate)({destination:n,complete:()=>{o=null,i&&n.complete()}}),(0,r.from)(e(t,s++)).subscribe(o))},complete:()=>{i=!0,!o&&n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/expand.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.expand=function(e,t=1/0,n){return t=(t||0)<1?1/0:t,o=>new r.Observable((r=>(0,s.mergeInternals)(o,r,e,t,void 0,!0,n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.filter=function(e,t){return n=>new r.Observable((s=>{let o=0;n.subscribe((0,r.operate)({destination:s,next:n=>e.call(t,n,o++)&&s.next(n)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/finalize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.finalize=function(e){return t=>new r.Observable((n=>{t.subscribe(n),n.add(e)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function s(e,t,n,s){const o="index"===t;let i=0;n.subscribe((0,r.operate)({destination:s,next:t=>{const r=i++;e(t,r,n)&&(s.next(o?r:t),s.complete())},complete:()=>{s.next(o?-1:void 0),s.complete()}}))}t.find=function(e){return t=>new r.Observable((n=>s(e,"value",t,n)))},t.createFind=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js");t.findIndex=function(e){return t=>new r.Observable((n=>(0,s.createFind)(e,"index",t,n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/first.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.first=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((i=>{let a=0;const l=(0,r.operate)({destination:i,next:t=>{(!e||e(t,a++,o))&&(l.unsubscribe(),i.next(t),i.complete())},complete:()=>{n?(i.next(t),i.complete()):i.error(new s.EmptyError)}});o.subscribe(l)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.groupBy=function(e,t,n,o){return i=>new r.Observable((a=>{let l;t&&"function"!=typeof t?({duration:n,element:l,connector:o}=t):l=t;const u=new Map,m=e=>{u.forEach(e),e(a)},c=e=>m((t=>t.error(e))),d=(0,r.operate)({destination:a,next:t=>{try{const i=e(t);let m=u.get(i);if(!m){u.set(i,m=o?o():new s.Subject);const e=function(e,t){const n=new r.Observable((e=>t.subscribe(e)));return n.key=e,n}(i,m);if(a.next(e),n){const t=(0,r.operate)({destination:m,next:()=>{m.complete(),t?.unsubscribe()},finalize:()=>u.delete(i)});d.add((0,r.from)(n(e)).subscribe(t))}}m.next(l?l(t):t)}catch(e){c(e)}},error:c,complete:()=>m((e=>e.complete())),finalize:()=>u.clear()});i.subscribe(d)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.ignoreElements=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.isEmpty=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:()=>{t.next(!1),t.complete()},complete:()=>{t.next(!0),t.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js");t.joinAllInternals=function(e,t){return(0,o.pipe)((0,a.toArray)(),(0,i.mergeMap)((t=>e(t))),t?(0,s.mapOneOrManyArgs)(t):r.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/last.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.last=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((i=>{let a,l=0,u=!1;o.subscribe((0,r.operate)({destination:i,next(t){e&&!e(t,l++,o)||(u=!0,a=t)},complete(){u?(i.next(a),i.complete()):n?(i.next(t),i.complete()):i.error(new s.EmptyError)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.map=function(e){return t=>new r.Observable((n=>{let s=0;t.subscribe((0,r.operate)({destination:n,next:t=>{n.next(e(t,s++))}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.mapTo=function(e){return(0,r.map)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/materialize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.materialize=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:e=>{t.next((0,r.nextNotification)(e))},error:e=>{t.next((0,r.errorNotification)(e)),t.complete()},complete:()=>{t.next(r.COMPLETE_NOTIFICATION),t.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/max.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.max=function(e){return(0,r.reduce)((0,s.isFunction)(e)?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.mergeAll=function(e=1/0){return(0,r.mergeMap)(s.identity,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.mergeInternals=function(e,t,n,o,i,a,l,u){const m=[];let c=0,d=0,p=!1;const f=()=>{!p||m.length||c||t.complete()},g=e=>c<o?_(e):m.push(e),_=e=>{a&&t.next(e),c++;let u=!1;(0,r.from)(n(e,d++)).subscribe((0,r.operate)({destination:t,next:e=>{i?.(e),a?g(e):t.next(e)},complete:()=>{u=!0},finalize:()=>{if(u)try{for(c--;m.length&&c<o;){const e=m.shift();l?(0,s.executeSchedule)(t,l,(()=>_(e))):_(e)}f()}catch(e){t.error(e)}}}))};return e.subscribe((0,r.operate)({destination:t,next:g,complete:()=>{p=!0,f()}})),()=>{u?.()}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.mergeMap=function(e,t=1/0){return n=>new r.Observable((r=>(0,s.mergeInternals)(n,r,e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");t.mergeMapTo=function(e,t){return(0,r.mergeMap)((()=>e),t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.mergeScan=function(e,t,n=1/0){return o=>new r.Observable((r=>{let i=t;return(0,s.mergeInternals)(o,r,((t,n)=>e(i,t,n)),n,(e=>{i=e}),!1,void 0,(()=>i=null))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");t.mergeWith=function(...e){return t=>new r.Observable((n=>{(0,s.mergeAll)()((0,r.from)([t,...e])).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/min.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.min=function(e){return(0,r.reduce)((0,s.isFunction)(e)?(t,n)=>e(t,n)<0?t:n:(e,t)=>e<t?e:t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.observeOn=function(e,t=0){return n=>new s.Observable((o=>{n.subscribe((0,s.operate)({destination:o,next:n=>(0,r.executeSchedule)(o,e,(()=>o.next(n)),t),error:n=>(0,r.executeSchedule)(o,e,(()=>o.error(n)),t),complete:()=>(0,r.executeSchedule)(o,e,(()=>o.complete()),t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNextWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js");t.onErrorResumeNextWith=function(...e){const t=(0,r.argsOrArgArray)(e);return e=>(0,s.onErrorResumeNext)(e,...t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.pairwise=function(){return e=>new r.Observable((t=>{let n,s=!1;e.subscribe((0,r.operate)({destination:t,next:e=>{const r=n;n=e,s&&t.next([r,e]),s=!0}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.raceWith=function(...e){return e.length?t=>new s.Observable((n=>{(0,r.raceInit)([t,...e])(n)})):o.identity}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.reduce=function(e,t){const n=arguments.length>=2;return o=>new s.Observable((s=>(0,r.scanInternals)(e,t,n,!1,!0,o,s)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeat.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.repeat=function(e){let t,n=1/0;return null!=e&&("object"==typeof e?({count:n=1/0,delay:t}=e):n=e),n<=0?()=>s.EMPTY:e=>new r.Observable((s=>{let i,a=0;const l=()=>{if(i?.unsubscribe(),i=null,null!=t){const e="number"==typeof t?(0,o.timer)(t):(0,r.from)(t(a)),n=(0,r.operate)({destination:s,next:()=>{n.unsubscribe(),u()}});e.subscribe(n)}else u()},u=()=>{let t=!1;i=e.subscribe((0,r.operate)({destination:s,complete:()=>{++a<n?i?l():t=!0:s.complete()}})),t&&l()};u()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.repeatWhen=function(e){return t=>new r.Observable((n=>{let o,i,a=!1,l=!1,u=!1;const m=()=>u&&l&&(n.complete(),!0),c=()=>{u=!1,o=t.subscribe((0,r.operate)({destination:n,complete:()=>{u=!0,!m()&&(i||(i=new s.Subject,(0,r.from)(e(i)).subscribe((0,r.operate)({destination:n,next:()=>{o?c():a=!0},complete:()=>{l=!0,m()}}))),i).next()}})),a&&(o.unsubscribe(),o=null,a=!1,c())};c()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retry.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.retry=function(e=1/0){let t;t=e&&"object"==typeof e?e:{count:e};const{count:n=1/0,delay:i,resetOnSuccess:a=!1}=t;return n<=0?s.identity:e=>new r.Observable((t=>{let s,l=0;const u=()=>{let m=!1;s=e.subscribe((0,r.operate)({destination:t,next:e=>{a&&(l=0),t.next(e)},error:e=>{if(l++<n){const n=()=>{s?(s.unsubscribe(),s=null,u()):m=!0};if(null!=i){const s="number"==typeof i?(0,o.timer)(i):(0,r.from)(i(e,l)),a=(0,r.operate)({destination:t,next:()=>{a.unsubscribe(),n()},complete:()=>{t.complete()}});s.subscribe(a)}else n()}else t.error(e)}})),m&&(s.unsubscribe(),s=null,u())};u()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.retryWhen=function(e){return t=>new r.Observable((n=>{let o,i,a=!1;const l=()=>{o=t.subscribe((0,r.operate)({destination:n,error:t=>{i||(i=new s.Subject,(0,r.from)(e(i)).subscribe((0,r.operate)({destination:n,next:()=>o?l():a=!0}))),i&&i.next(t)}})),a&&(o.unsubscribe(),o=null,a=!1,l())};l()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.sample=function(e){return t=>new r.Observable((n=>{let o=!1,i=null;t.subscribe((0,r.operate)({destination:n,next:e=>{o=!0,i=e}})),(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{if(o){o=!1;const e=i;i=null,n.next(e)}},complete:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js");t.sampleTime=function(e,t=r.asyncScheduler){return(0,s.sample)((0,o.interval)(e,t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js");t.scan=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((r=>(0,s.scanInternals)(e,t,n,!0,!1,o,r)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.scanInternals=function(e,t,n,s,o,i,a){let l=n,u=t,m=0;i.subscribe((0,r.operate)({destination:a,next:t=>{const n=m++;u=l?e(u,t,n):(l=!0,t),s&&a.next(u)},complete:o?()=>{l&&a.next(u),a.complete()}:void 0}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.sequenceEqual=function(e,t=(e,t)=>e===t){return n=>new r.Observable((s=>{const o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=e=>{s.next(e),s.complete()},l=(e,n)=>{const o=(0,r.operate)({destination:s,next:r=>{const{buffer:s,complete:o}=n;0===s.length?o?a(!1):e.buffer.push(r):!t(r,s.shift())&&a(!1)},complete:()=>{e.complete=!0;const{complete:t,buffer:r}=n;t&&a(0===r.length),o?.unsubscribe()}});return o};n.subscribe(l(o,i)),(0,r.from)(e).subscribe(l(i,o))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");function o(e,t,...n){if(!0===t)return void e();if(!1===t)return;const s=new r.Subscriber({next:()=>{s.unsubscribe(),e()}});return(0,r.from)(t(...n)).subscribe(s)}t.share=function(e={}){const{connector:t=()=>new s.Subject,resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:a=!0}=e;return e=>{let s,l,u,m=0,c=!1,d=!1;const p=()=>{l?.unsubscribe(),l=void 0},f=()=>{p(),s=u=void 0,c=d=!1},g=()=>{const e=s;f(),e?.unsubscribe()};return new r.Observable((_=>{m++,d||c||p();const h=u=u??t();_.add((()=>{m--,0!==m||d||c||(l=o(g,a))})),h.subscribe(_),!s&&m>0&&(s=new r.Subscriber({next:e=>h.next(e),error:e=>{d=!0,p(),l=o(f,n,e),h.error(e)},complete:()=>{c=!0,p(),l=o(f,i),h.complete()}}),(0,r.from)(e).subscribe(s))}))}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js");t.shareReplay=function(e,t,n){let o,i=!1;return e&&"object"==typeof e?({bufferSize:o=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e):o=e??1/0,(0,s.share)({connector:()=>new r.ReplaySubject(o,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/single.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js");t.single=function(e){return t=>new r.Observable((n=>{let a,l=!1,u=!1,m=0;t.subscribe((0,r.operate)({destination:n,next:r=>{u=!0,e&&!e(r,m++,t)||(l&&n.error(new o.SequenceError("Too many matching values")),l=!0,a=r)},complete:()=>{l?(n.next(a),n.complete()):n.error(u?new i.NotFoundError("No matching values"):new s.EmptyError)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skip.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js");t.skip=function(e){return(0,r.filter)(((t,n)=>e<=n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.skipLast=function(e){return e<=0?r.identity:t=>new s.Observable((n=>{let r=new Array(e),o=0;return t.subscribe((0,s.operate)({destination:n,next:t=>{const s=o++;if(s<e)r[s]=t;else{const o=s%e,i=r[o];r[o]=t,n.next(i)}}})),()=>{r=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.skipUntil=function(e){return t=>new r.Observable((n=>{let o=!1;const i=(0,r.operate)({destination:n,next:()=>{i?.unsubscribe(),o=!0},complete:s.noop});(0,r.from)(e).subscribe(i),t.subscribe((0,r.operate)({destination:n,next:e=>o&&n.next(e)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.skipWhile=function(e){return t=>new r.Observable((n=>{let s=!1,o=0;t.subscribe((0,r.operate)({destination:n,next:t=>(s||(s=!e(t,o++)))&&n.next(t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/startWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.startWith=function(...e){return t=>new r.Observable((n=>{(0,r.subscribeToArray)(e,(0,r.operate)({destination:n,complete:()=>t.subscribe(n)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.subscribeOn=function(e,t=0){return n=>new r.Observable((r=>{r.add(e.schedule((()=>n.subscribe(r)),t))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.switchAll=function(){return(0,r.switchMap)(s.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.switchMap=function(e){return t=>new r.Observable((n=>{let s=null,o=0,i=!1;const a=()=>i&&!s&&n.complete();t.subscribe((0,r.operate)({destination:n,next:t=>{s?.unsubscribe();const i=o++;(0,r.from)(e(t,i)).subscribe(s=(0,r.operate)({destination:n,complete:()=>{s=null,a()}}))},complete:()=>{i=!0,a()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js");t.switchMapTo=function(e){return(0,r.switchMap)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.switchScan=function(e,t){return n=>new s.Observable((o=>{let i=t;return(0,r.switchMap)(((t,n)=>e(i,t,n)))(n).subscribe((0,s.operate)({destination:o,next:e=>{i=e,o.next(e)}})),()=>{i=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.take=function(e){return e<=0?()=>r.EMPTY:t=>new s.Observable((n=>{let r=0;const o=(0,s.operate)({destination:n,next:t=>{++r<e?n.next(t):(o.unsubscribe(),n.next(t),n.complete())}});t.subscribe(o)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.takeLast=function(e){return e<=0?()=>r.EMPTY:t=>new s.Observable((n=>{let r=new Array(e),o=0;t.subscribe((0,s.operate)({destination:n,next:t=>{r[o++%e]=t},complete:()=>{const t=e<=o?o:0,s=Math.min(e,o);for(let o=0;o<s;o++)n.next(r[(t+o)%e]);n.complete()},finalize:()=>{r=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.takeUntil=function(e){return t=>new r.Observable((n=>{(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>n.complete(),complete:s.noop})),!n.closed&&t.subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.takeWhile=function(e,t=!1){return n=>new r.Observable((s=>{let o=0;const i=(0,r.operate)({destination:s,next:n=>{e(n,o++)?s.next(n):(i.unsubscribe(),t&&s.next(n),s.complete())}});n.subscribe(i)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/tap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.tap=function(e){const t=(0,r.isFunction)(e)?{next:e}:e;return t?e=>new r.Observable((n=>{t.subscribe?.();let s=!0;e.subscribe((0,r.operate)({destination:n,next:e=>{t.next?.(e),n.next(e)},error:e=>{s=!1,t.error?.(e),n.error(e)},complete:()=>{s=!1,t.complete?.(),n.complete()},finalize:()=>{s&&t.unsubscribe?.(),t.finalize?.()}}))})):s.identity}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.throttle=function(e,t){return n=>new r.Observable((s=>{const{leading:o=!0,trailing:i=!1}=t??{};let a=!1,l=null,u=null,m=!1;const c=()=>{u?.unsubscribe(),u=null,i&&(f(),m&&s.complete())},d=()=>{u=null,m&&s.complete()},p=t=>u=(0,r.from)(e(t)).subscribe((0,r.operate)({destination:s,next:c,complete:d})),f=()=>{if(a){a=!1;const e=l;l=null,s.next(e),!m&&p(e)}};n.subscribe((0,r.operate)({destination:s,next:e=>{a=!0,l=e,(!u||u.closed)&&(o?f():p(e))},complete:()=>{m=!0,(!(i&&a&&u)||u.closed)&&s.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.throttleTime=function(e,t=r.asyncScheduler,n){const i=(0,o.timer)(e,t);return(0,s.throttle)((()=>i),n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function o(){return new r.EmptyError}t.throwIfEmpty=function(e=o){return t=>new s.Observable((n=>{let r=!1;t.subscribe((0,s.operate)({destination:n,next:e=>{r=!0,n.next(e)},complete:()=>r?n.complete():n.error(e())}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.timeInterval=function(e=r.asyncScheduler){return t=>new s.Observable((n=>{let r=e.now();t.subscribe((0,s.operate)({destination:n,next:t=>{const s=e.now(),i=s-r;r=s,n.next(new o(t,i))}}))}))};class o{value;interval;constructor(e,t){this.value=e,this.interval=t}}t.TimeInterval=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");class a extends Error{info;constructor(e=null){super("Timeout has occurred"),this.info=e,this.name="TimeoutError"}}function l(e){throw new a(e)}t.TimeoutError=a,t.timeout=function(e,t){const{first:n,each:a,with:u=l,scheduler:m=t??r.asyncScheduler,meta:c=null}=(0,s.isValidDate)(e)?{first:e}:"number"==typeof e?{each:e}:e;if(null==n&&null==a)throw new TypeError("No timeout provided.");return e=>new o.Observable((t=>{let r,s,l=null,d=0;const p=e=>{s=(0,i.executeSchedule)(t,m,(()=>{try{r.unsubscribe(),(0,o.from)(u({meta:c,lastValue:l,seen:d})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe((0,o.operate)({destination:t,next:e=>{s?.unsubscribe(),d++,t.next(l=e),a>0&&p(a)},finalize:()=>{s?.unsubscribe(),l=null}})),!d&&p(null!=n?"number"==typeof n?n:+n-m.now():a)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");t.timeoutWith=function(e,t,n){let i,a,l;if(n=n??r.asyncScheduler,(0,s.isValidDate)(e)?i=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(l=()=>t,null==i&&null==a)throw new TypeError("No timeout provided.");return(0,o.timeout)({first:i,each:a,scheduler:n,with:l})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.timestamp=function(e=r.dateTimestampProvider){return(0,s.map)((t=>({value:t,timestamp:e.now()})))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=(e,t)=>(e.push(t),e);t.toArray=function(){return e=>new s.Observable((t=>{(0,r.reduce)(o,[])(e).subscribe(t)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/window.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.window=function(e){return t=>new r.Observable((n=>{let i=new s.Subject;n.next(i.asObservable());const a=e=>{i.error(e),n.error(e)};return t.subscribe((0,r.operate)({destination:n,next:e=>i?.next(e),complete:()=>{i.complete(),n.complete()},error:a})),(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{i.complete(),n.next(i=new s.Subject)},complete:o.noop,error:a})),()=>{i?.unsubscribe(),i=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.windowCount=function(e,t=0){const n=t>0?t:e;return t=>new r.Observable((o=>{let i=[new s.Subject],a=[],l=0;o.next(i[0].asObservable()),t.subscribe((0,r.operate)({destination:o,next:t=>{for(const e of i)e.next(t);const r=l-e+1;if(r>=0&&r%n==0&&i.shift().complete(),++l%n==0){const e=new s.Subject;i.push(e),o.next(e.asObservable())}},error:e=>{for(;i.length>0;)i.shift().error(e);o.error(e)},complete:()=>{for(;i.length>0;)i.shift().complete();o.complete()},finalize:()=>{a=null,i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.windowTime=function(e,...t){const n=(0,a.popScheduler)(t)??s.asyncScheduler,u=t[0]??null,m=t[1]||1/0;return t=>new o.Observable((s=>{let a=[],c=!1;const d=e=>{const{window:t,subs:n}=e;t.complete(),n.unsubscribe(),(0,i.arrRemove)(a,e),c&&p()},p=()=>{if(a){const t=new o.Subscription;s.add(t);const i=new r.Subject,u={window:i,subs:t,seen:0};a.push(u),s.next(i.asObservable()),(0,l.executeSchedule)(t,n,(()=>d(u)),e)}};null!==u&&u>=0?(0,l.executeSchedule)(s,n,p,u,!0):c=!0,p();const f=e=>a.slice().forEach(e),g=e=>{f((({window:t})=>e(t))),e(s),s.unsubscribe()};return t.subscribe((0,o.operate)({destination:s,next:e=>{f((t=>{t.window.next(e),m<=++t.seen&&d(t)}))},error:e=>g((t=>t.error(e))),complete:()=>g((e=>e.complete()))})),()=>{a=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.windowToggle=function(e,t){return n=>new r.Observable((a=>{const l=[],u=e=>{for(;0<l.length;)l.shift().error(e);a.error(e)};(0,r.from)(e).subscribe((0,r.operate)({destination:a,next:e=>{const n=new s.Subject;l.push(n);const m=new r.Subscription;let c;try{c=(0,r.from)(t(e))}catch(e){return void u(e)}a.next(n),m.add(c.subscribe((0,r.operate)({destination:a,next:()=>{(0,i.arrRemove)(l,n),n.complete(),m.unsubscribe()},error:u,complete:o.noop})))},complete:o.noop})),n.subscribe((0,r.operate)({destination:a,next:e=>{const t=l.slice();for(const n of t)n.next(e)},error:u,complete:()=>{for(;0<l.length;)l.shift().complete();a.complete()},finalize:()=>{for(;0<l.length;)l.shift().unsubscribe()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.windowWhen=function(e){return t=>new r.Observable((n=>{let i,a;const l=e=>{i.error(e),n.error(e)},u=()=>{let t;a?.unsubscribe(),i?.complete(),i=new s.Subject,n.next(i.asObservable());try{t=(0,r.from)(e())}catch(e){return void l(e)}t.subscribe(a=(0,r.operate)({destination:n,next:u,error:l,complete:o.noop}))};u(),t.subscribe((0,r.operate)({destination:n,next:e=>i.next(e),error:l,complete:()=>{i.complete(),n.complete()},finalize:()=>{a?.unsubscribe(),i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js");t.withLatestFrom=function(...e){const t=(0,i.popResultSelector)(e);return n=>new r.Observable((i=>{const a=e.length,l=new Array(a);let u=e.map((()=>!1)),m=!1;for(let t=0;t<a;t++)(0,r.from)(e[t]).subscribe((0,r.operate)({destination:i,next:e=>{l[t]=e,m||u[t]||(u[t]=!0,(m=u.every(s.identity))&&(u=null))},complete:o.noop}));n.subscribe((0,r.operate)({destination:i,next:e=>{if(m){const n=[e,...l];i.next(t?t(...n):n)}}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js");t.zipAll=function(e){return(0,s.joinAllInternals)(r.zip,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js");t.zipWith=function(...e){return t=>new r.Observable((n=>{(0,s.zip)(t,...e).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleArray=function(e,t){return new r.Observable((n=>{let r=0;const o=()=>{r===e.length?n.complete():(n.next(e[r++]),(0,s.executeSchedule)(n,t,o))};return(0,s.executeSchedule)(n,t,o)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable((n=>{(0,s.executeSchedule)(n,t,(()=>{const r=e[Symbol.asyncIterator]();(0,s.executeSchedule)(n,t,(()=>{r.next().then((e=>{e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleIterable=function(e,t){return new r.Observable((n=>{let i;return(0,o.executeSchedule)(n,t,(()=>{i=e[s.iterator](),(0,o.executeSchedule)(n,t,(()=>{let e,t;try{({value:e,done:t}=i.next())}catch(e){return void n.error(e)}t?n.complete():n.next(e)}),0,!0)})),()=>(0,r.isFunction)(i?.return)&&i.return()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");t.scheduleObservable=function(e,t){return(0,r.from)(e).pipe((0,o.subscribeOn)(t),(0,s.observeOn)(t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");t.schedulePromise=function(e,t){return(0,r.from)(e).pipe((0,o.subscribeOn)(t),(0,s.observeOn)(t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js");t.scheduleReadableStreamLike=function(e,t){return(0,s.scheduleAsyncIterable)((0,r.readableStreamLikeToAsyncGenerator)(e),t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),u=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js");t.scheduled=function(e,t){switch((0,l.getObservableInputType)(e)){case l.ObservableInputType.Own:case l.ObservableInputType.InteropObservable:return(0,r.scheduleObservable)(e,t);case l.ObservableInputType.Promise:return(0,s.schedulePromise)(e,t);case l.ObservableInputType.ArrayLike:return(0,o.scheduleArray)(e,t);case l.ObservableInputType.Iterable:return(0,i.scheduleIterable)(e,t);case l.ObservableInputType.AsyncIterable:return(0,a.scheduleAsyncIterable)(e,t);case l.ObservableInputType.ReadableStreamLike:return(0,u.scheduleReadableStreamLike)(e,t)}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");class s extends r.Subscription{constructor(e,t){super()}schedule(e,t=0){return this}}t.Action=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js");class o extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=s.animationFrameProvider.requestAnimationFrame((()=>e.flush(void 0)))))}recycleAsyncId(e,t,n=0){if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:r}=e;null!=t&&r[r.length-1]?.id!==t&&(s.animationFrameProvider.cancelAnimationFrame(t),e._scheduled=void 0)}}t.AnimationFrameAction=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}t.AnimationFrameScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js");class o extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=s.immediateProvider.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:r}=e;null!=t&&r[r.length-1]?.id!==t&&(s.immediateProvider.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}}t.AsapAction=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}t.AsapScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");class i extends r.Action{scheduler;work;id;state;delay;pending=!1;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return s.intervalProvider.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&s.intervalProvider.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,(0,o.arrRemove)(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}t.AsyncAction=i},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js");class s extends r.Scheduler{actions=[];_active=!1;_scheduled;constructor(e,t=r.Scheduler.now){super(e,t)}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}t.AsyncScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js");class s extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(e,t,n):(e.flush(this),0)}}t.QueueAction=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{}t.QueueScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class i extends o.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(e=a,t=1/0){super(e,(()=>this.frame)),this.maxFrames=t}flush(){const{actions:e,maxFrames:t}=this;let n,r;for(;(r=e[0])&&r.delay<=t&&(e.shift(),this.frame=r.delay,!(n=r.execute(r.state,r.delay))););if(n){for(;r=e.shift();)r.unsubscribe();throw n}}}t.VirtualTimeScheduler=i;class a extends r.AsyncAction{scheduler;work;index;active=!0;constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.index=e.index=n}schedule(e,t=0){if(Number.isFinite(t)){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new a(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}return s.Subscription.EMPTY}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:r}=e;return r.push(this),r.sort(a.sortActions),1}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}t.VirtualAction=a},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js");t.animationFrameScheduler=new s.AnimationFrameScheduler(r.AnimationFrameAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.animationFrameProvider={schedule(e){let n=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:o}=t.animationFrameProvider;o&&(n=o.requestAnimationFrame,s=o.cancelAnimationFrame);const i=n((t=>{s=void 0,e(t)}));return new r.Subscription((()=>s?.(i)))},requestAnimationFrame(...e){const{delegate:n}=t.animationFrameProvider;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=t.animationFrameProvider;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asapScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js");t.asapScheduler=new s.AsapScheduler(r.AsapAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asyncScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");t.asyncScheduler=new s.AsyncScheduler(r.AsyncAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:()=>(t.dateTimestampProvider.delegate||Date).now(),delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/Immediate.js"),{setImmediate:s,clearImmediate:o}=r.Immediate;t.immediateProvider={setImmediate(...e){const{delegate:n}=t.immediateProvider;return(n?.setImmediate||s)(...e)},clearImmediate(e){const{delegate:n}=t.immediateProvider;return(n?.clearImmediate||o)(e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval(e,n,...r){const{delegate:s}=t.intervalProvider;return s?.setInterval?s.setInterval(e,n,...r):setInterval(e,n,...r)},clearInterval(e){const{delegate:n}=t.intervalProvider;return(n?.clearInterval||clearInterval)(e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:()=>(t.performanceTimestampProvider.delegate||performance).now(),delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.queueScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js");t.queueScheduler=new s.QueueScheduler(r.QueueAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"(e,t){function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/types.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;class n extends Error{constructor(){super("argument out of range"),this.name="ArgumentOutOfRangeError"}}t.ArgumentOutOfRangeError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;class n extends Error{constructor(){super("no elements in sequence"),this.name="EmptyError"}}t.EmptyError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/Immediate.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;let n,r=1;const s={};function o(e){return e in s&&(delete s[e],!0)}t.Immediate={setImmediate(e){const t=r++;return s[t]=!0,n||(n=Promise.resolve()),n.then((()=>o(t)&&e())),t},clearImmediate(e){o(e)}},t.TestTools={pending:()=>Object.keys(s).length}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;class n extends Error{constructor(e){super(e),this.name="NotFoundError"}}t.NotFoundError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;class n extends Error{constructor(e){super(e),this.name="SequenceError"}}t.SequenceError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js");function o(e){return e[e.length-1]}t.popResultSelector=function(e){return(0,r.isFunction)(o(e))?e.pop():void 0},t.popScheduler=function(e){return(0,s.isScheduler)(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.arrayOrObject=t.argsArgArrayOrObject=void 0;const{isArray:n}=Array,{getPrototypeOf:r,prototype:s,keys:o}=Object;function i(e){if(n(e))return{args:e,keys:null};if((t=e)&&"object"==typeof t&&r(t)===s){const t=o(e);return{args:t.map((t=>e[t])),keys:t}}var t;return null}t.argsArgArrayOrObject=function(e){if(1===e.length){const t=i(e[0]);if(t)return t}return{args:e,keys:null}},t.arrayOrObject=i},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;const{isArray:n}=Array;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce(((e,n,r)=>(e[n]=t[r],e)),{})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r=0,s=!1){if(!e.closed){const o=t.schedule((function(){n(),s?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!s)return o}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.isScheduler=function(e){return e&&(0,r.isFunction)(e.schedule)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js"),{isArray:s}=Array;t.mapOneOrManyArgs=function(e){return(0,r.map)((t=>function(e,t){return s(t)?e(...t):e(t)}(e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/not.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return(n,r)=>!e.call(t,n,r)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js"(e,t){function n(e,t){return t(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=void 0,t.pipe=function(...e){return 1===e.length?e[0]:t=>e.reduce(n,t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.rx=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function s(e,t){return t(e)}t.rx=function(e,...t){return t.reduce(s,(0,r.from)(e))}},"bun:sqlite"(e){e.exports=import("bun:sqlite")},"node:sqlite"(e){e.exports=import("node:sqlite")},"@bufbuild/protobuf"(t,n,r){var s,o;t.exports=(s={Message:()=>e.Message,Struct:()=>e.Struct,Value:()=>e.Value,proto3:()=>e.proto3,protoInt64:()=>e.protoInt64},o={},r.d(o,s),o)},"node:crypto?8af2"(e,n,r){var s,o;e.exports=(s={createHash:()=>t.createHash,randomUUID:()=>t.randomUUID},o={},r.d(o,s),o)},"node:fs"(e,t,r){var s,o;e.exports=(s={chmodSync:()=>n.chmodSync,existsSync:()=>n.existsSync,mkdirSync:()=>n.mkdirSync,rmSync:()=>n.rmSync},o={},r.d(o,s),o)},"node:fs/promises"(e,t,n){var s,o;e.exports=(s={rm:()=>r.rm},o={},n.d(o,s),o)},"node:path"(e,t,n){var r,o;e.exports=(r={basename:()=>s.basename,dirname:()=>s.dirname,join:()=>s.join},o={},n.d(o,r),o)},zod(e,t,n){var r,s;e.exports=(r={z:()=>o.z},s={},n.d(s,r),s)},"../agent-kv/dist/index.js"(e,t,n){n.d(t,{aY:()=>N,pH:()=>F,aD:()=>p,sh:()=>b,nj:()=>d});var r=n("../proto/dist/generated/agent/v1/agent_pb.js"),s=n("../proto/dist/generated/agent/v1/todo_tool_pb.js"),o=n("../utils/dist/disposable.js"),i=n("zod"),a=n("../metrics/dist/index.js");const l=new TextDecoder,u=new TextEncoder,m=new class{serialize(e){return u.encode(e)}deserialize(e){return l.decode(e)}getBlobType(){return{kind:"string"}}};class c{constructor(e){this.proto=e}serialize(e){return e.toBinary()}deserialize(e){return this.proto.fromBinary(e)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function d(e){try{return Buffer.from(e).toString("hex")}catch(t){return Array.from(e,(e=>e.toString(16).padStart(2,"0"))).join("")}}function p(e){const t=e.trim().toLowerCase();if(t.length%2!=0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=parseInt(t.slice(e,e+2),16);return n}function f(e){const t=e.buffer;return"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer?new Uint8Array(e):new Uint8Array(t,e.byteOffset,e.byteLength)}(0,a.v5)("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"});var g=n("../context/dist/logger.js"),_=n("../utils/dist/promise-extras.js");class h extends Error{constructor(e,t){super(`This conversation's data is missing and can't be restored. Start a new chat to continue.${function(e){if(0===e.length)return"";const t=e.slice(0,3).map((e=>e.slice(0,12)));return` (${1===e.length?`missing blob ${t[0]}`:`${e.length} missing blobs: ${t.join(", ")}${e.length>t.length?", …":""}`})`}(e)}`,void 0!==(null==t?void 0:t.cause)?{cause:t.cause}:void 0),this.isBlobNotFound=!0,this.name="BlobNotFoundError",this.blobIdHexes=[...e]}}var T=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};const y=(0,g.h)("@anysphere/agent-kv:subagent-states");var S=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};const w=["default","plan","debug","search"],k=["allowlist","unrestricted","auto-review"],J=/^[0-9a-f]+$/;function v(){const e=new Uint8Array(32);return crypto.getRandomValues(e),d(e)}let E=null;const b=e=>({agentId:null!=e?e: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:v()}),j=new Set(w),x=new Set(k);class N{serialize(e){const t=d(e.latestRootBlobId);return m.serialize(JSON.stringify(Object.assign(Object.assign({},e),{latestRootBlobId:t})))}deserialize(e){const t=JSON.parse(m.deserialize(e)),n=b(t.agentId),r="string"==typeof t.latestRootBlobId?p(t.latestRootBlobId):n.latestRootBlobId;let s=!0===t.isRunEverything,o=t.mode;"auto-run"===o&&(o="default",s=!0);const a="string"==typeof o&&(l=o,j.has(l))?o:"default";var l;const u=t.approvalMode,c="string"==typeof u&&function(e){return x.has(e)}(u)?u:void 0,d=function(e){if(!e||"object"!=typeof e)return;const t=e;return"string"==typeof t.parentAgentId&&0!==t.parentAgentId.length&&"string"==typeof t.rootParentAgentId&&0!==t.rootParentAgentId.length&&"string"==typeof t.toolCallId&&0!==t.toolCallId.length&&"string"==typeof t.typeName&&0!==t.typeName.length?{parentAgentId:t.parentAgentId,rootParentAgentId:t.rootParentAgentId,toolCallId:t.toolCallId,typeName:t.typeName}:void 0}(t.subagentInfo),f=function(e){return"string"==typeof e&&64===e.length&&J.test(e)}(t.blobEncryptionKey)?t.blobEncryptionKey:n.blobEncryptionKey;return(null===E&&(E=i.z.object({agentId:i.z.string(),latestRootBlobId:i.z.custom((e=>e instanceof Uint8Array),{message:"Expected Uint8Array"}),name:i.z.string(),createdAt:i.z.number(),mode:i.z.enum(w),isRunEverything:i.z.boolean(),approvalMode:i.z.enum(k).optional(),lastUsedModel:i.z.string().optional(),lastDebugServerPort:i.z.number().int().positive().optional(),currentPlanUri:i.z.string().optional(),subagentInfo:i.z.union([i.z.object({parentAgentId:i.z.string().min(1),rootParentAgentId:i.z.string().min(1),toolCallId:i.z.string().min(1),typeName:i.z.string().min(1)}),i.z.undefined()]),blobEncryptionKey:i.z.string().optional()})),E).parse(Object.assign(Object.assign(Object.assign({},n),t),{mode:a,isRunEverything:s,approvalMode:c,latestRootBlobId:r,subagentInfo:d,blobEncryptionKey:f}))}getBlobType(){return{kind:"json"}}}const P=new c(s.kW),B=new c(r.RGk),I=new c(r.kJk),q=new c(r.cmU),R=new c(r.KRq),M=new c(r.oIR),O=new c(r.qKL);class F{constructor(e,t,n={}){this.blobStore=e,this.metadataStore=t,this.serde=new c(r.Y9z),this.conversationStateStructure=new r.Y9z,this.fixedRootBlobId=n.fixedRootBlobId}subscribeToMetadata(e,t){return this.metadataStore.subscribe(e,(()=>{t(this.metadataStore.get(e))}))}setMetadata(e,t){this.metadataStore.set(e,t)}getMetadata(e){return this.metadataStore.get(e)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}getLastRequestIdFromConversation(e){return S(this,void 0,void 0,(function*(){const t=this.conversationStateStructure.turns;if(0===t.length)return null;for(let n=t.length-1;n>=0;n--){const r=t[n],s=yield this.blobStore.getBlob(e,r);if(!s)continue;const o=q.deserialize(s);if("agentConversationTurn"===o.turn.case){const e=o.turn.value.requestId;return null!=e?e:null}}return null}))}getFullConversation(e){return S(this,void 0,void 0,(function*(){return this.deserializeConversationStateStructure(e,this.conversationStateStructure)}))}deserializeConversationStateStructure(e,t){return S(this,void 0,void 0,(function*(){return function(e,t,n){return S(this,void 0,void 0,(function*(){const s=new r.ljj,o=[],i=t.turns;for(const t of i){const s=yield n.getBlob(e,t);if(!s)continue;const i=q.deserialize(s);let a;switch(i.turn.case){case"agentConversationTurn":{const t=i.turn.value,s=yield n.getBlob(e,t.userMessage);if(!s)continue;const o=B.deserialize(s),l=[];for(const r of t.steps){const t=yield n.getBlob(e,r);if(t){const e=I.deserialize(t);l.push(e)}}const u=new r.i9c({userMessage:o,steps:l});a=new r.j97({turn:{case:"agentConversationTurn",value:u}});break}case"shellConversationTurn":{const t=i.turn.value,s=yield n.getBlob(e,t.shellCommand);if(!s)continue;const o=M.deserialize(s),l=yield n.getBlob(e,t.shellOutput);if(!l)continue;const u=O.deserialize(l),m=new r.tms({shellCommand:o,shellOutput:u});a=new r.j97({turn:{case:"shellConversationTurn",value:m}});break}}a&&o.push(a)}s.turns=o;const a=[];for(const r of t.todos){const t=yield n.getBlob(e,r);if(t){const e=P.deserialize(t);a.push(e)}}if(s.todos=a,t.summary){const r=yield n.getBlob(e,t.summary);if(r){const e=R.deserialize(r);s.summary=e}}return s}))}(e,t,this.blobStore)}))}getFullConversationWithSubagents(e){return S(this,void 0,void 0,(function*(){const t=this.conversationStateStructure,n=yield this.deserializeConversationStateStructure(e,t),s={},o=yield function(e,t,n){return T(this,void 0,void 0,(function*(){var s,o;const i=Object.assign({},null!==(s=t.subagentStates)&&void 0!==s?s:{}),a=Object.entries(null!==(o=t.subagentStateRefs)&&void 0!==o?o:{});if(0===a.length)return i;const l=yield(0,_.PH)(a,(t=>T(this,[t],void 0,(function*([t,s]){const o=yield n.getBlob(e,s);if(void 0===o)return void 0===i[t]?{kind:"missing",blobIdHex:d(s)}:(y.warn(e,"Subagent state ref blob not found; falling back to inline entry",{subagentId:t}),{kind:"fallback"});try{return{kind:"loaded",subagentId:t,state:r.aK_.fromBinary(o)}}catch(e){return{kind:"failed",error:e}}}))),{max:8}),u=l.flatMap((e=>"missing"===e.kind?[e.blobIdHex]:[]));if(u.length>0)throw new h(u);const m=l.find((e=>"failed"===e.kind));if(void 0!==m&&"failed"===m.kind)throw m.error;for(const e of l)"loaded"===e.kind&&(i[e.subagentId]=e.state);return i}))}(e,t,this.blobStore);for(const[t,n]of Object.entries(o))if(n.conversationState){const r=yield this.deserializeConversationStateStructure(e,n.conversationState);s[t]={conversationState:r,createdTimestampMs:n.createdTimestampMs,lastUsedTimestampMs:n.lastUsedTimestampMs,subagentType:n.subagentType}}return{conversationState:n,subagentStates:s}}))}getLatestCheckpoint(){return this.getConversationStateStructure()}handleCheckpoint(e,t){return S(this,void 0,void 0,(function*(){var n;this.conversationStateStructure=t;const r=this.serde.serialize(t),s=null!==(n=this.fixedRootBlobId)&&void 0!==n?n:yield function(e){return t=this,n=void 0,s=function*(){const t=yield crypto.subtle.digest("SHA-256",f(e));return new Uint8Array(t)},new((r=void 0)||(r=Promise))((function(e,o){function i(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}l((s=s.apply(t,n||[])).next())}));var t,n,r,s}(r);yield this.blobStore.setBlob(e,s,r),this.setMetadata("latestRootBlobId",s)}))}resetFromDb(e){return S(this,void 0,void 0,(function*(){yield this.tryResetFromDb(e)}))}tryResetFromDb(e){return S(this,void 0,void 0,(function*(){try{const t=this.getMetadata("latestRootBlobId");if(!t||0===t.length)return this.conversationStateStructure=new r.Y9z,!1;const n=yield this.blobStore.getBlob(e,t);if(!n)return this.conversationStateStructure=new r.Y9z,!1;const s=this.serde.deserialize(n);return this.conversationStateStructure=s,!0}catch(e){return this.conversationStateStructure=new r.Y9z,!1}}))}dispose(){return S(this,void 0,void 0,(function*(){this.blobStore instanceof o.j&&(yield this.blobStore.dispose())}))}}var A=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("@anysphere/agent-kv"),(0,a.v5)("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),(0,a.v5)("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),(0,a.Pu)("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),(0,a.Pu)("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"});const L=(0,a.Pu)("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"}),C=(0,a.v5)("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),U=(0,a.v5)("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"});class D extends Error{constructor(e){super("Failed to decrypt nearby blob (encryption key mismatch)",{cause:e}),this.name="NearbyBlobDecryptError"}}class G{constructor(e,t,n=null){this.blobStore=e,this.encryptionKeyStr=t,this.fallbackDecryptKeyStr=n}static deriveKey(e){return A(this,void 0,void 0,(function*(){const t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t);return crypto.subtle.importKey("raw",n,{name:G.ALGORITHM,length:256},!0,["encrypt","decrypt"])}))}getEncryptionKey(){return A(this,void 0,void 0,(function*(){return void 0===this.encryptionKey&&(this.encryptionKey=yield G.deriveKey(this.encryptionKeyStr)),this.encryptionKey}))}getFallbackDecryptKey(){return A(this,void 0,void 0,(function*(){return null===this.fallbackDecryptKeyStr?null:(void 0===this.fallbackDecryptKey&&(this.fallbackDecryptKey=yield G.deriveKey(this.fallbackDecryptKeyStr)),this.fallbackDecryptKey)}))}getBlob(e,t){return A(this,void 0,void 0,(function*(){const n=performance.now();try{const n=yield this.blobStore.getBlob(e,t);if(void 0===n)return;const r=n.slice(0,G.IV_LENGTH),s=n.slice(G.IV_LENGTH);let o;try{o=yield crypto.subtle.decrypt({name:G.ALGORITHM,iv:r},yield this.getEncryptionKey(),s)}catch(t){const n=yield this.getFallbackDecryptKey();if(null===n)throw new D(t);try{o=yield crypto.subtle.decrypt({name:G.ALGORITHM,iv:r},n,s),L.increment(e,1)}catch(e){throw new D(t)}}return new Uint8Array(o)}finally{const t=performance.now()-n;C.histogram(e,t)}}))}encryptBlob(e){return A(this,void 0,void 0,(function*(){const t=crypto.getRandomValues(new Uint8Array(G.IV_LENGTH)),n=yield crypto.subtle.encrypt({name:G.ALGORITHM,iv:t},yield this.getEncryptionKey(),f(e)),r=new Uint8Array(t.length+n.byteLength);return r.set(t,0),r.set(new Uint8Array(n),t.length),r}))}setBlob(e,t,n){return A(this,void 0,void 0,(function*(){const r=performance.now();try{const r=yield this.encryptBlob(n);yield this.blobStore.setBlob(e,t,r)}finally{const t=performance.now()-r;U.histogram(e,t)}}))}setBlobLocallyOnly(e,t,n){return A(this,void 0,void 0,(function*(){const r=performance.now();try{const r=yield this.encryptBlob(n);yield this.blobStore.setBlobLocallyOnly(e,t,r)}finally{const t=performance.now()-r;U.histogram(e,t)}}))}flush(e){return A(this,void 0,void 0,(function*(){return yield this.blobStore.flush(e)}))}}G.ALGORITHM="AES-GCM",G.IV_LENGTH=12,"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("ControlledKvManager"),(0,a.v5)("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"}),Symbol.for("anysphere.blobMetadataCallback"),(0,g.h)("@anysphere/agent-kv:reference"),(0,a.Pu)("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"]}),(0,a.v5)("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),(0,a.v5)("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]}),"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("RetryBlobStore"),(0,a.Pu)("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),(0,a.v5)("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),(0,a.v5)("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"}),"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("@anysphere/agent-kv"),(0,a.v5)("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"})},"../context/dist/core.js"(e,t,n){function r(e,t){return{symbol:e,defaultValue:t}}function s(e){const t=new AbortController;return e.aborted?t.abort(e.reason):e.addEventListener("abort",(()=>t.abort(e.reason)),{once:!0}),t}n.d(t,{cF:()=>r,q6:()=>i});class o{constructor(e,t,n,r){this.parent=e,this.values=n||new Map,this.name=r,this.signal=t||(e?e.signal:(new AbortController).signal)}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(e){return this.values.has(e.symbol)?this.values.get(e.symbol):this.parent?this.parent.get(e):e.defaultValue}with(e,t){const n=new Map(this.values);return n.set(e.symbol,t),new o(this,void 0,n)}withCancel(){const e=s(this.signal);return[new o(this,e.signal),t=>e.abort(t)]}withTimeout(e){const t=s(this.signal),n=new o(this,t.signal),r=setTimeout((()=>{t.abort(new Error("context deadline exceeded"))}),e);return t.signal.addEventListener("abort",(()=>{clearTimeout(r)}),{once:!0}),n}withDeadline(e){const t=e.getTime()-Date.now();if(t<=0){const e=s(this.signal);return e.abort(new Error("context deadline exceeded")),new o(this,e.signal)}return this.withTimeout(t)}withTimeoutAndCancel(e){const[t,n]=this.withCancel();return[t.withTimeout(e),n]}withName(e){return new o(this,void 0,void 0,e)}withDetached(){return new o(this,(new AbortController).signal)}getParent(){return this.parent}getPath(){const e=[];let t=this;for(;t;)t.name&&e.unshift(t.name),t=t.getParent();return e}}function i(){return new o}},"../context/dist/logger.js"(e,t,n){n.d(t,{h:()=>d});var r=n("../context/dist/core.js");function s(e){return"object"==typeof e&&null!==e&&"getPath"in e&&"function"==typeof e.getPath}function o(e){return"object"==typeof e&&null!==e&&("message"in e||"stack"in e||"name"in e||"cause"in e)}function i(e,t,n,r,s,u){var m,c;const d=function(e,t,n,r){if(!t.inlineSerializer)return e;try{const s=t.inlineSerializer(e,{path:n,depth:r});return void 0===s?e:s}catch(t){return e}}(e,t,u,r);if(function(e){return"object"==typeof e&&null!==e&&"summary"===e.kind&&"string"==typeof e.summary}(d))return n.dim(`<${d.summary}>`);if(null===(e=d))return n.gray("null");if(void 0===e)return n.gray("undefined");if("string"==typeof e){const r=function(e,t){return e.length<=t?e:`${e.slice(0,t)}...`}(e,t.maxStringLength);return n.green(JSON.stringify(r))}if("number"==typeof e)return n.yellow(String(e));if("boolean"==typeof e)return n.magenta(String(e));if("bigint"==typeof e)return n.yellow(`${e}n`);if("symbol"==typeof e)return n.cyan(e.toString());if("function"==typeof e){const t=e.name?` ${e.name}`:"";return n.dim(`[Function${t}]`)}if(e instanceof Date){const t=Number.isNaN(e.getTime())?"Invalid Date":e.toISOString();return n.green(t)}if(e instanceof RegExp)return n.cyan(e.toString());if(o(e))return a(e,t,n,r,s,u);if(Array.isArray(e))return l(e,t,n,r,s,u);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return n.dim(`ArrayBuffer(${e.byteLength})`);if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)){const t=e,r=null!==(c=null===(m=t.constructor)||void 0===m?void 0:m.name)&&void 0!==c?c:"TypedArray";return n.dim(`${r}(${t.byteLength})`)}return e instanceof Map?function(e,t,n,r,s,o){if(r>=t.maxDepth)return n.dim(`Map(${e.size})`);if(s.has(e))return n.dim("[Circular]");s.add(e);const a=Array.from(e.entries()),l=Math.min(a.length,t.maxEntries),u=a.slice(0,l).map((([e,a])=>{const l=i(e,t,n,r+1,s,o.concat("<key>")),u=i(a,t,n,r+1,s,o.concat(String(e)));return`${l} ${n.dim("=>")} ${u}`}));a.length>l&&u.push(n.dim(`... ${a.length-l} more`));const m=n.dim(", "),c=`${n.dim("Map{")}${u.join(m)}${n.dim("}")}`;return s.delete(e),c}(e,t,n,r,s,u):e instanceof Set?l(Array.from(e.values()),t,n,r,s,u):function(e,t,n,r,s,o){var a,l;if(r>=t.maxDepth){const t=null!==(l=null===(a=null==e?void 0:e.constructor)||void 0===a?void 0:a.name)&&void 0!==l?l:"Object";return n.dim(`[${t}]`)}if(s.has(e))return n.dim("[Circular]");s.add(e);const u=Object.entries(e);if(0===u.length){const t=n.dim("{}");return s.delete(e),t}const m=Math.min(u.length,t.maxEntries),c=u.slice(0,m).map((([e,a])=>{const l=i(a,t,n,r+1,s,o.concat(e));return`${n.cyan(e)}: ${l}`}));u.length>m&&c.push(n.dim(`... ${u.length-m} more`));const d=n.dim(", "),p=`${n.dim("{")}${c.join(d)}${n.dim("}")}`;return s.delete(e),p}(e,t,n,r,s,u)}function a(e,t,n,r,s,o){const a=e;if(s.has(a))return n.dim("[Circular]");s.add(a);const l="string"==typeof e.name?e.name:"Error",u="string"==typeof e.message?e.message:"",m=u?`${l}: ${u}`:l;let c=n.red(m);if("cause"in e&&void 0!==e.cause){const a=i(e.cause,t,n,r+1,s,o.concat("cause"));c=`${c} ${n.dim("cause=")}${a}`}return s.delete(a),c}function l(e,t,n,r,s,o){if(r>=t.maxDepth)return n.dim(`[Array(${e.length})]`);if(s.has(e))return n.dim("[Circular]");if(s.add(e),0===e.length){const t=n.dim("[]");return s.delete(e),t}const a=Math.min(e.length,t.maxArrayLength),l=e.slice(0,a).map(((e,a)=>i(e,t,n,r+1,s,o.concat(a))));e.length>a&&l.push(n.dim(`... ${e.length-a} more`));const u=n.dim(", "),m=`${n.dim("[")}${l.join(u)}${n.dim("]")}`;return s.delete(e),m}let u=function(e={}){var t;const n=function(e){var t,n,r,s,o,i,a;return{indent:" ".repeat(null!==(t=e.indent)&&void 0!==t?t:2),maxDepth:null!==(n=e.maxDepth)&&void 0!==n?n:6,maxEntries:null!==(r=e.maxEntries)&&void 0!==r?r:50,maxArrayLength:null!==(s=e.maxArrayLength)&&void 0!==s?s:40,maxStringLength:null!==(o=e.maxStringLength)&&void 0!==o?o:200,includeTimestamp:null===(i=e.includeTimestamp)||void 0===i||i,includeContextPath:null===(a=e.includeContextPath)||void 0===a||a,inlineSerializer:e.inlineSerializer}}(e),r=function(e){const t=t=>n=>e?`[${t.join(";")}m${n}`:n,n=t([2]),r=t([90]),s=t([31]),o=t([32]),i=t([33]),a=t([34]),l=t([35]),u=t([36]),m=t([1]),c=t([1,31]);return{dim:n,gray:r,red:s,green:o,yellow:i,blue:a,magenta:l,cyan:u,bold:m,level:(e,t)=>{switch(e){case"debug":return l(t);case"info":return a(t);case"warn":return i(t);case"error":return c(t);default:return e}}}}(function(e){var t,n;if("boolean"==typeof e)return e;if("undefined"==typeof process)return!1;const r=null!==(n=process.env)&&void 0!==n?n:{};if("NO_COLOR"in r)return!1;if("dumb"===r.TERM)return!1;const s=r.FORCE_COLOR;return"1"===s||"true"===s||"0"!==s&&Boolean(null===(t=process.stdout)||void 0===t?void 0:t.isTTY)}(e.useColors)),l=null!==(t=e.console)&&void 0!==t?t:console;return{log:(e,t)=>{const u=[];n.includeTimestamp&&u.push(r.dim(t.timestamp.toISOString().slice(11,23)));const m=t.level.toUpperCase().padEnd(5);u.push(r.level(t.level,m));const c="error"===t.level?r.bold(t.message):t.message;if(u.push(c),n.includeContextPath&&s(t.context)){const e=t.context.getPath();e.length>0&&u.push(r.dim(`ctx=${e.join("/")}`))}const d=new WeakSet;if(!s(t.context)&&t.context&&Object.keys(t.context).length>0){const e=i(t.context,n,r,0,d,["context"]);u.push(`${r.dim("context=")}${e}`)}if(t.metadata&&Object.keys(t.metadata).length>0){const e=i(t.metadata,n,r,0,d,["metadata"]);u.push(`${r.dim("meta=")}${e}`)}const p=[u.join(" ")];if(void 0!==t.error){const e=o(t.error)?a(t.error,n,r,0,d,["error"]):i(t.error,n,r,0,d,["error"]);if(p[0]=`${p[0]} ${r.dim("error=")}${e}`,o(t.error)&&"string"==typeof t.error.stack){const e=t.error.stack.split("\n").slice(1);for(const t of e){const e=t.trim();e&&p.push(`${n.indent}${r.dim(e)}`)}}}const f=p.join("\n");switch(t.level){case"debug":case"info":l.log(f);break;case"warn":l.warn(f);break;case"error":l.error(f);break;default:{const e=t.level;throw new Error(`Unhandled log level: ${e}`)}}}}}();const m={log:(e,t)=>u.log(e,t)},c=(0,r.cF)(Symbol("loggerBackend"),m);function d(e){function t(e,t){const n=new Date,r=function(e){return e.get(c)}(e);r.log(e,Object.assign(Object.assign({},t),{timestamp:n}))}return{debug:(e,n,r)=>{t(e,{level:"debug",message:n,context:e,metadata:r})},info:(e,n,r)=>{t(e,{level:"info",message:n,context:e,metadata:r})},warn:(e,n,r)=>{t(e,{level:"warn",message:n,context:e,metadata:r})},error:(e,n,r,s)=>{t(e,{level:"error",message:n,context:e,error:r,metadata:s})}}}},"../metrics/dist/index.js"(e,t,n){n.d(t,{Pu:()=>o,v5:()=>i});const r=(0,n("../context/dist/core.js").cF)(Symbol("metricsBackend"),{record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}});function s(e){return e.get(r)}function o(e,t){const n={name:e,type:"counter",description:null==t?void 0:t.description,labelNames:null==t?void 0:t.labelNames};return{increment:(e,t,r)=>{s(e).increment(e,n,null!=t?t:1,r)},record:(e,t,r)=>{s(e).record(e,n,t,r)}}}function i(e,t){const n={name:e,type:"histogram",description:null==t?void 0:t.description,labelNames:null==t?void 0:t.labelNames};return{histogram:(e,t,r)=>{s(e).histogram(e,n,t,r)},record:(e,t,r)=>{s(e).record(e,n,t,r)}}}},"../proto/dist/generated/agent/v1/agent_pb.js"(e,t,n){n.d(t,{i9c:()=>Hs,ljj:()=>oo,Y9z:()=>co,kJk:()=>Rr,KRq:()=>zs,j97:()=>Ls,cmU:()=>Gs,oIR:()=>Fs,tms:()=>Ws,qKL:()=>As,aK_:()=>lo,RGk:()=>qs});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/subagents_pb.js"),o=n("../proto/dist/generated/agent/v1/shell_exec_pb.js");class i extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.ShellToolCall",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o.a},{no:2,name:"result",kind:"message",T:o.W4},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));class a extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.ShellToolCallStdoutDelta",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.ShellToolCallStderrDelta",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.delta={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.ShellToolCallDelta",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:a,oneof:"delta"},{no:2,name:"stderr",kind:"message",T:l,oneof:"delta"}]));var m=n("../proto/dist/generated/agent/v1/delete_exec_pb.js");class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.DeleteToolCall",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:m.dn},{no:2,name:"result",kind:"message",T:m.Pi}]));class d extends r.Message{constructor(e){super(),this.globPattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GlobToolArgs",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"target_directory",kind:"scalar",T:9,opt:!0},{no:2,name:"glob_pattern",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.GlobToolResult",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:g,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"}]));class f extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.GlobToolError",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class g extends r.Message{constructor(e){super(),this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.GlobToolSuccess",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"files",kind:"scalar",T:9,repeated:!0},{no:4,name:"total_files",kind:"scalar",T:5},{no:5,name:"client_truncated",kind:"scalar",T:8},{no:6,name:"ripgrep_truncated",kind:"scalar",T:8}]));class _ extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.GlobToolCall",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:d},{no:2,name:"result",kind:"message",T:p}]));var h=n("../proto/dist/generated/agent/v1/grep_exec_pb.js");class T extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(T,e,t)}}T.runtime=r.proto3,T.typeName="agent.v1.GrepToolCall",T.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:h.Qj},{no:2,name:"result",kind:"message",T:h.Ud}]));var y=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js");class S extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(S,e,t)}}S.runtime=r.proto3,S.typeName="agent.v1.ReadToolCall",S.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:w},{no:2,name:"result",kind:"message",T:k}]));class w extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(w,e,t)}}w.runtime=r.proto3,w.typeName="agent.v1.ReadToolArgs",w.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:5,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0},{no:5,name:"include_line_numbers",kind:"scalar",T:8,opt:!0}]));class k extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(k,e,t)}}k.runtime=r.proto3,k.typeName="agent.v1.ReadToolResult",k.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:v,oneof:"result"},{no:2,name:"error",kind:"message",T:E,oneof:"result"}]));class J extends r.Message{constructor(e){super(),this.startLine=0,this.endLine=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(J,e,t)}}J.runtime=r.proto3,J.typeName="agent.v1.ReadRange",J.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start_line",kind:"scalar",T:13},{no:2,name:"end_line",kind:"scalar",T:13}]));class v extends r.Message{constructor(e){super(),this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(v,e,t)}}v.runtime=r.proto3,v.typeName="agent.v1.ReadToolSuccess",v.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9,oneof:"output"},{no:6,name:"data",kind:"scalar",T:12,oneof:"output"},{no:9,name:"data_blob_id",kind:"scalar",T:12,oneof:"output"},{no:10,name:"content_blob_id",kind:"scalar",T:12,oneof:"output"},{no:2,name:"is_empty",kind:"scalar",T:8},{no:3,name:"exceeded_limit",kind:"scalar",T:8},{no:4,name:"total_lines",kind:"scalar",T:13},{no:5,name:"file_size",kind:"scalar",T:13},{no:7,name:"path",kind:"scalar",T:9},{no:8,name:"read_range",kind:"message",T:J,opt:!0},{no:11,name:"include_line_numbers",kind:"scalar",T:8,opt:!0},{no:12,name:"related_cursor_rule_paths",kind:"scalar",T:9,repeated:!0},{no:13,name:"related_cursor_rules",kind:"message",T:y.DX,repeated:!0}]));class E extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(E,e,t)}}E.runtime=r.proto3,E.typeName="agent.v1.ReadToolError",E.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var b=n("../proto/dist/generated/agent/v1/todo_tool_pb.js");class j extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(j,e,t)}}j.runtime=r.proto3,j.typeName="agent.v1.EditArgs",j.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:6,name:"stream_content",kind:"scalar",T:9,opt:!0}]));class x extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(x,e,t)}}x.runtime=r.proto3,x.typeName="agent.v1.EditResult",x.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:N,oneof:"result"},{no:2,name:"file_not_found",kind:"message",T:P,oneof:"result"},{no:3,name:"read_permission_denied",kind:"message",T:B,oneof:"result"},{no:4,name:"write_permission_denied",kind:"message",T:I,oneof:"result"},{no:6,name:"rejected",kind:"message",T:q,oneof:"result"},{no:7,name:"error",kind:"message",T:R,oneof:"result"}]));class N extends r.Message{constructor(e){super(),this.path="",this.afterFullFileContent="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(N,e,t)}}N.runtime=r.proto3,N.typeName="agent.v1.EditSuccess",N.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:3,name:"lines_added",kind:"scalar",T:5,opt:!0},{no:4,name:"lines_removed",kind:"scalar",T:5,opt:!0},{no:5,name:"diff_string",kind:"scalar",T:9,opt:!0},{no:6,name:"before_full_file_content",kind:"scalar",T:9,opt:!0},{no:7,name:"after_full_file_content",kind:"scalar",T:9},{no:8,name:"message",kind:"scalar",T:9,opt:!0}]));class P extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(P,e,t)}}P.runtime=r.proto3,P.typeName="agent.v1.EditFileNotFound",P.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class B extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(B,e,t)}}B.runtime=r.proto3,B.typeName="agent.v1.EditReadPermissionDenied",B.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class I extends r.Message{constructor(e){super(),this.path="",this.error="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(I,e,t)}}I.runtime=r.proto3,I.typeName="agent.v1.EditWritePermissionDenied",I.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9},{no:3,name:"is_readonly",kind:"scalar",T:8}]));class q extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(q,e,t)}}q.runtime=r.proto3,q.typeName="agent.v1.EditRejected",q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class R extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(R,e,t)}}R.runtime=r.proto3,R.typeName="agent.v1.EditError",R.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9},{no:5,name:"model_visible_error",kind:"scalar",T:9,opt:!0}]));class M extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(M,e,t)}}M.runtime=r.proto3,M.typeName="agent.v1.EditToolCall",M.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:j},{no:2,name:"result",kind:"message",T:x}]));class O extends r.Message{constructor(e){super(),this.streamContentDelta="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(O,e,t)}}O.runtime=r.proto3,O.typeName="agent.v1.EditToolCallDelta",O.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stream_content_delta",kind:"scalar",T:9}]));var F=n("../proto/dist/generated/agent/v1/ls_exec_pb.js");class A extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(A,e,t)}}A.runtime=r.proto3,A.typeName="agent.v1.LsToolCall",A.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:F.xe},{no:2,name:"result",kind:"message",T:F.fv}]));var L=n("../proto/dist/generated/agent/v1/diagnostics_exec_pb.js"),C=n("../proto/dist/generated/agent/v1/utils_pb.js");class U extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(U,e,t)}}U.runtime=r.proto3,U.typeName="agent.v1.ReadLintsToolCall",U.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:D},{no:2,name:"result",kind:"message",T:G}]));class D extends r.Message{constructor(e){super(),this.paths=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(D,e,t)}}D.runtime=r.proto3,D.typeName="agent.v1.ReadLintsToolArgs",D.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]));class G extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(G,e,t)}}G.runtime=r.proto3,G.typeName="agent.v1.ReadLintsToolResult",G.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:H,oneof:"result"},{no:2,name:"error",kind:"message",T:z,oneof:"result"}]));class H extends r.Message{constructor(e){super(),this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(H,e,t)}}H.runtime=r.proto3,H.typeName="agent.v1.ReadLintsToolSuccess",H.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_diagnostics",kind:"message",T:K,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"total_diagnostics",kind:"scalar",T:5}]));class K extends r.Message{constructor(e){super(),this.path="",this.diagnostics=[],this.diagnosticsCount=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(K,e,t)}}K.runtime=r.proto3,K.typeName="agent.v1.FileDiagnostics",K.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diagnostics",kind:"message",T:W,repeated:!0},{no:3,name:"diagnostics_count",kind:"scalar",T:5}]));class W extends r.Message{constructor(e){super(),this.severity=L.h_.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(W,e,t)}}W.runtime=r.proto3,W.typeName="agent.v1.DiagnosticItem",W.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"severity",kind:"enum",T:r.proto3.getEnumType(L.h_)},{no:2,name:"range",kind:"message",T:Y},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"source",kind:"scalar",T:9},{no:5,name:"code",kind:"scalar",T:9},{no:6,name:"is_stale",kind:"scalar",T:8}]));class Y extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Y,e,t)}}Y.runtime=r.proto3,Y.typeName="agent.v1.DiagnosticRange",Y.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start",kind:"message",T:C.yX},{no:2,name:"end",kind:"message",T:C.yX}]));class z extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(z,e,t)}}z.runtime=r.proto3,z.typeName="agent.v1.ReadLintsToolError",z.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var V=n("../proto/dist/generated/agent/v1/mcp_exec_pb.js");class Q extends r.Message{constructor(e){super(),this.error="",this.readToolDefReminder="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Q,e,t)}}Q.runtime=r.proto3,Q.typeName="agent.v1.McpToolError",Q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"read_tool_def_reminder",kind:"scalar",T:9}]));class X extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(X,e,t)}}X.runtime=r.proto3,X.typeName="agent.v1.McpToolResult",X.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:V.QW,oneof:"result"},{no:2,name:"error",kind:"message",T:Q,oneof:"result"},{no:3,name:"rejected",kind:"message",T:V.xo,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:V.HQ,oneof:"result"}]));class $ extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($,e,t)}}$.runtime=r.proto3,$.typeName="agent.v1.McpToolCall",$.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.E_},{no:2,name:"result",kind:"message",T:X},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));var Z=n("../proto/dist/generated/aiserver/v1/repository_pb.js");class ee extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ee,e,t)}}ee.runtime=r.proto3,ee.typeName="agent.v1.SemSearchToolCall",ee.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:te},{no:2,name:"result",kind:"message",T:ne}]));class te extends r.Message{constructor(e){super(),this.query="",this.targetDirectories=[],this.explanation="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(te,e,t)}}te.runtime=r.proto3,te.typeName="agent.v1.SemSearchToolArgs",te.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"target_directories",kind:"scalar",T:9,repeated:!0},{no:3,name:"explanation",kind:"scalar",T:9}]));class ne extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ne,e,t)}}ne.runtime=r.proto3,ne.typeName="agent.v1.SemSearchToolResult",ne.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:re,oneof:"result"},{no:2,name:"error",kind:"message",T:se,oneof:"result"}]));class re extends r.Message{constructor(e){super(),this.results="",this.codeResults=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(re,e,t)}}re.runtime=r.proto3,re.typeName="agent.v1.SemSearchToolSuccess",re.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"scalar",T:9},{no:2,name:"code_results",kind:"message",T:Z.PT,repeated:!0}]));class se extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(se,e,t)}}se.runtime=r.proto3,se.typeName="agent.v1.SemSearchToolError",se.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var oe=n("../proto/dist/generated/agent/v1/create_plan_tool_pb.js"),ie=n("../proto/dist/generated/agent/v1/web_search_tool_pb.js");class ae extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ae,e,t)}}ae.runtime=r.proto3,ae.typeName="agent.v1.ListMcpResourcesToolCall",ae.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.kj},{no:2,name:"result",kind:"message",T:V.kP}]));class le extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(le,e,t)}}le.runtime=r.proto3,le.typeName="agent.v1.ReadMcpResourceToolCall",le.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.DI},{no:2,name:"result",kind:"message",T:V.ZD}]));var ue=n("../proto/dist/generated/agent/v1/apply_agent_diff_tool_pb.js"),me=n("../proto/dist/generated/agent/v1/ask_question_tool_pb.js"),ce=n("../proto/dist/generated/agent/v1/fetch_exec_pb.js");class de extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(de,e,t)}}de.runtime=r.proto3,de.typeName="agent.v1.FetchToolCall",de.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ce.UM},{no:2,name:"result",kind:"message",T:ce.uN}]));var pe=n("../proto/dist/generated/agent/v1/switch_mode_tool_pb.js"),fe=n("../proto/dist/generated/agent/v1/generate_image_tool_pb.js"),ge=n("../proto/dist/generated/agent/v1/record_screen_exec_pb.js");class _e extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_e,e,t)}}_e.runtime=r.proto3,_e.typeName="agent.v1.RecordScreenToolCall",_e.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ge.zH},{no:2,name:"result",kind:"message",T:ge.Tj}]));var he=n("../proto/dist/generated/agent/v1/computer_use_tool_pb.js"),Te=n("../proto/dist/generated/agent/v1/background_shell_exec_pb.js");class ye extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ye,e,t)}}ye.runtime=r.proto3,ye.typeName="agent.v1.WriteShellStdinToolCall",ye.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Te.LL},{no:2,name:"result",kind:"message",T:Te.nt}]));class Se extends r.Message{constructor(e){super(),this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Se,e,t)}}Se.runtime=r.proto3,Se.typeName="agent.v1.ReflectArgs",Se.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"unexpected_action_outcomes",kind:"scalar",T:9},{no:2,name:"relevant_instructions",kind:"scalar",T:9},{no:3,name:"scenario_analysis",kind:"scalar",T:9},{no:4,name:"critical_synthesis",kind:"scalar",T:9},{no:5,name:"next_steps",kind:"scalar",T:9},{no:6,name:"tool_call_id",kind:"scalar",T:9}]));class we extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(we,e,t)}}we.runtime=r.proto3,we.typeName="agent.v1.ReflectResult",we.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:ke,oneof:"result"},{no:2,name:"error",kind:"message",T:Je,oneof:"result"}]));class ke extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ke,e,t)}}ke.runtime=r.proto3,ke.typeName="agent.v1.ReflectSuccess",ke.fields=r.proto3.util.newFieldList((()=>[]));class Je extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Je,e,t)}}Je.runtime=r.proto3,Je.typeName="agent.v1.ReflectError",Je.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class ve extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ve,e,t)}}ve.runtime=r.proto3,ve.typeName="agent.v1.ReflectToolCall",ve.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Se},{no:2,name:"result",kind:"message",T:we}]));var Ee=n("../proto/dist/generated/agent/v1/setup_vm_environment_tool_pb.js");class be extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(be,e,t)}}be.runtime=r.proto3,be.typeName="agent.v1.StartGrindExecutionArgs",be.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"explanation",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class je extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(je,e,t)}}je.runtime=r.proto3,je.typeName="agent.v1.StartGrindExecutionResult",je.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:xe,oneof:"result"},{no:2,name:"error",kind:"message",T:Ne,oneof:"result"}]));class xe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xe,e,t)}}xe.runtime=r.proto3,xe.typeName="agent.v1.StartGrindExecutionSuccess",xe.fields=r.proto3.util.newFieldList((()=>[]));class Ne extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ne,e,t)}}Ne.runtime=r.proto3,Ne.typeName="agent.v1.StartGrindExecutionError",Ne.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Pe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pe,e,t)}}Pe.runtime=r.proto3,Pe.typeName="agent.v1.StartGrindExecutionToolCall",Pe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:be},{no:2,name:"result",kind:"message",T:je}]));class Be extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Be,e,t)}}Be.runtime=r.proto3,Be.typeName="agent.v1.StartGrindPlanningArgs",Be.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"explanation",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class Ie extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ie,e,t)}}Ie.runtime=r.proto3,Ie.typeName="agent.v1.StartGrindPlanningResult",Ie.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:qe,oneof:"result"},{no:2,name:"error",kind:"message",T:Re,oneof:"result"}]));class qe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qe,e,t)}}qe.runtime=r.proto3,qe.typeName="agent.v1.StartGrindPlanningSuccess",qe.fields=r.proto3.util.newFieldList((()=>[]));class Re extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Re,e,t)}}Re.runtime=r.proto3,Re.typeName="agent.v1.StartGrindPlanningError",Re.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Me extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Me,e,t)}}Me.runtime=r.proto3,Me.typeName="agent.v1.StartGrindPlanningToolCall",Me.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Be},{no:2,name:"result",kind:"message",T:Ie}]));var Oe=n("../proto/dist/generated/agent/v1/web_fetch_tool_pb.js"),Fe=n("../proto/dist/generated/agent/v1/report_bugfix_results_tool_pb.js"),Ae=n("../proto/dist/generated/agent/v1/ai_attribution_tool_pb.js"),Le=n("../proto/dist/generated/agent/v1/pr_management_tool_pb.js"),Ce=n("../proto/dist/generated/agent/v1/mcp_auth_tool_pb.js");class Ue extends r.Message{constructor(e){super(),this.taskId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ue,e,t)}}Ue.runtime=r.proto3,Ue.typeName="agent.v1.AwaitArgs",Ue.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"block_until_ms",kind:"scalar",T:13,opt:!0},{no:3,name:"regex",kind:"scalar",T:9,opt:!0}]));class De extends r.Message{constructor(e){super(),this.taskId="",this.runtimeMs=r.protoInt64.zero,this.outputFilePath="",this.outputLength=r.protoInt64.zero,this.regexRequested=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(De,e,t)}}De.runtime=r.proto3,De.typeName="agent.v1.AwaitTaskComplete",De.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"runtime_ms",kind:"scalar",T:4},{no:3,name:"output_file_path",kind:"scalar",T:9},{no:4,name:"output_length",kind:"scalar",T:4},{no:5,name:"regex_requested",kind:"scalar",T:8},{no:6,name:"regex_match",kind:"scalar",T:9,opt:!0},{no:7,name:"exit_code",kind:"scalar",T:17,opt:!0},{no:8,name:"wake_reason",kind:"scalar",T:9,opt:!0}]));class Ge extends r.Message{constructor(e){super(),this.taskId="",this.runtimeMs=r.protoInt64.zero,this.outputFilePath="",this.outputLength=r.protoInt64.zero,this.regexRequested=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ge,e,t)}}Ge.runtime=r.proto3,Ge.typeName="agent.v1.AwaitTaskStillRunning",Ge.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"runtime_ms",kind:"scalar",T:4},{no:3,name:"output_file_path",kind:"scalar",T:9},{no:4,name:"output_length",kind:"scalar",T:4},{no:5,name:"regex_requested",kind:"scalar",T:8},{no:6,name:"regex_match",kind:"scalar",T:9,opt:!0},{no:7,name:"wake_reason",kind:"scalar",T:9,opt:!0}]));class He extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(He,e,t)}}He.runtime=r.proto3,He.typeName="agent.v1.AwaitError",He.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Ke extends r.Message{constructor(e){super(),this.awaitResult={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ke,e,t)}}Ke.runtime=r.proto3,Ke.typeName="agent.v1.AwaitSuccess",Ke.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"complete",kind:"message",T:De,oneof:"await_result"},{no:2,name:"still_running",kind:"message",T:Ge,oneof:"await_result"}]));class We extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(We,e,t)}}We.runtime=r.proto3,We.typeName="agent.v1.AwaitResult",We.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"complete",kind:"message",T:De,oneof:"result"},{no:2,name:"still_running",kind:"message",T:Ge,oneof:"result"},{no:3,name:"error",kind:"message",T:He,oneof:"result"},{no:4,name:"success",kind:"message",T:Ke,oneof:"result"}]));class Ye extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ye,e,t)}}Ye.runtime=r.proto3,Ye.typeName="agent.v1.AwaitToolCall",Ye.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ue},{no:2,name:"result",kind:"message",T:We}]));class ze extends r.Message{constructor(e){super(),this.filePath="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ze,e,t)}}ze.runtime=r.proto3,ze.typeName="agent.v1.BlameByFilePathArgs",ze.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"start_line",kind:"scalar",T:5,opt:!0},{no:3,name:"end_line",kind:"scalar",T:5,opt:!0}]));class Ve extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ve,e,t)}}Ve.runtime=r.proto3,Ve.typeName="agent.v1.BlameByFilePathSuccess",Ve.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class Qe extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qe).fromBinary(e,t)}static fromJson(e,t){return(new Qe).fromJson(e,t)}static fromJsonString(e,t){return(new Qe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qe,e,t)}}Qe.runtime=r.proto3,Qe.typeName="agent.v1.BlameByFilePathError",Qe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class Xe extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xe).fromBinary(e,t)}static fromJson(e,t){return(new Xe).fromJson(e,t)}static fromJsonString(e,t){return(new Xe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xe,e,t)}}Xe.runtime=r.proto3,Xe.typeName="agent.v1.BlameByFilePathResult",Xe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ve,oneof:"result"},{no:2,name:"error",kind:"message",T:Qe,oneof:"result"}]));class $e extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $e).fromBinary(e,t)}static fromJson(e,t){return(new $e).fromJson(e,t)}static fromJsonString(e,t){return(new $e).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($e,e,t)}}$e.runtime=r.proto3,$e.typeName="agent.v1.BlameByFilePathToolCall",$e.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ze},{no:2,name:"result",kind:"message",T:Xe}]));class Ze extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ze).fromBinary(e,t)}static fromJson(e,t){return(new Ze).fromJson(e,t)}static fromJsonString(e,t){return(new Ze).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ze,e,t)}}Ze.runtime=r.proto3,Ze.typeName="agent.v1.GetMcpToolsArgs",Ze.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_name",kind:"scalar",T:9,opt:!0},{no:3,name:"pattern",kind:"scalar",T:9,opt:!0},{no:4,name:"tool_call_id",kind:"scalar",T:9}]));class et extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new et).fromBinary(e,t)}static fromJson(e,t){return(new et).fromJson(e,t)}static fromJsonString(e,t){return(new et).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(et,e,t)}}et.runtime=r.proto3,et.typeName="agent.v1.GetMcpToolsAgentResult",et.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:tt,oneof:"result"},{no:2,name:"error",kind:"message",T:nt,oneof:"result"}]));class tt extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tt).fromBinary(e,t)}static fromJson(e,t){return(new tt).fromJson(e,t)}static fromJsonString(e,t){return(new tt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(tt,e,t)}}tt.runtime=r.proto3,tt.typeName="agent.v1.GetMcpToolsSuccess",tt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"output_file_path",kind:"scalar",T:9,opt:!0}]));class nt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nt).fromBinary(e,t)}static fromJson(e,t){return(new nt).fromJson(e,t)}static fromJsonString(e,t){return(new nt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(nt,e,t)}}nt.runtime=r.proto3,nt.typeName="agent.v1.GetMcpToolsError",nt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class rt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rt).fromBinary(e,t)}static fromJson(e,t){return(new rt).fromJson(e,t)}static fromJsonString(e,t){return(new rt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rt,e,t)}}rt.runtime=r.proto3,rt.typeName="agent.v1.GetMcpToolsToolCall",rt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ze},{no:2,name:"result",kind:"message",T:et}]));class st extends r.Message{constructor(e){super(),this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new st).fromBinary(e,t)}static fromJson(e,t){return(new st).fromJson(e,t)}static fromJsonString(e,t){return(new st).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(st,e,t)}}st.runtime=r.proto3,st.typeName="agent.v1.ReportBugArgs",st.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"file",kind:"scalar",T:9},{no:3,name:"start_line",kind:"scalar",T:5},{no:4,name:"end_line",kind:"scalar",T:5},{no:5,name:"description",kind:"scalar",T:9},{no:6,name:"severity",kind:"scalar",T:9},{no:7,name:"category",kind:"scalar",T:9},{no:8,name:"rationale",kind:"scalar",T:9}]));class ot extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ot).fromBinary(e,t)}static fromJson(e,t){return(new ot).fromJson(e,t)}static fromJsonString(e,t){return(new ot).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ot,e,t)}}ot.runtime=r.proto3,ot.typeName="agent.v1.ReportBugSuccess",ot.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9}]));class it extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new it).fromBinary(e,t)}static fromJson(e,t){return(new it).fromJson(e,t)}static fromJsonString(e,t){return(new it).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(it,e,t)}}it.runtime=r.proto3,it.typeName="agent.v1.ReportBugError",it.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class at extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new at).fromBinary(e,t)}static fromJson(e,t){return(new at).fromJson(e,t)}static fromJsonString(e,t){return(new at).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(at,e,t)}}at.runtime=r.proto3,at.typeName="agent.v1.ReportBugResult",at.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:ot,oneof:"result"},{no:2,name:"error",kind:"message",T:it,oneof:"result"}]));class lt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lt).fromBinary(e,t)}static fromJson(e,t){return(new lt).fromJson(e,t)}static fromJsonString(e,t){return(new lt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(lt,e,t)}}lt.runtime=r.proto3,lt.typeName="agent.v1.ReportBugToolCall",lt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:st},{no:2,name:"result",kind:"message",T:at}]));class ut extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ut).fromBinary(e,t)}static fromJson(e,t){return(new ut).fromJson(e,t)}static fromJsonString(e,t){return(new ut).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ut,e,t)}}ut.runtime=r.proto3,ut.typeName="agent.v1.CommunicateUpdateArgs",ut.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"current_step",kind:"scalar",T:9,opt:!0},{no:3,name:"final_summary",kind:"scalar",T:9,opt:!0},{no:4,name:"completed_subtitle",kind:"scalar",T:9,opt:!0}]));class mt extends r.Message{constructor(e){super(),this.currentStep="",this.messageIndex=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mt).fromBinary(e,t)}static fromJson(e,t){return(new mt).fromJson(e,t)}static fromJsonString(e,t){return(new mt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mt,e,t)}}mt.runtime=r.proto3,mt.typeName="agent.v1.CommunicateUpdateSuccess",mt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"current_step",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13}]));class ct extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ct).fromBinary(e,t)}static fromJson(e,t){return(new ct).fromJson(e,t)}static fromJsonString(e,t){return(new ct).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ct,e,t)}}ct.runtime=r.proto3,ct.typeName="agent.v1.CommunicateUpdateError",ct.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class dt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dt).fromBinary(e,t)}static fromJson(e,t){return(new dt).fromJson(e,t)}static fromJsonString(e,t){return(new dt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(dt,e,t)}}dt.runtime=r.proto3,dt.typeName="agent.v1.CommunicateUpdateResult",dt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:mt,oneof:"result"},{no:2,name:"error",kind:"message",T:ct,oneof:"result"}]));class pt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pt).fromBinary(e,t)}static fromJson(e,t){return(new pt).fromJson(e,t)}static fromJsonString(e,t){return(new pt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pt,e,t)}}pt.runtime=r.proto3,pt.typeName="agent.v1.CommunicateUpdateToolCall",pt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ut},{no:2,name:"result",kind:"message",T:dt}]));class ft extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ft).fromBinary(e,t)}static fromJson(e,t){return(new ft).fromJson(e,t)}static fromJsonString(e,t){return(new ft).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ft,e,t)}}ft.runtime=r.proto3,ft.typeName="agent.v1.SendFinalSummaryArgs",ft.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"final_summary",kind:"scalar",T:9,opt:!0}]));class gt extends r.Message{constructor(e){super(),this.finalSummary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gt).fromBinary(e,t)}static fromJson(e,t){return(new gt).fromJson(e,t)}static fromJsonString(e,t){return(new gt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gt,e,t)}}gt.runtime=r.proto3,gt.typeName="agent.v1.SendFinalSummarySuccess",gt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"final_summary",kind:"scalar",T:9}]));class _t extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _t).fromBinary(e,t)}static fromJson(e,t){return(new _t).fromJson(e,t)}static fromJsonString(e,t){return(new _t).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_t,e,t)}}_t.runtime=r.proto3,_t.typeName="agent.v1.SendFinalSummaryError",_t.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class ht extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ht).fromBinary(e,t)}static fromJson(e,t){return(new ht).fromJson(e,t)}static fromJsonString(e,t){return(new ht).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ht,e,t)}}ht.runtime=r.proto3,ht.typeName="agent.v1.SendFinalSummaryResult",ht.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:gt,oneof:"result"},{no:2,name:"error",kind:"message",T:_t,oneof:"result"}]));class Tt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tt,e,t)}}Tt.runtime=r.proto3,Tt.typeName="agent.v1.SendFinalSummaryToolCall",Tt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ft},{no:2,name:"result",kind:"message",T:ht}]));class yt extends r.Message{constructor(e){super(),this.feedback="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yt).fromBinary(e,t)}static fromJson(e,t){return(new yt).fromJson(e,t)}static fromJsonString(e,t){return(new yt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yt,e,t)}}yt.runtime=r.proto3,yt.typeName="agent.v1.UpdatePrCodeTourArgs",yt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"feedback",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class St extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(St,e,t)}}St.runtime=r.proto3,St.typeName="agent.v1.UpdatePrCodeTourResult",St.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:wt,oneof:"result"},{no:2,name:"error",kind:"message",T:kt,oneof:"result"}]));class wt extends r.Message{constructor(e){super(),this.revisionId="",this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wt).fromBinary(e,t)}static fromJson(e,t){return(new wt).fromJson(e,t)}static fromJsonString(e,t){return(new wt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wt,e,t)}}wt.runtime=r.proto3,wt.typeName="agent.v1.UpdatePrCodeTourSuccess",wt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"revision_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]));class kt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kt,e,t)}}kt.runtime=r.proto3,kt.typeName="agent.v1.UpdatePrCodeTourError",kt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Jt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jt).fromBinary(e,t)}static fromJson(e,t){return(new Jt).fromJson(e,t)}static fromJsonString(e,t){return(new Jt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jt,e,t)}}Jt.runtime=r.proto3,Jt.typeName="agent.v1.UpdatePrCodeTourToolCall",Jt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:yt},{no:2,name:"result",kind:"message",T:St}]));var vt=n("../proto/dist/generated/agent/v1/replace_env_tool_pb.js");class Et extends r.Message{constructor(e){super(),this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Et,e,t)}}Et.runtime=r.proto3,Et.typeName="agent.v1.EditPrLabelsArgs",Et.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"pr_url",kind:"scalar",T:9},{no:4,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:5,name:"remove_labels",kind:"scalar",T:9,repeated:!0}]));class bt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bt).fromBinary(e,t)}static fromJson(e,t){return(new bt).fromJson(e,t)}static fromJsonString(e,t){return(new bt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bt,e,t)}}bt.runtime=r.proto3,bt.typeName="agent.v1.EditPrLabelsResult",bt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:jt,oneof:"result"},{no:2,name:"error",kind:"message",T:xt,oneof:"result"}]));class jt extends r.Message{constructor(e){super(),this.prUrl="",this.prNumber=0,this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jt,e,t)}}jt.runtime=r.proto3,jt.typeName="agent.v1.EditPrLabelsSuccess",jt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"pr_number",kind:"scalar",T:5},{no:3,name:"message",kind:"scalar",T:9}]));class xt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xt).fromBinary(e,t)}static fromJson(e,t){return(new xt).fromJson(e,t)}static fromJsonString(e,t){return(new xt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xt,e,t)}}xt.runtime=r.proto3,xt.typeName="agent.v1.EditPrLabelsError",xt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Nt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nt,e,t)}}Nt.runtime=r.proto3,Nt.typeName="agent.v1.EditPrLabelsToolCall",Nt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Et},{no:2,name:"result",kind:"message",T:bt}]));class Pt extends r.Message{constructor(e){super(),this.checkName="",this.tldr="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pt,e,t)}}Pt.runtime=r.proto3,Pt.typeName="agent.v1.RecordCiInvestigationFinding",Pt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"check_name",kind:"scalar",T:9},{no:2,name:"details_url",kind:"scalar",T:9,opt:!0},{no:3,name:"tldr",kind:"scalar",T:9},{no:4,name:"root_cause",kind:"scalar",T:9,opt:!0},{no:5,name:"failing_signal",kind:"scalar",T:9,opt:!0},{no:6,name:"suggested_next_step",kind:"scalar",T:9,opt:!0},{no:7,name:"diff_relation",kind:"scalar",T:9,opt:!0},{no:8,name:"diff_relation_evidence",kind:"scalar",T:9,opt:!0},{no:9,name:"flake_assessment",kind:"scalar",T:9,opt:!0},{no:10,name:"flake_evidence",kind:"scalar",T:9,opt:!0},{no:11,name:"rerun_available",kind:"scalar",T:8,opt:!0},{no:12,name:"rerun_evidence",kind:"scalar",T:9,opt:!0},{no:13,name:"recommended_action",kind:"scalar",T:9,opt:!0},{no:14,name:"recommended_action_evidence",kind:"scalar",T:9,opt:!0},{no:15,name:"confidence",kind:"scalar",T:9,opt:!0}]));class Bt extends r.Message{constructor(e){super(),this.summary="",this.themes=[],this.checkKeys=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bt).fromBinary(e,t)}static fromJson(e,t){return(new Bt).fromJson(e,t)}static fromJsonString(e,t){return(new Bt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bt,e,t)}}Bt.runtime=r.proto3,Bt.typeName="agent.v1.RecordCiInvestigationOverall",Bt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"themes",kind:"scalar",T:9,repeated:!0},{no:3,name:"recommended_action",kind:"scalar",T:9,opt:!0},{no:4,name:"recommended_action_evidence",kind:"scalar",T:9,opt:!0},{no:5,name:"check_keys",kind:"scalar",T:9,repeated:!0}]));class It extends r.Message{constructor(e){super(),this.findings=[],this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(It,e,t)}}It.runtime=r.proto3,It.typeName="agent.v1.RecordCiInvestigationFindingsArgs",It.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"findings",kind:"message",T:Pt,repeated:!0},{no:2,name:"overall",kind:"message",T:Bt,opt:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9}]));class qt extends r.Message{constructor(e){super(),this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qt,e,t)}}qt.runtime=r.proto3,qt.typeName="agent.v1.RecordCiInvestigationFindingsSuccess",qt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9}]));class Rt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rt,e,t)}}Rt.runtime=r.proto3,Rt.typeName="agent.v1.RecordCiInvestigationFindingsError",Rt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Mt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mt,e,t)}}Mt.runtime=r.proto3,Mt.typeName="agent.v1.RecordCiInvestigationFindingsResult",Mt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:qt,oneof:"result"},{no:2,name:"error",kind:"message",T:Rt,oneof:"result"}]));class Ot extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ot).fromBinary(e,t)}static fromJson(e,t){return(new Ot).fromJson(e,t)}static fromJsonString(e,t){return(new Ot).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ot,e,t)}}Ot.runtime=r.proto3,Ot.typeName="agent.v1.RecordCiInvestigationFindingsToolCall",Ot.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:It},{no:2,name:"result",kind:"message",T:Mt}]));class Ft extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ft).fromBinary(e,t)}static fromJson(e,t){return(new Ft).fromJson(e,t)}static fromJsonString(e,t){return(new Ft).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ft,e,t)}}Ft.runtime=r.proto3,Ft.typeName="agent.v1.SendMessageText",Ft.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class At extends r.Message{constructor(e){super(),this.url="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new At).fromBinary(e,t)}static fromJson(e,t){return(new At).fromJson(e,t)}static fromJsonString(e,t){return(new At).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(At,e,t)}}At.runtime=r.proto3,At.typeName="agent.v1.SendMessageAttachment",At.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"alt",kind:"scalar",T:9,opt:!0}]));class Lt extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lt,e,t)}}Lt.runtime=r.proto3,Lt.typeName="agent.v1.SendMessageArgs",Lt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Ft,oneof:"message"},{no:2,name:"attachment",kind:"message",T:At,oneof:"message"}]));class Ct extends r.Message{constructor(e){super(),this.timestamp=r.protoInt64.zero,this.messageId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ct,e,t)}}Ct.runtime=r.proto3,Ct.typeName="agent.v1.SendMessageSuccess",Ct.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"timestamp",kind:"scalar",T:4},{no:2,name:"message_id",kind:"scalar",T:9}]));class Ut extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ut).fromBinary(e,t)}static fromJson(e,t){return(new Ut).fromJson(e,t)}static fromJsonString(e,t){return(new Ut).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ut,e,t)}}Ut.runtime=r.proto3,Ut.typeName="agent.v1.SendMessageError",Ut.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Dt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dt,e,t)}}Dt.runtime=r.proto3,Dt.typeName="agent.v1.SendMessageResult",Dt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ct,oneof:"result"},{no:2,name:"error",kind:"message",T:Ut,oneof:"result"}]));class Gt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gt,e,t)}}Gt.runtime=r.proto3,Gt.typeName="agent.v1.SendMessageToolCall",Gt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Lt},{no:2,name:"result",kind:"message",T:Dt}]));class Ht extends r.Message{constructor(e){super(),this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ht).fromBinary(e,t)}static fromJson(e,t){return(new Ht).fromJson(e,t)}static fromJsonString(e,t){return(new Ht).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ht,e,t)}}Ht.runtime=r.proto3,Ht.typeName="agent.v1.FetchCloudAgentDataArgs",Ht.fields=r.proto3.util.newFieldList((()=>[{no:4,name:"bc_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"sources",kind:"scalar",T:9,repeated:!0},{no:7,name:"statuses",kind:"scalar",T:9,repeated:!0},{no:8,name:"include_team_wide",kind:"scalar",T:8},{no:9,name:"include_archived",kind:"scalar",T:8},{no:10,name:"limit",kind:"scalar",T:5,opt:!0},{no:12,name:"include_transcript",kind:"scalar",T:8},{no:13,name:"active_since",kind:"scalar",T:9}]));class Kt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kt).fromBinary(e,t)}static fromJson(e,t){return(new Kt).fromJson(e,t)}static fromJsonString(e,t){return(new Kt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kt,e,t)}}Kt.runtime=r.proto3,Kt.typeName="agent.v1.FetchCloudAgentDataResult",Kt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Wt,oneof:"result"},{no:2,name:"error",kind:"message",T:Yt,oneof:"result"}]));class Wt extends r.Message{constructor(e){super(),this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wt,e,t)}}Wt.runtime=r.proto3,Wt.typeName="agent.v1.FetchCloudAgentDataSuccess",Wt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"agent_count",kind:"scalar",T:5},{no:3,name:"written_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"unavailable_bc_ids",kind:"scalar",T:9,repeated:!0}]));class Yt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yt,e,t)}}Yt.runtime=r.proto3,Yt.typeName="agent.v1.FetchCloudAgentDataError",Yt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class zt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zt).fromBinary(e,t)}static fromJson(e,t){return(new zt).fromJson(e,t)}static fromJsonString(e,t){return(new zt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zt,e,t)}}zt.runtime=r.proto3,zt.typeName="agent.v1.FetchCloudAgentDataToolCall",zt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ht},{no:2,name:"result",kind:"message",T:Kt}]));class Vt extends r.Message{constructor(e){super(),this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vt,e,t)}}Vt.runtime=r.proto3,Vt.typeName="agent.v1.SendToUserArgs",Vt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9}]));class Qt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qt).fromBinary(e,t)}static fromJson(e,t){return(new Qt).fromJson(e,t)}static fromJsonString(e,t){return(new Qt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qt,e,t)}}Qt.runtime=r.proto3,Qt.typeName="agent.v1.SendToUserSuccess",Qt.fields=r.proto3.util.newFieldList((()=>[]));class Xt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xt,e,t)}}Xt.runtime=r.proto3,Xt.typeName="agent.v1.SendToUserError",Xt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class $t extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $t).fromBinary(e,t)}static fromJson(e,t){return(new $t).fromJson(e,t)}static fromJsonString(e,t){return(new $t).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($t,e,t)}}$t.runtime=r.proto3,$t.typeName="agent.v1.SendToUserResult",$t.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Qt,oneof:"result"},{no:2,name:"error",kind:"message",T:Xt,oneof:"result"}]));class Zt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zt).fromBinary(e,t)}static fromJson(e,t){return(new Zt).fromJson(e,t)}static fromJsonString(e,t){return(new Zt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zt,e,t)}}Zt.runtime=r.proto3,Zt.typeName="agent.v1.SendToUserToolCall",Zt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Vt},{no:2,name:"result",kind:"message",T:$t}]));var en=n("../proto/dist/generated/agent/v1/pi_common_pb.js");class tn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tn).fromBinary(e,t)}static fromJson(e,t){return(new tn).fromJson(e,t)}static fromJsonString(e,t){return(new tn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(tn,e,t)}}tn.runtime=r.proto3,tn.typeName="agent.v1.PiReadToolCall",tn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:nn},{no:2,name:"result",kind:"message",T:rn}]));class nn extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nn).fromBinary(e,t)}static fromJson(e,t){return(new nn).fromJson(e,t)}static fromJsonString(e,t){return(new nn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(nn,e,t)}}nn.runtime=r.proto3,nn.typeName="agent.v1.PiReadToolArgs",nn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:5,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class rn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rn).fromBinary(e,t)}static fromJson(e,t){return(new rn).fromJson(e,t)}static fromJsonString(e,t){return(new rn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rn,e,t)}}rn.runtime=r.proto3,rn.typeName="agent.v1.PiReadToolResult",rn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:sn,oneof:"result"},{no:2,name:"error",kind:"message",T:on,oneof:"result"}]));class sn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new sn).fromBinary(e,t)}static fromJson(e,t){return(new sn).fromJson(e,t)}static fromJsonString(e,t){return(new sn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(sn,e,t)}}sn.runtime=r.proto3,sn.typeName="agent.v1.PiReadToolSuccess",sn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0}]));class on extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new on).fromBinary(e,t)}static fromJson(e,t){return(new on).fromJson(e,t)}static fromJsonString(e,t){return(new on).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(on,e,t)}}on.runtime=r.proto3,on.typeName="agent.v1.PiReadToolError",on.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class an extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new an).fromBinary(e,t)}static fromJson(e,t){return(new an).fromJson(e,t)}static fromJsonString(e,t){return(new an).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(an,e,t)}}an.runtime=r.proto3,an.typeName="agent.v1.PiBashToolCall",an.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ln},{no:2,name:"result",kind:"message",T:un}]));class ln extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ln).fromBinary(e,t)}static fromJson(e,t){return(new ln).fromJson(e,t)}static fromJsonString(e,t){return(new ln).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ln,e,t)}}ln.runtime=r.proto3,ln.typeName="agent.v1.PiBashToolArgs",ln.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"timeout",kind:"scalar",T:1,opt:!0}]));class un extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new un).fromBinary(e,t)}static fromJson(e,t){return(new un).fromJson(e,t)}static fromJsonString(e,t){return(new un).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(un,e,t)}}un.runtime=r.proto3,un.typeName="agent.v1.PiBashToolResult",un.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:mn,oneof:"result"},{no:2,name:"error",kind:"message",T:cn,oneof:"result"}]));class mn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mn).fromBinary(e,t)}static fromJson(e,t){return(new mn).fromJson(e,t)}static fromJsonString(e,t){return(new mn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mn,e,t)}}mn.runtime=r.proto3,mn.typeName="agent.v1.PiBashToolSuccess",mn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"full_output_path",kind:"scalar",T:9,opt:!0}]));class cn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cn).fromBinary(e,t)}static fromJson(e,t){return(new cn).fromJson(e,t)}static fromJsonString(e,t){return(new cn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cn,e,t)}}cn.runtime=r.proto3,cn.typeName="agent.v1.PiBashToolError",cn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"full_output_path",kind:"scalar",T:9,opt:!0}]));var dn=n("../proto/dist/generated/agent/v1/pi_edit_tool_pb.js");class pn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pn).fromBinary(e,t)}static fromJson(e,t){return(new pn).fromJson(e,t)}static fromJsonString(e,t){return(new pn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pn,e,t)}}pn.runtime=r.proto3,pn.typeName="agent.v1.PiWriteToolCall",pn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:fn},{no:2,name:"result",kind:"message",T:gn}]));class fn extends r.Message{constructor(e){super(),this.path="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fn).fromBinary(e,t)}static fromJson(e,t){return(new fn).fromJson(e,t)}static fromJsonString(e,t){return(new fn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fn,e,t)}}fn.runtime=r.proto3,fn.typeName="agent.v1.PiWriteToolArgs",fn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]));class gn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gn).fromBinary(e,t)}static fromJson(e,t){return(new gn).fromJson(e,t)}static fromJsonString(e,t){return(new gn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gn,e,t)}}gn.runtime=r.proto3,gn.typeName="agent.v1.PiWriteToolResult",gn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:_n,oneof:"result"},{no:2,name:"error",kind:"message",T:hn,oneof:"result"},{no:3,name:"rejected",kind:"message",T:Tn,oneof:"result"}]));class _n extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _n).fromBinary(e,t)}static fromJson(e,t){return(new _n).fromJson(e,t)}static fromJsonString(e,t){return(new _n).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_n,e,t)}}_n.runtime=r.proto3,_n.typeName="agent.v1.PiWriteToolSuccess",_n.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9}]));class hn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hn).fromBinary(e,t)}static fromJson(e,t){return(new hn).fromJson(e,t)}static fromJsonString(e,t){return(new hn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hn,e,t)}}hn.runtime=r.proto3,hn.typeName="agent.v1.PiWriteToolError",hn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Tn extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tn).fromBinary(e,t)}static fromJson(e,t){return(new Tn).fromJson(e,t)}static fromJsonString(e,t){return(new Tn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tn,e,t)}}Tn.runtime=r.proto3,Tn.typeName="agent.v1.PiWriteToolRejected",Tn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class yn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yn).fromBinary(e,t)}static fromJson(e,t){return(new yn).fromJson(e,t)}static fromJsonString(e,t){return(new yn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yn,e,t)}}yn.runtime=r.proto3,yn.typeName="agent.v1.PiGrepToolCall",yn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Sn},{no:2,name:"result",kind:"message",T:wn}]));class Sn extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sn).fromBinary(e,t)}static fromJson(e,t){return(new Sn).fromJson(e,t)}static fromJsonString(e,t){return(new Sn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Sn,e,t)}}Sn.runtime=r.proto3,Sn.typeName="agent.v1.PiGrepToolArgs",Sn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"glob",kind:"scalar",T:9,opt:!0},{no:4,name:"ignore_case",kind:"scalar",T:8,opt:!0},{no:5,name:"literal",kind:"scalar",T:8,opt:!0},{no:6,name:"context",kind:"scalar",T:5,opt:!0},{no:7,name:"limit",kind:"scalar",T:5,opt:!0}]));class wn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wn).fromBinary(e,t)}static fromJson(e,t){return(new wn).fromJson(e,t)}static fromJsonString(e,t){return(new wn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wn,e,t)}}wn.runtime=r.proto3,wn.typeName="agent.v1.PiGrepToolResult",wn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:kn,oneof:"result"},{no:2,name:"error",kind:"message",T:Jn,oneof:"result"}]));class kn extends r.Message{constructor(e){super(),this.output="",this.linesTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kn).fromBinary(e,t)}static fromJson(e,t){return(new kn).fromJson(e,t)}static fromJsonString(e,t){return(new kn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kn,e,t)}}kn.runtime=r.proto3,kn.typeName="agent.v1.PiGrepToolSuccess",kn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"match_limit_reached",kind:"scalar",T:13,opt:!0},{no:4,name:"lines_truncated",kind:"scalar",T:8}]));class Jn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jn).fromBinary(e,t)}static fromJson(e,t){return(new Jn).fromJson(e,t)}static fromJsonString(e,t){return(new Jn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jn,e,t)}}Jn.runtime=r.proto3,Jn.typeName="agent.v1.PiGrepToolError",Jn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class vn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vn).fromBinary(e,t)}static fromJson(e,t){return(new vn).fromJson(e,t)}static fromJsonString(e,t){return(new vn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vn,e,t)}}vn.runtime=r.proto3,vn.typeName="agent.v1.PiFindToolCall",vn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:En},{no:2,name:"result",kind:"message",T:bn}]));class En extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new En).fromBinary(e,t)}static fromJson(e,t){return(new En).fromJson(e,t)}static fromJsonString(e,t){return(new En).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(En,e,t)}}En.runtime=r.proto3,En.typeName="agent.v1.PiFindToolArgs",En.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class bn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bn).fromBinary(e,t)}static fromJson(e,t){return(new bn).fromJson(e,t)}static fromJsonString(e,t){return(new bn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bn,e,t)}}bn.runtime=r.proto3,bn.typeName="agent.v1.PiFindToolResult",bn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:jn,oneof:"result"},{no:2,name:"error",kind:"message",T:xn,oneof:"result"}]));class jn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jn).fromBinary(e,t)}static fromJson(e,t){return(new jn).fromJson(e,t)}static fromJsonString(e,t){return(new jn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jn,e,t)}}jn.runtime=r.proto3,jn.typeName="agent.v1.PiFindToolSuccess",jn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"result_limit_reached",kind:"scalar",T:13,opt:!0}]));class xn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xn).fromBinary(e,t)}static fromJson(e,t){return(new xn).fromJson(e,t)}static fromJsonString(e,t){return(new xn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xn,e,t)}}xn.runtime=r.proto3,xn.typeName="agent.v1.PiFindToolError",xn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Nn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nn).fromBinary(e,t)}static fromJson(e,t){return(new Nn).fromJson(e,t)}static fromJsonString(e,t){return(new Nn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nn,e,t)}}Nn.runtime=r.proto3,Nn.typeName="agent.v1.PiLsToolCall",Nn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Pn},{no:2,name:"result",kind:"message",T:Bn}]));class Pn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pn).fromBinary(e,t)}static fromJson(e,t){return(new Pn).fromJson(e,t)}static fromJsonString(e,t){return(new Pn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pn,e,t)}}Pn.runtime=r.proto3,Pn.typeName="agent.v1.PiLsToolArgs",Pn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9,opt:!0},{no:2,name:"limit",kind:"scalar",T:5,opt:!0}]));class Bn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bn).fromBinary(e,t)}static fromJson(e,t){return(new Bn).fromJson(e,t)}static fromJsonString(e,t){return(new Bn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bn,e,t)}}Bn.runtime=r.proto3,Bn.typeName="agent.v1.PiLsToolResult",Bn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:In,oneof:"result"},{no:2,name:"error",kind:"message",T:qn,oneof:"result"}]));class In extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new In).fromBinary(e,t)}static fromJson(e,t){return(new In).fromJson(e,t)}static fromJsonString(e,t){return(new In).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(In,e,t)}}In.runtime=r.proto3,In.typeName="agent.v1.PiLsToolSuccess",In.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"entry_limit_reached",kind:"scalar",T:13,opt:!0}]));class qn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qn).fromBinary(e,t)}static fromJson(e,t){return(new qn).fromJson(e,t)}static fromJsonString(e,t){return(new qn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qn,e,t)}}qn.runtime=r.proto3,qn.typeName="agent.v1.PiLsToolError",qn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));var Rn,Mn=n("../proto/dist/generated/agent/v1/connect_scm_tool_pb.js"),On=n("../proto/dist/generated/agent/v1/conversation_search_exec_pb.js");class Fn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fn).fromBinary(e,t)}static fromJson(e,t){return(new Fn).fromJson(e,t)}static fromJsonString(e,t){return(new Fn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fn,e,t)}}Fn.runtime=r.proto3,Fn.typeName="agent.v1.SearchConversationsToolCall",Fn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:On.$m},{no:2,name:"result",kind:"message",T:On.pT}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACTIVE=1]="ACTIVE",e[e.PAUSED=2]="PAUSED",e[e.COMPLETE=3]="COMPLETE",e[e.CLEARED=4]="CLEARED"}(Rn||(Rn={})),r.proto3.util.setEnumType(Rn,"agent.v1.GoalStatus",[{no:0,name:"GOAL_STATUS_UNSPECIFIED"},{no:1,name:"GOAL_STATUS_ACTIVE"},{no:2,name:"GOAL_STATUS_PAUSED"},{no:3,name:"GOAL_STATUS_COMPLETE"},{no:4,name:"GOAL_STATUS_CLEARED"}]);class An extends r.Message{constructor(e){super(),this.objective="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new An).fromBinary(e,t)}static fromJson(e,t){return(new An).fromJson(e,t)}static fromJsonString(e,t){return(new An).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(An,e,t)}}An.runtime=r.proto3,An.typeName="agent.v1.CreateGoalArgs",An.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"objective",kind:"scalar",T:9}]));class Ln extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ln).fromBinary(e,t)}static fromJson(e,t){return(new Ln).fromJson(e,t)}static fromJsonString(e,t){return(new Ln).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ln,e,t)}}Ln.runtime=r.proto3,Ln.typeName="agent.v1.CreateGoalSuccess",Ln.fields=r.proto3.util.newFieldList((()=>[]));class Cn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cn).fromBinary(e,t)}static fromJson(e,t){return(new Cn).fromJson(e,t)}static fromJsonString(e,t){return(new Cn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cn,e,t)}}Cn.runtime=r.proto3,Cn.typeName="agent.v1.GoalError",Cn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Un extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Un).fromBinary(e,t)}static fromJson(e,t){return(new Un).fromJson(e,t)}static fromJsonString(e,t){return(new Un).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Un,e,t)}}Un.runtime=r.proto3,Un.typeName="agent.v1.CreateGoalResult",Un.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ln,oneof:"result"},{no:2,name:"error",kind:"message",T:Cn,oneof:"result"}]));class Dn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dn).fromBinary(e,t)}static fromJson(e,t){return(new Dn).fromJson(e,t)}static fromJsonString(e,t){return(new Dn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dn,e,t)}}Dn.runtime=r.proto3,Dn.typeName="agent.v1.CreateGoalToolCall",Dn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:An},{no:2,name:"result",kind:"message",T:Un}]));class Gn extends r.Message{constructor(e){super(),this.status=Rn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gn).fromBinary(e,t)}static fromJson(e,t){return(new Gn).fromJson(e,t)}static fromJsonString(e,t){return(new Gn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gn,e,t)}}Gn.runtime=r.proto3,Gn.typeName="agent.v1.UpdateGoalArgs",Gn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)}]));class Hn extends r.Message{constructor(e){super(),this.status=Rn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hn).fromBinary(e,t)}static fromJson(e,t){return(new Hn).fromJson(e,t)}static fromJsonString(e,t){return(new Hn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hn,e,t)}}Hn.runtime=r.proto3,Hn.typeName="agent.v1.UpdateGoalSuccess",Hn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)}]));class Kn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kn).fromBinary(e,t)}static fromJson(e,t){return(new Kn).fromJson(e,t)}static fromJsonString(e,t){return(new Kn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kn,e,t)}}Kn.runtime=r.proto3,Kn.typeName="agent.v1.UpdateGoalResult",Kn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Hn,oneof:"result"},{no:2,name:"error",kind:"message",T:Cn,oneof:"result"}]));class Wn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wn).fromBinary(e,t)}static fromJson(e,t){return(new Wn).fromJson(e,t)}static fromJsonString(e,t){return(new Wn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wn,e,t)}}Wn.runtime=r.proto3,Wn.typeName="agent.v1.UpdateGoalToolCall",Wn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Gn},{no:2,name:"result",kind:"message",T:Kn}]));var Yn,zn,Vn,Qn,Xn,$n,Zn,er,tr,nr,rr,sr,or,ir=n("../proto/dist/generated/agent/v1/hook_additional_context_pb.js"),ar=n("../proto/dist/generated/agent/v1/request_context_exec_pb.js"),lr=n("../proto/dist/generated/agent/v1/selected_context_pb.js"),ur=n("../proto/dist/generated/agent/v1/mcp_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT=1]="AGENT",e[e.ASK=2]="ASK",e[e.PLAN=3]="PLAN",e[e.DEBUG=4]="DEBUG",e[e.TRIAGE=5]="TRIAGE",e[e.PROJECT=6]="PROJECT",e[e.MULTITASK=7]="MULTITASK",e[e.CUSTOM=8]="CUSTOM"}(Yn||(Yn={})),r.proto3.util.setEnumType(Yn,"agent.v1.AgentMode",[{no:0,name:"AGENT_MODE_UNSPECIFIED"},{no:1,name:"AGENT_MODE_AGENT"},{no:2,name:"AGENT_MODE_ASK"},{no:3,name:"AGENT_MODE_PLAN"},{no:4,name:"AGENT_MODE_DEBUG"},{no:5,name:"AGENT_MODE_TRIAGE"},{no:6,name:"AGENT_MODE_PROJECT"},{no:7,name:"AGENT_MODE_MULTITASK"},{no:8,name:"AGENT_MODE_CUSTOM"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOCAL=1]="LOCAL",e[e.CLOUD=2]="CLOUD"}(zn||(zn={})),r.proto3.util.setEnumType(zn,"agent.v1.SubagentExecutionEnvironment",[{no:0,name:"SUBAGENT_EXECUTION_ENVIRONMENT_UNSPECIFIED"},{no:1,name:"SUBAGENT_EXECUTION_ENVIRONMENT_LOCAL"},{no:2,name:"SUBAGENT_EXECUTION_ENVIRONMENT_CLOUD"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT_REQUEST=1]="AGENT_REQUEST",e[e.USER_REQUEST=2]="USER_REQUEST",e[e.QUEUED_FOLLOW_UP=3]="QUEUED_FOLLOW_UP"}(Vn||(Vn={})),r.proto3.util.setEnumType(Vn,"agent.v1.SubagentBackgroundReason",[{no:0,name:"SUBAGENT_BACKGROUND_REASON_UNSPECIFIED"},{no:1,name:"SUBAGENT_BACKGROUND_REASON_AGENT_REQUEST"},{no:2,name:"SUBAGENT_BACKGROUND_REASON_USER_REQUEST"},{no:3,name:"SUBAGENT_BACKGROUND_REASON_QUEUED_FOLLOW_UP"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SHELL=1]="SHELL",e[e.SUBAGENT=2]="SUBAGENT"}(Qn||(Qn={})),r.proto3.util.setEnumType(Qn,"agent.v1.BackgroundTaskKind",[{no:0,name:"BACKGROUND_TASK_KIND_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_KIND_SHELL"},{no:2,name:"BACKGROUND_TASK_KIND_SUBAGENT"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.ERROR=2]="ERROR",e[e.ABORTED=3]="ABORTED"}(Xn||(Xn={})),r.proto3.util.setEnumType(Xn,"agent.v1.BackgroundTaskStatus",[{no:0,name:"BACKGROUND_TASK_STATUS_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_STATUS_SUCCESS"},{no:2,name:"BACKGROUND_TASK_STATUS_ERROR"},{no:3,name:"BACKGROUND_TASK_STATUS_ABORTED"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TASK_FINISHED=1]="TASK_FINISHED",e[e.TASK_PROGRESS=2]="TASK_PROGRESS"}($n||($n={})),r.proto3.util.setEnumType($n,"agent.v1.BackgroundTaskCompletionReason",[{no:0,name:"BACKGROUND_TASK_COMPLETION_REASON_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_COMPLETION_REASON_TASK_FINISHED"},{no:2,name:"BACKGROUND_TASK_COMPLETION_REASON_TASK_PROGRESS"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RUNNING=1]="RUNNING",e[e.BACKGROUNDED=2]="BACKGROUNDED",e[e.SUCCESS=3]="SUCCESS",e[e.ERROR=4]="ERROR",e[e.ABORTED=5]="ABORTED"}(Zn||(Zn={})),r.proto3.util.setEnumType(Zn,"agent.v1.SubagentRunStatus",[{no:0,name:"SUBAGENT_RUN_STATUS_UNSPECIFIED"},{no:1,name:"SUBAGENT_RUN_STATUS_RUNNING"},{no:2,name:"SUBAGENT_RUN_STATUS_BACKGROUNDED"},{no:3,name:"SUBAGENT_RUN_STATUS_SUCCESS"},{no:4,name:"SUBAGENT_RUN_STATUS_ERROR"},{no:5,name:"SUBAGENT_RUN_STATUS_ABORTED"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT_SKILL=1]="AGENT_SKILL",e[e.PLUGIN_SKILL=2]="PLUGIN_SKILL",e[e.REPO_SKILL=3]="REPO_SKILL",e[e.MANAGED_SKILL=4]="MANAGED_SKILL"}(er||(er={})),r.proto3.util.setEnumType(er,"agent.v1.CustomModeSource",[{no:0,name:"CUSTOM_MODE_SOURCE_UNSPECIFIED"},{no:1,name:"CUSTOM_MODE_SOURCE_AGENT_SKILL"},{no:2,name:"CUSTOM_MODE_SOURCE_PLUGIN_SKILL"},{no:3,name:"CUSTOM_MODE_SOURCE_REPO_SKILL"},{no:4,name:"CUSTOM_MODE_SOURCE_MANAGED_SKILL"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PLAN_EXECUTION=1]="PLAN_EXECUTION",e[e.COMMIT_REMINDER=2]="COMMIT_REMINDER",e[e.BACKGROUND_TASK_COMPLETION=3]="BACKGROUND_TASK_COMPLETION",e[e.DIFF_TAB_COMMIT=4]="DIFF_TAB_COMMIT",e[e.DIFF_TAB_COMMIT_AND_PUSH=5]="DIFF_TAB_COMMIT_AND_PUSH",e[e.DIFF_TAB_PUSH=6]="DIFF_TAB_PUSH",e[e.DIFF_TAB_CREATE_PR=7]="DIFF_TAB_CREATE_PR",e[e.DIFF_TAB_FIX_MERGE_CONFLICTS=8]="DIFF_TAB_FIX_MERGE_CONFLICTS",e[e.USER_SENT_TO_SUBAGENT=9]="USER_SENT_TO_SUBAGENT",e[e.USER_INTERRUPTED_SUBAGENT=10]="USER_INTERRUPTED_SUBAGENT",e[e.USER_QUEUED_TO_SUBAGENT=11]="USER_QUEUED_TO_SUBAGENT",e[e.BABYSIT_PR_IN_CLOUD=12]="BABYSIT_PR_IN_CLOUD",e[e.CI_PANEL_INVESTIGATE_FAILURE=13]="CI_PANEL_INVESTIGATE_FAILURE",e[e.MULTITASK=14]="MULTITASK",e[e.BUILD_IN_PARALLEL=15]="BUILD_IN_PARALLEL",e[e.MULTITASK_SPLIT_PRS=16]="MULTITASK_SPLIT_PRS",e[e.APPLY_LOCALLY=17]="APPLY_LOCALLY",e[e.CHECKOUT_BRANCH=18]="CHECKOUT_BRANCH",e[e.DIFF_TAB_UPDATE_BRANCH=19]="DIFF_TAB_UPDATE_BRANCH",e[e.PR_TAB_BUGBOT_FIX=20]="PR_TAB_BUGBOT_FIX",e[e.RUN_BUGBOT_REVIEW=22]="RUN_BUGBOT_REVIEW",e[e.RUN_SECURITY_REVIEW=23]="RUN_SECURITY_REVIEW",e[e.FSD_APPLY_FINDING=24]="FSD_APPLY_FINDING",e[e.FSD_UNDO_FINDING=25]="FSD_UNDO_FINDING",e[e.FSD_START=26]="FSD_START",e[e.FSD_PR_INTERRUPT=27]="FSD_PR_INTERRUPT",e[e.SUBSCRIPTION=28]="SUBSCRIPTION",e[e.DIFF_TAB_CREATE_BRANCH=29]="DIFF_TAB_CREATE_BRANCH",e[e.AGENT_STORE_CONFLICT=30]="AGENT_STORE_CONFLICT",e[e.GOAL_CONTINUATION=31]="GOAL_CONTINUATION"}(tr||(tr={})),r.proto3.util.setEnumType(tr,"agent.v1.SimulatedMsgReason",[{no:0,name:"SIMULATED_MSG_REASON_UNSPECIFIED"},{no:1,name:"SIMULATED_MSG_REASON_PLAN_EXECUTION"},{no:2,name:"SIMULATED_MSG_REASON_COMMIT_REMINDER"},{no:3,name:"SIMULATED_MSG_REASON_BACKGROUND_TASK_COMPLETION"},{no:4,name:"SIMULATED_MSG_REASON_DIFF_TAB_COMMIT"},{no:5,name:"SIMULATED_MSG_REASON_DIFF_TAB_COMMIT_AND_PUSH"},{no:6,name:"SIMULATED_MSG_REASON_DIFF_TAB_PUSH"},{no:7,name:"SIMULATED_MSG_REASON_DIFF_TAB_CREATE_PR"},{no:8,name:"SIMULATED_MSG_REASON_DIFF_TAB_FIX_MERGE_CONFLICTS"},{no:9,name:"SIMULATED_MSG_REASON_USER_SENT_TO_SUBAGENT"},{no:10,name:"SIMULATED_MSG_REASON_USER_INTERRUPTED_SUBAGENT"},{no:11,name:"SIMULATED_MSG_REASON_USER_QUEUED_TO_SUBAGENT"},{no:12,name:"SIMULATED_MSG_REASON_BABYSIT_PR_IN_CLOUD"},{no:13,name:"SIMULATED_MSG_REASON_CI_PANEL_INVESTIGATE_FAILURE"},{no:14,name:"SIMULATED_MSG_REASON_MULTITASK"},{no:15,name:"SIMULATED_MSG_REASON_BUILD_IN_PARALLEL"},{no:16,name:"SIMULATED_MSG_REASON_MULTITASK_SPLIT_PRS"},{no:17,name:"SIMULATED_MSG_REASON_APPLY_LOCALLY"},{no:18,name:"SIMULATED_MSG_REASON_CHECKOUT_BRANCH"},{no:19,name:"SIMULATED_MSG_REASON_DIFF_TAB_UPDATE_BRANCH"},{no:20,name:"SIMULATED_MSG_REASON_PR_TAB_BUGBOT_FIX"},{no:22,name:"SIMULATED_MSG_REASON_RUN_BUGBOT_REVIEW"},{no:23,name:"SIMULATED_MSG_REASON_RUN_SECURITY_REVIEW"},{no:24,name:"SIMULATED_MSG_REASON_FSD_APPLY_FINDING"},{no:25,name:"SIMULATED_MSG_REASON_FSD_UNDO_FINDING"},{no:26,name:"SIMULATED_MSG_REASON_FSD_START"},{no:27,name:"SIMULATED_MSG_REASON_FSD_PR_INTERRUPT"},{no:28,name:"SIMULATED_MSG_REASON_SUBSCRIPTION"},{no:29,name:"SIMULATED_MSG_REASON_DIFF_TAB_CREATE_BRANCH"},{no:30,name:"SIMULATED_MSG_REASON_AGENT_STORE_CONFLICT"},{no:31,name:"SIMULATED_MSG_REASON_GOAL_CONTINUATION"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SLACK=1]="SLACK",e[e.GITHUB=2]="GITHUB"}(nr||(nr={})),r.proto3.util.setEnumType(nr,"agent.v1.SubscriptionSource",[{no:0,name:"SUBSCRIPTION_SOURCE_UNSPECIFIED"},{no:1,name:"SUBSCRIPTION_SOURCE_SLACK"},{no:2,name:"SUBSCRIPTION_SOURCE_GITHUB"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT",e[e.CODEX=2]="CODEX",e[e.GPT5=3]="GPT5"}(rr||(rr={})),r.proto3.util.setEnumType(rr,"agent.v1.ThinkingStyle",[{no:0,name:"THINKING_STYLE_UNSPECIFIED"},{no:1,name:"THINKING_STYLE_DEFAULT"},{no:2,name:"THINKING_STYLE_CODEX"},{no:3,name:"THINKING_STYLE_GPT5"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PARENT_FIRST=1]="PARENT_FIRST",e[e.ALTERNATE_FIRST=2]="ALTERNATE_FIRST"}(sr||(sr={})),r.proto3.util.setEnumType(sr,"agent.v1.ResponseComparisonDisplayOrder",[{no:0,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_UNSPECIFIED"},{no:1,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_PARENT_FIRST"},{no:2,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_ALTERNATE_FIRST"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ALTERNATE_TOOL_CALL=1]="ALTERNATE_TOOL_CALL",e[e.INFERENCE_ERROR=2]="INFERENCE_ERROR",e[e.TIMEOUT=3]="TIMEOUT",e[e.CANCELLED=4]="CANCELLED"}(or||(or={})),r.proto3.util.setEnumType(or,"agent.v1.ResponseComparisonSkipReason",[{no:0,name:"RESPONSE_COMPARISON_SKIP_REASON_UNSPECIFIED"},{no:1,name:"RESPONSE_COMPARISON_SKIP_REASON_ALTERNATE_TOOL_CALL"},{no:2,name:"RESPONSE_COMPARISON_SKIP_REASON_INFERENCE_ERROR"},{no:3,name:"RESPONSE_COMPARISON_SKIP_REASON_TIMEOUT"},{no:4,name:"RESPONSE_COMPARISON_SKIP_REASON_CANCELLED"}]);class mr extends r.Message{constructor(e){super(),this.description="",this.prompt="",this.attachments=[],this.mode=s.FL.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mr).fromBinary(e,t)}static fromJson(e,t){return(new mr).fromJson(e,t)}static fromJsonString(e,t){return(new mr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mr,e,t)}}mr.runtime=r.proto3,mr.typeName="agent.v1.TaskArgs",mr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"subagent_type",kind:"message",T:s._L},{no:4,name:"model",kind:"scalar",T:9,opt:!0},{no:5,name:"resume",kind:"scalar",T:9,opt:!0},{no:6,name:"agent_id",kind:"scalar",T:9,opt:!0},{no:7,name:"attachments",kind:"scalar",T:9,repeated:!0},{no:8,name:"mode",kind:"enum",T:r.proto3.getEnumType(s.FL)},{no:9,name:"responding_to_message_ids",kind:"scalar",T:9,repeated:!0},{no:10,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:11,name:"machine",kind:"message",T:cr,opt:!0}]));class cr extends r.Message{constructor(e){super(),this.machine={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cr).fromBinary(e,t)}static fromJson(e,t){return(new cr).fromJson(e,t)}static fromJsonString(e,t){return(new cr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cr,e,t)}}cr.runtime=r.proto3,cr.typeName="agent.v1.TargetMachine",cr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"same_machine",kind:"message",T:dr,oneof:"machine"},{no:2,name:"new_cloud_vm",kind:"message",T:pr,oneof:"machine"},{no:3,name:"self_hosted_worker",kind:"message",T:fr,oneof:"machine"},{no:4,name:"self_hosted_pool",kind:"message",T:gr,oneof:"machine"}]));class dr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dr).fromBinary(e,t)}static fromJson(e,t){return(new dr).fromJson(e,t)}static fromJsonString(e,t){return(new dr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(dr,e,t)}}dr.runtime=r.proto3,dr.typeName="agent.v1.SameMachineTarget",dr.fields=r.proto3.util.newFieldList((()=>[]));class pr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pr).fromBinary(e,t)}static fromJson(e,t){return(new pr).fromJson(e,t)}static fromJsonString(e,t){return(new pr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pr,e,t)}}pr.runtime=r.proto3,pr.typeName="agent.v1.NewCloudVmTarget",pr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"environment_build_id",kind:"scalar",T:9,opt:!0},{no:2,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class fr extends r.Message{constructor(e){super(),this.workerId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fr).fromBinary(e,t)}static fromJson(e,t){return(new fr).fromJson(e,t)}static fromJsonString(e,t){return(new fr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fr,e,t)}}fr.runtime=r.proto3,fr.typeName="agent.v1.SelfHostedWorkerTarget",fr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"worker_id",kind:"scalar",T:9}]));class gr extends r.Message{constructor(e){super(),this.labels=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gr).fromBinary(e,t)}static fromJson(e,t){return(new gr).fromJson(e,t)}static fromJsonString(e,t){return(new gr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gr,e,t)}}gr.runtime=r.proto3,gr.typeName="agent.v1.SelfHostedPoolTarget",gr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pool",kind:"scalar",T:9,opt:!0},{no:2,name:"labels",kind:"message",T:_r,repeated:!0}]));class _r extends r.Message{constructor(e){super(),this.key="",this.value="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _r).fromBinary(e,t)}static fromJson(e,t){return(new _r).fromJson(e,t)}static fromJsonString(e,t){return(new _r).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_r,e,t)}}_r.runtime=r.proto3,_r.typeName="agent.v1.SelfHostedWorkerLabel",_r.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class hr extends r.Message{constructor(e){super(),this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=Vn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hr).fromBinary(e,t)}static fromJson(e,t){return(new hr).fromJson(e,t)}static fromJsonString(e,t){return(new hr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hr,e,t)}}hr.runtime=r.proto3,hr.typeName="agent.v1.TaskSuccess",hr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_steps",kind:"message",T:Rr,repeated:!0},{no:2,name:"agent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"is_background",kind:"scalar",T:8},{no:4,name:"duration_ms",kind:"scalar",T:4,opt:!0},{no:5,name:"result_suffix",kind:"scalar",T:9,opt:!0},{no:6,name:"background_reason",kind:"enum",T:r.proto3.getEnumType(Vn)},{no:7,name:"transcript_path",kind:"scalar",T:9,opt:!0}]));class Tr extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tr).fromBinary(e,t)}static fromJson(e,t){return(new Tr).fromJson(e,t)}static fromJsonString(e,t){return(new Tr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tr,e,t)}}Tr.runtime=r.proto3,Tr.typeName="agent.v1.TaskError",Tr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class yr extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yr).fromBinary(e,t)}static fromJson(e,t){return(new yr).fromJson(e,t)}static fromJsonString(e,t){return(new yr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yr,e,t)}}yr.runtime=r.proto3,yr.typeName="agent.v1.TaskResult",yr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:hr,oneof:"result"},{no:2,name:"error",kind:"message",T:Tr,oneof:"result"}]));class Sr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sr).fromBinary(e,t)}static fromJson(e,t){return(new Sr).fromJson(e,t)}static fromJsonString(e,t){return(new Sr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Sr,e,t)}}Sr.runtime=r.proto3,Sr.typeName="agent.v1.TaskToolCall",Sr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:mr},{no:2,name:"result",kind:"message",T:yr},{no:3,name:"cloud_agent_bc_id",kind:"scalar",T:9,opt:!0}]));class wr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wr).fromBinary(e,t)}static fromJson(e,t){return(new wr).fromJson(e,t)}static fromJsonString(e,t){return(new wr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wr,e,t)}}wr.runtime=r.proto3,wr.typeName="agent.v1.TaskToolCallDelta",wr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"interaction_update",kind:"message",T:Qo}]));class kr extends r.Message{constructor(e){super(),this.path="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kr).fromBinary(e,t)}static fromJson(e,t){return(new kr).fromJson(e,t)}static fromJsonString(e,t){return(new kr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kr,e,t)}}kr.runtime=r.proto3,kr.typeName="agent.v1.SetActiveBranchArgs",kr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class Jr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jr).fromBinary(e,t)}static fromJson(e,t){return(new Jr).fromJson(e,t)}static fromJsonString(e,t){return(new Jr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jr,e,t)}}Jr.runtime=r.proto3,Jr.typeName="agent.v1.SetActiveBranchSuccess",Jr.fields=r.proto3.util.newFieldList((()=>[]));class vr extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vr).fromBinary(e,t)}static fromJson(e,t){return(new vr).fromJson(e,t)}static fromJsonString(e,t){return(new vr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vr,e,t)}}vr.runtime=r.proto3,vr.typeName="agent.v1.SetActiveBranchError",vr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Er extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Er).fromBinary(e,t)}static fromJson(e,t){return(new Er).fromJson(e,t)}static fromJsonString(e,t){return(new Er).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Er,e,t)}}Er.runtime=r.proto3,Er.typeName="agent.v1.SetActiveBranchResult",Er.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Jr,oneof:"result"},{no:2,name:"error",kind:"message",T:vr,oneof:"result"}]));class br extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new br).fromBinary(e,t)}static fromJson(e,t){return(new br).fromJson(e,t)}static fromJsonString(e,t){return(new br).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(br,e,t)}}br.runtime=r.proto3,br.typeName="agent.v1.SetActiveBranchToolCall",br.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:kr},{no:2,name:"result",kind:"message",T:Er}]));class jr extends r.Message{constructor(e){super(),this.tool={case:void 0},this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jr).fromBinary(e,t)}static fromJson(e,t){return(new jr).fromJson(e,t)}static fromJsonString(e,t){return(new jr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jr,e,t)}}jr.runtime=r.proto3,jr.typeName="agent.v1.ToolCall",jr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_tool_call",kind:"message",T:i,oneof:"tool"},{no:3,name:"delete_tool_call",kind:"message",T:c,oneof:"tool"},{no:4,name:"glob_tool_call",kind:"message",T:_,oneof:"tool"},{no:5,name:"grep_tool_call",kind:"message",T,oneof:"tool"},{no:8,name:"read_tool_call",kind:"message",T:S,oneof:"tool"},{no:9,name:"update_todos_tool_call",kind:"message",T:b.bk,oneof:"tool"},{no:10,name:"read_todos_tool_call",kind:"message",T:b.AJ,oneof:"tool"},{no:12,name:"edit_tool_call",kind:"message",T:M,oneof:"tool"},{no:13,name:"ls_tool_call",kind:"message",T:A,oneof:"tool"},{no:14,name:"read_lints_tool_call",kind:"message",T:U,oneof:"tool"},{no:15,name:"mcp_tool_call",kind:"message",T:$,oneof:"tool"},{no:16,name:"sem_search_tool_call",kind:"message",T:ee,oneof:"tool"},{no:17,name:"create_plan_tool_call",kind:"message",T:oe.Ih,oneof:"tool"},{no:18,name:"web_search_tool_call",kind:"message",T:ie.pn,oneof:"tool"},{no:19,name:"task_tool_call",kind:"message",T:Sr,oneof:"tool"},{no:20,name:"list_mcp_resources_tool_call",kind:"message",T:ae,oneof:"tool"},{no:21,name:"read_mcp_resource_tool_call",kind:"message",T:le,oneof:"tool"},{no:22,name:"apply_agent_diff_tool_call",kind:"message",T:ue.JU,oneof:"tool"},{no:23,name:"ask_question_tool_call",kind:"message",T:me.OU,oneof:"tool"},{no:24,name:"fetch_tool_call",kind:"message",T:de,oneof:"tool"},{no:25,name:"switch_mode_tool_call",kind:"message",T:pe.Cs,oneof:"tool"},{no:28,name:"generate_image_tool_call",kind:"message",T:fe.r9,oneof:"tool"},{no:29,name:"record_screen_tool_call",kind:"message",T:_e,oneof:"tool"},{no:30,name:"computer_use_tool_call",kind:"message",T:he.t8,oneof:"tool"},{no:31,name:"write_shell_stdin_tool_call",kind:"message",T:ye,oneof:"tool"},{no:32,name:"reflect_tool_call",kind:"message",T:ve,oneof:"tool"},{no:33,name:"setup_vm_environment_tool_call",kind:"message",T:Ee.MU,oneof:"tool"},{no:34,name:"truncated_tool_call",kind:"message",T:Ir,oneof:"tool"},{no:35,name:"start_grind_execution_tool_call",kind:"message",T:Pe,oneof:"tool"},{no:36,name:"start_grind_planning_tool_call",kind:"message",T:Me,oneof:"tool"},{no:37,name:"web_fetch_tool_call",kind:"message",T:Oe.fd,oneof:"tool"},{no:38,name:"report_bugfix_results_tool_call",kind:"message",T:Fe.U_,oneof:"tool"},{no:39,name:"ai_attribution_tool_call",kind:"message",T:Ae.ex,oneof:"tool"},{no:40,name:"pr_management_tool_call",kind:"message",T:Le.AU,oneof:"tool"},{no:41,name:"mcp_auth_tool_call",kind:"message",T:Ce.NX,oneof:"tool"},{no:42,name:"await_tool_call",kind:"message",T:Ye,oneof:"tool"},{no:43,name:"blame_by_file_path_tool_call",kind:"message",T:$e,oneof:"tool"},{no:44,name:"get_mcp_tools_tool_call",kind:"message",T:rt,oneof:"tool"},{no:45,name:"report_bug_tool_call",kind:"message",T:lt,oneof:"tool"},{no:46,name:"set_active_branch_tool_call",kind:"message",T:br,oneof:"tool"},{no:48,name:"communicate_update_tool_call",kind:"message",T:pt,oneof:"tool"},{no:49,name:"send_final_summary_tool_call",kind:"message",T:Tt,oneof:"tool"},{no:50,name:"update_pr_code_tour_tool_call",kind:"message",T:Jt,oneof:"tool"},{no:51,name:"replace_env_tool_call",kind:"message",T:vt.us,oneof:"tool"},{no:52,name:"edit_pr_labels_tool_call",kind:"message",T:Nt,oneof:"tool"},{no:53,name:"record_ci_investigation_findings_tool_call",kind:"message",T:Ot,oneof:"tool"},{no:55,name:"send_message_tool_call",kind:"message",T:Gt,oneof:"tool"},{no:56,name:"fetch_cloud_agent_data_tool_call",kind:"message",T:zt,oneof:"tool"},{no:58,name:"send_to_user_tool_call",kind:"message",T:Zt,oneof:"tool"},{no:61,name:"pi_read_tool_call",kind:"message",T:tn,oneof:"tool"},{no:62,name:"pi_bash_tool_call",kind:"message",T:an,oneof:"tool"},{no:63,name:"pi_edit_tool_call",kind:"message",T:dn.EN,oneof:"tool"},{no:64,name:"pi_write_tool_call",kind:"message",T:pn,oneof:"tool"},{no:65,name:"pi_grep_tool_call",kind:"message",T:yn,oneof:"tool"},{no:66,name:"pi_find_tool_call",kind:"message",T:vn,oneof:"tool"},{no:67,name:"pi_ls_tool_call",kind:"message",T:Nn,oneof:"tool"},{no:68,name:"connect_scm_tool_call",kind:"message",T:Mn.iO,oneof:"tool"},{no:69,name:"search_conversations_tool_call",kind:"message",T:Fn,oneof:"tool"},{no:70,name:"create_goal_tool_call",kind:"message",T:Dn,oneof:"tool"},{no:71,name:"update_goal_tool_call",kind:"message",T:Wn,oneof:"tool"},{no:54,name:"hook_additional_contexts",kind:"message",T:ir.C,repeated:!0},{no:57,name:"tool_call_id",kind:"scalar",T:9,opt:!0},{no:59,name:"started_at_ms",kind:"scalar",T:4,opt:!0},{no:60,name:"completed_at_ms",kind:"scalar",T:4,opt:!0}]));class xr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xr).fromBinary(e,t)}static fromJson(e,t){return(new xr).fromJson(e,t)}static fromJsonString(e,t){return(new xr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xr,e,t)}}xr.runtime=r.proto3,xr.typeName="agent.v1.TruncatedToolCallArgs",xr.fields=r.proto3.util.newFieldList((()=>[]));class Nr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nr).fromBinary(e,t)}static fromJson(e,t){return(new Nr).fromJson(e,t)}static fromJsonString(e,t){return(new Nr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nr,e,t)}}Nr.runtime=r.proto3,Nr.typeName="agent.v1.TruncatedToolCallSuccess",Nr.fields=r.proto3.util.newFieldList((()=>[]));class Pr extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pr).fromBinary(e,t)}static fromJson(e,t){return(new Pr).fromJson(e,t)}static fromJsonString(e,t){return(new Pr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pr,e,t)}}Pr.runtime=r.proto3,Pr.typeName="agent.v1.TruncatedToolCallError",Pr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Br extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Br).fromBinary(e,t)}static fromJson(e,t){return(new Br).fromJson(e,t)}static fromJsonString(e,t){return(new Br).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Br,e,t)}}Br.runtime=r.proto3,Br.typeName="agent.v1.TruncatedToolCallResult",Br.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Nr,oneof:"result"},{no:2,name:"error",kind:"message",T:Pr,oneof:"result"}]));class Ir extends r.Message{constructor(e){super(),this.originalStepBlobId=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ir).fromBinary(e,t)}static fromJson(e,t){return(new Ir).fromJson(e,t)}static fromJsonString(e,t){return(new Ir).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ir,e,t)}}Ir.runtime=r.proto3,Ir.typeName="agent.v1.TruncatedToolCall",Ir.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"original_step_blob_id",kind:"scalar",T:12},{no:2,name:"args",kind:"message",T:xr},{no:3,name:"result",kind:"message",T:Br}]));class qr extends r.Message{constructor(e){super(),this.delta={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qr).fromBinary(e,t)}static fromJson(e,t){return(new qr).fromJson(e,t)}static fromJsonString(e,t){return(new qr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qr,e,t)}}qr.runtime=r.proto3,qr.typeName="agent.v1.ToolCallDelta",qr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_tool_call_delta",kind:"message",T:u,oneof:"delta"},{no:2,name:"task_tool_call_delta",kind:"message",T:wr,oneof:"delta"},{no:3,name:"edit_tool_call_delta",kind:"message",T:O,oneof:"delta"},{no:4,name:"replace_env_tool_call_delta",kind:"message",T:vt.km,oneof:"delta"}]));class Rr extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rr).fromBinary(e,t)}static fromJson(e,t){return(new Rr).fromJson(e,t)}static fromJsonString(e,t){return(new Rr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rr,e,t)}}Rr.runtime=r.proto3,Rr.typeName="agent.v1.ConversationStep",Rr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"assistant_message",kind:"message",T:Ms,oneof:"message"},{no:2,name:"tool_call",kind:"message",T:jr,oneof:"message"},{no:3,name:"thinking_message",kind:"message",T:Os,oneof:"message"}]));class Mr extends r.Message{constructor(e){super(),this.action={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mr).fromBinary(e,t)}static fromJson(e,t){return(new Mr).fromJson(e,t)}static fromJsonString(e,t){return(new Mr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mr,e,t)}}Mr.runtime=r.proto3,Mr.typeName="agent.v1.ConversationAction",Mr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message_action",kind:"message",T:ss,oneof:"action"},{no:2,name:"resume_action",kind:"message",T:ks,oneof:"action"},{no:3,name:"cancel_action",kind:"message",T:ws,oneof:"action"},{no:4,name:"summarize_action",kind:"message",T:vs,oneof:"action"},{no:5,name:"shell_command_action",kind:"message",T:Es,oneof:"action"},{no:6,name:"start_plan_action",kind:"message",T:bs,oneof:"action"},{no:7,name:"execute_plan_action",kind:"message",T:js,oneof:"action"},{no:8,name:"async_ask_question_completion_action",kind:"message",T:Js,oneof:"action"},{no:10,name:"cancel_subagent_action",kind:"message",T:Cr,oneof:"action"},{no:12,name:"background_task_completion_action",kind:"message",T:Fr,oneof:"action"},{no:13,name:"background_shell_action",kind:"message",T:Ur,oneof:"action"},{no:14,name:"background_subagent_action",kind:"message",T:Dr,oneof:"action"},{no:16,name:"subscription_notification_action",kind:"message",T:os,oneof:"action"},{no:18,name:"goal_continuation_action",kind:"message",T:is,oneof:"action"},{no:19,name:"inject_context_action",kind:"message",T:as,oneof:"action"},{no:11,name:"triggering_auth_id",kind:"scalar",T:9,opt:!0},{no:15,name:"triggering_user_info",kind:"message",T:Or,opt:!0},{no:17,name:"request_context_parts",kind:"message",T:ar.sG,opt:!0}]));class Or extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Or).fromBinary(e,t)}static fromJson(e,t){return(new Or).fromJson(e,t)}static fromJsonString(e,t){return(new Or).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Or,e,t)}}Or.runtime=r.proto3,Or.typeName="agent.v1.TriggeringUserInfo",Or.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"auth_id",kind:"scalar",T:9,opt:!0},{no:2,name:"user_id",kind:"scalar",T:5,opt:!0}]));class Fr extends r.Message{constructor(e){super(),this.completions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fr).fromBinary(e,t)}static fromJson(e,t){return(new Fr).fromJson(e,t)}static fromJsonString(e,t){return(new Fr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fr,e,t)}}Fr.runtime=r.proto3,Fr.typeName="agent.v1.BackgroundTaskCompletionAction",Fr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"completions",kind:"message",T:Ar,repeated:!0}]));class Ar extends r.Message{constructor(e){super(),this.taskId="",this.kind=Qn.UNSPECIFIED,this.status=Xn.UNSPECIFIED,this.title="",this.reason=$n.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ar).fromBinary(e,t)}static fromJson(e,t){return(new Ar).fromJson(e,t)}static fromJsonString(e,t){return(new Ar).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ar,e,t)}}Ar.runtime=r.proto3,Ar.typeName="agent.v1.BackgroundTaskCompletion",Ar.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"kind",kind:"enum",T:r.proto3.getEnumType(Qn)},{no:3,name:"status",kind:"enum",T:r.proto3.getEnumType(Xn)},{no:4,name:"title",kind:"scalar",T:9},{no:5,name:"detail",kind:"scalar",T:9,opt:!0},{no:6,name:"output_path",kind:"scalar",T:9,opt:!0},{no:7,name:"thread_id",kind:"scalar",T:9,opt:!0},{no:8,name:"reason",kind:"enum",T:r.proto3.getEnumType($n)},{no:9,name:"subagent_id",kind:"scalar",T:9,opt:!0},{no:10,name:"tool_call_id",kind:"scalar",T:9,opt:!0}]));class Lr extends r.Message{constructor(e){super(),this.parentToolCallId="",this.environment=zn.UNSPECIFIED,this.status=Zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lr).fromBinary(e,t)}static fromJson(e,t){return(new Lr).fromJson(e,t)}static fromJsonString(e,t){return(new Lr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lr,e,t)}}Lr.runtime=r.proto3,Lr.typeName="agent.v1.SubagentRunState",Lr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"parent_tool_call_id",kind:"scalar",T:9},{no:2,name:"subagent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:4,name:"status",kind:"enum",T:r.proto3.getEnumType(Zn)},{no:5,name:"title",kind:"scalar",T:9,opt:!0},{no:6,name:"detail",kind:"scalar",T:9,opt:!0},{no:7,name:"transcript_path",kind:"scalar",T:9,opt:!0},{no:8,name:"output_path",kind:"scalar",T:9,opt:!0},{no:9,name:"completed_timestamp_ms",kind:"scalar",T:4,opt:!0},{no:10,name:"completion_reason",kind:"enum",T:r.proto3.getEnumType($n),opt:!0}]));class Cr extends r.Message{constructor(e){super(),this.subagentId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cr).fromBinary(e,t)}static fromJson(e,t){return(new Cr).fromJson(e,t)}static fromJsonString(e,t){return(new Cr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cr,e,t)}}Cr.runtime=r.proto3,Cr.typeName="agent.v1.CancelSubagentAction",Cr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9}]));class Ur extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ur).fromBinary(e,t)}static fromJson(e,t){return(new Ur).fromJson(e,t)}static fromJsonString(e,t){return(new Ur).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ur,e,t)}}Ur.runtime=r.proto3,Ur.typeName="agent.v1.BackgroundShellAction",Ur.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class Dr extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dr).fromBinary(e,t)}static fromJson(e,t){return(new Dr).fromJson(e,t)}static fromJsonString(e,t){return(new Dr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dr,e,t)}}Dr.runtime=r.proto3,Dr.typeName="agent.v1.BackgroundSubagentAction",Dr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class Gr extends r.Message{constructor(e){super(),this.toolCallId="",this.resolution={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gr).fromBinary(e,t)}static fromJson(e,t){return(new Gr).fromJson(e,t)}static fromJsonString(e,t){return(new Gr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gr,e,t)}}Gr.runtime=r.proto3,Gr.typeName="agent.v1.InterruptedPendingToolCallResolution",Gr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"shell_result",kind:"message",T:o.W4,oneof:"resolution"},{no:3,name:"task_result",kind:"message",T:yr,oneof:"resolution"}]));class Hr extends r.Message{constructor(e){super(),this.resolutions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hr).fromBinary(e,t)}static fromJson(e,t){return(new Hr).fromJson(e,t)}static fromJsonString(e,t){return(new Hr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hr,e,t)}}Hr.runtime=r.proto3,Hr.typeName="agent.v1.InterruptedPendingToolCallResolutions",Hr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"resolutions",kind:"message",T:Gr,repeated:!0}]));class Kr extends r.Message{constructor(e){super(),this.messages=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kr).fromBinary(e,t)}static fromJson(e,t){return(new Kr).fromJson(e,t)}static fromJsonString(e,t){return(new Kr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kr,e,t)}}Kr.runtime=r.proto3,Kr.typeName="agent.v1.ConversationHistory",Kr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"messages",kind:"message",T:Wr,repeated:!0},{no:2,name:"replace_user_info",kind:"scalar",T:8,opt:!0}]));class Wr extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wr).fromBinary(e,t)}static fromJson(e,t){return(new Wr).fromJson(e,t)}static fromJsonString(e,t){return(new Wr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wr,e,t)}}Wr.runtime=r.proto3,Wr.typeName="agent.v1.ConversationHistoryMessage",Wr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user",kind:"message",T:Yr,oneof:"message"},{no:2,name:"assistant",kind:"message",T:Xr,oneof:"message"},{no:3,name:"tool",kind:"message",T:ns,oneof:"message"}]));class Yr extends r.Message{constructor(e){super(),this.content=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yr).fromBinary(e,t)}static fromJson(e,t){return(new Yr).fromJson(e,t)}static fromJsonString(e,t){return(new Yr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yr,e,t)}}Yr.runtime=r.proto3,Yr.typeName="agent.v1.ConversationHistoryUserMessage",Yr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:zr,repeated:!0}]));class zr extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zr).fromBinary(e,t)}static fromJson(e,t){return(new zr).fromJson(e,t)}static fromJsonString(e,t){return(new zr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zr,e,t)}}zr.runtime=r.proto3,zr.typeName="agent.v1.ConversationHistoryUserContent",zr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Vr,oneof:"content"},{no:2,name:"image",kind:"message",T:Qr,oneof:"content"}]));class Vr extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vr).fromBinary(e,t)}static fromJson(e,t){return(new Vr).fromJson(e,t)}static fromJsonString(e,t){return(new Vr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vr,e,t)}}Vr.runtime=r.proto3,Vr.typeName="agent.v1.ConversationHistoryTextContent",Vr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Qr extends r.Message{constructor(e){super(),this.data="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qr).fromBinary(e,t)}static fromJson(e,t){return(new Qr).fromJson(e,t)}static fromJsonString(e,t){return(new Qr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qr,e,t)}}Qr.runtime=r.proto3,Qr.typeName="agent.v1.ConversationHistoryImageContent",Qr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9},{no:2,name:"mime_type",kind:"scalar",T:9,opt:!0}]));class Xr extends r.Message{constructor(e){super(),this.content=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xr).fromBinary(e,t)}static fromJson(e,t){return(new Xr).fromJson(e,t)}static fromJsonString(e,t){return(new Xr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xr,e,t)}}Xr.runtime=r.proto3,Xr.typeName="agent.v1.ConversationHistoryAssistantMessage",Xr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:$r,repeated:!0}]));class $r extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $r).fromBinary(e,t)}static fromJson(e,t){return(new $r).fromJson(e,t)}static fromJsonString(e,t){return(new $r).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($r,e,t)}}$r.runtime=r.proto3,$r.typeName="agent.v1.ConversationHistoryAssistantContent",$r.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Vr,oneof:"content"},{no:2,name:"reasoning",kind:"message",T:Zr,oneof:"content"},{no:3,name:"redacted_reasoning",kind:"message",T:es,oneof:"content"},{no:4,name:"tool_call",kind:"message",T:ts,oneof:"content"}]));class Zr extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zr).fromBinary(e,t)}static fromJson(e,t){return(new Zr).fromJson(e,t)}static fromJsonString(e,t){return(new Zr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zr,e,t)}}Zr.runtime=r.proto3,Zr.typeName="agent.v1.ConversationHistoryReasoningContent",Zr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"signature",kind:"scalar",T:9,opt:!0}]));class es extends r.Message{constructor(e){super(),this.data="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new es).fromBinary(e,t)}static fromJson(e,t){return(new es).fromJson(e,t)}static fromJsonString(e,t){return(new es).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(es,e,t)}}es.runtime=r.proto3,es.typeName="agent.v1.ConversationHistoryRedactedReasoningContent",es.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class ts extends r.Message{constructor(e){super(),this.toolCallId="",this.toolName="",this.argsJson="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ts).fromBinary(e,t)}static fromJson(e,t){return(new ts).fromJson(e,t)}static fromJsonString(e,t){return(new ts).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ts,e,t)}}ts.runtime=r.proto3,ts.typeName="agent.v1.ConversationHistoryToolCall",ts.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"tool_name",kind:"scalar",T:9},{no:3,name:"args_json",kind:"scalar",T:9}]));class ns extends r.Message{constructor(e){super(),this.toolCallId="",this.toolName="",this.content=[],this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ns).fromBinary(e,t)}static fromJson(e,t){return(new ns).fromJson(e,t)}static fromJsonString(e,t){return(new ns).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ns,e,t)}}ns.runtime=r.proto3,ns.typeName="agent.v1.ConversationHistoryToolMessage",ns.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"tool_name",kind:"scalar",T:9},{no:3,name:"content",kind:"message",T:rs,repeated:!0},{no:4,name:"is_error",kind:"scalar",T:8,opt:!0},{no:5,name:"hook_additional_contexts",kind:"message",T:ir.C,repeated:!0}]));class rs extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rs).fromBinary(e,t)}static fromJson(e,t){return(new rs).fromJson(e,t)}static fromJsonString(e,t){return(new rs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rs,e,t)}}rs.runtime=r.proto3,rs.typeName="agent.v1.ConversationHistoryToolResultContent",rs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Vr,oneof:"content"},{no:2,name:"image",kind:"message",T:Qr,oneof:"content"}]));class ss extends r.Message{constructor(e){super(),this.prependUserMessages=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ss).fromBinary(e,t)}static fromJson(e,t){return(new ss).fromJson(e,t)}static fromJsonString(e,t){return(new ss).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ss,e,t)}}ss.runtime=r.proto3,ss.typeName="agent.v1.UserMessageAction",ss.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:qs},{no:2,name:"request_context",kind:"message",T:ar.bb},{no:3,name:"send_to_interaction_listener",kind:"scalar",T:8,opt:!0},{no:4,name:"prepend_user_messages",kind:"message",T:qs,repeated:!0},{no:6,name:"interrupted_pending_tool_call_resolutions",kind:"message",T:Hr,opt:!0},{no:7,name:"conversation_history",kind:"message",T:Kr,opt:!0}]));class os extends r.Message{constructor(e){super(),this.notifications=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new os).fromBinary(e,t)}static fromJson(e,t){return(new os).fromJson(e,t)}static fromJsonString(e,t){return(new os).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(os,e,t)}}os.runtime=r.proto3,os.typeName="agent.v1.SubscriptionNotificationAction",os.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"notifications",kind:"message",T:qs,repeated:!0},{no:2,name:"request_context",kind:"message",T:ar.bb},{no:3,name:"send_to_interaction_listener",kind:"scalar",T:8,opt:!0}]));class is extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new is).fromBinary(e,t)}static fromJson(e,t){return(new is).fromJson(e,t)}static fromJsonString(e,t){return(new is).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(is,e,t)}}is.runtime=r.proto3,is.typeName="agent.v1.GoalContinuationAction",is.fields=r.proto3.util.newFieldList((()=>[]));class as extends r.Message{constructor(e){super(),this.injectionId="",this.expectedRunId="",this.payload={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new as).fromBinary(e,t)}static fromJson(e,t){return(new as).fromJson(e,t)}static fromJsonString(e,t){return(new as).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(as,e,t)}}as.runtime=r.proto3,as.typeName="agent.v1.InjectContextAction",as.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"injection_id",kind:"scalar",T:9},{no:2,name:"expected_run_id",kind:"scalar",T:9},{no:3,name:"user_context",kind:"message",T:ls,oneof:"payload"},{no:4,name:"system_context",kind:"message",T:us,oneof:"payload"}]));class ls extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ls).fromBinary(e,t)}static fromJson(e,t){return(new ls).fromJson(e,t)}static fromJsonString(e,t){return(new ls).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ls,e,t)}}ls.runtime=r.proto3,ls.typeName="agent.v1.UserContextInjection",ls.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:qs},{no:2,name:"request_context",kind:"message",T:ar.bb}]));class us extends r.Message{constructor(e){super(),this.producer="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new us).fromBinary(e,t)}static fromJson(e,t){return(new us).fromJson(e,t)}static fromJsonString(e,t){return(new us).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(us,e,t)}}us.runtime=r.proto3,us.typeName="agent.v1.SystemContextInjection",us.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"producer",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]));class ms extends r.Message{constructor(e){super(),this.state={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ms).fromBinary(e,t)}static fromJson(e,t){return(new ms).fromJson(e,t)}static fromJsonString(e,t){return(new ms).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ms,e,t)}}ms.runtime=r.proto3,ms.typeName="agent.v1.ContextInjectionState",ms.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"queued",kind:"message",T:cs,oneof:"state"},{no:2,name:"delivered",kind:"message",T:ds,oneof:"state"},{no:3,name:"queued_for_next_turn",kind:"message",T:ps,oneof:"state"},{no:4,name:"cancelled",kind:"message",T:fs,oneof:"state"},{no:5,name:"rejected",kind:"message",T:gs,oneof:"state"}]));class cs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cs).fromBinary(e,t)}static fromJson(e,t){return(new cs).fromJson(e,t)}static fromJsonString(e,t){return(new cs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cs,e,t)}}cs.runtime=r.proto3,cs.typeName="agent.v1.ContextInjectionQueued",cs.fields=r.proto3.util.newFieldList((()=>[]));class ds extends r.Message{constructor(e){super(),this.step=0,this.deliveryBatchId="",this.deliveredAtMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ds).fromBinary(e,t)}static fromJson(e,t){return(new ds).fromJson(e,t)}static fromJsonString(e,t){return(new ds).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ds,e,t)}}ds.runtime=r.proto3,ds.typeName="agent.v1.ContextInjectionDelivered",ds.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step",kind:"scalar",T:5},{no:2,name:"delivery_batch_id",kind:"scalar",T:9},{no:3,name:"delivered_at_ms",kind:"scalar",T:3}]));class ps extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ps).fromBinary(e,t)}static fromJson(e,t){return(new ps).fromJson(e,t)}static fromJsonString(e,t){return(new ps).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ps,e,t)}}ps.runtime=r.proto3,ps.typeName="agent.v1.ContextInjectionQueuedForNextTurn",ps.fields=r.proto3.util.newFieldList((()=>[]));class fs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fs).fromBinary(e,t)}static fromJson(e,t){return(new fs).fromJson(e,t)}static fromJsonString(e,t){return(new fs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fs,e,t)}}fs.runtime=r.proto3,fs.typeName="agent.v1.ContextInjectionCancelled",fs.fields=r.proto3.util.newFieldList((()=>[]));class gs extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gs).fromBinary(e,t)}static fromJson(e,t){return(new gs).fromJson(e,t)}static fromJsonString(e,t){return(new gs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gs,e,t)}}gs.runtime=r.proto3,gs.typeName="agent.v1.ContextInjectionRejected",gs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class _s extends r.Message{constructor(e){super(),this.id="",this.label="",this.source=er.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _s).fromBinary(e,t)}static fromJson(e,t){return(new _s).fromJson(e,t)}static fromJsonString(e,t){return(new _s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_s,e,t)}}_s.runtime=r.proto3,_s.typeName="agent.v1.SubmittedCustomMode",_s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:5,name:"source",kind:"enum",T:r.proto3.getEnumType(er)},{no:6,name:"source_path",kind:"scalar",T:9,opt:!0},{no:7,name:"source_hash",kind:"scalar",T:9,opt:!0},{no:10,name:"managed_skill_id",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"plugin_snapshot_token",kind:"scalar",T:9,opt:!0}]));class hs extends r.Message{constructor(e){super(),this.id="",this.label="",this.source=er.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hs).fromBinary(e,t)}static fromJson(e,t){return(new hs).fromJson(e,t)}static fromJsonString(e,t){return(new hs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hs,e,t)}}hs.runtime=r.proto3,hs.typeName="agent.v1.CustomModeDescriptor",hs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"icon",kind:"scalar",T:9,opt:!0},{no:5,name:"color",kind:"scalar",T:9,opt:!0},{no:6,name:"source",kind:"enum",T:r.proto3.getEnumType(er)},{no:7,name:"source_path",kind:"scalar",T:9,opt:!0},{no:8,name:"source_hash",kind:"scalar",T:9,opt:!0},{no:9,name:"managed_skill_id",kind:"scalar",T:9,opt:!0},{no:10,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_snapshot_token",kind:"scalar",T:9,opt:!0}]));class Ts extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ts).fromBinary(e,t)}static fromJson(e,t){return(new Ts).fromJson(e,t)}static fromJsonString(e,t){return(new Ts).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ts,e,t)}}Ts.runtime=r.proto3,Ts.typeName="agent.v1.SubmittedExitedCustomMode",Ts.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class ys extends r.Message{constructor(e){super(),this.nextMode=Yn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ys).fromBinary(e,t)}static fromJson(e,t){return(new ys).fromJson(e,t)}static fromJsonString(e,t){return(new ys).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ys,e,t)}}ys.runtime=r.proto3,ys.typeName="agent.v1.CustomModeExitIntent",ys.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"next_mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:2,name:"exited_mode",kind:"message",T:Ts}]));class Ss extends r.Message{constructor(e){super(),this.intent={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ss).fromBinary(e,t)}static fromJson(e,t){return(new Ss).fromJson(e,t)}static fromJsonString(e,t){return(new Ss).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ss,e,t)}}Ss.runtime=r.proto3,Ss.typeName="agent.v1.CustomModeIntent",Ss.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enter",kind:"message",T:_s,oneof:"intent"},{no:2,name:"exit",kind:"message",T:ys,oneof:"intent"}]));class ws extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ws).fromBinary(e,t)}static fromJson(e,t){return(new ws).fromJson(e,t)}static fromJsonString(e,t){return(new ws).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ws,e,t)}}ws.runtime=r.proto3,ws.typeName="agent.v1.CancelAction",ws.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:3,name:"interrupted_pending_tool_call_resolutions",kind:"message",T:Hr,opt:!0}]));class ks extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ks).fromBinary(e,t)}static fromJson(e,t){return(new ks).fromJson(e,t)}static fromJsonString(e,t){return(new ks).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ks,e,t)}}ks.runtime=r.proto3,ks.typeName="agent.v1.ResumeAction",ks.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"request_context",kind:"message",T:ar.bb}]));class Js extends r.Message{constructor(e){super(),this.originalToolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Js).fromBinary(e,t)}static fromJson(e,t){return(new Js).fromJson(e,t)}static fromJsonString(e,t){return(new Js).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Js,e,t)}}Js.runtime=r.proto3,Js.typeName="agent.v1.AsyncAskQuestionCompletionAction",Js.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"original_tool_call_id",kind:"scalar",T:9},{no:2,name:"original_args",kind:"message",T:me.ju},{no:3,name:"result",kind:"message",T:me.tz}]));class vs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vs).fromBinary(e,t)}static fromJson(e,t){return(new vs).fromJson(e,t)}static fromJsonString(e,t){return(new vs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vs,e,t)}}vs.runtime=r.proto3,vs.typeName="agent.v1.SummarizeAction",vs.fields=r.proto3.util.newFieldList((()=>[]));class Es extends r.Message{constructor(e){super(),this.execId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Es).fromBinary(e,t)}static fromJson(e,t){return(new Es).fromJson(e,t)}static fromJsonString(e,t){return(new Es).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Es,e,t)}}Es.runtime=r.proto3,Es.typeName="agent.v1.ShellCommandAction",Es.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"message",T:Fs},{no:2,name:"exec_id",kind:"scalar",T:9}]));class bs extends r.Message{constructor(e){super(),this.isSpec=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bs).fromBinary(e,t)}static fromJson(e,t){return(new bs).fromJson(e,t)}static fromJsonString(e,t){return(new bs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bs,e,t)}}bs.runtime=r.proto3,bs.typeName="agent.v1.StartPlanAction",bs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:qs},{no:2,name:"request_context",kind:"message",T:ar.bb},{no:3,name:"is_spec",kind:"scalar",T:8}]));class js extends r.Message{constructor(e){super(),this.executionMode=Yn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new js).fromBinary(e,t)}static fromJson(e,t){return(new js).fromJson(e,t)}static fromJsonString(e,t){return(new js).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(js,e,t)}}js.runtime=r.proto3,js.typeName="agent.v1.ExecutePlanAction",js.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_context",kind:"message",T:ar.bb},{no:2,name:"plan",kind:"message",T:Cs,opt:!0},{no:3,name:"plan_file_uri",kind:"scalar",T:9,opt:!0},{no:4,name:"plan_file_content",kind:"scalar",T:9,opt:!0},{no:5,name:"execution_mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:6,name:"kickoff_message_id",kind:"scalar",T:9,opt:!0},{no:7,name:"plan_id",kind:"scalar",T:9,opt:!0},{no:8,name:"plan_file_path",kind:"scalar",T:9,opt:!0}]));class xs extends r.Message{constructor(e){super(),this.userId=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xs).fromBinary(e,t)}static fromJson(e,t){return(new xs).fromJson(e,t)}static fromJsonString(e,t){return(new xs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xs,e,t)}}xs.runtime=r.proto3,xs.typeName="agent.v1.UserDisplayInfo",xs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:5},{no:2,name:"display_name",kind:"scalar",T:9,opt:!0},{no:3,name:"email",kind:"scalar",T:9,opt:!0},{no:4,name:"profile_picture_url",kind:"scalar",T:9,opt:!0}]));class Ns extends r.Message{constructor(e){super(),this.planId="",this.planTitle="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ns).fromBinary(e,t)}static fromJson(e,t){return(new Ns).fromJson(e,t)}static fromJsonString(e,t){return(new Ns).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ns,e,t)}}Ns.runtime=r.proto3,Ns.typeName="agent.v1.ExecutePlanInfo",Ns.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan_id",kind:"scalar",T:9},{no:2,name:"plan_title",kind:"scalar",T:9}]));class Ps extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ps).fromBinary(e,t)}static fromJson(e,t){return(new Ps).fromJson(e,t)}static fromJsonString(e,t){return(new Ps).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ps,e,t)}}Ps.runtime=r.proto3,Ps.typeName="agent.v1.ProjectDetails",Ps.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"subagent",kind:"message",T:Bs,opt:!0},{no:3,name:"side_chat",kind:"message",T:Is,opt:!0}]));class Bs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bs).fromBinary(e,t)}static fromJson(e,t){return(new Bs).fromJson(e,t)}static fromJsonString(e,t){return(new Bs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bs,e,t)}}Bs.runtime=r.proto3,Bs.typeName="agent.v1.ProjectSubagentDetails",Bs.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"store_dir",kind:"scalar",T:9,opt:!0}]));class Is extends r.Message{constructor(e){super(),this.storeDir="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Is).fromBinary(e,t)}static fromJson(e,t){return(new Is).fromJson(e,t)}static fromJsonString(e,t){return(new Is).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Is,e,t)}}Is.runtime=r.proto3,Is.typeName="agent.v1.ProjectSideChatDetails",Is.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"store_dir",kind:"scalar",T:9}]));class qs extends r.Message{constructor(e){super(),this.text="",this.messageId="",this.mode=Yn.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qs).fromBinary(e,t)}static fromJson(e,t){return(new qs).fromJson(e,t)}static fromJsonString(e,t){return(new qs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qs,e,t)}}qs.runtime=r.proto3,qs.typeName="agent.v1.UserMessage",qs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"message_id",kind:"scalar",T:9},{no:3,name:"selected_context",kind:"message",T:lr.xv,opt:!0},{no:4,name:"mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:5,name:"is_simulated_msg",kind:"scalar",T:8,opt:!0},{no:6,name:"best_of_n_group_id",kind:"scalar",T:9,opt:!0},{no:7,name:"try_use_best_of_n_promotion",kind:"scalar",T:8,opt:!0},{no:8,name:"rich_text",kind:"scalar",T:9,opt:!0},{no:9,name:"simulated_msg_reason",kind:"enum",T:r.proto3.getEnumType(tr),opt:!0},{no:10,name:"conversation_state_blob_id",kind:"scalar",T:12},{no:11,name:"subagent_system_reminder",kind:"scalar",T:9,opt:!0},{no:13,name:"triggering_user_info",kind:"message",T:Or,opt:!0},{no:14,name:"execute_plan_info",kind:"message",T:Ns,opt:!0},{no:15,name:"simulated_message_metadata",kind:"message",T:Rs,opt:!0},{no:16,name:"prompt_reference_id",kind:"scalar",T:9,opt:!0},{no:17,name:"thread_id",kind:"scalar",T:9,opt:!0},{no:18,name:"text_blob_id",kind:"scalar",T:12,opt:!0},{no:19,name:"rich_text_blob_id",kind:"scalar",T:12,opt:!0},{no:21,name:"hook_additional_contexts",kind:"message",T:ir.C,repeated:!0},{no:22,name:"custom_mode_intent",kind:"message",T:Ss,opt:!0},{no:23,name:"project_details",kind:"message",T:Ps,opt:!0}]));class Rs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rs).fromBinary(e,t)}static fromJson(e,t){return(new Rs).fromJson(e,t)}static fromJsonString(e,t){return(new Rs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rs,e,t)}}Rs.runtime=r.proto3,Rs.typeName="agent.v1.UserMessage.SimulatedMessageMetadata",Rs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9,opt:!0},{no:2,name:"task_id",kind:"scalar",T:9,opt:!0},{no:3,name:"fsd_finding_action",kind:"scalar",T:9,opt:!0},{no:4,name:"url",kind:"scalar",T:9,opt:!0},{no:5,name:"subscription_source",kind:"enum",T:r.proto3.getEnumType(nr),opt:!0}]));class Ms extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ms).fromBinary(e,t)}static fromJson(e,t){return(new Ms).fromJson(e,t)}static fromJsonString(e,t){return(new Ms).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ms,e,t)}}Ms.runtime=r.proto3,Ms.typeName="agent.v1.AssistantMessage",Ms.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Os extends r.Message{constructor(e){super(),this.text="",this.durationMs=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Os).fromBinary(e,t)}static fromJson(e,t){return(new Os).fromJson(e,t)}static fromJsonString(e,t){return(new Os).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Os,e,t)}}Os.runtime=r.proto3,Os.typeName="agent.v1.ThinkingMessage",Os.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"duration_ms",kind:"scalar",T:13}]));class Fs extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fs).fromBinary(e,t)}static fromJson(e,t){return(new Fs).fromJson(e,t)}static fromJsonString(e,t){return(new Fs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fs,e,t)}}Fs.runtime=r.proto3,Fs.typeName="agent.v1.ShellCommand",Fs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9}]));class As extends r.Message{constructor(e){super(),this.stdout="",this.stderr="",this.exitCode=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new As).fromBinary(e,t)}static fromJson(e,t){return(new As).fromJson(e,t)}static fromJsonString(e,t){return(new As).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(As,e,t)}}As.runtime=r.proto3,As.typeName="agent.v1.ShellOutput",As.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"scalar",T:9},{no:2,name:"stderr",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5}]));class Ls extends r.Message{constructor(e){super(),this.turn={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ls).fromBinary(e,t)}static fromJson(e,t){return(new Ls).fromJson(e,t)}static fromJsonString(e,t){return(new Ls).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ls,e,t)}}Ls.runtime=r.proto3,Ls.typeName="agent.v1.ConversationTurn",Ls.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"agent_conversation_turn",kind:"message",T:Hs,oneof:"turn"},{no:2,name:"shell_conversation_turn",kind:"message",T:Ws,oneof:"turn"}]));class Cs extends r.Message{constructor(e){super(),this.plan="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cs).fromBinary(e,t)}static fromJson(e,t){return(new Cs).fromJson(e,t)}static fromJsonString(e,t){return(new Cs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cs,e,t)}}Cs.runtime=r.proto3,Cs.typeName="agent.v1.ConversationPlan",Cs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan",kind:"scalar",T:9}]));class Us extends r.Message{constructor(e){super(),this.id="",this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Us).fromBinary(e,t)}static fromJson(e,t){return(new Us).fromJson(e,t)}static fromJsonString(e,t){return(new Us).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Us,e,t)}}Us.runtime=r.proto3,Us.typeName="agent.v1.PlanRegistryEntry",Us.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9}]));class Ds extends r.Message{constructor(e){super(),this.conversationId="",this.goalId="",this.objective="",this.status=Rn.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ds).fromBinary(e,t)}static fromJson(e,t){return(new Ds).fromJson(e,t)}static fromJsonString(e,t){return(new Ds).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ds,e,t)}}Ds.runtime=r.proto3,Ds.typeName="agent.v1.GoalState",Ds.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_id",kind:"scalar",T:9},{no:2,name:"goal_id",kind:"scalar",T:9},{no:3,name:"objective",kind:"scalar",T:9},{no:4,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)},{no:5,name:"idle_continuations_without_tool_calls",kind:"scalar",T:13}]));class Gs extends r.Message{constructor(e){super(),this.turn={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gs).fromBinary(e,t)}static fromJson(e,t){return(new Gs).fromJson(e,t)}static fromJsonString(e,t){return(new Gs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gs,e,t)}}Gs.runtime=r.proto3,Gs.typeName="agent.v1.ConversationTurnStructure",Gs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"agent_conversation_turn",kind:"message",T:Ks,oneof:"turn"},{no:2,name:"shell_conversation_turn",kind:"message",T:Ys,oneof:"turn"}]));class Hs extends r.Message{constructor(e){super(),this.steps=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hs).fromBinary(e,t)}static fromJson(e,t){return(new Hs).fromJson(e,t)}static fromJsonString(e,t){return(new Hs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hs,e,t)}}Hs.runtime=r.proto3,Hs.typeName="agent.v1.AgentConversationTurn",Hs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:qs},{no:2,name:"steps",kind:"message",T:Rr,repeated:!0},{no:3,name:"request_id",kind:"scalar",T:9,opt:!0}]));class Ks extends r.Message{constructor(e){super(),this.userMessage=new Uint8Array(0),this.steps=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ks).fromBinary(e,t)}static fromJson(e,t){return(new Ks).fromJson(e,t)}static fromJsonString(e,t){return(new Ks).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ks,e,t)}}Ks.runtime=r.proto3,Ks.typeName="agent.v1.AgentConversationTurnStructure",Ks.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"scalar",T:12},{no:2,name:"steps",kind:"scalar",T:12,repeated:!0},{no:3,name:"request_id",kind:"scalar",T:9,opt:!0},{no:4,name:"encrypted_model",kind:"scalar",T:9,opt:!0},{no:5,name:"dynamic_tool_count",kind:"scalar",T:13,opt:!0}]));class Ws extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ws).fromBinary(e,t)}static fromJson(e,t){return(new Ws).fromJson(e,t)}static fromJsonString(e,t){return(new Ws).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ws,e,t)}}Ws.runtime=r.proto3,Ws.typeName="agent.v1.ShellConversationTurn",Ws.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"message",T:Fs},{no:2,name:"shell_output",kind:"message",T:As}]));class Ys extends r.Message{constructor(e){super(),this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ys).fromBinary(e,t)}static fromJson(e,t){return(new Ys).fromJson(e,t)}static fromJsonString(e,t){return(new Ys).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ys,e,t)}}Ys.runtime=r.proto3,Ys.typeName="agent.v1.ShellConversationTurnStructure",Ys.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"scalar",T:12},{no:2,name:"shell_output",kind:"scalar",T:12}]));class zs extends r.Message{constructor(e){super(),this.summary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zs).fromBinary(e,t)}static fromJson(e,t){return(new zs).fromJson(e,t)}static fromJsonString(e,t){return(new zs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zs,e,t)}}zs.runtime=r.proto3,zs.typeName="agent.v1.ConversationSummary",zs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class Vs extends r.Message{constructor(e){super(),this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vs).fromBinary(e,t)}static fromJson(e,t){return(new Vs).fromJson(e,t)}static fromJsonString(e,t){return(new Vs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vs,e,t)}}Vs.runtime=r.proto3,Vs.typeName="agent.v1.ConversationSummaryArchive",Vs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summarized_messages",kind:"scalar",T:12,repeated:!0},{no:2,name:"summary",kind:"scalar",T:9},{no:3,name:"window_tail",kind:"scalar",T:13},{no:4,name:"summary_message",kind:"scalar",T:12}]));class Qs extends r.Message{constructor(e){super(),this.id="",this.label="",this.estimatedTokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qs).fromBinary(e,t)}static fromJson(e,t){return(new Qs).fromJson(e,t)}static fromJsonString(e,t){return(new Qs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qs,e,t)}}Qs.runtime=r.proto3,Qs.typeName="agent.v1.PromptTokenBreakdownCategory",Qs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"estimated_tokens",kind:"scalar",T:13},{no:4,name:"character_count",kind:"scalar",T:13,opt:!0}]));class Xs extends r.Message{constructor(e){super(),this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xs).fromBinary(e,t)}static fromJson(e,t){return(new Xs).fromJson(e,t)}static fromJsonString(e,t){return(new Xs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xs,e,t)}}Xs.runtime=r.proto3,Xs.typeName="agent.v1.PromptTokenBreakdownSnapshot",Xs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"total_used_tokens",kind:"scalar",T:13},{no:2,name:"max_tokens",kind:"scalar",T:13},{no:3,name:"categories",kind:"message",T:Qs,repeated:!0}]));class $s extends r.Message{constructor(e){super(),this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $s).fromBinary(e,t)}static fromJson(e,t){return(new $s).fromJson(e,t)}static fromJsonString(e,t){return(new $s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($s,e,t)}}$s.runtime=r.proto3,$s.typeName="agent.v1.PromptContextSourceRef",$s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"source_type",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13},{no:4,name:"content_path",kind:"scalar",T:9},{no:5,name:"start_offset",kind:"scalar",T:13},{no:6,name:"end_offset",kind:"scalar",T:13}]));class Zs extends r.Message{constructor(e){super(),this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zs).fromBinary(e,t)}static fromJson(e,t){return(new Zs).fromJson(e,t)}static fromJsonString(e,t){return(new Zs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zs,e,t)}}Zs.runtime=r.proto3,Zs.typeName="agent.v1.PromptContextNode",Zs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"parent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"kind",kind:"scalar",T:9},{no:4,name:"label",kind:"scalar",T:9},{no:5,name:"category_id",kind:"scalar",T:9},{no:6,name:"estimated_tokens",kind:"scalar",T:13},{no:7,name:"character_count",kind:"scalar",T:13},{no:9,name:"content_available",kind:"scalar",T:8},{no:11,name:"source",kind:"message",T:$s,opt:!0},{no:12,name:"inline_content",kind:"scalar",T:9,opt:!0}]));class eo extends r.Message{constructor(e){super(),this.schemaVersion=0,this.nodes=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new eo).fromBinary(e,t)}static fromJson(e,t){return(new eo).fromJson(e,t)}static fromJsonString(e,t){return(new eo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(eo,e,t)}}eo.runtime=r.proto3,eo.typeName="agent.v1.PromptContextUsageTree",eo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"schema_version",kind:"scalar",T:13},{no:2,name:"nodes",kind:"message",T:Zs,repeated:!0}]));class to extends r.Message{constructor(e){super(),this.usedTokens=0,this.maxTokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new to).fromBinary(e,t)}static fromJson(e,t){return(new to).fromJson(e,t)}static fromJsonString(e,t){return(new to).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(to,e,t)}}to.runtime=r.proto3,to.typeName="agent.v1.ConversationTokenDetails",to.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"used_tokens",kind:"scalar",T:13},{no:2,name:"max_tokens",kind:"scalar",T:13},{no:3,name:"breakdown",kind:"message",T:Xs,opt:!0},{no:4,name:"prompt_context_usage_tree",kind:"message",T:eo,opt:!0}]));class no extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new no).fromBinary(e,t)}static fromJson(e,t){return(new no).fromJson(e,t)}static fromJsonString(e,t){return(new no).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(no,e,t)}}no.runtime=r.proto3,no.typeName="agent.v1.FileState",no.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9,opt:!0},{no:2,name:"initial_content",kind:"scalar",T:9,opt:!0}]));class ro extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ro).fromBinary(e,t)}static fromJson(e,t){return(new ro).fromJson(e,t)}static fromJsonString(e,t){return(new ro).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ro,e,t)}}ro.runtime=r.proto3,ro.typeName="agent.v1.FileStateStructure",ro.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:12,opt:!0},{no:2,name:"initial_content",kind:"scalar",T:12,opt:!0}]));class so extends r.Message{constructor(e){super(),this.durationMs=r.protoInt64.zero,this.timestampMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new so).fromBinary(e,t)}static fromJson(e,t){return(new so).fromJson(e,t)}static fromJsonString(e,t){return(new so).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(so,e,t)}}so.runtime=r.proto3,so.typeName="agent.v1.StepTiming",so.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"duration_ms",kind:"scalar",T:4},{no:2,name:"timestamp_ms",kind:"scalar",T:4}]));class oo extends r.Message{constructor(e){super(),this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oo).fromBinary(e,t)}static fromJson(e,t){return(new oo).fromJson(e,t)}static fromJsonString(e,t){return(new oo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(oo,e,t)}}oo.runtime=r.proto3,oo.typeName="agent.v1.ConversationState",oo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"root_prompt_messages_json",kind:"scalar",T:9,repeated:!0},{no:8,name:"turns",kind:"message",T:Ls,repeated:!0},{no:3,name:"todos",kind:"message",T:b.kW,repeated:!0},{no:4,name:"pending_tool_calls",kind:"scalar",T:9,repeated:!0},{no:5,name:"token_details",kind:"message",T:to},{no:6,name:"summary",kind:"message",T:zs,opt:!0},{no:7,name:"plan",kind:"message",T:Cs,opt:!0},{no:9,name:"summary_archive",kind:"message",T:Vs,opt:!0},{no:10,name:"file_states",kind:"map",K:9,V:{kind:"message",T:no}},{no:11,name:"summary_archives",kind:"message",T:Vs,repeated:!0},{no:12,name:"plans",kind:"map",K:9,V:{kind:"message",T:Us}},{no:13,name:"communicate_update_history",kind:"message",T:io,repeated:!0},{no:14,name:"communicate_update_final_summary",kind:"scalar",T:9,opt:!0},{no:15,name:"communicate_update_completed_subtitle",kind:"scalar",T:9,opt:!0},{no:16,name:"communicate_update_states_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:ao}}]));class io extends r.Message{constructor(e){super(),this.step="",this.messageIndex=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new io).fromBinary(e,t)}static fromJson(e,t){return(new io).fromJson(e,t)}static fromJsonString(e,t){return(new io).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(io,e,t)}}io.runtime=r.proto3,io.typeName="agent.v1.CommunicateUpdateHistoryEntry",io.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13}]));class ao extends r.Message{constructor(e){super(),this.history=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ao).fromBinary(e,t)}static fromJson(e,t){return(new ao).fromJson(e,t)}static fromJsonString(e,t){return(new ao).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ao,e,t)}}ao.runtime=r.proto3,ao.typeName="agent.v1.CommunicateUpdateTurnState",ao.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"history",kind:"message",T:io,repeated:!0},{no:2,name:"final_summary",kind:"scalar",T:9,opt:!0},{no:3,name:"completed_subtitle",kind:"scalar",T:9,opt:!0}]));class lo extends r.Message{constructor(e){super(),this.createdTimestampMs=r.protoInt64.zero,this.lastUsedTimestampMs=r.protoInt64.zero,this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lo).fromBinary(e,t)}static fromJson(e,t){return(new lo).fromJson(e,t)}static fromJsonString(e,t){return(new lo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(lo,e,t)}}lo.runtime=r.proto3,lo.typeName="agent.v1.SubagentPersistedState",lo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_state",kind:"message",T:co},{no:2,name:"created_timestamp_ms",kind:"scalar",T:4},{no:3,name:"last_used_timestamp_ms",kind:"scalar",T:4},{no:4,name:"subagent_type",kind:"message",T:s._L},{no:5,name:"model_id",kind:"scalar",T:9,opt:!0},{no:6,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:7,name:"cloud_subagent",kind:"message",T:uo,opt:!0},{no:8,name:"first_class_bc_id",kind:"scalar",T:9,opt:!0},{no:9,name:"cloud_requested_environment_build_id",kind:"scalar",T:9,opt:!0}]));class uo extends r.Message{constructor(e){super(),this.bcId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new uo).fromBinary(e,t)}static fromJson(e,t){return(new uo).fromJson(e,t)}static fromJsonString(e,t){return(new uo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(uo,e,t)}}uo.runtime=r.proto3,uo.typeName="agent.v1.CloudSubagentReference",uo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"bc_id",kind:"scalar",T:9},{no:2,name:"transcript_path",kind:"scalar",T:9,opt:!0}]));class mo extends r.Message{constructor(e){super(),this.repoPath="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mo).fromBinary(e,t)}static fromJson(e,t){return(new mo).fromJson(e,t)}static fromJsonString(e,t){return(new mo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mo,e,t)}}mo.runtime=r.proto3,mo.typeName="agent.v1.TrackedGitRepo",mo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"repo_path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class co extends r.Message{constructor(e){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={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new co).fromBinary(e,t)}static fromJson(e,t){return(new co).fromJson(e,t)}static fromJsonString(e,t){return(new co).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(co,e,t)}}co.runtime=r.proto3,co.typeName="agent.v1.ConversationStateStructure",co.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"root_prompt_messages_json",kind:"scalar",T:12,repeated:!0},{no:8,name:"turns",kind:"scalar",T:12,repeated:!0},{no:3,name:"todos",kind:"scalar",T:12,repeated:!0},{no:4,name:"pending_tool_calls",kind:"scalar",T:9,repeated:!0},{no:5,name:"token_details",kind:"message",T:to},{no:6,name:"summary",kind:"scalar",T:12,opt:!0},{no:7,name:"plan",kind:"scalar",T:12,opt:!0},{no:9,name:"previous_workspace_uris",kind:"scalar",T:9,repeated:!0},{no:10,name:"mode",kind:"enum",T:r.proto3.getEnumType(Yn),opt:!0},{no:11,name:"summary_archive",kind:"scalar",T:12,opt:!0},{no:12,name:"file_states",kind:"map",K:9,V:{kind:"scalar",T:12}},{no:15,name:"file_states_v2",kind:"map",K:9,V:{kind:"message",T:ro}},{no:13,name:"summary_archives",kind:"scalar",T:12,repeated:!0},{no:14,name:"turn_timings",kind:"message",T:so,repeated:!0},{no:16,name:"subagent_states",kind:"map",K:9,V:{kind:"message",T:lo}},{no:17,name:"self_summary_count",kind:"scalar",T:13},{no:18,name:"read_paths",kind:"scalar",T:9,repeated:!0},{no:19,name:"active_branch_name",kind:"scalar",T:9,opt:!0},{no:20,name:"plans",kind:"map",K:9,V:{kind:"message",T:Us}},{no:21,name:"tracked_git_repo_branches",kind:"message",T:mo,repeated:!0},{no:22,name:"agent_type",kind:"scalar",T:9,opt:!0},{no:23,name:"communicate_update_history",kind:"message",T:io,repeated:!0},{no:24,name:"subagent_threads",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:25,name:"communicate_update_final_summary",kind:"scalar",T:9,opt:!0},{no:28,name:"communicate_update_completed_subtitle",kind:"scalar",T:9,opt:!0},{no:29,name:"communicate_update_states_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:ao}},{no:30,name:"subagent_runs_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:Lr}},{no:26,name:"conversation_started_timestamp_ms",kind:"scalar",T:4,opt:!0},{no:27,name:"conversation_started_time_zone",kind:"scalar",T:9,opt:!0},{no:31,name:"subagent_state_refs",kind:"map",K:9,V:{kind:"scalar",T:12}},{no:32,name:"goal_state",kind:"message",T:Ds,opt:!0}]));class po extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new po).fromBinary(e,t)}static fromJson(e,t){return(new po).fromJson(e,t)}static fromJsonString(e,t){return(new po).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(po,e,t)}}po.runtime=r.proto3,po.typeName="agent.v1.ThinkingDetails",po.fields=r.proto3.util.newFieldList((()=>[]));class fo extends r.Message{constructor(e){super(),this.apiKey="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fo).fromBinary(e,t)}static fromJson(e,t){return(new fo).fromJson(e,t)}static fromJsonString(e,t){return(new fo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fo,e,t)}}fo.runtime=r.proto3,fo.typeName="agent.v1.ApiKeyCredentials",fo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9,opt:!0}]));class go extends r.Message{constructor(e){super(),this.apiKey="",this.baseUrl="",this.deployment="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new go).fromBinary(e,t)}static fromJson(e,t){return(new go).fromJson(e,t)}static fromJsonString(e,t){return(new go).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(go,e,t)}}go.runtime=r.proto3,go.typeName="agent.v1.AzureCredentials",go.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9},{no:3,name:"deployment",kind:"scalar",T:9}]));class _o extends r.Message{constructor(e){super(),this.accessKey="",this.secretKey="",this.region="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _o).fromBinary(e,t)}static fromJson(e,t){return(new _o).fromJson(e,t)}static fromJsonString(e,t){return(new _o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_o,e,t)}}_o.runtime=r.proto3,_o.typeName="agent.v1.BedrockCredentials",_o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"access_key",kind:"scalar",T:9},{no:2,name:"secret_key",kind:"scalar",T:9},{no:3,name:"region",kind:"scalar",T:9},{no:4,name:"session_token",kind:"scalar",T:9,opt:!0}]));class ho extends r.Message{constructor(e){super(),this.modelId="",this.displayModelId="",this.displayName="",this.displayNameShort="",this.aliases=[],this.credentials={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ho).fromBinary(e,t)}static fromJson(e,t){return(new ho).fromJson(e,t)}static fromJsonString(e,t){return(new ho).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ho,e,t)}}ho.runtime=r.proto3,ho.typeName="agent.v1.ModelDetails",ho.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:3,name:"display_model_id",kind:"scalar",T:9},{no:4,name:"display_name",kind:"scalar",T:9},{no:5,name:"display_name_short",kind:"scalar",T:9},{no:6,name:"aliases",kind:"scalar",T:9,repeated:!0},{no:2,name:"thinking_details",kind:"message",T:po,opt:!0},{no:7,name:"max_mode",kind:"scalar",T:8,opt:!0},{no:8,name:"api_key_credentials",kind:"message",T:fo,oneof:"credentials"},{no:9,name:"azure_credentials",kind:"message",T:go,oneof:"credentials"},{no:10,name:"bedrock_credentials",kind:"message",T:_o,oneof:"credentials"}]));class To extends r.Message{constructor(e){super(),this.modelId="",this.maxMode=!1,this.parameters=[],this.credentials={case:void 0},this.builtInModel=!1,this.isVariantStringRepresentation=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new To).fromBinary(e,t)}static fromJson(e,t){return(new To).fromJson(e,t)}static fromJsonString(e,t){return(new To).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(To,e,t)}}To.runtime=r.proto3,To.typeName="agent.v1.RequestedModel",To.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:2,name:"max_mode",kind:"scalar",T:8},{no:3,name:"parameters",kind:"message",T:yo,repeated:!0},{no:4,name:"api_key_credentials",kind:"message",T:fo,oneof:"credentials"},{no:5,name:"azure_credentials",kind:"message",T:go,oneof:"credentials"},{no:6,name:"bedrock_credentials",kind:"message",T:_o,oneof:"credentials"},{no:7,name:"built_in_model",kind:"scalar",T:8},{no:8,name:"is_variant_string_representation",kind:"scalar",T:8}]));class yo extends r.Message{constructor(e){super(),this.id="",this.value="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yo).fromBinary(e,t)}static fromJson(e,t){return(new yo).fromJson(e,t)}static fromJsonString(e,t){return(new yo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yo,e,t)}}yo.runtime=r.proto3,yo.typeName="agent.v1.RequestedModel.ModelParameterValue",yo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class So extends r.Message{constructor(e){super(),this.subagentType="",this.selection={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new So).fromBinary(e,t)}static fromJson(e,t){return(new So).fromJson(e,t)}static fromJsonString(e,t){return(new So).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(So,e,t)}}So.runtime=r.proto3,So.typeName="agent.v1.SubagentModelOverride",So.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_type",kind:"scalar",T:9},{no:2,name:"model",kind:"message",T:To,oneof:"selection"},{no:3,name:"inherit",kind:"scalar",T:8,oneof:"selection"},{no:4,name:"disabled",kind:"scalar",T:8,oneof:"selection"}]));class wo extends r.Message{constructor(e){super(),this.id=new Uint8Array(0),this.value=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wo).fromBinary(e,t)}static fromJson(e,t){return(new wo).fromJson(e,t)}static fromJsonString(e,t){return(new wo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wo,e,t)}}wo.runtime=r.proto3,wo.typeName="agent.v1.PreFetchedBlob",wo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:12},{no:2,name:"value",kind:"scalar",T:12}]));class ko extends r.Message{constructor(e){super(),this.selectedSubagentModels=[],this.selectedSubagentModelDetails=[],this.preFetchedBlobs=[],this.subagentModelOverrides=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ko).fromBinary(e,t)}static fromJson(e,t){return(new ko).fromJson(e,t)}static fromJsonString(e,t){return(new ko).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ko,e,t)}}ko.runtime=r.proto3,ko.typeName="agent.v1.AgentRunRequest",ko.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_state",kind:"message",T:co},{no:2,name:"action",kind:"message",T:Mr},{no:3,name:"model_details",kind:"message",T:ho},{no:9,name:"requested_model",kind:"message",T:To,opt:!0},{no:4,name:"mcp_tools",kind:"message",T:ur.Or},{no:5,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"mcp_file_system_options",kind:"message",T:ur.Is,opt:!0},{no:7,name:"skill_options",kind:"message",T:ar.uw,opt:!0},{no:8,name:"custom_system_prompt",kind:"scalar",T:9,opt:!0},{no:10,name:"suggest_next_prompt",kind:"scalar",T:8,opt:!0},{no:11,name:"subagent_type_name",kind:"scalar",T:9,opt:!0},{no:12,name:"exclude_workspace_context",kind:"scalar",T:8,opt:!0},{no:13,name:"harness",kind:"scalar",T:9,opt:!0},{no:14,name:"selected_subagent_models",kind:"message",T:To,repeated:!0},{no:15,name:"selected_subagent_model_details",kind:"message",T:ho,repeated:!0},{no:16,name:"conversation_group_id",kind:"scalar",T:9,opt:!0},{no:17,name:"pre_fetched_blobs",kind:"message",T:wo,repeated:!0},{no:18,name:"dev_raw_model_slug",kind:"scalar",T:9,opt:!0},{no:19,name:"client_supports_inline_images",kind:"scalar",T:8,opt:!0},{no:20,name:"subagent_model_overrides",kind:"message",T:So,repeated:!0},{no:21,name:"can_create_cloud_subagents",kind:"scalar",T:8,opt:!0},{no:22,name:"suppress_subagent_progress_update_tool",kind:"scalar",T:8,opt:!0},{no:23,name:"client_supports_send_to_user",kind:"scalar",T:8,opt:!0},{no:24,name:"computer_use_coordinate_mode",kind:"scalar",T:9,opt:!0},{no:25,name:"run_id",kind:"scalar",T:9,opt:!0}]));class Jo extends r.Message{constructor(e){super(),this.text="",this.isServerNotice=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jo).fromBinary(e,t)}static fromJson(e,t){return(new Jo).fromJson(e,t)}static fromJsonString(e,t){return(new Jo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jo,e,t)}}Jo.runtime=r.proto3,Jo.typeName="agent.v1.TextDeltaUpdate",Jo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"is_server_notice",kind:"scalar",T:8}]));class vo extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vo).fromBinary(e,t)}static fromJson(e,t){return(new vo).fromJson(e,t)}static fromJsonString(e,t){return(new vo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vo,e,t)}}vo.runtime=r.proto3,vo.typeName="agent.v1.ToolCallStartedUpdate",vo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:jr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class Eo extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Eo).fromBinary(e,t)}static fromJson(e,t){return(new Eo).fromJson(e,t)}static fromJsonString(e,t){return(new Eo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Eo,e,t)}}Eo.runtime=r.proto3,Eo.typeName="agent.v1.ToolCallCompletedUpdate",Eo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:jr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class bo extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bo).fromBinary(e,t)}static fromJson(e,t){return(new bo).fromJson(e,t)}static fromJsonString(e,t){return(new bo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bo,e,t)}}bo.runtime=r.proto3,bo.typeName="agent.v1.ToolCallDeltaUpdate",bo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call_delta",kind:"message",T:qr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class jo extends r.Message{constructor(e){super(),this.callId="",this.argsTextDelta="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jo).fromBinary(e,t)}static fromJson(e,t){return(new jo).fromJson(e,t)}static fromJsonString(e,t){return(new jo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jo,e,t)}}jo.runtime=r.proto3,jo.typeName="agent.v1.PartialToolCallUpdate",jo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:jr},{no:3,name:"args_text_delta",kind:"scalar",T:9},{no:4,name:"model_call_id",kind:"scalar",T:9}]));class xo extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xo).fromBinary(e,t)}static fromJson(e,t){return(new xo).fromJson(e,t)}static fromJsonString(e,t){return(new xo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xo,e,t)}}xo.runtime=r.proto3,xo.typeName="agent.v1.ThinkingDeltaUpdate",xo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"thinking_style",kind:"enum",T:r.proto3.getEnumType(rr),opt:!0}]));class No extends r.Message{constructor(e){super(),this.thinkingDurationMs=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new No).fromBinary(e,t)}static fromJson(e,t){return(new No).fromJson(e,t)}static fromJsonString(e,t){return(new No).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(No,e,t)}}No.runtime=r.proto3,No.typeName="agent.v1.ThinkingCompletedUpdate",No.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"thinking_duration_ms",kind:"scalar",T:5}]));class Po extends r.Message{constructor(e){super(),this.tokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Po).fromBinary(e,t)}static fromJson(e,t){return(new Po).fromJson(e,t)}static fromJsonString(e,t){return(new Po).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Po,e,t)}}Po.runtime=r.proto3,Po.typeName="agent.v1.TokenDeltaUpdate",Po.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tokens",kind:"scalar",T:5}]));class Bo extends r.Message{constructor(e){super(),this.summary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bo).fromBinary(e,t)}static fromJson(e,t){return(new Bo).fromJson(e,t)}static fromJsonString(e,t){return(new Bo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bo,e,t)}}Bo.runtime=r.proto3,Bo.typeName="agent.v1.SummaryUpdate",Bo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class Io extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Io).fromBinary(e,t)}static fromJson(e,t){return(new Io).fromJson(e,t)}static fromJsonString(e,t){return(new Io).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Io,e,t)}}Io.runtime=r.proto3,Io.typeName="agent.v1.SummaryStartedUpdate",Io.fields=r.proto3.util.newFieldList((()=>[]));class qo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qo).fromBinary(e,t)}static fromJson(e,t){return(new qo).fromJson(e,t)}static fromJsonString(e,t){return(new qo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qo,e,t)}}qo.runtime=r.proto3,qo.typeName="agent.v1.HeartbeatUpdate",qo.fields=r.proto3.util.newFieldList((()=>[]));class Ro extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ro).fromBinary(e,t)}static fromJson(e,t){return(new Ro).fromJson(e,t)}static fromJsonString(e,t){return(new Ro).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ro,e,t)}}Ro.runtime=r.proto3,Ro.typeName="agent.v1.SummaryCompletedUpdate",Ro.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"hook_message",kind:"scalar",T:9,opt:!0}]));class Mo extends r.Message{constructor(e){super(),this.event={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mo).fromBinary(e,t)}static fromJson(e,t){return(new Mo).fromJson(e,t)}static fromJsonString(e,t){return(new Mo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mo,e,t)}}Mo.runtime=r.proto3,Mo.typeName="agent.v1.ShellOutputDeltaUpdate",Mo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:o.o0,oneof:"event"},{no:2,name:"stderr",kind:"message",T:o.Db,oneof:"event"},{no:3,name:"exit",kind:"message",T:o.vb,oneof:"event"},{no:4,name:"start",kind:"message",T:o.tD,oneof:"event"}]));class Oo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oo).fromBinary(e,t)}static fromJson(e,t){return(new Oo).fromJson(e,t)}static fromJsonString(e,t){return(new Oo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Oo,e,t)}}Oo.runtime=r.proto3,Oo.typeName="agent.v1.TurnEndedUpdate",Oo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:2,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:3,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:4,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0},{no:5,name:"reasoning_tokens",kind:"scalar",T:3,opt:!0}]));class Fo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fo).fromBinary(e,t)}static fromJson(e,t){return(new Fo).fromJson(e,t)}static fromJsonString(e,t){return(new Fo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fo,e,t)}}Fo.runtime=r.proto3,Fo.typeName="agent.v1.UserMessageAppendedUpdate",Fo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:qs}]));class Ao extends r.Message{constructor(e){super(),this.stepId=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ao).fromBinary(e,t)}static fromJson(e,t){return(new Ao).fromJson(e,t)}static fromJsonString(e,t){return(new Ao).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ao,e,t)}}Ao.runtime=r.proto3,Ao.typeName="agent.v1.StepStartedUpdate",Ao.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step_id",kind:"scalar",T:4}]));class Lo extends r.Message{constructor(e){super(),this.stepId=r.protoInt64.zero,this.stepDurationMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lo).fromBinary(e,t)}static fromJson(e,t){return(new Lo).fromJson(e,t)}static fromJsonString(e,t){return(new Lo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lo,e,t)}}Lo.runtime=r.proto3,Lo.typeName="agent.v1.StepCompletedUpdate",Lo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step_id",kind:"scalar",T:4},{no:2,name:"step_duration_ms",kind:"scalar",T:3}]));class Co extends r.Message{constructor(e){super(),this.suggestion="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Co).fromBinary(e,t)}static fromJson(e,t){return(new Co).fromJson(e,t)}static fromJsonString(e,t){return(new Co).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Co,e,t)}}Co.runtime=r.proto3,Co.typeName="agent.v1.PromptSuggestionUpdate",Co.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"suggestion",kind:"scalar",T:9}]));class Uo extends r.Message{constructor(e){super(),this.path="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Uo).fromBinary(e,t)}static fromJson(e,t){return(new Uo).fromJson(e,t)}static fromJsonString(e,t){return(new Uo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Uo,e,t)}}Uo.runtime=r.proto3,Uo.typeName="agent.v1.ActiveBranchChange",Uo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class Do extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Do).fromBinary(e,t)}static fromJson(e,t){return(new Do).fromJson(e,t)}static fromJsonString(e,t){return(new Do).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Do,e,t)}}Do.runtime=r.proto3,Do.typeName="agent.v1.FeedbackRequestCategory",Do.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class Go extends r.Message{constructor(e){super(),this.id="",this.prompt="",this.categories=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Go).fromBinary(e,t)}static fromJson(e,t){return(new Go).fromJson(e,t)}static fromJsonString(e,t){return(new Go).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Go,e,t)}}Go.runtime=r.proto3,Go.typeName="agent.v1.FeedbackRequestCategoryGroup",Go.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"categories",kind:"message",T:Do,repeated:!0}]));class Ho extends r.Message{constructor(e){super(),this.requestId="",this.categories=[],this.categoryGroups=[],this.showFormImmediately=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ho).fromBinary(e,t)}static fromJson(e,t){return(new Ho).fromJson(e,t)}static fromJsonString(e,t){return(new Ho).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ho,e,t)}}Ho.runtime=r.proto3,Ho.typeName="agent.v1.FeedbackRequestUpdate",Ho.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"canonical_model_name",kind:"scalar",T:9,opt:!0},{no:3,name:"categories",kind:"message",T:Do,repeated:!0},{no:4,name:"category_groups",kind:"message",T:Go,repeated:!0},{no:5,name:"show_form_immediately",kind:"scalar",T:8},{no:6,name:"title",kind:"scalar",T:9,opt:!0},{no:7,name:"negative_title",kind:"scalar",T:9,opt:!0},{no:8,name:"comment_placeholder",kind:"scalar",T:9,opt:!0}]));class Ko extends r.Message{constructor(e){super(),this.displayOrder=sr.UNSPECIFIED,this.parentInvocationId="",this.alternateInvocationId="",this.parentResponse="",this.comparisonConfigId="",this.alternateModelId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ko).fromBinary(e,t)}static fromJson(e,t){return(new Ko).fromJson(e,t)}static fromJsonString(e,t){return(new Ko).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ko,e,t)}}Ko.runtime=r.proto3,Ko.typeName="agent.v1.ResponseComparisonStarted",Ko.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"display_order",kind:"enum",T:r.proto3.getEnumType(sr)},{no:2,name:"parent_invocation_id",kind:"scalar",T:9},{no:3,name:"alternate_invocation_id",kind:"scalar",T:9},{no:4,name:"parent_response",kind:"scalar",T:9},{no:5,name:"comparison_config_id",kind:"scalar",T:9},{no:6,name:"alternate_model_id",kind:"scalar",T:9}]));class Wo extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wo).fromBinary(e,t)}static fromJson(e,t){return(new Wo).fromJson(e,t)}static fromJsonString(e,t){return(new Wo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wo,e,t)}}Wo.runtime=r.proto3,Wo.typeName="agent.v1.ResponseComparisonTextDelta",Wo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Yo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yo).fromBinary(e,t)}static fromJson(e,t){return(new Yo).fromJson(e,t)}static fromJsonString(e,t){return(new Yo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yo,e,t)}}Yo.runtime=r.proto3,Yo.typeName="agent.v1.ResponseComparisonCompleted",Yo.fields=r.proto3.util.newFieldList((()=>[]));class zo extends r.Message{constructor(e){super(),this.reason=or.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zo).fromBinary(e,t)}static fromJson(e,t){return(new zo).fromJson(e,t)}static fromJsonString(e,t){return(new zo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zo,e,t)}}zo.runtime=r.proto3,zo.typeName="agent.v1.ResponseComparisonSkipped",zo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"enum",T:r.proto3.getEnumType(or)}]));class Vo extends r.Message{constructor(e){super(),this.comparisonId="",this.event={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vo).fromBinary(e,t)}static fromJson(e,t){return(new Vo).fromJson(e,t)}static fromJsonString(e,t){return(new Vo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vo,e,t)}}Vo.runtime=r.proto3,Vo.typeName="agent.v1.ResponseComparisonUpdate",Vo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"comparison_id",kind:"scalar",T:9},{no:2,name:"started",kind:"message",T:Ko,oneof:"event"},{no:3,name:"text_delta",kind:"message",T:Wo,oneof:"event"},{no:4,name:"completed",kind:"message",T:Yo,oneof:"event"},{no:5,name:"skipped",kind:"message",T:zo,oneof:"event"}]));class Qo extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qo).fromBinary(e,t)}static fromJson(e,t){return(new Qo).fromJson(e,t)}static fromJsonString(e,t){return(new Qo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qo,e,t)}}Qo.runtime=r.proto3,Qo.typeName="agent.v1.InteractionUpdate",Qo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text_delta",kind:"message",T:Jo,oneof:"message"},{no:7,name:"partial_tool_call",kind:"message",T:jo,oneof:"message"},{no:15,name:"tool_call_delta",kind:"message",T:bo,oneof:"message"},{no:2,name:"tool_call_started",kind:"message",T:vo,oneof:"message"},{no:3,name:"tool_call_completed",kind:"message",T:Eo,oneof:"message"},{no:4,name:"thinking_delta",kind:"message",T:xo,oneof:"message"},{no:5,name:"thinking_completed",kind:"message",T:No,oneof:"message"},{no:6,name:"user_message_appended",kind:"message",T:Fo,oneof:"message"},{no:8,name:"token_delta",kind:"message",T:Po,oneof:"message"},{no:9,name:"summary",kind:"message",T:Bo,oneof:"message"},{no:10,name:"summary_started",kind:"message",T:Io,oneof:"message"},{no:11,name:"summary_completed",kind:"message",T:Ro,oneof:"message"},{no:12,name:"shell_output_delta",kind:"message",T:Mo,oneof:"message"},{no:13,name:"heartbeat",kind:"message",T:qo,oneof:"message"},{no:14,name:"turn_ended",kind:"message",T:Oo,oneof:"message"},{no:16,name:"step_started",kind:"message",T:Ao,oneof:"message"},{no:17,name:"step_completed",kind:"message",T:Lo,oneof:"message"},{no:18,name:"prompt_suggestion",kind:"message",T:Co,oneof:"message"},{no:19,name:"post_request_prompt",kind:"message",T:$o,oneof:"message"},{no:20,name:"active_branch_change",kind:"message",T:Uo,oneof:"message"},{no:21,name:"feedback_request",kind:"message",T:Ho,oneof:"message"},{no:22,name:"response_comparison",kind:"message",T:Vo,oneof:"message"},{no:23,name:"context_injection_state",kind:"message",T:Xo,oneof:"message"}]));class Xo extends r.Message{constructor(e){super(),this.injectionId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xo).fromBinary(e,t)}static fromJson(e,t){return(new Xo).fromJson(e,t)}static fromJsonString(e,t){return(new Xo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xo,e,t)}}Xo.runtime=r.proto3,Xo.typeName="agent.v1.ContextInjectionStateUpdate",Xo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"injection_id",kind:"scalar",T:9},{no:2,name:"state",kind:"message",T:ms}]));class $o extends r.Message{constructor(e){super(),this.title="",this.message="",this.buttonLabel="",this.buttonUrl="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $o).fromBinary(e,t)}static fromJson(e,t){return(new $o).fromJson(e,t)}static fromJsonString(e,t){return(new $o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($o,e,t)}}$o.runtime=r.proto3,$o.typeName="agent.v1.PostRequestPromptUpdate",$o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"button_url",kind:"scalar",T:9}]));class Zo extends r.Message{constructor(e){super(),this.id=0,this.query={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zo).fromBinary(e,t)}static fromJson(e,t){return(new Zo).fromJson(e,t)}static fromJsonString(e,t){return(new Zo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zo,e,t)}}Zo.runtime=r.proto3,Zo.typeName="agent.v1.InteractionQuery",Zo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:13},{no:2,name:"web_search_request_query",kind:"message",T:ie.KL,oneof:"query"},{no:3,name:"ask_question_interaction_query",kind:"message",T:ti,oneof:"query"},{no:4,name:"switch_mode_request_query",kind:"message",T:pe.Nc,oneof:"query"},{no:7,name:"create_plan_request_query",kind:"message",T:oe.vR,oneof:"query"},{no:8,name:"setup_vm_environment_args",kind:"message",T:Ee.BI,oneof:"query"},{no:9,name:"web_fetch_request_query",kind:"message",T:Oe.Un,oneof:"query"},{no:10,name:"pr_management_request_query",kind:"message",T:Le.DY,oneof:"query"},{no:11,name:"mcp_auth_request_query",kind:"message",T:Ce.uL,oneof:"query"},{no:12,name:"generate_image_request_query",kind:"message",T:fe.Uj,oneof:"query"},{no:13,name:"replace_env_args",kind:"message",T:vt.TO,oneof:"query"},{no:14,name:"connect_scm_request_query",kind:"message",T:Mn.$1,oneof:"query"}]));class ei extends r.Message{constructor(e){super(),this.id=0,this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ei).fromBinary(e,t)}static fromJson(e,t){return(new ei).fromJson(e,t)}static fromJsonString(e,t){return(new ei).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ei,e,t)}}ei.runtime=r.proto3,ei.typeName="agent.v1.InteractionResponse",ei.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:13},{no:2,name:"web_search_request_response",kind:"message",T:ie.lI,oneof:"result"},{no:3,name:"ask_question_interaction_response",kind:"message",T:ni,oneof:"result"},{no:4,name:"switch_mode_request_response",kind:"message",T:pe.w$,oneof:"result"},{no:7,name:"create_plan_request_response",kind:"message",T:oe.gz,oneof:"result"},{no:8,name:"setup_vm_environment_result",kind:"message",T:Ee.r$,oneof:"result"},{no:9,name:"web_fetch_request_response",kind:"message",T:Oe.fS,oneof:"result"},{no:10,name:"pr_management_result",kind:"message",T:Le.HL,oneof:"result"},{no:11,name:"mcp_auth_request_response",kind:"message",T:Ce.h,oneof:"result"},{no:12,name:"generate_image_request_response",kind:"message",T:fe.vW,oneof:"result"},{no:13,name:"replace_env_result",kind:"message",T:vt.dV,oneof:"result"},{no:14,name:"connect_scm_request_response",kind:"message",T:Mn.qG,oneof:"result"}]));class ti extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ti).fromBinary(e,t)}static fromJson(e,t){return(new ti).fromJson(e,t)}static fromJsonString(e,t){return(new ti).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ti,e,t)}}ti.runtime=r.proto3,ti.typeName="agent.v1.AskQuestionInteractionQuery",ti.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:me.ju},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class ni extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ni).fromBinary(e,t)}static fromJson(e,t){return(new ni).fromJson(e,t)}static fromJsonString(e,t){return(new ni).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ni,e,t)}}ni.runtime=r.proto3,ni.typeName="agent.v1.AskQuestionInteractionResponse",ni.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:me.tz}]));class ri extends r.Message{constructor(e){super(),this.trigger="",this.contextUsagePercent=0,this.contextTokens=r.protoInt64.zero,this.contextWindowSize=r.protoInt64.zero,this.messageCount=0,this.messagesToCompact=0,this.isFirstCompaction=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ri).fromBinary(e,t)}static fromJson(e,t){return(new ri).fromJson(e,t)}static fromJsonString(e,t){return(new ri).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ri,e,t)}}ri.runtime=r.proto3,ri.typeName="agent.v1.PreCompactRequestQuery",ri.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"trigger",kind:"scalar",T:9},{no:2,name:"context_usage_percent",kind:"scalar",T:1},{no:3,name:"context_tokens",kind:"scalar",T:3},{no:4,name:"context_window_size",kind:"scalar",T:3},{no:5,name:"message_count",kind:"scalar",T:5},{no:6,name:"messages_to_compact",kind:"scalar",T:5},{no:7,name:"is_first_compaction",kind:"scalar",T:8},{no:8,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"model",kind:"scalar",T:9,opt:!0},{no:11,name:"model_id",kind:"scalar",T:9,opt:!0},{no:12,name:"model_params",kind:"message",T:yo,repeated:!0}]));class si extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new si).fromBinary(e,t)}static fromJson(e,t){return(new si).fromJson(e,t)}static fromJsonString(e,t){return(new si).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(si,e,t)}}si.runtime=r.proto3,si.typeName="agent.v1.PreCompactRequestResponse",si.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"scalar",T:9,opt:!0}]));class oi extends r.Message{constructor(e){super(),this.subagentId="",this.subagentType="",this.task="",this.parentConversationId="",this.isParallelWorker=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oi).fromBinary(e,t)}static fromJson(e,t){return(new oi).fromJson(e,t)}static fromJsonString(e,t){return(new oi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(oi,e,t)}}oi.runtime=r.proto3,oi.typeName="agent.v1.SubagentStartRequestQuery",oi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type",kind:"scalar",T:9},{no:3,name:"task",kind:"scalar",T:9},{no:4,name:"parent_conversation_id",kind:"scalar",T:9},{no:5,name:"tool_call_id",kind:"scalar",T:9,opt:!0},{no:6,name:"subagent_model",kind:"scalar",T:9,opt:!0},{no:7,name:"is_parallel_worker",kind:"scalar",T:8},{no:8,name:"git_branch",kind:"scalar",T:9,opt:!0},{no:9,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:11,name:"model",kind:"scalar",T:9,opt:!0},{no:12,name:"model_id",kind:"scalar",T:9,opt:!0},{no:13,name:"model_params",kind:"message",T:yo,repeated:!0}]));class ii extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ii).fromBinary(e,t)}static fromJson(e,t){return(new ii).fromJson(e,t)}static fromJsonString(e,t){return(new ii).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ii,e,t)}}ii.runtime=r.proto3,ii.typeName="agent.v1.SubagentStartRequestResponse",ii.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"permission",kind:"scalar",T:9,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class ai extends r.Message{constructor(e){super(),this.subagentId="",this.subagentType="",this.status="",this.durationMs=r.protoInt64.zero,this.parentConversationId="",this.messageCount=0,this.toolCallCount=0,this.modifiedFiles=[],this.loopCount=0,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ai).fromBinary(e,t)}static fromJson(e,t){return(new ai).fromJson(e,t)}static fromJsonString(e,t){return(new ai).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ai,e,t)}}ai.runtime=r.proto3,ai.typeName="agent.v1.SubagentStopRequestQuery",ai.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type",kind:"scalar",T:9},{no:3,name:"status",kind:"scalar",T:9},{no:4,name:"duration_ms",kind:"scalar",T:3},{no:5,name:"summary",kind:"scalar",T:9,opt:!0},{no:6,name:"parent_conversation_id",kind:"scalar",T:9},{no:7,name:"message_count",kind:"scalar",T:5},{no:8,name:"tool_call_count",kind:"scalar",T:5},{no:9,name:"error_message",kind:"scalar",T:9,opt:!0},{no:10,name:"modified_files",kind:"scalar",T:9,repeated:!0},{no:11,name:"git_branch",kind:"scalar",T:9,opt:!0},{no:12,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:13,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:14,name:"model",kind:"scalar",T:9,opt:!0},{no:15,name:"loop_count",kind:"scalar",T:5},{no:16,name:"task",kind:"scalar",T:9,opt:!0},{no:17,name:"description",kind:"scalar",T:9,opt:!0},{no:18,name:"model_id",kind:"scalar",T:9,opt:!0},{no:19,name:"model_params",kind:"message",T:yo,repeated:!0}]));class li extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new li).fromBinary(e,t)}static fromJson(e,t){return(new li).fromJson(e,t)}static fromJsonString(e,t){return(new li).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(li,e,t)}}li.runtime=r.proto3,li.typeName="agent.v1.SubagentStopRequestResponse",li.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"followup_message",kind:"scalar",T:9,opt:!0},{no:2,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class ui extends r.Message{constructor(e){super(),this.type="",this.filePath="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ui).fromBinary(e,t)}static fromJson(e,t){return(new ui).fromJson(e,t)}static fromJsonString(e,t){return(new ui).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ui,e,t)}}ui.runtime=r.proto3,ui.typeName="agent.v1.BeforeSubmitPromptAttachment",ui.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9}]));class mi extends r.Message{constructor(e){super(),this.prompt="",this.attachments=[],this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mi).fromBinary(e,t)}static fromJson(e,t){return(new mi).fromJson(e,t)}static fromJsonString(e,t){return(new mi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mi,e,t)}}mi.runtime=r.proto3,mi.typeName="agent.v1.BeforeSubmitPromptRequestQuery",mi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"prompt",kind:"scalar",T:9},{no:2,name:"attachments",kind:"message",T:ui,repeated:!0},{no:3,name:"composer_mode",kind:"scalar",T:9,opt:!0},{no:4,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"model",kind:"scalar",T:9,opt:!0},{no:7,name:"model_id",kind:"scalar",T:9,opt:!0},{no:8,name:"model_params",kind:"message",T:yo,repeated:!0}]));class ci extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ci).fromBinary(e,t)}static fromJson(e,t){return(new ci).fromJson(e,t)}static fromJsonString(e,t){return(new ci).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ci,e,t)}}ci.runtime=r.proto3,ci.typeName="agent.v1.BeforeSubmitPromptRequestResponse",ci.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"continue",kind:"scalar",T:8,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class di extends r.Message{constructor(e){super(),this.text="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new di).fromBinary(e,t)}static fromJson(e,t){return(new di).fromJson(e,t)}static fromJsonString(e,t){return(new di).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(di,e,t)}}di.runtime=r.proto3,di.typeName="agent.v1.AfterAgentResponseRequestQuery",di.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:3,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"model",kind:"scalar",T:9,opt:!0},{no:5,name:"model_id",kind:"scalar",T:9,opt:!0},{no:6,name:"model_params",kind:"message",T:yo,repeated:!0},{no:7,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:8,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:9,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:10,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0}]));class pi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pi).fromBinary(e,t)}static fromJson(e,t){return(new pi).fromJson(e,t)}static fromJsonString(e,t){return(new pi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pi,e,t)}}pi.runtime=r.proto3,pi.typeName="agent.v1.AfterAgentResponseRequestResponse",pi.fields=r.proto3.util.newFieldList((()=>[]));class fi extends r.Message{constructor(e){super(),this.text="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fi).fromBinary(e,t)}static fromJson(e,t){return(new fi).fromJson(e,t)}static fromJsonString(e,t){return(new fi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fi,e,t)}}fi.runtime=r.proto3,fi.typeName="agent.v1.AfterAgentThoughtRequestQuery",fi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"duration_ms",kind:"scalar",T:3,opt:!0},{no:3,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"model",kind:"scalar",T:9,opt:!0},{no:6,name:"model_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model_params",kind:"message",T:yo,repeated:!0}]));class gi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gi).fromBinary(e,t)}static fromJson(e,t){return(new gi).fromJson(e,t)}static fromJsonString(e,t){return(new gi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gi,e,t)}}gi.runtime=r.proto3,gi.typeName="agent.v1.AfterAgentThoughtRequestResponse",gi.fields=r.proto3.util.newFieldList((()=>[]));class _i extends r.Message{constructor(e){super(),this.status="",this.loopCount=0,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _i).fromBinary(e,t)}static fromJson(e,t){return(new _i).fromJson(e,t)}static fromJsonString(e,t){return(new _i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_i,e,t)}}_i.runtime=r.proto3,_i.typeName="agent.v1.StopRequestQuery",_i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"scalar",T:9},{no:2,name:"loop_count",kind:"scalar",T:5},{no:3,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"model",kind:"scalar",T:9,opt:!0},{no:6,name:"model_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model_params",kind:"message",T:yo,repeated:!0},{no:8,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:9,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:10,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:11,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0}]));class hi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hi).fromBinary(e,t)}static fromJson(e,t){return(new hi).fromJson(e,t)}static fromJsonString(e,t){return(new hi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hi,e,t)}}hi.runtime=r.proto3,hi.typeName="agent.v1.StopRequestResponse",hi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"followup_message",kind:"scalar",T:9,opt:!0}]));class Ti extends r.Message{constructor(e){super(),this.toolName="",this.toolUseId="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ti).fromBinary(e,t)}static fromJson(e,t){return(new Ti).fromJson(e,t)}static fromJsonString(e,t){return(new Ti).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ti,e,t)}}Ti.runtime=r.proto3,Ti.typeName="agent.v1.PreToolUseRequestQuery",Ti.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"tool_use_id",kind:"scalar",T:9},{no:4,name:"cwd",kind:"scalar",T:9,opt:!0},{no:5,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model",kind:"scalar",T:9,opt:!0},{no:8,name:"model_id",kind:"scalar",T:9,opt:!0},{no:9,name:"model_params",kind:"message",T:yo,repeated:!0}]));class yi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yi).fromBinary(e,t)}static fromJson(e,t){return(new yi).fromJson(e,t)}static fromJsonString(e,t){return(new yi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yi,e,t)}}yi.runtime=r.proto3,yi.typeName="agent.v1.PreToolUseRequestResponse",yi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"permission",kind:"scalar",T:9,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"agent_message",kind:"scalar",T:9,opt:!0},{no:4,name:"updated_input",kind:"scalar",T:9,opt:!0},{no:5,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class Si extends r.Message{constructor(e){super(),this.toolName="",this.toolOutput="",this.durationMs=r.protoInt64.zero,this.toolUseId="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Si).fromBinary(e,t)}static fromJson(e,t){return(new Si).fromJson(e,t)}static fromJsonString(e,t){return(new Si).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Si,e,t)}}Si.runtime=r.proto3,Si.typeName="agent.v1.PostToolUseRequestQuery",Si.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"tool_output",kind:"scalar",T:9},{no:4,name:"duration_ms",kind:"scalar",T:3},{no:5,name:"tool_use_id",kind:"scalar",T:9},{no:6,name:"cwd",kind:"scalar",T:9,opt:!0},{no:7,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:8,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"model",kind:"scalar",T:9,opt:!0},{no:10,name:"model_id",kind:"scalar",T:9,opt:!0},{no:11,name:"model_params",kind:"message",T:yo,repeated:!0}]));class wi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wi).fromBinary(e,t)}static fromJson(e,t){return(new wi).fromJson(e,t)}static fromJsonString(e,t){return(new wi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wi,e,t)}}wi.runtime=r.proto3,wi.typeName="agent.v1.PostToolUseRequestResponse",wi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class ki extends r.Message{constructor(e){super(),this.toolName="",this.errorMessage="",this.failureType="",this.durationMs=r.protoInt64.zero,this.toolUseId="",this.isInterrupt=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ki).fromBinary(e,t)}static fromJson(e,t){return(new ki).fromJson(e,t)}static fromJsonString(e,t){return(new ki).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ki,e,t)}}ki.runtime=r.proto3,ki.typeName="agent.v1.PostToolUseFailureRequestQuery",ki.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"failure_type",kind:"scalar",T:9},{no:5,name:"duration_ms",kind:"scalar",T:3},{no:6,name:"tool_use_id",kind:"scalar",T:9},{no:7,name:"is_interrupt",kind:"scalar",T:8},{no:8,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"model",kind:"scalar",T:9,opt:!0},{no:11,name:"model_id",kind:"scalar",T:9,opt:!0},{no:12,name:"model_params",kind:"message",T:yo,repeated:!0}]));class Ji extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ji).fromBinary(e,t)}static fromJson(e,t){return(new Ji).fromJson(e,t)}static fromJsonString(e,t){return(new Ji).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ji,e,t)}}Ji.runtime=r.proto3,Ji.typeName="agent.v1.PostToolUseFailureRequestResponse",Ji.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class vi extends r.Message{constructor(e){super(),this.description="",this.prompt="",this.subagentType="",this.attachments=[],this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vi).fromBinary(e,t)}static fromJson(e,t){return(new vi).fromJson(e,t)}static fromJsonString(e,t){return(new vi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vi,e,t)}}vi.runtime=r.proto3,vi.typeName="agent.v1.TaskToolCallArgsProto",vi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"model",kind:"scalar",T:9,opt:!0},{no:4,name:"subagent_type",kind:"scalar",T:9},{no:5,name:"resume",kind:"scalar",T:9,opt:!0},{no:6,name:"readonly",kind:"scalar",T:8,opt:!0},{no:7,name:"run_in_background",kind:"scalar",T:8,opt:!0},{no:8,name:"attachments",kind:"scalar",T:9,repeated:!0},{no:9,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:10,name:"cloud_base_branch",kind:"scalar",T:9,opt:!0},{no:11,name:"cloud_requested_environment_build_id",kind:"scalar",T:9,opt:!0},{no:12,name:"machine",kind:"message",T:cr,opt:!0}]));class Ei extends r.Message{constructor(e){super(),this.credentials={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ei).fromBinary(e,t)}static fromJson(e,t){return(new Ei).fromJson(e,t)}static fromJsonString(e,t){return(new Ei).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ei,e,t)}}Ei.runtime=r.proto3,Ei.typeName="agent.v1.SubagentCredentials",Ei.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key_credentials",kind:"message",T:fo,oneof:"credentials"},{no:2,name:"azure_credentials",kind:"message",T:go,oneof:"credentials"},{no:3,name:"bedrock_credentials",kind:"message",T:_o,oneof:"credentials"}]));class bi extends r.Message{constructor(e){super(),this.subagentId="",this.subagentTypeName="",this.analyticsSubagentType="",this.resolvedModelId="",this.effectiveReadonly=!1,this.useAskModeForSubagent=!1,this.initialTurnsCount=0,this.subagentRequestId="",this.toolCallId="",this.isResume=!1,this.taskPrompt="",this.taskDescription="",this.parentModelName="",this.enableExecuteHookExec=!1,this.configuredSteps=[],this.readonlyShellEnabled=!1,this.toolName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bi).fromBinary(e,t)}static fromJson(e,t){return(new bi).fromJson(e,t)}static fromJsonString(e,t){return(new bi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bi,e,t)}}bi.runtime=r.proto3,bi.typeName="agent.v1.PreparedTaskSubagent",bi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type_name",kind:"scalar",T:9},{no:3,name:"subagent_type",kind:"message",T:s._L},{no:4,name:"analytics_subagent_type",kind:"scalar",T:9},{no:5,name:"resolved_model_id",kind:"scalar",T:9},{no:6,name:"effective_readonly",kind:"scalar",T:8},{no:7,name:"use_ask_mode_for_subagent",kind:"scalar",T:8},{no:8,name:"conversation_state",kind:"message",T:co},{no:9,name:"initial_action",kind:"message",T:Mr},{no:10,name:"initial_turns_count",kind:"scalar",T:13},{no:11,name:"subagent_request_id",kind:"scalar",T:9},{no:12,name:"tool_call_id",kind:"scalar",T:9},{no:13,name:"is_resume",kind:"scalar",T:8},{no:14,name:"parent_request_id",kind:"scalar",T:9,opt:!0},{no:15,name:"root_parent_request_id",kind:"scalar",T:9,opt:!0},{no:16,name:"task_prompt",kind:"scalar",T:9},{no:17,name:"task_description",kind:"scalar",T:9},{no:18,name:"selected_context",kind:"message",T:lr.xv,opt:!0},{no:19,name:"plugin",kind:"scalar",T:9,opt:!0},{no:20,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:21,name:"parent_model_name",kind:"scalar",T:9},{no:22,name:"raw_args",kind:"message",T:vi},{no:23,name:"subagent_credentials",kind:"message",T:Ei},{no:25,name:"result_suffix",kind:"scalar",T:9,opt:!0},{no:26,name:"enable_execute_hook_exec",kind:"scalar",T:8},{no:27,name:"configured_steps",kind:"scalar",T:9,repeated:!0},{no:28,name:"readonly_shell_enabled",kind:"scalar",T:8},{no:29,name:"tool_name",kind:"scalar",T:9},{no:30,name:"prepared_timestamp_unix_ms",kind:"scalar",T:3,opt:!0},{no:31,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:32,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:33,name:"subagent_source",kind:"scalar",T:9,opt:!0},{no:34,name:"cloud_subagent_bc_id",kind:"scalar",T:9,opt:!0},{no:35,name:"provider_tool_name",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/agent_skills_pb.js"(e,t,n){n.d(t,{N:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.AgentSkill",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9},{no:4,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:5,name:"environments",kind:"scalar",T:9,repeated:!0},{no:6,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:7,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:8,name:"disable_model_invocation",kind:"scalar",T:8},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"globs",kind:"scalar",T:9,repeated:!0},{no:14,name:"scoped_to",kind:"scalar",T:9,repeated:!0}]));class o extends r.Message{constructor(e){super(),this.fullPath="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AgentSkillMetadata",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:4,name:"environments",kind:"scalar",T:9,repeated:!0},{no:5,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:6,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:7,name:"disable_model_invocation",kind:"scalar",T:8},{no:8,name:"plugin",kind:"scalar",T:9,opt:!0},{no:9,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:10,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:11,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:12,name:"globs",kind:"scalar",T:9,repeated:!0},{no:13,name:"scoped_to",kind:"scalar",T:9,repeated:!0}]))},"../proto/dist/generated/agent/v1/ai_attribution_tool_pb.js"(e,t,n){n.d(t,{ex:()=>u});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js");class o extends r.Message{constructor(e){super(),this.filePaths=[],this.commitHashes=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AiAttributionArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:5,name:"file_paths",kind:"scalar",T:9,repeated:!0},{no:2,name:"start_line",kind:"scalar",T:5,opt:!0},{no:3,name:"end_line",kind:"scalar",T:5,opt:!0},{no:6,name:"commit_hashes",kind:"scalar",T:9,repeated:!0},{no:7,name:"output_mode",kind:"scalar",T:9,opt:!0},{no:9,name:"max_commits",kind:"scalar",T:5,opt:!0},{no:10,name:"include_line_ranges",kind:"scalar",T:8,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.AiAttributionResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.attributionText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.AiAttributionSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"attribution_text",kind:"scalar",T:9},{no:2,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class l extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.AiAttributionError",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.AiAttributionToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:i}]))},"../proto/dist/generated/agent/v1/apply_agent_diff_tool_pb.js"(e,t,n){n.d(t,{JU:()=>o});var r,s=n("@bufbuild/protobuf");class o extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.ApplyAgentDiffToolCall",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:a}]));class i extends s.Message{constructor(e){super(),this.agentId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ApplyAgentDiffArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_id",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ApplyAgentDiffResult",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"}]));class l extends s.Message{constructor(e){super(),this.appliedChanges=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ApplyAgentDiffSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"applied_changes",kind:"message",T:u,repeated:!0}]));class u extends s.Message{constructor(e){super(),this.path="",this.changeType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.AppliedAgentChange",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"change_type",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"before_content",kind:"scalar",T:9,opt:!0},{no:4,name:"after_content",kind:"scalar",T:9,opt:!0},{no:5,name:"error",kind:"scalar",T:9,opt:!0},{no:6,name:"message_for_model",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CREATED=1]="CREATED",e[e.MODIFIED=2]="MODIFIED",e[e.DELETED=3]="DELETED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.AppliedAgentChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_CREATED"},{no:2,name:"CHANGE_TYPE_MODIFIED"},{no:3,name:"CHANGE_TYPE_DELETED"}]);class m extends s.Message{constructor(e){super(),this.error="",this.appliedChanges=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ApplyAgentDiffError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"applied_changes",kind:"message",T:u,repeated:!0}]))},"../proto/dist/generated/agent/v1/ask_question_tool_pb.js"(e,t,n){n.d(t,{OU:()=>s,ju:()=>o,tz:()=>u});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.AskQuestionToolCall",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:u}]));class o extends r.Message{constructor(e){super(),this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AskQuestionArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"questions",kind:"message",T:i,repeated:!0},{no:5,name:"run_async",kind:"scalar",T:8},{no:6,name:"async_original_tool_call_id",kind:"scalar",T:9}]));class i extends r.Message{constructor(e){super(),this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.AskQuestionArgs.Question",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"options",kind:"message",T:a,repeated:!0},{no:4,name:"allow_multiple",kind:"scalar",T:8}]));class a extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.AskQuestionArgs.Option",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.AskQuestionAsync",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.AskQuestionResult",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:m,oneof:"result"},{no:2,name:"error",kind:"message",T:d,oneof:"result"},{no:3,name:"rejected",kind:"message",T:p,oneof:"result"},{no:4,name:"async",kind:"message",T:l,oneof:"result"}]));class m extends r.Message{constructor(e){super(),this.answers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.AskQuestionSuccess",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"answers",kind:"message",T:c,repeated:!0}]));class c extends r.Message{constructor(e){super(),this.questionId="",this.selectedOptionIds=[],this.freeformText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.AskQuestionSuccess.Answer",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"selected_option_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"freeform_text",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.AskQuestionError",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.AskQuestionRejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/background_shell_exec_pb.js"(e,t,n){n.d(t,{LL:()=>c,nt:()=>d});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/shell_exec_pb.js"),o=n("../proto/dist/generated/agent/v1/sandbox_pb.js"),i=n("../proto/dist/generated/agent/v1/utils_pb.js");class a extends r.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.toolCallId="",this.enableWriteShellStdinTool=!1,this.skipApproval=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.BackgroundShellSpawnArgs",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"parsing_result",kind:"message",T:s.HO},{no:5,name:"sandbox_policy",kind:"message",T:o.Mw,opt:!0},{no:6,name:"enable_write_shell_stdin_tool",kind:"scalar",T:8},{no:7,name:"description",kind:"scalar",T:9,opt:!0},{no:8,name:"classifier_result",kind:"message",T:s.E4,opt:!0},{no:9,name:"output_notification",kind:"message",T:s.$F,opt:!0},{no:10,name:"smart_mode_approval",kind:"message",T:i.UC,opt:!0},{no:11,name:"hook_approval_requirement",kind:"message",T:s.In,opt:!0},{no:12,name:"skip_approval",kind:"scalar",T:8},{no:13,name:"conversation_id",kind:"scalar",T:9,opt:!0}]));class l extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.BackgroundShellSpawnResult",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:s.pZ,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:s.jn,oneof:"result"},{no:5,name:"sandbox_unsupported",kind:"message",T:s.rI,oneof:"result"}]));class u extends r.Message{constructor(e){super(),this.shellId=0,this.command="",this.workingDirectory="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.BackgroundShellSpawnSuccess",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"command",kind:"scalar",T:9},{no:3,name:"working_directory",kind:"scalar",T:9},{no:4,name:"pid",kind:"scalar",T:13,opt:!0}]));class m extends r.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.BackgroundShellSpawnError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.shellId=0,this.chars="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WriteShellStdinArgs",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"chars",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WriteShellStdinResult",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:p,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WriteShellStdinSuccess",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"terminal_file_length_before_input_written",kind:"scalar",T:13}]));class f extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WriteShellStdinError",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/computer_use_tool_pb.js"(e,t,n){n.d(t,{t8:()=>J});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.MIDDLE=3]="MIDDLE",e[e.BACK=4]="BACK",e[e.FORWARD=5]="FORWARD"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.MouseButton",[{no:0,name:"MOUSE_BUTTON_UNSPECIFIED"},{no:1,name:"MOUSE_BUTTON_LEFT"},{no:2,name:"MOUSE_BUTTON_RIGHT"},{no:3,name:"MOUSE_BUTTON_MIDDLE"},{no:4,name:"MOUSE_BUTTON_BACK"},{no:5,name:"MOUSE_BUTTON_FORWARD"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.ScrollDirection",[{no:0,name:"SCROLL_DIRECTION_UNSPECIFIED"},{no:1,name:"SCROLL_DIRECTION_UP"},{no:2,name:"SCROLL_DIRECTION_DOWN"},{no:3,name:"SCROLL_DIRECTION_LEFT"},{no:4,name:"SCROLL_DIRECTION_RIGHT"}]);class i extends o.Message{constructor(e){super(),this.x=0,this.y=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.Coordinate",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"x",kind:"scalar",T:5},{no:2,name:"y",kind:"scalar",T:5}]));class a extends o.Message{constructor(e){super(),this.toolCallId="",this.actions=[],o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.ComputerUseArgs",a.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"message",T:l,repeated:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));class l extends o.Message{constructor(e){super(),this.action={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.ComputerUseAction",l.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"mouse_move",kind:"message",T:u,oneof:"action"},{no:2,name:"click",kind:"message",T:m,oneof:"action"},{no:3,name:"mouse_down",kind:"message",T:c,oneof:"action"},{no:4,name:"mouse_up",kind:"message",T:d,oneof:"action"},{no:5,name:"drag",kind:"message",T:p,oneof:"action"},{no:6,name:"scroll",kind:"message",T:f,oneof:"action"},{no:7,name:"type",kind:"message",T:g,oneof:"action"},{no:8,name:"key",kind:"message",T:_,oneof:"action"},{no:9,name:"wait",kind:"message",T:h,oneof:"action"},{no:10,name:"screenshot",kind:"message",T,oneof:"action"},{no:11,name:"cursor_position",kind:"message",T:y,oneof:"action"}]));class u extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.MouseMoveAction",u.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i}]));class m extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,this.count=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.ClickAction",m.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i,opt:!0},{no:2,name:"button",kind:"enum",T:o.proto3.getEnumType(r)},{no:3,name:"count",kind:"scalar",T:5},{no:4,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class c extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.MouseDownAction",c.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"button",kind:"enum",T:o.proto3.getEnumType(r)}]));class d extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}d.runtime=o.proto3,d.typeName="agent.v1.MouseUpAction",d.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"button",kind:"enum",T:o.proto3.getEnumType(r)}]));class p extends o.Message{constructor(e){super(),this.path=[],this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(p,e,t)}}p.runtime=o.proto3,p.typeName="agent.v1.DragAction",p.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"message",T:i,repeated:!0},{no:2,name:"button",kind:"enum",T:o.proto3.getEnumType(r)},{no:3,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class f extends o.Message{constructor(e){super(),this.direction=s.UNSPECIFIED,this.amount=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(f,e,t)}}f.runtime=o.proto3,f.typeName="agent.v1.ScrollAction",f.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i,opt:!0},{no:2,name:"direction",kind:"enum",T:o.proto3.getEnumType(s)},{no:3,name:"amount",kind:"scalar",T:5},{no:4,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class g extends o.Message{constructor(e){super(),this.text="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(g,e,t)}}g.runtime=o.proto3,g.typeName="agent.v1.TypeAction",g.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class _ extends o.Message{constructor(e){super(),this.key="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(_,e,t)}}_.runtime=o.proto3,_.typeName="agent.v1.KeyAction",_.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"hold_duration_ms",kind:"scalar",T:5,opt:!0}]));class h extends o.Message{constructor(e){super(),this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(h,e,t)}}h.runtime=o.proto3,h.typeName="agent.v1.WaitAction",h.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"duration_ms",kind:"scalar",T:5}]));class T extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(T,e,t)}}T.runtime=o.proto3,T.typeName="agent.v1.ScreenshotAction",T.fields=o.proto3.util.newFieldList((()=>[]));class y extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(y,e,t)}}y.runtime=o.proto3,y.typeName="agent.v1.CursorPositionAction",y.fields=o.proto3.util.newFieldList((()=>[]));class S extends o.Message{constructor(e){super(),this.result={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(S,e,t)}}S.runtime=o.proto3,S.typeName="agent.v1.ComputerUseResult",S.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:w,oneof:"result"},{no:2,name:"error",kind:"message",T:k,oneof:"result"}]));class w extends o.Message{constructor(e){super(),this.actionCount=0,this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(w,e,t)}}w.runtime=o.proto3,w.typeName="agent.v1.ComputerUseSuccess",w.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"action_count",kind:"scalar",T:5},{no:2,name:"duration_ms",kind:"scalar",T:5},{no:3,name:"screenshot",kind:"scalar",T:9,opt:!0},{no:4,name:"log",kind:"scalar",T:9,opt:!0},{no:5,name:"screenshot_path",kind:"scalar",T:9,opt:!0},{no:6,name:"cursor_position",kind:"message",T:i,opt:!0}]));class k extends o.Message{constructor(e){super(),this.error="",this.actionCount=0,this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(k,e,t)}}k.runtime=o.proto3,k.typeName="agent.v1.ComputerUseError",k.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"action_count",kind:"scalar",T:5},{no:3,name:"duration_ms",kind:"scalar",T:5},{no:4,name:"log",kind:"scalar",T:9,opt:!0},{no:5,name:"screenshot",kind:"scalar",T:9,opt:!0},{no:6,name:"screenshot_path",kind:"scalar",T:9,opt:!0}]));class J extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(J,e,t)}}J.runtime=o.proto3,J.typeName="agent.v1.ComputerUseToolCall",J.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:S}]))},"../proto/dist/generated/agent/v1/connect_scm_tool_pb.js"(e,t,n){n.d(t,{$1:()=>d,iO:()=>c,qG:()=>p});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.toolCallId="",this.target={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.ConnectScmArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"github",kind:"message",T:o,oneof:"target"}]));class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.ConnectScmGithub",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:i},{no:2,name:"ghe_application",kind:"scalar",T:9,opt:!0}]));class i extends r.Message{constructor(e){super(),this.owner="",this.repo="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.ConnectScmGithubRepository",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"owner",kind:"scalar",T:9},{no:2,name:"repo",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.ConnectScmResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"},{no:3,name:"rejected",kind:"message",T:m,oneof:"result"}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.ConnectScmSuccess",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.ConnectScmError",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.ConnectScmRejected",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.ConnectScmToolCall",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:a}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.ConnectScmRequestQuery",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class p extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.ConnectScmRequestResponse",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:f,oneof:"result"},{no:2,name:"rejected",kind:"message",T:g,oneof:"result"},{no:3,name:"failed",kind:"message",T:_,oneof:"result"}]));class f extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.ConnectScmRequestResponse.Approved",f.fields=r.proto3.util.newFieldList((()=>[]));class g extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.ConnectScmRequestResponse.Rejected",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class _ extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.ConnectScmRequestResponse.Failed",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/conversation_search_exec_pb.js"(e,t,n){n.d(t,{$m:()=>o,pT:()=>i});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOCAL=1]="LOCAL",e[e.CLOUD_CACHE=2]="CLOUD_CACHE"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.ConversationSearchSource",[{no:0,name:"CONVERSATION_SEARCH_SOURCE_UNSPECIFIED"},{no:1,name:"CONVERSATION_SEARCH_SOURCE_LOCAL"},{no:2,name:"CONVERSATION_SEARCH_SOURCE_CLOUD_CACHE"}]);class o extends s.Message{constructor(e){super(),this.query="",this.toolCallId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.ConversationSearchArgs",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class i extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ConversationSearchResult",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"}]));class a extends s.Message{constructor(e){super(),this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ConversationSearchSuccess",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"hits",kind:"message",T:l,repeated:!0},{no:2,name:"truncated",kind:"scalar",T:8},{no:3,name:"partial",kind:"scalar",T:8},{no:4,name:"rebuilding",kind:"scalar",T:8}]));class l extends s.Message{constructor(e){super(),this.conversationId="",this.title="",this.source=r.UNSPECIFIED,this.updatedAtMs=s.protoInt64.zero,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ConversationSearchHit",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"conversation_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"source",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"updated_at_ms",kind:"scalar",T:3},{no:5,name:"snippet",kind:"scalar",T:9,opt:!0}]));class u extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ConversationSearchError",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/create_plan_tool_pb.js"(e,t,n){n.d(t,{Ih:()=>o,gz:()=>d,vR:()=>c});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/todo_tool_pb.js");class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.CreatePlanToolCall",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:l}]));class i extends r.Message{constructor(e){super(),this.name="",this.todos=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.Phase",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"todos",kind:"message",T:s.kW,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.CreatePlanArgs",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan",kind:"scalar",T:9},{no:2,name:"todos",kind:"message",T:s.kW,repeated:!0},{no:3,name:"overview",kind:"scalar",T:9},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"is_project",kind:"scalar",T:8},{no:6,name:"phases",kind:"message",T:i,repeated:!0}]));class l extends r.Message{constructor(e){super(),this.result={case:void 0},this.planUri="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.CreatePlanResult",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"plan_uri",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.CreatePlanSuccess",u.fields=r.proto3.util.newFieldList((()=>[]));class m extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.CreatePlanError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.CreatePlanRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.CreatePlanRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:l}]))},"../proto/dist/generated/agent/v1/cursor_rules_pb.js"(e,t,n){n.d(t,{DX:()=>m});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TEAM=1]="TEAM",e[e.USER=2]="USER"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.CursorRuleSource",[{no:0,name:"CURSOR_RULE_SOURCE_UNSPECIFIED"},{no:1,name:"CURSOR_RULE_SOURCE_TEAM"},{no:2,name:"CURSOR_RULE_SOURCE_USER"}]);class o extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.CursorRuleTypeGlobal",o.fields=s.proto3.util.newFieldList((()=>[]));class i extends s.Message{constructor(e){super(),this.globs=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CursorRuleTypeFileGlobs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"globs",kind:"scalar",T:9,repeated:!0}]));class a extends s.Message{constructor(e){super(),this.description="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.CursorRuleTypeAgentFetched",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class l extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.CursorRuleTypeManuallyAttached",l.fields=s.proto3.util.newFieldList((()=>[]));class u extends s.Message{constructor(e){super(),this.type={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.CursorRuleType",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"global",kind:"message",T:o,oneof:"type"},{no:2,name:"file_globbed",kind:"message",T:i,oneof:"type"},{no:3,name:"agent_fetched",kind:"message",T:a,oneof:"type"},{no:4,name:"manually_attached",kind:"message",T:l,oneof:"type"}]));class m extends s.Message{constructor(e){super(),this.fullPath="",this.content="",this.source=r.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.CursorRule",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"type",kind:"message",T:u},{no:4,name:"source",kind:"enum",T:s.proto3.getEnumType(r)},{no:5,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:6,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:7,name:"environments",kind:"scalar",T:9,repeated:!0},{no:8,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"scoped_to",kind:"scalar",T:9,repeated:!0},{no:14,name:"frontmatter",kind:"scalar",T:9},{no:15,name:"is_required",kind:"scalar",T:8,opt:!0}]))},"../proto/dist/generated/agent/v1/delete_exec_pb.js"(e,t,n){n.d(t,{Pi:()=>o,dn:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.path="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.DeleteArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.DeleteResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"file_not_found",kind:"message",T:a,oneof:"result"},{no:3,name:"not_file",kind:"message",T:l,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:u,oneof:"result"},{no:5,name:"file_busy",kind:"message",T:m,oneof:"result"},{no:6,name:"rejected",kind:"message",T:c,oneof:"result"},{no:7,name:"error",kind:"message",T:d,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.path="",this.deletedFile="",this.fileSize=r.protoInt64.zero,this.prevContent="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.DeleteSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"deleted_file",kind:"scalar",T:9},{no:3,name:"file_size",kind:"scalar",T:3},{no:4,name:"prev_content",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.DeleteFileNotFound",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.path="",this.actualType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.DeleteNotFile",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"actual_type",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.path="",this.clientVisibleError="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.DeletePermissionDenied",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"client_visible_error",kind:"scalar",T:9},{no:3,name:"is_readonly",kind:"scalar",T:8}]));class m extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.DeleteFileBusy",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.DeleteRejected",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.DeleteError",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/diagnostics_exec_pb.js"(e,t,n){n.d(t,{h_:()=>r});var r,s=n("@bufbuild/protobuf"),o=n("../proto/dist/generated/agent/v1/utils_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFORMATION=3]="INFORMATION",e[e.HINT=4]="HINT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.DiagnosticSeverity",[{no:0,name:"DIAGNOSTIC_SEVERITY_UNSPECIFIED"},{no:1,name:"DIAGNOSTIC_SEVERITY_ERROR"},{no:2,name:"DIAGNOSTIC_SEVERITY_WARNING"},{no:3,name:"DIAGNOSTIC_SEVERITY_INFORMATION"},{no:4,name:"DIAGNOSTIC_SEVERITY_HINT"}]);class i extends s.Message{constructor(e){super(),this.path="",this.toolCallId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.DiagnosticsArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.DiagnosticsResult",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:c,oneof:"result"},{no:4,name:"file_not_found",kind:"message",T:d,oneof:"result"},{no:5,name:"permission_denied",kind:"message",T:p,oneof:"result"}]));class l extends s.Message{constructor(e){super(),this.path="",this.diagnostics=[],this.totalDiagnostics=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.DiagnosticsSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diagnostics",kind:"message",T:u,repeated:!0},{no:3,name:"total_diagnostics",kind:"scalar",T:5}]));class u extends s.Message{constructor(e){super(),this.severity=r.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.Diagnostic",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"severity",kind:"enum",T:s.proto3.getEnumType(r)},{no:2,name:"range",kind:"message",T:o.Q6},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"source",kind:"scalar",T:9},{no:5,name:"code",kind:"scalar",T:9},{no:6,name:"is_stale",kind:"scalar",T:8}]));class m extends s.Message{constructor(e){super(),this.path="",this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.DiagnosticsError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class c extends s.Message{constructor(e){super(),this.path="",this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.DiagnosticsRejected",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.DiagnosticsFileNotFound",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class p extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.DiagnosticsPermissionDenied",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/fetch_exec_pb.js"(e,t,n){n.d(t,{UM:()=>s,uN:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.url="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.FetchArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.FetchResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.url="",this.content="",this.statusCode=0,this.contentType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.FetchSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"status_code",kind:"scalar",T:5},{no:4,name:"content_type",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.url="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.FetchError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/generate_image_tool_pb.js"(e,t,n){n.d(t,{Uj:()=>u,r9:()=>l,vW:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.description="",this.referenceImagePaths=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.GenerateImageArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9,opt:!0},{no:5,name:"reference_image_paths",kind:"scalar",T:9,repeated:!0},{no:6,name:"aspect_ratio",kind:"scalar",T:9,opt:!0}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.GenerateImageResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.filePath="",this.imageData="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.GenerateImageSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"image_data",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.GenerateImageError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.GenerateImageToolCall",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class u extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.GenerateImageRequestQuery",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.GenerateImageRequestResponse",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:c,oneof:"result"},{no:2,name:"rejected",kind:"message",T:d,oneof:"result"}]));class c extends r.Message{constructor(e){super(),this.description="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.GenerateImageRequestResponse.Approved",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GenerateImageRequestResponse.Rejected",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/grep_exec_pb.js"(e,t,n){n.d(t,{Qj:()=>o,Ud:()=>i});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/sandbox_pb.js");class o extends r.Message{constructor(e){super(),this.pattern="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.GrepArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"glob",kind:"scalar",T:9,opt:!0},{no:4,name:"output_mode",kind:"scalar",T:9,opt:!0},{no:5,name:"context_before",kind:"scalar",T:5,opt:!0},{no:6,name:"context_after",kind:"scalar",T:5,opt:!0},{no:7,name:"context",kind:"scalar",T:5,opt:!0},{no:8,name:"case_insensitive",kind:"scalar",T:8,opt:!0},{no:9,name:"type",kind:"scalar",T:9,opt:!0},{no:10,name:"head_limit",kind:"scalar",T:5,opt:!0},{no:11,name:"multiline",kind:"scalar",T:8,opt:!0},{no:12,name:"sort",kind:"scalar",T:9,opt:!0},{no:13,name:"sort_ascending",kind:"scalar",T:8,opt:!0},{no:14,name:"tool_call_id",kind:"scalar",T:9},{no:15,name:"sandbox_policy",kind:"message",T:s.Mw,opt:!0},{no:16,name:"offset",kind:"scalar",T:5,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.GrepResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.GrepError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.GrepSuccess",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"output_mode",kind:"scalar",T:9},{no:4,name:"workspace_results",kind:"map",K:9,V:{kind:"message",T:u}},{no:5,name:"active_editor_result",kind:"message",T:u,opt:!0}]));class u extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.GrepUnionResult",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"count",kind:"message",T:m,oneof:"result"},{no:2,name:"files",kind:"message",T:d,oneof:"result"},{no:3,name:"content",kind:"message",T:p,oneof:"result"}]));class m extends r.Message{constructor(e){super(),this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.GrepCountResult",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"counts",kind:"message",T:c,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"total_matches",kind:"scalar",T:5},{no:4,name:"client_truncated",kind:"scalar",T:8},{no:5,name:"ripgrep_truncated",kind:"scalar",T:8},{no:6,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:7,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class c extends r.Message{constructor(e){super(),this.file="",this.count=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.GrepFileCount",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"scalar",T:9},{no:2,name:"count",kind:"scalar",T:5}]));class d extends r.Message{constructor(e){super(),this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GrepFilesResult",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"files",kind:"scalar",T:9,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"client_truncated",kind:"scalar",T:8},{no:4,name:"ripgrep_truncated",kind:"scalar",T:8},{no:5,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:6,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class p extends r.Message{constructor(e){super(),this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.GrepContentResult",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"matches",kind:"message",T:f,repeated:!0},{no:2,name:"total_lines",kind:"scalar",T:5},{no:3,name:"total_matched_lines",kind:"scalar",T:5},{no:4,name:"client_truncated",kind:"scalar",T:8},{no:5,name:"ripgrep_truncated",kind:"scalar",T:8},{no:6,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:7,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class f extends r.Message{constructor(e){super(),this.file="",this.matches=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.GrepFileMatch",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"scalar",T:9},{no:2,name:"matches",kind:"message",T:g,repeated:!0}]));class g extends r.Message{constructor(e){super(),this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.GrepContentMatch",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"line_number",kind:"scalar",T:5},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"content_truncated",kind:"scalar",T:8},{no:4,name:"is_context_line",kind:"scalar",T:8}]));class _ extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.GrepStream",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/hook_additional_context_pb.js"(e,t,n){n.d(t,{C:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.hookEventName="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.HookAdditionalContext",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"hook_event_name",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/ls_exec_pb.js"(e,t,n){n.d(t,{fv:()=>i,vq:()=>l,xe:()=>o});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/sandbox_pb.js");class o extends r.Message{constructor(e){super(),this.path="",this.ignore=[],this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.LsArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"ignore",kind:"scalar",T:9,repeated:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"sandbox_policy",kind:"message",T:s.Mw,opt:!0},{no:5,name:"timeout_ms",kind:"scalar",T:13,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.LsResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:c,oneof:"result"},{no:4,name:"timeout",kind:"message",T:d,oneof:"result"}]));class a extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.LsSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"directory_tree_root",kind:"message",T:l}]));class l extends r.Message{constructor(e){super(),this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.LsDirectoryTreeNode",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"abs_path",kind:"scalar",T:9},{no:2,name:"children_dirs",kind:"message",T:l,repeated:!0},{no:3,name:"children_files",kind:"message",T:u,repeated:!0},{no:4,name:"children_were_processed",kind:"scalar",T:8},{no:5,name:"full_subtree_extension_counts",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:6,name:"num_files",kind:"scalar",T:5}]));class u extends r.Message{constructor(e){super(),this.name="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.LsDirectoryTreeNode.File",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"terminal_metadata",kind:"message",T:p,opt:!0}]));class m extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.LsError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.LsRejected",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.LsTimeout",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"directory_tree_root",kind:"message",T:l}]));class p extends r.Message{constructor(e){super(),this.lastCommands=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.TerminalMetadata",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"cwd",kind:"scalar",T:9,opt:!0},{no:2,name:"last_commands",kind:"message",T:f,repeated:!0},{no:3,name:"last_modified_ms",kind:"scalar",T:3,opt:!0},{no:4,name:"current_command",kind:"message",T:f,opt:!0}]));class f extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.TerminalMetadata.Command",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"exit_code",kind:"scalar",T:5,opt:!0},{no:3,name:"timestamp_ms",kind:"scalar",T:3,opt:!0},{no:4,name:"duration_ms",kind:"scalar",T:3,opt:!0}]))},"../proto/dist/generated/agent/v1/mcp_auth_tool_pb.js"(e,t,n){n.d(t,{NX:()=>u,h:()=>c,uL:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.serverIdentifier="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.McpAuthArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifier",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.McpAuthResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpAuthSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpAuthError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpAuthRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpAuthToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpAuthRequestQuery",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class c extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.McpAuthRequestResponse",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:d,oneof:"result"},{no:2,name:"rejected",kind:"message",T:p,oneof:"result"}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.McpAuthRequestResponse.Approved",d.fields=r.proto3.util.newFieldList((()=>[]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.McpAuthRequestResponse.Rejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/mcp_exec_pb.js"(e,t,n){n.d(t,{DI:()=>P,E_:()=>i,HQ:()=>h,QW:()=>f,ZD:()=>B,kP:()=>E,kj:()=>v,xo:()=>_});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js"),o=n("../proto/dist/generated/agent/v1/mcp_pb.js");class i extends r.Message{constructor(e){super(),this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpArgs",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"message",T:r.Value}},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"provider_identifier",kind:"scalar",T:9},{no:5,name:"tool_name",kind:"scalar",T:9},{no:6,name:"smart_mode_approval",kind:"message",T:s.UC,opt:!0},{no:7,name:"smart_mode_approval_only",kind:"scalar",T:8},{no:8,name:"skip_approval",kind:"scalar",T:8},{no:9,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:f,oneof:"result"},{no:2,name:"error",kind:"message",T:g,oneof:"result"},{no:3,name:"rejected",kind:"message",T:_,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:h,oneof:"result"},{no:5,name:"tool_not_found",kind:"message",T:u,oneof:"result"},{no:6,name:"server_not_found",kind:"message",T:m,oneof:"result"},{no:7,name:"approved",kind:"message",T:l,oneof:"result"}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpApproved",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.name="",this.availableTools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpToolNotFound",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"available_tools",kind:"scalar",T:9,repeated:!0}]));class m extends r.Message{constructor(e){super(),this.name="",this.availableServers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpServerNotFound",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"available_servers",kind:"scalar",T:9,repeated:!0}]));class c extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.McpTextContent",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class d extends r.Message{constructor(e){super(),this.data=new Uint8Array(0),this.mimeType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.McpImageContent",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"mime_type",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.McpToolResultContentItem",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:c,oneof:"content"},{no:2,name:"image",kind:"message",T:d,oneof:"content"}]));class f extends r.Message{constructor(e){super(),this.content=[],this.isError=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.McpSuccess",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:p,repeated:!0},{no:2,name:"is_error",kind:"scalar",T:8},{no:3,name:"structured_content",kind:"message",T:r.Struct}]));class g extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.McpError",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class _ extends r.Message{constructor(e){super(),this.reason="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.McpRejected",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"is_readonly",kind:"scalar",T:8}]));class h extends r.Message{constructor(e){super(),this.error="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(h,e,t)}}h.runtime=r.proto3,h.typeName="agent.v1.McpPermissionDenied",h.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"is_readonly",kind:"scalar",T:8}]));class T extends r.Message{constructor(e){super(),this.serverIdentifiers=[],this.kickOnly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(T,e,t)}}T.runtime=r.proto3,T.typeName="agent.v1.McpStateExecArgs",T.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifiers",kind:"scalar",T:9,repeated:!0},{no:2,name:"kick_only",kind:"scalar",T:8}]));class y extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(y,e,t)}}y.runtime=r.proto3,y.typeName="agent.v1.McpStateExecResult",y.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:w,oneof:"result"},{no:2,name:"error",kind:"message",T:k,oneof:"result"},{no:3,name:"rejected",kind:"message",T:J,oneof:"result"}]));class S extends r.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.tools=[],this.instructions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(S,e,t)}}S.runtime=r.proto3,S.typeName="agent.v1.McpStateServer",S.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"plugin",kind:"scalar",T:9,opt:!0},{no:4,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:5,name:"tools",kind:"message",T:o.gd,repeated:!0},{no:6,name:"instructions",kind:"message",T:o.I0,repeated:!0},{no:7,name:"status",kind:"scalar",T:9,opt:!0}]));class w extends r.Message{constructor(e){super(),this.servers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(w,e,t)}}w.runtime=r.proto3,w.typeName="agent.v1.McpStateSuccess",w.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"servers",kind:"message",T:S,repeated:!0}]));class k extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(k,e,t)}}k.runtime=r.proto3,k.typeName="agent.v1.McpStateError",k.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class J extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(J,e,t)}}J.runtime=r.proto3,J.typeName="agent.v1.McpStateRejected",J.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class v extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(v,e,t)}}v.runtime=r.proto3,v.typeName="agent.v1.ListMcpResourcesExecArgs",v.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9,opt:!0}]));class E extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(E,e,t)}}E.runtime=r.proto3,E.typeName="agent.v1.ListMcpResourcesExecResult",E.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:j,oneof:"result"},{no:2,name:"error",kind:"message",T:x,oneof:"result"},{no:3,name:"rejected",kind:"message",T:N,oneof:"result"}]));class b extends r.Message{constructor(e){super(),this.uri="",this.server="",this.annotations={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(b,e,t)}}b.runtime=r.proto3,b.typeName="agent.v1.ListMcpResourcesExecResult.McpResource",b.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"mime_type",kind:"scalar",T:9,opt:!0},{no:5,name:"server",kind:"scalar",T:9},{no:6,name:"annotations",kind:"map",K:9,V:{kind:"scalar",T:9}}]));class j extends r.Message{constructor(e){super(),this.resources=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(j,e,t)}}j.runtime=r.proto3,j.typeName="agent.v1.ListMcpResourcesSuccess",j.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"resources",kind:"message",T:b,repeated:!0}]));class x extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(x,e,t)}}x.runtime=r.proto3,x.typeName="agent.v1.ListMcpResourcesError",x.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class N extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(N,e,t)}}N.runtime=r.proto3,N.typeName="agent.v1.ListMcpResourcesRejected",N.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class P extends r.Message{constructor(e){super(),this.server="",this.uri="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(P,e,t)}}P.runtime=r.proto3,P.typeName="agent.v1.ReadMcpResourceExecArgs",P.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9},{no:2,name:"uri",kind:"scalar",T:9},{no:3,name:"download_path",kind:"scalar",T:9,opt:!0},{no:4,name:"tool_call_id",kind:"scalar",T:9},{no:5,name:"smart_mode_approval",kind:"message",T:s.UC,opt:!0}]));class B extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(B,e,t)}}B.runtime=r.proto3,B.typeName="agent.v1.ReadMcpResourceExecResult",B.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:I,oneof:"result"},{no:2,name:"error",kind:"message",T:q,oneof:"result"},{no:3,name:"rejected",kind:"message",T:R,oneof:"result"},{no:4,name:"not_found",kind:"message",T:M,oneof:"result"}]));class I extends r.Message{constructor(e){super(),this.uri="",this.content={case:void 0},this.annotations={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(I,e,t)}}I.runtime=r.proto3,I.typeName="agent.v1.ReadMcpResourceSuccess",I.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"mime_type",kind:"scalar",T:9,opt:!0},{no:5,name:"text",kind:"scalar",T:9,oneof:"content"},{no:6,name:"blob",kind:"scalar",T:12,oneof:"content"},{no:7,name:"annotations",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:8,name:"download_path",kind:"scalar",T:9,opt:!0},{no:9,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class q extends r.Message{constructor(e){super(),this.uri="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(q,e,t)}}q.runtime=r.proto3,q.typeName="agent.v1.ReadMcpResourceError",q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class R extends r.Message{constructor(e){super(),this.uri="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(R,e,t)}}R.runtime=r.proto3,R.typeName="agent.v1.ReadMcpResourceRejected",R.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class M extends r.Message{constructor(e){super(),this.uri="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(M,e,t)}}M.runtime=r.proto3,M.typeName="agent.v1.ReadMcpResourceNotFound",M.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/mcp_pb.js"(e,t,n){n.d(t,{I0:()=>i,Is:()=>u,Or:()=>o,U_:()=>m,gd:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.name="",this.providerIdentifier="",this.toolName="",this.description="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.McpToolDefinition",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:4,name:"provider_identifier",kind:"scalar",T:9},{no:5,name:"tool_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"input_schema",kind:"message",T:r.Value},{no:6,name:"input_schema_json",kind:"scalar",T:9,opt:!0}]));class o extends r.Message{constructor(e){super(),this.mcpTools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.McpTools",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"mcp_tools",kind:"message",T:s,repeated:!0}]));class i extends r.Message{constructor(e){super(),this.serverName="",this.instructions="",this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpInstructions",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"instructions",kind:"scalar",T:9},{no:3,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.tools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpDescriptor",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9,opt:!0},{no:4,name:"server_use_instructions",kind:"scalar",T:9,opt:!0},{no:5,name:"tools",kind:"message",T:l,repeated:!0},{no:7,name:"plugin",kind:"scalar",T:9,opt:!0},{no:8,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:9,name:"plugin_db_id",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace_id",kind:"scalar",T:9,opt:!0}]));class l extends r.Message{constructor(e){super(),this.toolName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpToolDescriptor",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"definition_path",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"input_schema",kind:"message",T:r.Value,opt:!0},{no:5,name:"input_schema_json",kind:"scalar",T:9,opt:!0}]));class u extends r.Message{constructor(e){super(),this.enabled=!1,this.workspaceProjectDir="",this.mcpDescriptors=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpFileSystemOptions",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"workspace_project_dir",kind:"scalar",T:9},{no:3,name:"mcp_descriptors",kind:"message",T:a,repeated:!0}]));class m extends r.Message{constructor(e){super(),this.enabled=!1,this.mcpDescriptors=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpMetaToolOptions",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"mcp_descriptors",kind:"message",T:a,repeated:!0}]))},"../proto/dist/generated/agent/v1/pi_common_pb.js"(e,t,n){n.d(t,{d:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.PiTruncation",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"truncated",kind:"scalar",T:8},{no:2,name:"truncated_by",kind:"scalar",T:9},{no:3,name:"total_lines",kind:"scalar",T:13},{no:4,name:"output_lines",kind:"scalar",T:13},{no:5,name:"output_bytes",kind:"scalar",T:13},{no:6,name:"max_lines",kind:"scalar",T:13,opt:!0},{no:7,name:"max_bytes",kind:"scalar",T:13,opt:!0},{no:8,name:"first_line_exceeds_limit",kind:"scalar",T:8},{no:9,name:"last_line_partial",kind:"scalar",T:8}]))},"../proto/dist/generated/agent/v1/pi_edit_tool_pb.js"(e,t,n){n.d(t,{EN:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.oldText="",this.newText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.PiEditReplacement",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"old_text",kind:"scalar",T:9},{no:2,name:"new_text",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.PiEditToolCall",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:a}]));class i extends r.Message{constructor(e){super(),this.path="",this.edits=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.PiEditToolArgs",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"edits",kind:"message",T:s,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.PiEditToolResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"},{no:3,name:"rejected",kind:"message",T:m,oneof:"result"}]));class l extends r.Message{constructor(e){super(),this.output="",this.diff="",this.patch="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.PiEditToolSuccess",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"diff",kind:"scalar",T:9},{no:3,name:"patch",kind:"scalar",T:9},{no:4,name:"first_changed_line",kind:"scalar",T:13,opt:!0}]));class u extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.PiEditToolError",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.PiEditToolRejected",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/pr_management_tool_pb.js"(e,t,n){n.d(t,{AU:()=>T,DY:()=>y,HL:()=>d});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.PullRequestStatus",[{no:0,name:"PULL_REQUEST_STATUS_UNSPECIFIED"},{no:1,name:"PULL_REQUEST_STATUS_OPEN"},{no:2,name:"PULL_REQUEST_STATUS_CLOSED"}]);class o extends s.Message{constructor(e){super(),this.toolCallId="",this.action={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.PrManagementArgs",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"create_pr",kind:"message",T:i,oneof:"action"},{no:3,name:"update_pr",kind:"message",T:a,oneof:"action"},{no:4,name:"post_comment",kind:"message",T:l,oneof:"action"},{no:5,name:"resolve_comment",kind:"message",T:u,oneof:"action"},{no:6,name:"get_ci_status",kind:"message",T:m,oneof:"action"},{no:7,name:"set_pr_status",kind:"message",T:c,oneof:"action"}]));class i extends s.Message{constructor(e){super(),this.title="",this.body="",this.branchName="",this.addLabels=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CreatePrAction",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:4,name:"draft",kind:"scalar",T:8,opt:!0},{no:5,name:"branch_name",kind:"scalar",T:9},{no:6,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:7,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:8,name:"skip_branch_prefix_check",kind:"scalar",T:8,opt:!0}]));class a extends s.Message{constructor(e){super(),this.addLabels=[],this.removeLabels=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.UpdatePrAction",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"body",kind:"scalar",T:9,opt:!0},{no:4,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:5,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:6,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:7,name:"remove_labels",kind:"scalar",T:9,repeated:!0},{no:8,name:"repo_url",kind:"scalar",T:9,opt:!0}]));class l extends s.Message{constructor(e){super(),this.body="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.PostCommentAction",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"body",kind:"scalar",T:9},{no:4,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:5,name:"in_reply_to",kind:"scalar",T:3,opt:!0},{no:6,name:"path",kind:"scalar",T:9,opt:!0},{no:7,name:"line",kind:"scalar",T:5,opt:!0},{no:8,name:"start_line",kind:"scalar",T:5,opt:!0},{no:9,name:"side",kind:"scalar",T:9,opt:!0}]));class u extends s.Message{constructor(e){super(),this.commentId=s.protoInt64.zero,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ResolveCommentAction",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"comment_id",kind:"scalar",T:3},{no:4,name:"repo_url",kind:"scalar",T:9,opt:!0}]));class m extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.GetCiStatusAction",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"repo_url",kind:"scalar",T:9,opt:!0}]));class c extends s.Message{constructor(e){super(),this.status=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.SetPrStatusAction",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:4,name:"status",kind:"enum",T:s.proto3.getEnumType(r)}]));class d extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.PrManagementResult",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:p,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"},{no:3,name:"rejected",kind:"message",T:g,oneof:"result"},{no:4,name:"registered",kind:"message",T:_,oneof:"result"},{no:5,name:"needs_confirmation",kind:"message",T:h,oneof:"result"}]));class p extends s.Message{constructor(e){super(),this.prUrl="",this.prNumber=0,this.message="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.PrManagementSuccess",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"pr_number",kind:"scalar",T:5},{no:3,name:"message",kind:"scalar",T:9}]));class f extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.PrManagementError",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class g extends s.Message{constructor(e){super(),this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.PrManagementRejected",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class _ extends s.Message{constructor(e){super(),this.message="",this.title="",this.body="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.PrManagementRegistered",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"body",kind:"scalar",T:9},{no:4,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:5,name:"draft",kind:"scalar",T:8,opt:!0},{no:6,name:"branch_name",kind:"scalar",T:9}]));class h extends s.Message{constructor(e){super(),this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.PrManagementNeedsConfirmation",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"discovered_pr_url",kind:"scalar",T:9},{no:3,name:"discovered_pr_number",kind:"scalar",T:5},{no:4,name:"discovered_pr_title",kind:"scalar",T:9},{no:5,name:"branch_name",kind:"scalar",T:9}]));class T extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.PrManagementToolCall",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:d}]));class y extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.PrManagementRequestQuery",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o}]))},"../proto/dist/generated/agent/v1/record_screen_exec_pb.js"(e,t,n){n.d(t,{Tj:()=>a,zH:()=>i});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.START_RECORDING=1]="START_RECORDING",e[e.SAVE_RECORDING=2]="SAVE_RECORDING",e[e.DISCARD_RECORDING=3]="DISCARD_RECORDING"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.RecordingMode",[{no:0,name:"RECORDING_MODE_UNSPECIFIED"},{no:1,name:"RECORDING_MODE_START_RECORDING"},{no:2,name:"RECORDING_MODE_SAVE_RECORDING"},{no:3,name:"RECORDING_MODE_DISCARD_RECORDING"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SLASHES_NOT_ALLOWED=1]="SLASHES_NOT_ALLOWED"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.RequestedFilePathRejectedReason",[{no:0,name:"REQUESTED_FILE_PATH_REJECTED_REASON_UNSPECIFIED"},{no:1,name:"REQUESTED_FILE_PATH_REJECTED_REASON_SLASHES_NOT_ALLOWED"}]);class i extends o.Message{constructor(e){super(),this.mode=r.UNSPECIFIED,this.toolCallId="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.RecordScreenArgs",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"mode",kind:"enum",T:o.proto3.getEnumType(r)},{no:2,name:"tool_call_id",kind:"scalar",T:9},{no:3,name:"save_as_filename",kind:"scalar",T:9,opt:!0}]));class a extends o.Message{constructor(e){super(),this.result={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.RecordScreenResult",a.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"start_success",kind:"message",T:l,oneof:"result"},{no:2,name:"save_success",kind:"message",T:u,oneof:"result"},{no:3,name:"discard_success",kind:"message",T:m,oneof:"result"},{no:4,name:"failure",kind:"message",T:c,oneof:"result"}]));class l extends o.Message{constructor(e){super(),this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.RecordScreenStartSuccess",l.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"was_prior_recording_cancelled",kind:"scalar",T:8},{no:2,name:"was_save_as_filename_ignored",kind:"scalar",T:8}]));class u extends o.Message{constructor(e){super(),this.path="",this.recordingDurationMs=o.protoInt64.zero,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.RecordScreenSaveSuccess",u.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"recording_duration_ms",kind:"scalar",T:3},{no:3,name:"requested_file_path_rejected_reason",kind:"enum",T:o.proto3.getEnumType(s),opt:!0}]));class m extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.RecordScreenDiscardSuccess",m.fields=o.proto3.util.newFieldList((()=>[]));class c extends o.Message{constructor(e){super(),this.error="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.RecordScreenFailure",c.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/replace_env_tool_pb.js"(e,t,n){n.d(t,{TO:()=>a,dV:()=>m,km:()=>d,us:()=>c});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CUSTOM=1]="CUSTOM",e[e.CLEAN_SLATE=2]="CLEAN_SLATE",e[e.DEFAULT=3]="DEFAULT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.ReplaceEnvMode",[{no:0,name:"REPLACE_ENV_MODE_UNSPECIFIED"},{no:1,name:"REPLACE_ENV_MODE_CUSTOM"},{no:2,name:"REPLACE_ENV_MODE_CLEAN_SLATE"},{no:3,name:"REPLACE_ENV_MODE_DEFAULT"}]);class o extends s.Message{constructor(e){super(),this.repoUrl="",this.ref="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.RepoCheckoutRefOverride",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"repo_url",kind:"scalar",T:9},{no:2,name:"ref",kind:"scalar",T:9}]));class i extends s.Message{constructor(e){super(),this.installScript="",this.dockerfileContents="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ReplaceEnvConfig",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"install_script",kind:"scalar",T:9},{no:2,name:"dockerfile_contents",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.mode=r.UNSPECIFIED,this.checkoutRefOverrides=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ReplaceEnvArgs",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"config",kind:"message",T:i},{no:2,name:"mode",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"checkout_ref_overrides",kind:"message",T:o,repeated:!0}]));class l extends s.Message{constructor(e){super(),this.setupLogs="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ReplaceEnvSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"setup_logs",kind:"scalar",T:9}]));class u extends s.Message{constructor(e){super(),this.errorMessage="",this.setupLogs="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ReplaceEnvFailure",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9},{no:2,name:"setup_logs",kind:"scalar",T:9}]));class m extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ReplaceEnvResult",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"failure",kind:"message",T:u,oneof:"result"}]));class c extends s.Message{constructor(e){super(),this.associatedPodKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.ReplaceEnvToolCall",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:m},{no:3,name:"associated_pod_key",kind:"scalar",T:9}]));class d extends s.Message{constructor(e){super(),this.associatedPodKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.ReplaceEnvToolCallDelta",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"associated_pod_key",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/report_bugfix_results_tool_pb.js"(e,t,n){n.d(t,{U_:()=>m});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FIXED=1]="FIXED",e[e.FALSE_POSITIVE=2]="FALSE_POSITIVE",e[e.COULD_NOT_FIX=3]="COULD_NOT_FIX",e[e.RESOLVED_BY_OTHER_FIX=4]="RESOLVED_BY_OTHER_FIX"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.BugfixVerdict",[{no:0,name:"BUGFIX_VERDICT_UNSPECIFIED"},{no:1,name:"BUGFIX_VERDICT_FIXED"},{no:2,name:"BUGFIX_VERDICT_FALSE_POSITIVE"},{no:3,name:"BUGFIX_VERDICT_COULD_NOT_FIX"},{no:4,name:"BUGFIX_VERDICT_RESOLVED_BY_OTHER_FIX"}]);class o extends s.Message{constructor(e){super(),this.bugId="",this.bugTitle="",this.verdict=r.UNSPECIFIED,this.explanation="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.BugfixResultItem",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"bug_id",kind:"scalar",T:9},{no:2,name:"bug_title",kind:"scalar",T:9},{no:3,name:"verdict",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"explanation",kind:"scalar",T:9},{no:5,name:"severity",kind:"scalar",T:9,opt:!0}]));class i extends s.Message{constructor(e){super(),this.summary="",this.results=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ReportBugfixResultsArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"results",kind:"message",T:o,repeated:!0}]));class a extends s.Message{constructor(e){super(),this.results=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ReportBugfixResultsSuccess",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"message",T:o,repeated:!0}]));class l extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ReportBugfixResultsError",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class u extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ReportBugfixResultsResult",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"}]));class m extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ReportBugfixResultsToolCall",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:u}]))},"../proto/dist/generated/agent/v1/request_context_exec_pb.js"(e,t,n){n.d(t,{bb:()=>I,sG:()=>F,uw:()=>j});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CURSOR_PROJECT=1]="CURSOR_PROJECT",e[e.CURSOR_PERSONAL=2]="CURSOR_PERSONAL",e[e.CLAUDE_SKILL=3]="CLAUDE_SKILL",e[e.CLAUDE_PLUGIN=4]="CLAUDE_PLUGIN"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.PackageType",[{no:0,name:"PACKAGE_TYPE_UNSPECIFIED"},{no:1,name:"PACKAGE_TYPE_CURSOR_PROJECT"},{no:2,name:"PACKAGE_TYPE_CURSOR_PERSONAL"},{no:3,name:"PACKAGE_TYPE_CLAUDE_SKILL"},{no:4,name:"PACKAGE_TYPE_CLAUDE_PLUGIN"}]);class o extends s.Message{constructor(e){super(),this.name="",this.filePath="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.CursorPackagePrompt",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9}]));class i extends s.Message{constructor(e){super(),this.name="",this.description="",this.folderPath="",this.enabled=!1,this.prompts=[],this.readmeFilePath="",this.packageType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CursorPackage",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9},{no:4,name:"enabled",kind:"scalar",T:8},{no:5,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:6,name:"prompts",kind:"message",T:o,repeated:!0},{no:7,name:"readme_file_path",kind:"scalar",T:9},{no:8,name:"package_type",kind:"enum",T:s.proto3.getEnumType(r)}]));var a=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js");class l extends s.Message{constructor(e){super(),this.relativeWorkspacePath="",this.remoteUrls=[],this.remoteNames=[],this.repoName="",this.repoOwner="",this.isTracked=!1,this.isLocal=!1,this.workspaceUri="",this.pathEncryptionKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.RepositoryIndexingInfo",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"remote_urls",kind:"scalar",T:9,repeated:!0},{no:3,name:"remote_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"repo_name",kind:"scalar",T:9},{no:5,name:"repo_owner",kind:"scalar",T:9},{no:6,name:"is_tracked",kind:"scalar",T:8},{no:7,name:"is_local",kind:"scalar",T:8},{no:8,name:"orthogonal_transform_seed",kind:"scalar",T:1,opt:!0},{no:9,name:"workspace_uri",kind:"scalar",T:9},{no:10,name:"path_encryption_key",kind:"scalar",T:9}]));var u,m=n("../proto/dist/generated/agent/v1/mcp_pb.js"),c=n("../proto/dist/generated/agent/v1/ls_exec_pb.js"),d=n("../proto/dist/generated/agent/v1/subagents_pb.js"),p=n("../proto/dist/generated/agent/v1/agent_skills_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SELF=1]="SELF",e[e.PEER=2]="PEER",e[e.SHARE=3]="SHARE",e[e.PRINCIPAL=4]="PRINCIPAL"}(u||(u={})),s.proto3.util.setEnumType(u,"agent.v1.MountedAgentStoreKind",[{no:0,name:"MOUNTED_AGENT_STORE_KIND_UNSPECIFIED"},{no:1,name:"MOUNTED_AGENT_STORE_KIND_SELF"},{no:2,name:"MOUNTED_AGENT_STORE_KIND_PEER"},{no:3,name:"MOUNTED_AGENT_STORE_KIND_SHARE"},{no:4,name:"MOUNTED_AGENT_STORE_KIND_PRINCIPAL"}]);class f extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.RequestContextArgs",f.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"notes_session_id",kind:"scalar",T:9,opt:!0},{no:3,name:"workspace_id",kind:"scalar",T:9,opt:!0},{no:4,name:"read_only_pinned_tree_sha",kind:"scalar",T:9,opt:!0},{no:5,name:"read_only_plugin_cache_root",kind:"scalar",T:9,opt:!0},{no:7,name:"use_cached",kind:"scalar",T:8,opt:!0}]));class g extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.RequestContextResult",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:_,oneof:"result"},{no:2,name:"error",kind:"message",T:h,oneof:"result"},{no:3,name:"rejected",kind:"message",T,oneof:"result"}]));class _ extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.RequestContextSuccess",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"request_context",kind:"message",T:I},{no:2,name:"served_from_disk_cache",kind:"scalar",T:8,opt:!0}]));class h extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.RequestContextError",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class T extends s.Message{constructor(e){super(),this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.RequestContextRejected",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class y extends s.Message{constructor(e){super(),this.data=new Uint8Array(0),this.uuid="",this.path="",this.mimeType="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.ImageProto",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"dimension",kind:"message",T:S},{no:6,name:"task_specific_description",kind:"scalar",T:9,opt:!0},{no:7,name:"mime_type",kind:"scalar",T:9}]));class S extends s.Message{constructor(e){super(),this.width=0,this.height=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(S,e,t)}}S.runtime=s.proto3,S.typeName="agent.v1.ImageProto.Dimension",S.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class w extends s.Message{constructor(e){super(),this.path="",this.status="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(w,e,t)}}w.runtime=s.proto3,w.typeName="agent.v1.GitRepoInfo",w.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"status",kind:"scalar",T:9},{no:3,name:"branch_name",kind:"scalar",T:9},{no:4,name:"remote_url",kind:"scalar",T:9,opt:!0},{no:5,name:"previous_branch_is_ancestor",kind:"scalar",T:8,opt:!0},{no:6,name:"is_origin_backed",kind:"scalar",T:8,opt:!0}]));class k extends s.Message{constructor(e){super(),this.osVersion="",this.workspacePaths=[],this.shell="",this.sandboxEnabled=!1,this.terminalsFolder="",this.agentSharedNotesFolder="",this.agentConversationNotesFolder="",this.timeZone="",this.projectFolder="",this.agentTranscriptsFolder="",this.sandboxNetworkExplicitAllowlist=[],this.mountedAgentStores=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(k,e,t)}}k.runtime=s.proto3,k.typeName="agent.v1.RequestContextEnv",k.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"os_version",kind:"scalar",T:9},{no:2,name:"workspace_paths",kind:"scalar",T:9,repeated:!0},{no:3,name:"shell",kind:"scalar",T:9},{no:5,name:"sandbox_enabled",kind:"scalar",T:8},{no:7,name:"terminals_folder",kind:"scalar",T:9},{no:8,name:"agent_shared_notes_folder",kind:"scalar",T:9},{no:9,name:"agent_conversation_notes_folder",kind:"scalar",T:9},{no:10,name:"time_zone",kind:"scalar",T:9},{no:11,name:"project_folder",kind:"scalar",T:9},{no:12,name:"agent_transcripts_folder",kind:"scalar",T:9},{no:13,name:"artifacts_folder",kind:"scalar",T:9,opt:!0},{no:14,name:"sandbox_supported",kind:"scalar",T:8,opt:!0},{no:16,name:"sandbox_network_has_defaults",kind:"scalar",T:8,opt:!0},{no:17,name:"sandbox_network_explicit_allowlist",kind:"scalar",T:9,repeated:!0},{no:18,name:"secret_redaction_enabled",kind:"scalar",T:8,opt:!0},{no:19,name:"computer_use_supported",kind:"scalar",T:8,opt:!0},{no:20,name:"is_working_dir_home_dir",kind:"scalar",T:8,opt:!0},{no:21,name:"process_working_directory",kind:"scalar",T:9,opt:!0},{no:22,name:"smart_mode_classifier_auto_mode_enabled",kind:"scalar",T:8,opt:!0},{no:23,name:"dev_force_next_smart_mode_classifier_block_token",kind:"scalar",T:9,opt:!0},{no:24,name:"dev_delay_next_smart_mode_classifier_token",kind:"scalar",T:9,opt:!0},{no:25,name:"mounted_agent_stores",kind:"message",T:J,repeated:!0}]));class J extends s.Message{constructor(e){super(),this.path="",this.kind=u.UNSPECIFIED,this.readOnly=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(J,e,t)}}J.runtime=s.proto3,J.typeName="agent.v1.MountedAgentStore",J.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"kind",kind:"enum",T:s.proto3.getEnumType(u)},{no:3,name:"alias",kind:"scalar",T:9,opt:!0},{no:4,name:"read_only",kind:"scalar",T:8}]));class v extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(v,e,t)}}v.runtime=s.proto3,v.typeName="agent.v1.UserGitContext",v.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"username",kind:"scalar",T:9,opt:!0},{no:2,name:"email",kind:"scalar",T:9,opt:!0}]));class E extends s.Message{constructor(e){super(),this.logPath="",this.serverEndpoint="",this.sessionId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(E,e,t)}}E.runtime=s.proto3,E.typeName="agent.v1.DebugModeConfig",E.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"log_path",kind:"scalar",T:9},{no:2,name:"server_endpoint",kind:"scalar",T:9},{no:3,name:"session_id",kind:"scalar",T:9}]));class b extends s.Message{constructor(e){super(),this.name="",this.description="",this.folderPath="",this.enabled=!1,this.readmeFilePath="",this.packageType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(b,e,t)}}b.runtime=s.proto3,b.typeName="agent.v1.SkillDescriptor",b.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9},{no:4,name:"enabled",kind:"scalar",T:8},{no:5,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:6,name:"readme_file_path",kind:"scalar",T:9},{no:7,name:"package_type",kind:"enum",T:s.proto3.getEnumType(r)}]));class j extends s.Message{constructor(e){super(),this.skillDescriptors=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(j,e,t)}}j.runtime=s.proto3,j.typeName="agent.v1.SkillOptions",j.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"skill_descriptors",kind:"message",T:b,repeated:!0}]));class x extends s.Message{constructor(e){super(),this.configuredSteps=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(x,e,t)}}x.runtime=s.proto3,x.typeName="agent.v1.HooksConfigInfo",x.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"configured_steps",kind:"scalar",T:9,repeated:!0}]));class N extends s.Message{constructor(e){super(),this.allowInstructions=[],this.blockInstructions=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(N,e,t)}}N.runtime=s.proto3,N.typeName="agent.v1.PermissionsAutoRunInstructions",N.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"allow_instructions",kind:"scalar",T:9,repeated:!0},{no:2,name:"block_instructions",kind:"scalar",T:9,repeated:!0}]));class P extends s.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumberExclusive=0,this.beforeContextLines=[],this.removedLines=[],this.addedLines=[],this.afterContextLines=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(P,e,t)}}P.runtime=s.proto3,P.typeName="agent.v1.PrecomputedHumanChangeRenderedDiff",P.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number_exclusive",kind:"scalar",T:5},{no:3,name:"before_context_lines",kind:"scalar",T:9,repeated:!0},{no:4,name:"removed_lines",kind:"scalar",T:9,repeated:!0},{no:5,name:"added_lines",kind:"scalar",T:9,repeated:!0},{no:6,name:"after_context_lines",kind:"scalar",T:9,repeated:!0}]));class B extends s.Message{constructor(e){super(),this.path="",this.renderedDiffs=[],this.isNewFile=!1,this.isDeletedFile=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(B,e,t)}}B.runtime=s.proto3,B.typeName="agent.v1.PrecomputedHumanChange",B.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"rendered_diffs",kind:"message",T:P,repeated:!0},{no:3,name:"is_new_file",kind:"scalar",T:8},{no:4,name:"is_deleted_file",kind:"scalar",T:8}]));class I extends s.Message{constructor(e){super(),this.rules=[],this.repositoryInfo=[],this.tools=[],this.gitRepos=[],this.projectLayouts=[],this.mcpInstructions=[],this.fileContents={},this.customSubagents=[],this.agentSkills=[],this.precomputedHumanChanges=[],this.nonFileRules=[],this.disabledTeamRules=[],this.adminCommandDenylist=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(I,e,t)}}I.runtime=s.proto3,I.typeName="agent.v1.RequestContext",I.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"rules",kind:"message",T:a.DX,repeated:!0},{no:4,name:"env",kind:"message",T:k},{no:6,name:"repository_info",kind:"message",T:l,repeated:!0},{no:7,name:"tools",kind:"message",T:m.gd,repeated:!0},{no:8,name:"conversation_notes_listing",kind:"scalar",T:9,opt:!0},{no:9,name:"shared_notes_listing",kind:"scalar",T:9,opt:!0},{no:11,name:"git_repos",kind:"message",T:w,repeated:!0},{no:13,name:"project_layouts",kind:"message",T:c.vq,repeated:!0},{no:14,name:"mcp_instructions",kind:"message",T:m.I0,repeated:!0},{no:15,name:"debug_mode_config",kind:"message",T:E,opt:!0},{no:16,name:"cloud_rule",kind:"scalar",T:9,opt:!0},{no:17,name:"web_search_enabled",kind:"scalar",T:8,opt:!0},{no:18,name:"skill_options",kind:"message",T:j,opt:!0},{no:19,name:"repository_info_should_query_prod",kind:"scalar",T:8,opt:!0},{no:20,name:"file_contents",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:21,name:"user_intent_summary",kind:"scalar",T:9,opt:!0},{no:22,name:"custom_subagents",kind:"message",T:d.zz,repeated:!0},{no:23,name:"mcp_file_system_options",kind:"message",T:m.Is,opt:!0},{no:24,name:"web_fetch_enabled",kind:"scalar",T:8,opt:!0},{no:25,name:"hooks_additional_context",kind:"scalar",T:9,opt:!0},{no:26,name:"commit_attribution_message",kind:"scalar",T:9,opt:!0},{no:27,name:"pr_attribution_message",kind:"scalar",T:9,opt:!0},{no:28,name:"hooks_config",kind:"message",T:x,opt:!0},{no:29,name:"agent_skills",kind:"message",T:p.N,repeated:!0},{no:30,name:"precomputed_human_changes",kind:"message",T:B,repeated:!0},{no:31,name:"recently_added_plugin",kind:"message",T:A,opt:!0},{no:32,name:"supports_mcp_auth",kind:"scalar",T:8,opt:!0},{no:33,name:"git_repo_info_complete",kind:"scalar",T:8,opt:!0},{no:34,name:"mcp_meta_tool_options",kind:"message",T:m.U_,opt:!0},{no:35,name:"read_lints_enabled",kind:"scalar",T:8,opt:!0},{no:36,name:"mcp_info_complete",kind:"scalar",T:8,opt:!0},{no:37,name:"non_file_rules",kind:"message",T:a.DX,repeated:!0},{no:38,name:"matched_installed_plugin",kind:"message",T:C,opt:!0},{no:39,name:"rules_info_complete",kind:"scalar",T:8,opt:!0},{no:40,name:"env_info_complete",kind:"scalar",T:8,opt:!0},{no:41,name:"repository_info_complete",kind:"scalar",T:8,opt:!0},{no:42,name:"custom_subagents_info_complete",kind:"scalar",T:8,opt:!0},{no:43,name:"agent_skills_info_complete",kind:"scalar",T:8,opt:!0},{no:44,name:"mcp_file_system_info_complete",kind:"scalar",T:8,opt:!0},{no:45,name:"git_status_info_complete",kind:"scalar",T:8,opt:!0},{no:46,name:"user_permissions_auto_run",kind:"message",T:N,opt:!0},{no:47,name:"project_permissions_auto_run",kind:"message",T:N,opt:!0},{no:48,name:"admin_permissions_auto_run",kind:"message",T:N,opt:!0},{no:49,name:"disabled_team_rules",kind:"scalar",T:9,repeated:!0},{no:50,name:"search_conversations_enabled",kind:"scalar",T:8,opt:!0},{no:51,name:"send_message_enabled",kind:"scalar",T:8,opt:!0},{no:52,name:"admin_command_denylist",kind:"scalar",T:9,repeated:!0}]));class q extends s.Message{constructor(e){super(),this.rules=[],this.nonFileRules=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(q,e,t)}}q.runtime=s.proto3,q.typeName="agent.v1.RequestContextRulesPart",q.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rules",kind:"message",T:a.DX,repeated:!0},{no:2,name:"non_file_rules",kind:"message",T:a.DX,repeated:!0},{no:3,name:"cloud_rule",kind:"scalar",T:9,opt:!0}]));class R extends s.Message{constructor(e){super(),this.agentSkills=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(R,e,t)}}R.runtime=s.proto3,R.typeName="agent.v1.RequestContextSkillsPart",R.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_skills",kind:"message",T:p.N,repeated:!0},{no:2,name:"skill_options",kind:"message",T:j,opt:!0}]));class M extends s.Message{constructor(e){super(),this.customSubagents=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(M,e,t)}}M.runtime=s.proto3,M.typeName="agent.v1.RequestContextSubagentsPart",M.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"custom_subagents",kind:"message",T:d.zz,repeated:!0}]));class O extends s.Message{constructor(e){super(),this.tools=[],this.mcpInstructions=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(O,e,t)}}O.runtime=s.proto3,O.typeName="agent.v1.RequestContextMcpsPart",O.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"tools",kind:"message",T:m.gd,repeated:!0},{no:2,name:"mcp_instructions",kind:"message",T:m.I0,repeated:!0},{no:3,name:"mcp_file_system_options",kind:"message",T:m.Is,opt:!0},{no:4,name:"mcp_meta_tool_options",kind:"message",T:m.U_,opt:!0}]));class F extends s.Message{constructor(e){super(),this.rulesBlobId=new Uint8Array(0),this.rulesByteLength=0,this.skillsBlobId=new Uint8Array(0),this.skillsByteLength=0,this.subagentsBlobId=new Uint8Array(0),this.subagentsByteLength=0,this.mcpsBlobId=new Uint8Array(0),this.mcpsByteLength=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(F,e,t)}}F.runtime=s.proto3,F.typeName="agent.v1.RequestContextPartReferences",F.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rules_blob_id",kind:"scalar",T:12},{no:2,name:"rules_byte_length",kind:"scalar",T:13},{no:3,name:"skills_blob_id",kind:"scalar",T:12},{no:4,name:"skills_byte_length",kind:"scalar",T:13},{no:5,name:"subagents_blob_id",kind:"scalar",T:12},{no:6,name:"subagents_byte_length",kind:"scalar",T:13},{no:7,name:"mcps_blob_id",kind:"scalar",T:12},{no:8,name:"mcps_byte_length",kind:"scalar",T:13},{no:9,name:"dynamic_context",kind:"message",T:I}]));class A extends s.Message{constructor(e){super(),this.displayName="",this.description="",this.skills=[],this.subagents=[],this.hooks=[],this.rules=[],this.commands=[],this.mcpServers=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(A,e,t)}}A.runtime=s.proto3,A.typeName="agent.v1.RecentlyAddedPlugin",A.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"display_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"skills",kind:"message",T:L,repeated:!0},{no:4,name:"subagents",kind:"message",T:L,repeated:!0},{no:5,name:"hooks",kind:"message",T:L,repeated:!0},{no:6,name:"rules",kind:"message",T:L,repeated:!0},{no:7,name:"commands",kind:"message",T:L,repeated:!0},{no:8,name:"mcp_servers",kind:"scalar",T:9,repeated:!0}]));class L extends s.Message{constructor(e){super(),this.name="",this.description="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(L,e,t)}}L.runtime=s.proto3,L.typeName="agent.v1.RecentlyAddedPlugin.CapabilityDescriptor",L.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]));class C extends s.Message{constructor(e){super(),this.displayName="",this.description="",this.matchedKeyword="",this.skills=[],this.subagents=[],this.hooks=[],this.rules=[],this.commands=[],this.mcpServers=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(C,e,t)}}C.runtime=s.proto3,C.typeName="agent.v1.MatchedInstalledPlugin",C.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"display_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"matched_keyword",kind:"scalar",T:9},{no:4,name:"skills",kind:"message",T:L,repeated:!0},{no:5,name:"subagents",kind:"message",T:L,repeated:!0},{no:6,name:"hooks",kind:"message",T:L,repeated:!0},{no:7,name:"rules",kind:"message",T:L,repeated:!0},{no:8,name:"commands",kind:"message",T:L,repeated:!0},{no:9,name:"mcp_servers",kind:"scalar",T:9,repeated:!0}]))},"../proto/dist/generated/agent/v1/sandbox_pb.js"(e,t,n){n.d(t,{Mw:()=>u});var r,s,o,i=n("@bufbuild/protobuf");class a extends i.Message{constructor(e){super(),i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(a,e,t)}}a.runtime=i.proto3,a.typeName="agent.v1.NetworkPolicyLoggingConfig",a.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"decision_log_path",kind:"scalar",T:9,opt:!0},{no:2,name:"log_format",kind:"scalar",T:9,opt:!0}]));class l extends i.Message{constructor(e){super(),this.deny=[],this.allow=[],i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(l,e,t)}}l.runtime=i.proto3,l.typeName="agent.v1.NetworkPolicy",l.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"version",kind:"scalar",T:13,opt:!0},{no:2,name:"default_action",kind:"enum",T:i.proto3.getEnumType(r),opt:!0},{no:3,name:"deny",kind:"scalar",T:9,repeated:!0},{no:4,name:"allow",kind:"scalar",T:9,repeated:!0},{no:5,name:"logging",kind:"message",T:a,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ALLOW=1]="ALLOW",e[e.DENY=2]="DENY"}(r||(r={})),i.proto3.util.setEnumType(r,"agent.v1.NetworkPolicy.DefaultAction",[{no:0,name:"DEFAULT_ACTION_UNSPECIFIED"},{no:1,name:"DEFAULT_ACTION_ALLOW"},{no:2,name:"DEFAULT_ACTION_DENY"}]);class u extends i.Message{constructor(e){super(),this.type=s.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=o.UNSPECIFIED,this.additionalReadPaths=[],i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(u,e,t)}}u.runtime=i.proto3,u.typeName="agent.v1.SandboxPolicy",u.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:i.proto3.getEnumType(s)},{no:2,name:"network_access",kind:"scalar",T:8,opt:!0},{no:3,name:"additional_readwrite_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"additional_readonly_paths",kind:"scalar",T:9,repeated:!0},{no:5,name:"debug_output_dir",kind:"scalar",T:9,opt:!0},{no:7,name:"disable_tmp_write",kind:"scalar",T:8,opt:!0},{no:8,name:"allowlist_escalated",kind:"scalar",T:8,opt:!0},{no:9,name:"enable_shared_build_cache",kind:"scalar",T:8,opt:!0},{no:10,name:"network_policy",kind:"message",T:l,opt:!0},{no:11,name:"network_policy_strict",kind:"scalar",T:8,opt:!0},{no:12,name:"capture_denies",kind:"scalar",T:8,opt:!0},{no:13,name:"skip_statsig_defaults",kind:"scalar",T:8,opt:!0},{no:14,name:"read_boundary",kind:"enum",T:i.proto3.getEnumType(o)},{no:15,name:"additional_read_paths",kind:"scalar",T:9,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INSECURE_NONE=1]="INSECURE_NONE",e[e.WORKSPACE_READWRITE=2]="WORKSPACE_READWRITE",e[e.WORKSPACE_READONLY=3]="WORKSPACE_READONLY"}(s||(s={})),i.proto3.util.setEnumType(s,"agent.v1.SandboxPolicy.Type",[{no:0,name:"TYPE_UNSPECIFIED"},{no:1,name:"TYPE_INSECURE_NONE"},{no:2,name:"TYPE_WORKSPACE_READWRITE"},{no:3,name:"TYPE_WORKSPACE_READONLY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SYSTEM=1]="SYSTEM",e[e.WORKSPACE=2]="WORKSPACE",e[e.CUSTOM=3]="CUSTOM"}(o||(o={})),i.proto3.util.setEnumType(o,"agent.v1.SandboxPolicy.ReadBoundaryMode",[{no:0,name:"READ_BOUNDARY_MODE_UNSPECIFIED"},{no:1,name:"READ_BOUNDARY_MODE_SYSTEM"},{no:2,name:"READ_BOUNDARY_MODE_WORKSPACE"},{no:3,name:"READ_BOUNDARY_MODE_CUSTOM"}]);class m extends i.Message{constructor(e){super(),i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(m,e,t)}}m.runtime=i.proto3,m.typeName="agent.v1.SandboxPolicyMergeSources",m.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"per_user",kind:"message",T:u,opt:!0},{no:2,name:"per_repo",kind:"message",T:u,opt:!0},{no:3,name:"team_admin",kind:"message",T:u,opt:!0}]))},"../proto/dist/generated/agent/v1/selected_context_pb.js"(e,t,n){n.d(t,{xv:()=>$});var r,s=n("@bufbuild/protobuf"),o=n("../proto/dist/generated/agent/v1/utils_pb.js"),i=n("../proto/dist/generated/agent/v1/ls_exec_pb.js"),a=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js"),l=n("../proto/dist/generated/agent/v1/agent_skills_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.COMMAND=1]="COMMAND",e[e.SKILL=2]="SKILL",e[e.SUBAGENT=3]="SUBAGENT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.SelectedPluginCapabilityType",[{no:0,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_UNSPECIFIED"},{no:1,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_COMMAND"},{no:2,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_SKILL"},{no:3,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_SUBAGENT"}]);class u extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.SelectedImage",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:m,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"dimension",kind:"message",T:c},{no:7,name:"mime_type",kind:"scalar",T:9}]));class m extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.SelectedImage.BlobIdWithData",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class c extends s.Message{constructor(e){super(),this.width=0,this.height=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.SelectedImage.Dimension",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class d extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.SelectedDocument",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:p,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"filename",kind:"scalar",T:9},{no:4,name:"mime_type",kind:"scalar",T:9},{no:7,name:"path",kind:"scalar",T:9}]));class p extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.SelectedDocument.BlobIdWithData",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class f extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.SelectedVideo",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:g,oneof:"data_or_blob_id"},{no:11,name:"signed_url",kind:"message",T:_,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"fps",kind:"scalar",T:2,opt:!0},{no:7,name:"mime_type",kind:"scalar",T:9},{no:10,name:"filename",kind:"scalar",T:9},{no:12,name:"materialize_to_filesystem",kind:"scalar",T:8}]));class g extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.SelectedVideo.BlobIdWithData",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class _ extends s.Message{constructor(e){super(),this.url="",this.key="",this.expiresAtUnixMs=s.protoInt64.zero,this.refreshAfterUnixMs=s.protoInt64.zero,this.conversationId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.SelectedVideo.SignedUrl",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"expires_at_unix_ms",kind:"scalar",T:3},{no:4,name:"refresh_after_unix_ms",kind:"scalar",T:3},{no:5,name:"conversation_id",kind:"scalar",T:9}]));class h extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.ExtraContextEntry",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9,oneof:"data_or_blob_id"},{no:2,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"}]));class T extends s.Message{constructor(e){super(),this.content="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.SelectedFile",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"relative_path",kind:"scalar",T:9,opt:!0}]));class y extends s.Message{constructor(e){super(),this.content="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.SelectedCodeSelection",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:4,name:"range",kind:"message",T:o.Q6}]));class S extends s.Message{constructor(e){super(),this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(S,e,t)}}S.runtime=s.proto3,S.typeName="agent.v1.SelectedTerminal",S.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0}]));class w extends s.Message{constructor(e){super(),this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(w,e,t)}}w.runtime=s.proto3,w.typeName="agent.v1.SelectedTerminalSelection",w.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0},{no:4,name:"range",kind:"message",T:o.Q6}]));class k extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(k,e,t)}}k.runtime=s.proto3,k.typeName="agent.v1.SelectedFolder",k.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:3,name:"directory_tree",kind:"message",T:i.vq}]));class J extends s.Message{constructor(e){super(),this.url="",this.uuid="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(J,e,t)}}J.runtime=s.proto3,J.typeName="agent.v1.SelectedExternalLink",J.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0},{no:6,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class v extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(v,e,t)}}v.runtime=s.proto3,v.typeName="agent.v1.SelectedCursorRule",v.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rule",kind:"message",T:a.DX}]));class E extends s.Message{constructor(e){super(),this.content="",this.fullContentLengthCharCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(E,e,t)}}E.runtime=s.proto3,E.typeName="agent.v1.SelectedGitDiff",E.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"full_content_length_char_count",kind:"scalar",T:5}]));class b extends s.Message{constructor(e){super(),this.content="",this.fullContentLengthCharCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(b,e,t)}}b.runtime=s.proto3,b.typeName="agent.v1.SelectedGitDiffFromBranchToMain",b.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"full_content_length_char_count",kind:"scalar",T:5}]));class j extends s.Message{constructor(e){super(),this.sha="",this.message="",this.diff="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(j,e,t)}}j.runtime=s.proto3,j.typeName="agent.v1.SelectedGitCommit",j.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"sha",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"diff",kind:"scalar",T:9}]));class x extends s.Message{constructor(e){super(),this.number=0,this.url="",this.folderPath="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(x,e,t)}}x.runtime=s.proto3,x.typeName="agent.v1.SelectedPullRequest",x.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"title",kind:"scalar",T:9,opt:!0},{no:4,name:"folder_path",kind:"scalar",T:9},{no:5,name:"summary_json",kind:"scalar",T:9,opt:!0},{no:6,name:"description",kind:"scalar",T:9,opt:!0},{no:7,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class N extends s.Message{constructor(e){super(),this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(N,e,t)}}N.runtime=s.proto3,N.typeName="agent.v1.SelectedGitPRDiffSelection",N.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9},{no:3,name:"start_line",kind:"scalar",T:5},{no:4,name:"end_line",kind:"scalar",T:5},{no:5,name:"diff_content",kind:"scalar",T:9,opt:!0},{no:6,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class P extends s.Message{constructor(e){super(),this.pluginId="",this.capabilityType=r.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(P,e,t)}}P.runtime=s.proto3,P.typeName="agent.v1.SelectedPluginCapabilityRef",P.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"plugin_id",kind:"scalar",T:9},{no:2,name:"capability_type",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"source_path",kind:"scalar",T:9},{no:4,name:"snapshot_token",kind:"scalar",T:9},{no:5,name:"resolved_commit_sha",kind:"scalar",T:9,opt:!0}]));class B extends s.Message{constructor(e){super(),this.name="",this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(B,e,t)}}B.runtime=s.proto3,B.typeName="agent.v1.SelectedCursorCommand",B.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"plugin_capability",kind:"message",T:P,opt:!0},{no:4,name:"full_path",kind:"scalar",T:9,opt:!0},{no:5,name:"display_name",kind:"scalar",T:9,opt:!0}]));class I extends s.Message{constructor(e){super(),this.docId="",this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(I,e,t)}}I.runtime=s.proto3,I.typeName="agent.v1.SelectedDocumentation",I.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"doc_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class q extends s.Message{constructor(e){super(),this.agentId="",this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(q,e,t)}}q.runtime=s.proto3,q.typeName="agent.v1.SelectedPastChat",q.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class R extends s.Message{constructor(e){super(),this.name="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(R,e,t)}}R.runtime=s.proto3,R.typeName="agent.v1.RecentAgent",R.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"overview",kind:"scalar",T:9,opt:!0}]));class M extends s.Message{constructor(e){super(),this.recentAgents=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(M,e,t)}}M.runtime=s.proto3,M.typeName="agent.v1.RecentAgentsContext",M.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"recent_agents",kind:"message",T:R,repeated:!0}]));class O extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(O,e,t)}}O.runtime=s.proto3,O.typeName="agent.v1.CallFrame",O.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"function_name",kind:"scalar",T:9,opt:!0},{no:2,name:"url",kind:"scalar",T:9,opt:!0},{no:3,name:"line_number",kind:"scalar",T:5,opt:!0},{no:4,name:"column_number",kind:"scalar",T:5,opt:!0}]));class F extends s.Message{constructor(e){super(),this.callFrames=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(F,e,t)}}F.runtime=s.proto3,F.typeName="agent.v1.StackTrace",F.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"call_frames",kind:"message",T:O,repeated:!0},{no:2,name:"raw_stack_trace",kind:"scalar",T:9,opt:!0}]));class A extends s.Message{constructor(e){super(),this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(A,e,t)}}A.runtime=s.proto3,A.typeName="agent.v1.SelectedConsoleLog",A.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:1},{no:3,name:"level",kind:"scalar",T:9},{no:4,name:"client_name",kind:"scalar",T:9},{no:5,name:"session_id",kind:"scalar",T:9},{no:6,name:"stack_trace",kind:"message",T:F,opt:!0},{no:7,name:"object_data_json",kind:"scalar",T:9,opt:!0}]));class L extends s.Message{constructor(e){super(),this.element="",this.xpath="",this.textContent="",this.extra="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(L,e,t)}}L.runtime=s.proto3,L.typeName="agent.v1.SelectedUIElement",L.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"element",kind:"scalar",T:9},{no:2,name:"xpath",kind:"scalar",T:9},{no:3,name:"text_content",kind:"scalar",T:9},{no:4,name:"extra",kind:"scalar",T:9},{no:5,name:"component",kind:"scalar",T:9,opt:!0},{no:6,name:"component_props_json",kind:"scalar",T:9,opt:!0}]));class C extends s.Message{constructor(e){super(),this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(C,e,t)}}C.runtime=s.proto3,C.typeName="agent.v1.SelectedSubagent",C.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9}]));class U extends s.Message{constructor(e){super(),this.browserId="",this.url="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(U,e,t)}}U.runtime=s.proto3,U.typeName="agent.v1.SelectedBrowser",U.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"browser_id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"page_title",kind:"scalar",T:9,opt:!0}]));class D extends s.Message{constructor(e){super(),this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(D,e,t)}}D.runtime=s.proto3,D.typeName="agent.v1.SelectedAgenticGitActionCommitParams",D.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"files_to_commit",kind:"scalar",T:9,repeated:!0},{no:2,name:"files_to_exclude_from_commit",kind:"scalar",T:9,repeated:!0},{no:3,name:"should_stage_all_changes",kind:"scalar",T:8},{no:4,name:"create_pr_draft",kind:"scalar",T:8,opt:!0},{no:5,name:"files_to_commit_with_status",kind:"message",T:H,repeated:!0},{no:6,name:"files_to_exclude_from_commit_with_status",kind:"message",T:H,repeated:!0}]));class G extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(G,e,t)}}G.runtime=s.proto3,G.typeName="agent.v1.SelectedAgenticGitActionCreateBranchParams",G.fields=s.proto3.util.newFieldList((()=>[]));class H extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(H,e,t)}}H.runtime=s.proto3,H.typeName="agent.v1.SelectedAgenticGitFileWithStatus",H.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"status",kind:"scalar",T:9,opt:!0}]));class K extends s.Message{constructor(e){super(),this.filesToPush=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(K,e,t)}}K.runtime=s.proto3,K.typeName="agent.v1.SelectedAgenticGitActionPushParams",K.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"files_to_push",kind:"scalar",T:9,repeated:!0},{no:2,name:"create_pr_draft",kind:"scalar",T:8,opt:!0}]));class W extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(W,e,t)}}W.runtime=s.proto3,W.typeName="agent.v1.SelectedAgenticGitActionFixMergeConflictsParams",W.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class Y extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Y,e,t)}}Y.runtime=s.proto3,Y.typeName="agent.v1.SelectedAgenticGitActionBabysitPrInCloudParams",Y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class z extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(z,e,t)}}z.runtime=s.proto3,z.typeName="agent.v1.SelectedAgenticGitActionUpdateBranchParams",z.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class V extends s.Message{constructor(e){super(),this.remoteBranch="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(V,e,t)}}V.runtime=s.proto3,V.typeName="agent.v1.SelectedAgenticGitActionPullLocallyParams",V.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"remote_branch",kind:"scalar",T:9}]));class Q extends s.Message{constructor(e){super(),this.params={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Q,e,t)}}Q.runtime=s.proto3,Q.typeName="agent.v1.SelectedAgenticGitAction",Q.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"commit_params",kind:"message",T:D,oneof:"params"},{no:6,name:"commit_and_push_params",kind:"message",T:D,oneof:"params"},{no:3,name:"push_params",kind:"message",T:K,oneof:"params"},{no:7,name:"create_pr_params",kind:"message",T:K,oneof:"params"},{no:8,name:"create_pr_with_changes_params",kind:"message",T:D,oneof:"params"},{no:4,name:"fix_merge_conflicts_params",kind:"message",T:W,oneof:"params"},{no:11,name:"babysit_pr_in_cloud_params",kind:"message",T:Y,oneof:"params"},{no:14,name:"apply_locally_params",kind:"message",T:V,oneof:"params"},{no:15,name:"checkout_branch_params",kind:"message",T:V,oneof:"params"},{no:12,name:"create_branch_and_commit_params",kind:"message",T:D,oneof:"params"},{no:13,name:"create_branch_commit_and_push_params",kind:"message",T:D,oneof:"params"},{no:16,name:"update_branch_params",kind:"message",T:z,oneof:"params"},{no:17,name:"create_branch_params",kind:"message",T:G,oneof:"params"},{no:5,name:"branch_context",kind:"message",T:X,opt:!0},{no:9,name:"path_to_template_file",kind:"scalar",T:9,opt:!0},{no:10,name:"path_to_template_dir",kind:"scalar",T:9,opt:!0}]));class X extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(X,e,t)}}X.runtime=s.proto3,X.typeName="agent.v1.SelectedGitBranchContext",X.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"current_branch",kind:"scalar",T:9,opt:!0},{no:2,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:3,name:"agent_branch_prefix",kind:"scalar",T:9,opt:!0}]));class $ extends s.Message{constructor(e){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=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals($,e,t)}}$.runtime=s.proto3,$.typeName="agent.v1.SelectedContext",$.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"selected_images",kind:"message",T:u,repeated:!0},{no:2,name:"invocation_context",kind:"message",T:Z,opt:!0},{no:3,name:"extra_context",kind:"scalar",T:9,repeated:!0},{no:16,name:"extra_context_entries",kind:"message",T:h,repeated:!0},{no:4,name:"files",kind:"message",T,repeated:!0},{no:5,name:"code_selections",kind:"message",T:y,repeated:!0},{no:6,name:"terminals",kind:"message",T:S,repeated:!0},{no:7,name:"terminal_selections",kind:"message",T:w,repeated:!0},{no:8,name:"folders",kind:"message",T:k,repeated:!0},{no:9,name:"external_links",kind:"message",T:J,repeated:!0},{no:10,name:"cursor_rules",kind:"message",T:v,repeated:!0},{no:18,name:"git_diff",kind:"message",T:E,opt:!0},{no:11,name:"git_diff_from_branch_to_main",kind:"message",T:b,opt:!0},{no:12,name:"cursor_commands",kind:"message",T:B,repeated:!0},{no:13,name:"documentations",kind:"message",T:I,repeated:!0},{no:14,name:"ui_elements",kind:"message",T:L,repeated:!0},{no:15,name:"console_logs",kind:"message",T:A,repeated:!0},{no:17,name:"git_commits",kind:"message",T:j,repeated:!0},{no:19,name:"past_chats",kind:"message",T:q,repeated:!0},{no:20,name:"git_pr_diff_selections",kind:"message",T:N,repeated:!0},{no:21,name:"selected_pull_requests",kind:"message",T:x,repeated:!0},{no:22,name:"selected_subagents",kind:"message",T:C,repeated:!0},{no:23,name:"selected_videos",kind:"message",T:f,repeated:!0},{no:24,name:"selected_browsers",kind:"message",T:U,repeated:!0},{no:25,name:"selected_documents",kind:"message",T:d,repeated:!0},{no:26,name:"selected_skills",kind:"message",T:l.N,repeated:!0},{no:27,name:"recent_agents_context",kind:"message",T:M,opt:!0},{no:34,name:"selected_agentic_git_action",kind:"message",T:Q,opt:!0}]));class Z extends s.Message{constructor(e){super(),this.data={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Z,e,t)}}Z.runtime=s.proto3,Z.typeName="agent.v1.InvocationContext",Z.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"slack_thread",kind:"message",T:ee,oneof:"data"},{no:2,name:"github_pr",kind:"message",T:ne,oneof:"data"},{no:3,name:"ide_state",kind:"message",T:re,oneof:"data"},{no:4,name:"microsoft_teams_thread",kind:"message",T:te,oneof:"data"},{no:10,name:"blob_id",kind:"scalar",T:12,oneof:"data"}]));class ee extends s.Message{constructor(e){super(),this.thread="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ee,e,t)}}ee.runtime=s.proto3,ee.typeName="agent.v1.InvocationContext.SlackThread",ee.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"thread",kind:"scalar",T:9},{no:2,name:"channel_name",kind:"scalar",T:9,opt:!0},{no:3,name:"channel_purpose",kind:"scalar",T:9,opt:!0},{no:4,name:"channel_topic",kind:"scalar",T:9,opt:!0},{no:5,name:"sender_name",kind:"scalar",T:9,opt:!0},{no:6,name:"sender_id",kind:"scalar",T:9,opt:!0},{no:7,name:"sender_type",kind:"scalar",T:9,opt:!0},{no:8,name:"is_directly_addressed",kind:"scalar",T:8,opt:!0}]));class te extends s.Message{constructor(e){super(),this.thread="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(te,e,t)}}te.runtime=s.proto3,te.typeName="agent.v1.InvocationContext.MicrosoftTeamsThread",te.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"thread",kind:"scalar",T:9},{no:2,name:"channel_name",kind:"scalar",T:9,opt:!0},{no:3,name:"team_name",kind:"scalar",T:9,opt:!0},{no:4,name:"channel_description",kind:"scalar",T:9,opt:!0},{no:5,name:"team_description",kind:"scalar",T:9,opt:!0}]));class ne extends s.Message{constructor(e){super(),this.title="",this.description="",this.comments="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ne,e,t)}}ne.runtime=s.proto3,ne.typeName="agent.v1.InvocationContext.GithubPR",ne.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"comments",kind:"scalar",T:9},{no:4,name:"ci_failures",kind:"scalar",T:9,opt:!0}]));class re extends s.Message{constructor(e){super(),this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(re,e,t)}}re.runtime=s.proto3,re.typeName="agent.v1.InvocationContext.IdeState",re.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"visible_files",kind:"message",T:se,repeated:!0},{no:2,name:"recently_viewed_files",kind:"message",T:se,repeated:!0},{no:3,name:"currently_viewed_prs",kind:"message",T:ie,repeated:!0}]));class se extends s.Message{constructor(e){super(),this.path="",this.totalLines=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(se,e,t)}}se.runtime=s.proto3,se.typeName="agent.v1.InvocationContext.IdeState.File",se.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:3,name:"cursor_position",kind:"message",T:oe,opt:!0},{no:4,name:"total_lines",kind:"scalar",T:5},{no:5,name:"active_command",kind:"scalar",T:9,opt:!0}]));class oe extends s.Message{constructor(e){super(),this.line=0,this.text="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(oe,e,t)}}oe.runtime=s.proto3,oe.typeName="agent.v1.InvocationContext.IdeState.File.CursorPosition",oe.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:5},{no:2,name:"text",kind:"scalar",T:9}]));class ie extends s.Message{constructor(e){super(),this.number=0,this.url="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ie,e,t)}}ie.runtime=s.proto3,ie.typeName="agent.v1.InvocationContext.IdeState.ViewedPullRequest",ie.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"title",kind:"scalar",T:9,opt:!0},{no:4,name:"folder_path",kind:"scalar",T:9,opt:!0},{no:5,name:"summary_json",kind:"scalar",T:9,opt:!0},{no:6,name:"description",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/setup_vm_environment_tool_pb.js"(e,t,n){n.d(t,{BI:()=>s,MU:()=>a,r$:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.installCommand="",this.startCommand="",this.dockerfileContents="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.SetupVmEnvironmentArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"install_command",kind:"scalar",T:9},{no:3,name:"start_command",kind:"scalar",T:9},{no:4,name:"dockerfile_contents",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.SetupVmEnvironmentResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"}]));class i extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.SetupVmEnvironmentSuccess",i.fields=r.proto3.util.newFieldList((()=>[]));class a extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SetupVmEnvironmentToolCall",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]))},"../proto/dist/generated/agent/v1/shell_exec_pb.js"(e,t,n){n.d(t,{$F:()=>y,Db:()=>b,E4:()=>h,HO:()=>p,In:()=>k,W4:()=>v,a:()=>J,jn:()=>F,o0:()=>E,pZ:()=>O,rI:()=>B,tD:()=>x,vb:()=>j});var r,s,o,i,a,l,u=n("@bufbuild/protobuf"),m=n("../proto/dist/generated/agent/v1/sandbox_pb.js"),c=n("../proto/dist/generated/agent/v1/utils_pb.js"),d=n("../proto/dist/generated/agent/v1/hook_additional_context_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CANCEL=1]="CANCEL",e[e.BACKGROUND=2]="BACKGROUND"}(r||(r={})),u.proto3.util.setEnumType(r,"agent.v1.TimeoutBehavior",[{no:0,name:"TIMEOUT_BEHAVIOR_UNSPECIFIED"},{no:1,name:"TIMEOUT_BEHAVIOR_CANCEL"},{no:2,name:"TIMEOUT_BEHAVIOR_BACKGROUND"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TIMEOUT=1]="TIMEOUT",e[e.USER_REQUEST=2]="USER_REQUEST"}(s||(s={})),u.proto3.util.setEnumType(s,"agent.v1.ShellBackgroundReason",[{no:0,name:"SHELL_BACKGROUND_REASON_UNSPECIFIED"},{no:1,name:"SHELL_BACKGROUND_REASON_TIMEOUT"},{no:2,name:"SHELL_BACKGROUND_REASON_USER_REQUEST"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACCEPTED=1]="ACCEPTED",e[e.NOT_FOUND=2]="NOT_FOUND"}(o||(o={})),u.proto3.util.setEnumType(o,"agent.v1.ForceBackgroundShellStatus",[{no:0,name:"FORCE_BACKGROUND_SHELL_STATUS_UNSPECIFIED"},{no:1,name:"FORCE_BACKGROUND_SHELL_STATUS_ACCEPTED"},{no:2,name:"FORCE_BACKGROUND_SHELL_STATUS_NOT_FOUND"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.USER_ABORT=1]="USER_ABORT",e[e.TIMEOUT=2]="TIMEOUT"}(i||(i={})),u.proto3.util.setEnumType(i,"agent.v1.ShellAbortReason",[{no:0,name:"SHELL_ABORT_REASON_UNSPECIFIED"},{no:1,name:"SHELL_ABORT_REASON_USER_ABORT"},{no:2,name:"SHELL_ABORT_REASON_TIMEOUT"}]);class p extends u.Message{constructor(e){super(),this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(p,e,t)}}p.runtime=u.proto3,p.typeName="agent.v1.ShellCommandParsingResult",p.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"parsing_failed",kind:"scalar",T:8},{no:2,name:"executable_commands",kind:"message",T:g,repeated:!0},{no:3,name:"has_redirects",kind:"scalar",T:8},{no:4,name:"has_command_substitution",kind:"scalar",T:8},{no:5,name:"all_redirects_are_dev_null",kind:"scalar",T:8,opt:!0},{no:6,name:"redirects",kind:"message",T:_,repeated:!0}]));class f extends u.Message{constructor(e){super(),this.type="",this.value="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(f,e,t)}}f.runtime=u.proto3,f.typeName="agent.v1.ShellCommandParsingResult.ExecutableCommandArg",f.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class g extends u.Message{constructor(e){super(),this.name="",this.args=[],this.fullText="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(g,e,t)}}g.runtime=u.proto3,g.typeName="agent.v1.ShellCommandParsingResult.ExecutableCommand",g.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"args",kind:"message",T:f,repeated:!0},{no:3,name:"full_text",kind:"scalar",T:9}]));class _ extends u.Message{constructor(e){super(),this.operator="",this.destinationFds=[],this.targetNodeType="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(_,e,t)}}_.runtime=u.proto3,_.typeName="agent.v1.ShellCommandParsingResult.Redirect",_.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"operator",kind:"scalar",T:9},{no:2,name:"destination_fds",kind:"scalar",T:13,repeated:!0},{no:3,name:"target_node_type",kind:"scalar",T:9},{no:4,name:"target_text",kind:"scalar",T:9,opt:!0}]));class h extends u.Message{constructor(e){super(),this.commands=[],this.suggestedSandboxMode=a.UNSPECIFIED,this.classificationFailed=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(h,e,t)}}h.runtime=u.proto3,h.typeName="agent.v1.CommandClassifierResult",h.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"commands",kind:"message",T,repeated:!0},{no:2,name:"suggested_sandbox_mode",kind:"enum",T:u.proto3.getEnumType(a)},{no:3,name:"classification_failed",kind:"scalar",T:8}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SANDBOX=1]="SANDBOX",e[e.NO_SANDBOX=2]="NO_SANDBOX",e[e.UNDETERMINED=3]="UNDETERMINED"}(a||(a={})),u.proto3.util.setEnumType(a,"agent.v1.CommandClassifierResult.SuggestedSandboxMode",[{no:0,name:"SUGGESTED_SANDBOX_MODE_UNSPECIFIED"},{no:1,name:"SUGGESTED_SANDBOX_MODE_SANDBOX"},{no:2,name:"SUGGESTED_SANDBOX_MODE_NO_SANDBOX"},{no:3,name:"SUGGESTED_SANDBOX_MODE_UNDETERMINED"}]);class T extends u.Message{constructor(e){super(),this.name="",this.arguments=[],this.subcommandTokens=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(T,e,t)}}T.runtime=u.proto3,T.typeName="agent.v1.CommandClassifierResult.ClassifiedCommand",T.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"arguments",kind:"scalar",T:9,repeated:!0},{no:3,name:"suggested_allowlist_entry",kind:"scalar",T:9,opt:!0},{no:4,name:"subcommand_tokens",kind:"scalar",T:9,repeated:!0}]));class y extends u.Message{constructor(e){super(),this.pattern="",this.reason="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(y,e,t)}}y.runtime=u.proto3,y.typeName="agent.v1.ShellOutputNotificationConfig",y.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9},{no:3,name:"debounce",kind:"scalar",T:1,opt:!0},{no:4,name:"notification_limit",kind:"scalar",T:5,opt:!0}]));class S extends u.Message{constructor(e){super(),this.toolCallId="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(S,e,t)}}S.runtime=u.proto3,S.typeName="agent.v1.ForceBackgroundShellArgs",S.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class w extends u.Message{constructor(e){super(),this.status=o.UNSPECIFIED,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(w,e,t)}}w.runtime=u.proto3,w.typeName="agent.v1.ForceBackgroundShellResult",w.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:u.proto3.getEnumType(o)},{no:2,name:"shell_result",kind:"message",T:v,opt:!0}]));class k extends u.Message{constructor(e){super(),this.kind=l.UNSPECIFIED,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(k,e,t)}}k.runtime=u.proto3,k.typeName="agent.v1.ShellHookApprovalRequirement",k.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"kind",kind:"enum",T:u.proto3.getEnumType(l)},{no:2,name:"reason",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FORCE_PROMPT=1]="FORCE_PROMPT"}(l||(l={})),u.proto3.util.setEnumType(l,"agent.v1.ShellHookApprovalRequirement.Kind",[{no:0,name:"KIND_UNSPECIFIED"},{no:1,name:"KIND_FORCE_PROMPT"}]);class J extends u.Message{constructor(e){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=r.UNSPECIFIED,this.closeStdin=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(J,e,t)}}J.runtime=u.proto3,J.typeName="agent.v1.ShellArgs",J.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"timeout",kind:"scalar",T:5},{no:4,name:"tool_call_id",kind:"scalar",T:9},{no:5,name:"simple_commands",kind:"scalar",T:9,repeated:!0},{no:6,name:"has_input_redirect",kind:"scalar",T:8},{no:7,name:"has_output_redirect",kind:"scalar",T:8},{no:8,name:"parsing_result",kind:"message",T:p},{no:9,name:"requested_sandbox_policy",kind:"message",T:m.Mw,opt:!0},{no:10,name:"file_output_threshold_bytes",kind:"scalar",T:4,opt:!0},{no:11,name:"is_background",kind:"scalar",T:8},{no:12,name:"skip_approval",kind:"scalar",T:8},{no:13,name:"timeout_behavior",kind:"enum",T:u.proto3.getEnumType(r)},{no:14,name:"hard_timeout",kind:"scalar",T:5,opt:!0},{no:15,name:"description",kind:"scalar",T:9,opt:!0},{no:16,name:"classifier_result",kind:"message",T:h,opt:!0},{no:17,name:"close_stdin",kind:"scalar",T:8},{no:18,name:"output_notification",kind:"message",T:y,opt:!0},{no:19,name:"smart_mode_approval",kind:"message",T:c.UC,opt:!0},{no:20,name:"hook_approval_requirement",kind:"message",T:k,opt:!0},{no:21,name:"conversation_id",kind:"scalar",T:9,opt:!0}]));class v extends u.Message{constructor(e){super(),this.result={case:void 0},u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(v,e,t)}}v.runtime=u.proto3,v.typeName="agent.v1.ShellResult",v.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:q,oneof:"result"},{no:2,name:"failure",kind:"message",T:R,oneof:"result"},{no:3,name:"timeout",kind:"message",T:M,oneof:"result"},{no:4,name:"rejected",kind:"message",T:O,oneof:"result"},{no:5,name:"spawn_error",kind:"message",T:A,oneof:"result"},{no:7,name:"permission_denied",kind:"message",T:F,oneof:"result"},{no:101,name:"sandbox_policy",kind:"message",T:m.Mw,opt:!0},{no:102,name:"is_background",kind:"scalar",T:8,opt:!0},{no:103,name:"terminals_folder",kind:"scalar",T:9,opt:!0},{no:104,name:"pid",kind:"scalar",T:13,opt:!0}]));class E extends u.Message{constructor(e){super(),this.data="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(E,e,t)}}E.runtime=u.proto3,E.typeName="agent.v1.ShellStreamStdout",E.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class b extends u.Message{constructor(e){super(),this.data="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(b,e,t)}}b.runtime=u.proto3,b.typeName="agent.v1.ShellStreamStderr",b.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class j extends u.Message{constructor(e){super(),this.code=0,this.cwd="",this.aborted=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(j,e,t)}}j.runtime=u.proto3,j.typeName="agent.v1.ShellStreamExit",j.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"code",kind:"scalar",T:13},{no:2,name:"cwd",kind:"scalar",T:9},{no:3,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:4,name:"aborted",kind:"scalar",T:8},{no:5,name:"abort_reason",kind:"enum",T:u.proto3.getEnumType(i),opt:!0},{no:6,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0}]));class x extends u.Message{constructor(e){super(),u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(x,e,t)}}x.runtime=u.proto3,x.typeName="agent.v1.ShellStreamStart",x.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"sandbox_policy",kind:"message",T:m.Mw,opt:!0}]));class N extends u.Message{constructor(e){super(),this.shellId=0,this.command="",this.workingDirectory="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(N,e,t)}}N.runtime=u.proto3,N.typeName="agent.v1.ShellStreamBackgrounded",N.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"command",kind:"scalar",T:9},{no:3,name:"working_directory",kind:"scalar",T:9},{no:4,name:"pid",kind:"scalar",T:13,opt:!0},{no:5,name:"ms_to_wait",kind:"scalar",T:5,opt:!0},{no:6,name:"reason",kind:"enum",T:u.proto3.getEnumType(s),opt:!0}]));class P extends u.Message{constructor(e){super(),this.hookAdditionalContexts=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(P,e,t)}}P.runtime=u.proto3,P.typeName="agent.v1.ShellStreamHookContext",P.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"hook_additional_contexts",kind:"message",T:d.C,repeated:!0}]));class B extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.sandboxPolicyType="",this.reason="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(B,e,t)}}B.runtime=u.proto3,B.typeName="agent.v1.ShellSandboxUnsupported",B.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"sandbox_policy_type",kind:"scalar",T:9},{no:4,name:"reason",kind:"scalar",T:9},{no:5,name:"is_readonly",kind:"scalar",T:8}]));class I extends u.Message{constructor(e){super(),this.event={case:void 0},u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(I,e,t)}}I.runtime=u.proto3,I.typeName="agent.v1.ShellStream",I.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:E,oneof:"event"},{no:2,name:"stderr",kind:"message",T:b,oneof:"event"},{no:3,name:"exit",kind:"message",T:j,oneof:"event"},{no:4,name:"start",kind:"message",T:x,oneof:"event"},{no:5,name:"rejected",kind:"message",T:O,oneof:"event"},{no:6,name:"permission_denied",kind:"message",T:F,oneof:"event"},{no:7,name:"backgrounded",kind:"message",T:N,oneof:"event"},{no:8,name:"hook_context",kind:"message",T:P,oneof:"event"},{no:9,name:"sandbox_unsupported",kind:"message",T:B,oneof:"event"}]));class q extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(q,e,t)}}q.runtime=u.proto3,q.typeName="agent.v1.ShellSuccess",q.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5},{no:4,name:"signal",kind:"scalar",T:9},{no:5,name:"stdout",kind:"scalar",T:9},{no:6,name:"stderr",kind:"scalar",T:9},{no:7,name:"execution_time",kind:"scalar",T:5},{no:8,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:9,name:"shell_id",kind:"scalar",T:13,opt:!0},{no:10,name:"interleaved_output",kind:"scalar",T:9,opt:!0},{no:11,name:"pid",kind:"scalar",T:13,opt:!0},{no:12,name:"ms_to_wait",kind:"scalar",T:5,opt:!0},{no:13,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0},{no:14,name:"background_reason",kind:"enum",T:u.proto3.getEnumType(s),opt:!0},{no:15,name:"output_head",kind:"scalar",T:9,opt:!0},{no:16,name:"output_tail",kind:"scalar",T:9,opt:!0},{no:17,name:"elided_chars",kind:"scalar",T:13,opt:!0}]));class R extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(R,e,t)}}R.runtime=u.proto3,R.typeName="agent.v1.ShellFailure",R.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5},{no:4,name:"signal",kind:"scalar",T:9},{no:5,name:"stdout",kind:"scalar",T:9},{no:6,name:"stderr",kind:"scalar",T:9},{no:7,name:"execution_time",kind:"scalar",T:5},{no:8,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:9,name:"interleaved_output",kind:"scalar",T:9,opt:!0},{no:10,name:"abort_reason",kind:"enum",T:u.proto3.getEnumType(i),opt:!0},{no:11,name:"aborted",kind:"scalar",T:8},{no:12,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0},{no:13,name:"output_head",kind:"scalar",T:9,opt:!0},{no:14,name:"output_tail",kind:"scalar",T:9,opt:!0},{no:15,name:"elided_chars",kind:"scalar",T:13,opt:!0}]));class M extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.timeoutMs=0,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(M,e,t)}}M.runtime=u.proto3,M.typeName="agent.v1.ShellTimeout",M.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"timeout_ms",kind:"scalar",T:5}]));class O extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(O,e,t)}}O.runtime=u.proto3,O.typeName="agent.v1.ShellRejected",O.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"reason",kind:"scalar",T:9},{no:4,name:"is_readonly",kind:"scalar",T:8}]));class F extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(F,e,t)}}F.runtime=u.proto3,F.typeName="agent.v1.ShellPermissionDenied",F.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9},{no:4,name:"is_readonly",kind:"scalar",T:8}]));class A extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(A,e,t)}}A.runtime=u.proto3,A.typeName="agent.v1.ShellSpawnError",A.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9}]));class L extends u.Message{constructor(e){super(),this.stdoutDelta="",this.stderrDelta="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(L,e,t)}}L.runtime=u.proto3,L.typeName="agent.v1.ShellPartialResult",L.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"stdout_delta",kind:"scalar",T:9},{no:2,name:"stderr_delta",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/subagents_pb.js"(e,t,n){n.d(t,{FL:()=>s,_L:()=>i,zz:()=>y});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT",e[e.READONLY=2]="READONLY",e[e.AGENT_ONLY=3]="AGENT_ONLY"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.CustomSubagentPermissionMode",[{no:0,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_UNSPECIFIED"},{no:1,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_DEFAULT"},{no:2,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_READONLY"},{no:3,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_AGENT_ONLY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT=1]="AGENT",e[e.PLAN=2]="PLAN"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.TaskMode",[{no:0,name:"TASK_MODE_UNSPECIFIED"},{no:1,name:"TASK_MODE_AGENT"},{no:2,name:"TASK_MODE_PLAN"}]);class i extends o.Message{constructor(e){super(),this.type={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.SubagentType",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"unspecified",kind:"message",T:a,oneof:"type"},{no:2,name:"computer_use",kind:"message",T:l,oneof:"type"},{no:3,name:"custom",kind:"message",T,oneof:"type"},{no:4,name:"explore",kind:"message",T:u,oneof:"type"},{no:5,name:"media_review",kind:"message",T:m,oneof:"type"},{no:6,name:"bash",kind:"message",T:c,oneof:"type"},{no:7,name:"browser_use",kind:"message",T:p,oneof:"type"},{no:8,name:"shell",kind:"message",T:d,oneof:"type"},{no:9,name:"vm_setup_helper",kind:"message",T:f,oneof:"type"},{no:10,name:"debug",kind:"message",T:g,oneof:"type"},{no:11,name:"cursor_guide",kind:"message",T:_,oneof:"type"},{no:12,name:"watch_video",kind:"message",T:h,oneof:"type"}]));class a extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.SubagentTypeUnspecified",a.fields=o.proto3.util.newFieldList((()=>[]));class l extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.SubagentTypeComputerUse",l.fields=o.proto3.util.newFieldList((()=>[]));class u extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.SubagentTypeExplore",u.fields=o.proto3.util.newFieldList((()=>[]));class m extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.SubagentTypeMediaReview",m.fields=o.proto3.util.newFieldList((()=>[]));class c extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.SubagentTypeBash",c.fields=o.proto3.util.newFieldList((()=>[]));class d extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}d.runtime=o.proto3,d.typeName="agent.v1.SubagentTypeShell",d.fields=o.proto3.util.newFieldList((()=>[]));class p extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(p,e,t)}}p.runtime=o.proto3,p.typeName="agent.v1.SubagentTypeBrowserUse",p.fields=o.proto3.util.newFieldList((()=>[]));class f extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(f,e,t)}}f.runtime=o.proto3,f.typeName="agent.v1.SubagentTypeVmSetupHelper",f.fields=o.proto3.util.newFieldList((()=>[]));class g extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(g,e,t)}}g.runtime=o.proto3,g.typeName="agent.v1.SubagentTypeDebug",g.fields=o.proto3.util.newFieldList((()=>[]));class _ extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(_,e,t)}}_.runtime=o.proto3,_.typeName="agent.v1.SubagentTypeCursorGuide",_.fields=o.proto3.util.newFieldList((()=>[]));class h extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(h,e,t)}}h.runtime=o.proto3,h.typeName="agent.v1.SubagentTypeWatchVideo",h.fields=o.proto3.util.newFieldList((()=>[]));class T extends o.Message{constructor(e){super(),this.name="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(T,e,t)}}T.runtime=o.proto3,T.typeName="agent.v1.SubagentTypeCustom",T.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9}]));class y extends o.Message{constructor(e){super(),this.fullPath="",this.name="",this.description="",this.tools=[],this.model="",this.prompt="",this.permissionMode=r.UNSPECIFIED,this.isBackground=!1,this.forceDefaultModel=!1,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(y,e,t)}}y.runtime=o.proto3,y.typeName="agent.v1.CustomSubagent",y.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9},{no:4,name:"tools",kind:"scalar",T:9,repeated:!0},{no:5,name:"model",kind:"scalar",T:9},{no:6,name:"prompt",kind:"scalar",T:9},{no:7,name:"permission_mode",kind:"enum",T:o.proto3.getEnumType(r)},{no:8,name:"is_background",kind:"scalar",T:8},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"force_default_model",kind:"scalar",T:8},{no:14,name:"source",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/switch_mode_tool_pb.js"(e,t,n){n.d(t,{Cs:()=>u,Nc:()=>m,w$:()=>c});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.targetModeId="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.SwitchModeArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"target_mode_id",kind:"scalar",T:9},{no:2,name:"explanation",kind:"scalar",T:9,opt:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.SwitchModeResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.fromModeId="",this.toModeId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.SwitchModeSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"from_mode_id",kind:"scalar",T:9},{no:2,name:"to_mode_id",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SwitchModeError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.SwitchModeRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.SwitchModeToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.SwitchModeRequestQuery",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class c extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.SwitchModeRequestResponse",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:d,oneof:"result"},{no:2,name:"rejected",kind:"message",T:p,oneof:"result"}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.SwitchModeRequestResponse.Approved",d.fields=r.proto3.util.newFieldList((()=>[]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.SwitchModeRequestResponse.Rejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/todo_tool_pb.js"(e,t,n){n.d(t,{AJ:()=>c,bk:()=>i,kW:()=>o});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PENDING=1]="PENDING",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.CANCELLED=4]="CANCELLED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.TodoStatus",[{no:0,name:"TODO_STATUS_UNSPECIFIED"},{no:1,name:"TODO_STATUS_PENDING"},{no:2,name:"TODO_STATUS_IN_PROGRESS"},{no:3,name:"TODO_STATUS_COMPLETED"},{no:4,name:"TODO_STATUS_CANCELLED"}]);class o extends s.Message{constructor(e){super(),this.id="",this.content="",this.status=r.UNSPECIFIED,this.createdAt=s.protoInt64.zero,this.updatedAt=s.protoInt64.zero,this.dependencies=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.TodoItem",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"created_at",kind:"scalar",T:3},{no:5,name:"updated_at",kind:"scalar",T:3},{no:6,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class i extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.UpdateTodosToolCall",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:l}]));class a extends s.Message{constructor(e){super(),this.todos=[],this.merge=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.UpdateTodosArgs",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"merge",kind:"scalar",T:8}]));class l extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.UpdateTodosResult",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"}]));class u extends s.Message{constructor(e){super(),this.todos=[],this.totalCount=0,this.wasMerge=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.UpdateTodosSuccess",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"total_count",kind:"scalar",T:5},{no:3,name:"was_merge",kind:"scalar",T:8}]));class m extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.UpdateTodosError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class c extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.ReadTodosToolCall",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:d},{no:2,name:"result",kind:"message",T:p}]));class d extends s.Message{constructor(e){super(),this.statusFilter=[],this.idFilter=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.ReadTodosArgs",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"status_filter",kind:"enum",T:s.proto3.getEnumType(r),repeated:!0},{no:2,name:"id_filter",kind:"scalar",T:9,repeated:!0}]));class p extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.ReadTodosResult",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:f,oneof:"result"},{no:2,name:"error",kind:"message",T:g,oneof:"result"}]));class f extends s.Message{constructor(e){super(),this.todos=[],this.totalCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.ReadTodosSuccess",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"total_count",kind:"scalar",T:5}]));class g extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.ReadTodosError",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/utils_pb.js"(e,t,n){n.d(t,{Q6:()=>s,UC:()=>a,pV:()=>i,yX:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.Range",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start",kind:"message",T:o},{no:2,name:"end",kind:"message",T:o}]));class o extends r.Message{constructor(e){super(),this.line=0,this.column=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.Position",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:13},{no:2,name:"column",kind:"scalar",T:13}]));class i extends r.Message{constructor(e){super(),this.filePath="",this.sizeBytes=r.protoInt64.zero,this.lineCount=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.OutputLocation",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"size_bytes",kind:"scalar",T:3},{no:3,name:"line_count",kind:"scalar",T:3}]));class a extends r.Message{constructor(e){super(),this.requestId="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SmartModeApproval",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/web_fetch_tool_pb.js"(e,t,n){n.d(t,{Un:()=>c,fS:()=>d,fd:()=>m});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js");class o extends r.Message{constructor(e){super(),this.url="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.WebFetchArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.WebFetchResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"},{no:3,name:"rejected",kind:"message",T:u,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.url="",this.markdown="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.WebFetchSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"markdown",kind:"scalar",T:9},{no:3,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class l extends r.Message{constructor(e){super(),this.url="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.WebFetchError",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.WebFetchRejected",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.WebFetchToolCall",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:i}]));class c extends r.Message{constructor(e){super(),this.skipApproval=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WebFetchRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"skip_approval",kind:"scalar",T:8},{no:3,name:"smart_mode_approval",kind:"message",T:s.UC}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WebFetchRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:p,oneof:"result"},{no:2,name:"rejected",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WebFetchRequestResponse.Approved",p.fields=r.proto3.util.newFieldList((()=>[]));class f extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WebFetchRequestResponse.Rejected",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/web_search_tool_pb.js"(e,t,n){n.d(t,{KL:()=>c,lI:()=>d,pn:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.searchTerm="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.WebSearchArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"search_term",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.WebSearchResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.references=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.WebSearchSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"references",kind:"message",T:u,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.WebSearchError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.WebSearchRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.title="",this.url="",this.chunk="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.WebSearchReference",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"chunk",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.WebSearchToolCall",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WebSearchRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WebSearchRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:p,oneof:"result"},{no:2,name:"rejected",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WebSearchRequestResponse.Approved",p.fields=r.proto3.util.newFieldList((()=>[]));class f extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WebSearchRequestResponse.Rejected",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/aiserver/v1/repository_pb.js"(e,t,n){n.d(t,{PT:()=>Gt});var r,s,o,i,a,l,u,m,c,d,p,f,g,_,h,T,y,S,w,k,J,v,E,b,j,x,N,P,B,I,q,R,M,O,F,A=n("@bufbuild/protobuf"),L=n("../proto/dist/generated/aiserver/v1/utils_pb.js");class C extends A.Message{constructor(e){super(),this.files=[],this.targetDir="",this.repo="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(C,e,t)}}C.runtime=A.proto3,C.typeName="aiserver.v1.CreateExperimentalIndexRequest",C.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"files",kind:"scalar",T:9,repeated:!0},{no:2,name:"target_dir",kind:"scalar",T:9},{no:3,name:"repo",kind:"scalar",T:9}]));class U extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(U,e,t)}}U.runtime=A.proto3,U.typeName="aiserver.v1.CreateExperimentalIndexResponse",U.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class D extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(D,e,t)}}D.runtime=A.proto3,D.typeName="aiserver.v1.ListExperimentalIndexFilesRequest",D.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class G extends A.Message{constructor(e){super(),this.indexId="",this.files=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(G,e,t)}}G.runtime=A.proto3,G.typeName="aiserver.v1.ListExperimentalIndexFilesResponse",G.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"files",kind:"message",T:he,repeated:!0}]));class H extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(H,e,t)}}H.runtime=A.proto3,H.typeName="aiserver.v1.ListenExperimentalIndexRequest",H.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class K extends A.Message{constructor(e){super(),this.indexId="",this.item={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(K,e,t)}}K.runtime=A.proto3,K.typeName="aiserver.v1.ListenExperimentalIndexResponse",K.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"ready",kind:"message",T:W,oneof:"item"},{no:3,name:"register",kind:"message",T:Y,oneof:"item"},{no:4,name:"choose",kind:"message",T:z,oneof:"item"},{no:5,name:"summarize",kind:"message",T:V,oneof:"item"},{no:6,name:"error",kind:"message",T:Q,oneof:"item"}]));class W extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(W,e,t)}}W.runtime=A.proto3,W.typeName="aiserver.v1.ListenExperimentalIndexResponse.ReadyItem",W.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"request",kind:"message",T:H}]));class Y extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Y,e,t)}}Y.runtime=A.proto3,Y.typeName="aiserver.v1.ListenExperimentalIndexResponse.RegisterItem",Y.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:$},{no:2,name:"request",kind:"message",T:X},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class z extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(z,e,t)}}z.runtime=A.proto3,z.typeName="aiserver.v1.ListenExperimentalIndexResponse.ChooseItem",z.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:ie},{no:2,name:"request",kind:"message",T:re},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class V extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(V,e,t)}}V.runtime=A.proto3,V.typeName="aiserver.v1.ListenExperimentalIndexResponse.SummarizeItem",V.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:de},{no:2,name:"request",kind:"message",T:ce},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class Q extends A.Message{constructor(e){super(),this.message="",this.statusCode=0,this.request={case:void 0},this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Q,e,t)}}Q.runtime=A.proto3,Q.typeName="aiserver.v1.ListenExperimentalIndexResponse.ErrorItem",Q.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"status_code",kind:"scalar",T:5},{no:3,name:"register",kind:"message",T:X,oneof:"request"},{no:4,name:"choose",kind:"message",T:re,oneof:"request"},{no:5,name:"summarize",kind:"message",T:ce,oneof:"request"},{no:6,name:"req_uuid",kind:"scalar",T:9}]));class X extends A.Message{constructor(e){super(),this.indexId="",this.workspaceRelativePath="",this.content=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(X,e,t)}}X.runtime=A.proto3,X.typeName="aiserver.v1.RegisterFileToIndexRequest",X.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"workspace_relative_path",kind:"scalar",T:9},{no:3,name:"root_context_node",kind:"message",T:ye},{no:4,name:"content",kind:"scalar",T:9,repeated:!0}]));class $ extends A.Message{constructor(e){super(),this.fileId="",this.rootContextNodeId="",this.dependencyResolutionAttempts=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($,e,t)}}$.runtime=A.proto3,$.typeName="aiserver.v1.RegisterFileToIndexResponse",$.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9},{no:2,name:"root_context_node_id",kind:"scalar",T:9},{no:3,name:"dependency_resolution_attempts",kind:"message",T:Se,repeated:!0},{no:4,name:"file_data",kind:"message",T:he}]));class Z extends A.Message{constructor(e){super(),this.indexId="",this.fileId="",this.dependencyResolutionResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Z,e,t)}}Z.runtime=A.proto3,Z.typeName="aiserver.v1.SetupIndexDependenciesRequest",Z.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:3,name:"file_id",kind:"scalar",T:9},{no:2,name:"dependency_resolution_results",kind:"message",T:we,repeated:!0}]));class ee extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ee,e,t)}}ee.runtime=A.proto3,ee.typeName="aiserver.v1.SetupIndexDependenciesResponse",ee.fields=A.proto3.util.newFieldList((()=>[]));class te extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(te,e,t)}}te.runtime=A.proto3,te.typeName="aiserver.v1.ComputeIndexTopoSortRequest",te.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class ne extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ne,e,t)}}ne.runtime=A.proto3,ne.typeName="aiserver.v1.ComputeIndexTopoSortResponse",ne.fields=A.proto3.util.newFieldList((()=>[]));class re extends A.Message{constructor(e){super(),this.indexId="",this.request={case:void 0},this.recompute=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(re,e,t)}}re.runtime=A.proto3,re.typeName="aiserver.v1.ChooseCodeReferencesRequest",re.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"file",kind:"message",T:se,oneof:"request"},{no:3,name:"node",kind:"message",T:oe,oneof:"request"},{no:4,name:"recompute",kind:"scalar",T:8}]));class se extends A.Message{constructor(e){super(),this.fileId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(se,e,t)}}se.runtime=A.proto3,se.typeName="aiserver.v1.ChooseCodeReferencesRequest.FileRequest",se.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9}]));class oe extends A.Message{constructor(e){super(),this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(oe,e,t)}}oe.runtime=A.proto3,oe.typeName="aiserver.v1.ChooseCodeReferencesRequest.NodeRequest",oe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9}]));class ie extends A.Message{constructor(e){super(),this.response={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ie,e,t)}}ie.runtime=A.proto3,ie.typeName="aiserver.v1.ChooseCodeReferencesResponse",ie.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:le,oneof:"response"},{no:2,name:"node",kind:"message",T:ae,oneof:"response"}]));class ae extends A.Message{constructor(e){super(),this.nodeId="",this.actions=[],this.skipped=!1,this.dependencies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ae,e,t)}}ae.runtime=A.proto3,ae.typeName="aiserver.v1.ChooseCodeReferencesResponse.NodeResponse",ae.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"message",T:xe,repeated:!0},{no:3,name:"skipped",kind:"scalar",T:8},{no:4,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class le extends A.Message{constructor(e){super(),this.fileId="",this.nodeResponses=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(le,e,t)}}le.runtime=A.proto3,le.typeName="aiserver.v1.ChooseCodeReferencesResponse.FileResponse",le.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9},{no:2,name:"node_responses",kind:"message",T:ae,repeated:!0}]));class ue extends A.Message{constructor(e){super(),this.nodeId="",this.references=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ue).fromBinary(e,t)}static fromJson(e,t){return(new ue).fromJson(e,t)}static fromJsonString(e,t){return(new ue).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ue,e,t)}}ue.runtime=A.proto3,ue.typeName="aiserver.v1.RegisterCodeReferencesRequest",ue.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"references",kind:"message",T:ve,repeated:!0}]));class me extends A.Message{constructor(e){super(),this.dependencies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new me).fromBinary(e,t)}static fromJson(e,t){return(new me).fromJson(e,t)}static fromJsonString(e,t){return(new me).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(me,e,t)}}me.runtime=A.proto3,me.typeName="aiserver.v1.RegisterCodeReferencesResponse",me.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class ce extends A.Message{constructor(e){super(),this.indexId="",this.nodeId="",this.recompute=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ce).fromBinary(e,t)}static fromJson(e,t){return(new ce).fromJson(e,t)}static fromJsonString(e,t){return(new ce).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ce,e,t)}}ce.runtime=A.proto3,ce.typeName="aiserver.v1.SummarizeWithReferencesRequest",ce.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"node_id",kind:"scalar",T:9},{no:3,name:"recompute",kind:"scalar",T:8}]));class de extends A.Message{constructor(e){super(),this.response={case:void 0},this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(de,e,t)}}de.runtime=A.proto3,de.typeName="aiserver.v1.SummarizeWithReferencesResponse",de.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:pe,oneof:"response"},{no:2,name:"dependency",kind:"message",T:fe,oneof:"response"},{no:3,name:"node_id",kind:"scalar",T:9}]));class pe extends A.Message{constructor(e){super(),this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pe).fromBinary(e,t)}static fromJson(e,t){return(new pe).fromJson(e,t)}static fromJsonString(e,t){return(new pe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pe,e,t)}}pe.runtime=A.proto3,pe.typeName="aiserver.v1.SummarizeWithReferencesResponse.Success",pe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class fe extends A.Message{constructor(e){super(),this.nodes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fe).fromBinary(e,t)}static fromJson(e,t){return(new fe).fromJson(e,t)}static fromJsonString(e,t){return(new fe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(fe,e,t)}}fe.runtime=A.proto3,fe.typeName="aiserver.v1.SummarizeWithReferencesResponse.Dependency",fe.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"nodes",kind:"scalar",T:9,repeated:!0}]));class ge extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ge).fromBinary(e,t)}static fromJson(e,t){return(new ge).fromJson(e,t)}static fromJsonString(e,t){return(new ge).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ge,e,t)}}ge.runtime=A.proto3,ge.typeName="aiserver.v1.RequestReceivedResponse",ge.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"req_uuid",kind:"scalar",T:9}]));class _e extends A.Message{constructor(e){super(),this.indexId="",this.id="",this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_e,e,t)}}_e.runtime=A.proto3,_e.typeName="aiserver.v1.ReflectionData",_e.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"id",kind:"scalar",T:9},{no:3,name:"summary",kind:"scalar",T:9}]));class he extends A.Message{constructor(e){super(),this.indexId="",this.workspaceRelativePath="",this.stage="",this.order=0,this.nodes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new he).fromBinary(e,t)}static fromJson(e,t){return(new he).fromJson(e,t)}static fromJsonString(e,t){return(new he).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(he,e,t)}}he.runtime=A.proto3,he.typeName="aiserver.v1.IndexFileData",he.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"workspace_relative_path",kind:"scalar",T:9},{no:3,name:"stage",kind:"scalar",T:9},{no:4,name:"order",kind:"scalar",T:5},{no:5,name:"nodes",kind:"message",T:Te,repeated:!0}]));class Te extends A.Message{constructor(e){super(),this.nodeId="",this.stage="",this.content="",this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Te).fromBinary(e,t)}static fromJson(e,t){return(new Te).fromJson(e,t)}static fromJsonString(e,t){return(new Te).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Te,e,t)}}Te.runtime=A.proto3,Te.typeName="aiserver.v1.IndexFileData.NodeData",Te.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"stage",kind:"scalar",T:9},{no:3,name:"content",kind:"scalar",T:9},{no:4,name:"summary",kind:"scalar",T:9}]));class ye extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.startLineNumber=0,this.endLineNumber=0,this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ye,e,t)}}ye.runtime=A.proto3,ye.typeName="aiserver.v1.SerializedContextNode",ye.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"start_line_number",kind:"scalar",T:5},{no:3,name:"end_line_number",kind:"scalar",T:5},{no:4,name:"children",kind:"message",T:ye,repeated:!0},{no:5,name:"node_snippets",kind:"message",T:be}]));class Se extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Se,e,t)}}Se.runtime=A.proto3,Se.typeName="aiserver.v1.URIResolutionAttempt",Se.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"node_id",kind:"scalar",T:9},{no:3,name:"symbol",kind:"message",T:xe}]));class we extends A.Message{constructor(e){super(),this.resolvedPaths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(we,e,t)}}we.runtime=A.proto3,we.typeName="aiserver.v1.URIResolutionResult",we.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:Se},{no:2,name:"resolved_paths",kind:"scalar",T:9,repeated:!0}]));class ke extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ke,e,t)}}ke.runtime=A.proto3,ke.typeName="aiserver.v1.ExtractPathsRequest",ke.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_code_snippets",kind:"message",T:be}]));class Je extends A.Message{constructor(e){super(),this.paths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Je,e,t)}}Je.runtime=A.proto3,Je.typeName="aiserver.v1.ExtractPathsResponse",Je.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"paths",kind:"message",T:xe,repeated:!0}]));class ve extends A.Message{constructor(e){super(),this.references=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ve,e,t)}}ve.runtime=A.proto3,ve.typeName="aiserver.v1.SymbolActionResults",ve.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"action",kind:"message",T:xe},{no:2,name:"references",kind:"message",T:Ee,repeated:!0}]));class Ee extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ee,e,t)}}Ee.runtime=A.proto3,Ee.typeName="aiserver.v1.SymbolActionResultReference",Ee.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"range",kind:"message",T:L._u},{no:2,name:"reference",kind:"message",T:be}]));class be extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.totalLines=0,this.snippets=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(be,e,t)}}be.runtime=A.proto3,be.typeName="aiserver.v1.FileCodeSnippets",be.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"total_lines",kind:"scalar",T:5},{no:3,name:"snippets",kind:"message",T:je,repeated:!0}]));class je extends A.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumber=0,this.lines=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(je,e,t)}}je.runtime=A.proto3,je.typeName="aiserver.v1.CodeSnippet",je.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number",kind:"scalar",T:5},{no:3,name:"lines",kind:"scalar",T:9,repeated:!0}]));class xe extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.lineNumber=0,this.symbolStartColumn=0,this.symbolEndColumn=0,this.action=r.UNSPECIFIED,this.symbol="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xe,e,t)}}xe.runtime=A.proto3,xe.typeName="aiserver.v1.CodeSymbolWithAction",xe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"line_number",kind:"scalar",T:5},{no:3,name:"symbol_start_column",kind:"scalar",T:5},{no:4,name:"symbol_end_column",kind:"scalar",T:5},{no:5,name:"action",kind:"enum",T:A.proto3.getEnumType(r)},{no:6,name:"symbol",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.GO_TO_DEFINITION=1]="GO_TO_DEFINITION",e[e.GO_TO_IMPLEMENTATION=2]="GO_TO_IMPLEMENTATION",e[e.REFERENCES=3]="REFERENCES"}(r||(r={})),A.proto3.util.setEnumType(r,"aiserver.v1.CodeSymbolWithAction.CodeSymbolAction",[{no:0,name:"CODE_SYMBOL_ACTION_UNSPECIFIED"},{no:1,name:"CODE_SYMBOL_ACTION_GO_TO_DEFINITION"},{no:2,name:"CODE_SYMBOL_ACTION_GO_TO_IMPLEMENTATION"},{no:3,name:"CODE_SYMBOL_ACTION_REFERENCES"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT"}(s||(s={})),A.proto3.util.setEnumType(s,"aiserver.v1.ChunkingStrategy",[{no:0,name:"CHUNKING_STRATEGY_UNSPECIFIED"},{no:1,name:"CHUNKING_STRATEGY_DEFAULT"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SIMHASH=1]="SIMHASH"}(o||(o={})),A.proto3.util.setEnumType(o,"aiserver.v1.SimilarityMetricType",[{no:0,name:"SIMILARITY_METRIC_TYPE_UNSPECIFIED"},{no:1,name:"SIMILARITY_METRIC_TYPE_SIMHASH"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SHA256=1]="SHA256"}(i||(i={})),A.proto3.util.setEnumType(i,"aiserver.v1.PathKeyHashType",[{no:0,name:"PATH_KEY_HASH_TYPE_UNSPECIFIED"},{no:1,name:"PATH_KEY_HASH_TYPE_SHA256"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LULEA=1]="LULEA",e[e.UMEA=2]="UMEA",e[e.NONE=3]="NONE",e[e.LLAMA=4]="LLAMA",e[e.STARCODER_V1=5]="STARCODER_V1",e[e.GPT_3_5_LOGPROBS=6]="GPT_3_5_LOGPROBS",e[e.LULEA_HAIKU=7]="LULEA_HAIKU",e[e.COHERE=8]="COHERE",e[e.VOYAGE=9]="VOYAGE",e[e.VOYAGE_EMBEDS=10]="VOYAGE_EMBEDS",e[e.IDENTITY=11]="IDENTITY",e[e.ADA_EMBEDS=12]="ADA_EMBEDS"}(a||(a={})),A.proto3.util.setEnumType(a,"aiserver.v1.RerankerAlgorithm",[{no:0,name:"RERANKER_ALGORITHM_UNSPECIFIED"},{no:1,name:"RERANKER_ALGORITHM_LULEA"},{no:2,name:"RERANKER_ALGORITHM_UMEA"},{no:3,name:"RERANKER_ALGORITHM_NONE"},{no:4,name:"RERANKER_ALGORITHM_LLAMA"},{no:5,name:"RERANKER_ALGORITHM_STARCODER_V1"},{no:6,name:"RERANKER_ALGORITHM_GPT_3_5_LOGPROBS"},{no:7,name:"RERANKER_ALGORITHM_LULEA_HAIKU"},{no:8,name:"RERANKER_ALGORITHM_COHERE"},{no:9,name:"RERANKER_ALGORITHM_VOYAGE"},{no:10,name:"RERANKER_ALGORITHM_VOYAGE_EMBEDS"},{no:11,name:"RERANKER_ALGORITHM_IDENTITY"},{no:12,name:"RERANKER_ALGORITHM_ADA_EMBEDS"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AURORA=1]="AURORA",e[e.PLANETSCALE=2]="PLANETSCALE"}(l||(l={})),A.proto3.util.setEnumType(l,"aiserver.v1.DatabaseProvider",[{no:0,name:"DATABASE_PROVIDER_UNSPECIFIED"},{no:1,name:"DATABASE_PROVIDER_AURORA"},{no:2,name:"DATABASE_PROVIDER_PLANETSCALE"}]),function(e){e[e.RECHUNKER_CHOICE_UNSPECIFIED=0]="RECHUNKER_CHOICE_UNSPECIFIED",e[e.RECHUNKER_CHOICE_IDENTITY=1]="RECHUNKER_CHOICE_IDENTITY",e[e.RECHUNKER_CHOICE_600_TOKS=2]="RECHUNKER_CHOICE_600_TOKS",e[e.RECHUNKER_CHOICE_2400_TOKS=3]="RECHUNKER_CHOICE_2400_TOKS",e[e.RECHUNKER_CHOICE_4000_TOKS=4]="RECHUNKER_CHOICE_4000_TOKS"}(u||(u={})),A.proto3.util.setEnumType(u,"aiserver.v1.RechunkerChoice",[{no:0,name:"RECHUNKER_CHOICE_UNSPECIFIED"},{no:1,name:"RECHUNKER_CHOICE_IDENTITY"},{no:2,name:"RECHUNKER_CHOICE_600_TOKS"},{no:3,name:"RECHUNKER_CHOICE_2400_TOKS"},{no:4,name:"RECHUNKER_CHOICE_4000_TOKS"}]);class Ne extends A.Message{constructor(e){super(),this.readmes=[],this.topLevelRelativeWorkspacePaths=[],this.workspaceRootPath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ne,e,t)}}Ne.runtime=A.proto3,Ne.typeName="aiserver.v1.GetHighLevelFolderDescriptionRequest",Ne.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"readmes",kind:"message",T:Pe,repeated:!0},{no:2,name:"top_level_relative_workspace_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"workspace_root_path",kind:"scalar",T:9}]));class Pe extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pe,e,t)}}Pe.runtime=A.proto3,Pe.typeName="aiserver.v1.GetHighLevelFolderDescriptionRequest.Readme",Pe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9}]));class Be extends A.Message{constructor(e){super(),this.description="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Be,e,t)}}Be.runtime=A.proto3,Be.typeName="aiserver.v1.GetHighLevelFolderDescriptionResponse",Be.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class Ie extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ie,e,t)}}Ie.runtime=A.proto3,Ie.typeName="aiserver.v1.EnsureIndexCreatedRequest",Ie.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class qe extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qe,e,t)}}qe.runtime=A.proto3,qe.typeName="aiserver.v1.EnsureIndexCreatedResponse",qe.fields=A.proto3.util.newFieldList((()=>[]));class Re extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.hashOfNode="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Re,e,t)}}Re.runtime=A.proto3,Re.typeName="aiserver.v1.PartialPathItem",Re.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"hash_of_node",kind:"scalar",T:9}]));class Me extends A.Message{constructor(e){super(),this.rootHash="",this.potentialLegacyRepoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Me,e,t)}}Me.runtime=A.proto3,Me.typeName="aiserver.v1.FastRepoInitHandshakeRequest",Me.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"root_hash",kind:"scalar",T:9},{no:3,name:"potential_legacy_repo_name",kind:"scalar",T:9}]));class Oe extends A.Message{constructor(e){super(),this.status=m.UNSPECIFIED,this.repoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Oe,e,t)}}Oe.runtime=A.proto3,Oe.typeName="aiserver.v1.FastRepoInitHandshakeResponse",Oe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(m)},{no:2,name:"repo_name",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.FAILURE=3]="FAILURE",e[e.EMPTY=4]="EMPTY"}(m||(m={})),A.proto3.util.setEnumType(m,"aiserver.v1.FastRepoInitHandshakeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_UP_TO_DATE"},{no:2,name:"STATUS_OUT_OF_SYNC"},{no:3,name:"STATUS_FAILURE"},{no:4,name:"STATUS_EMPTY"}]);class Fe extends A.Message{constructor(e){super(),this.encryptedRelativePath="",this.hash="",this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Fe,e,t)}}Fe.runtime=A.proto3,Fe.typeName="aiserver.v1.LocalCodebaseFileInfo",Fe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"encrypted_relative_path",kind:"scalar",T:9},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"children",kind:"message",T:Fe,repeated:!0},{no:4,name:"separator",kind:"scalar",T:9,opt:!0}]));class Ae extends A.Message{constructor(e){super(),this.rootHash="",this.similarityMetricType=o.UNSPECIFIED,this.similarityMetric=[],this.pathKeyHash="",this.pathKeyHashType=i.UNSPECIFIED,this.doCopy=!1,this.pathKey="",this.returnAfterBackgroundCopyStarted=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ae).fromBinary(e,t)}static fromJson(e,t){return(new Ae).fromJson(e,t)}static fromJsonString(e,t){return(new Ae).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ae,e,t)}}Ae.runtime=A.proto3,Ae.typeName="aiserver.v1.FastRepoInitHandshakeV2Request",Ae.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"root_hash",kind:"scalar",T:9},{no:3,name:"similarity_metric_type",kind:"enum",T:A.proto3.getEnumType(o)},{no:4,name:"similarity_metric",kind:"scalar",T:2,repeated:!0},{no:5,name:"path_key_hash",kind:"scalar",T:9},{no:6,name:"path_key_hash_type",kind:"enum",T:A.proto3.getEnumType(i)},{no:7,name:"do_copy",kind:"scalar",T:8},{no:8,name:"path_key",kind:"scalar",T:9},{no:9,name:"local_codebase_root_info",kind:"message",T:Fe},{no:10,name:"return_after_background_copy_started",kind:"scalar",T:8}]));class Le extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Le).fromBinary(e,t)}static fromJson(e,t){return(new Le).fromJson(e,t)}static fromJsonString(e,t){return(new Le).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Le,e,t)}}Le.runtime=A.proto3,Le.typeName="aiserver.v1.QueryOnlyRepositoryInfo",Le.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"query_only_repo_access",kind:"message",T:Dt}]));class Ce extends A.Message{constructor(e){super(),this.codebaseId="",this.status=c.UNSPECIFIED,this.copyTaskHandle="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ce).fromBinary(e,t)}static fromJson(e,t){return(new Ce).fromJson(e,t)}static fromJsonString(e,t){return(new Ce).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ce,e,t)}}Ce.runtime=A.proto3,Ce.typeName="aiserver.v1.RepositoryCodebaseInfo",Ce.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(c)},{no:3,name:"query_only_similar_repo",kind:"message",T:Le},{no:4,name:"copy_task_handle",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.EMPTY=3]="EMPTY",e[e.EMPTY_WITH_COPY_AVAILABLE=4]="EMPTY_WITH_COPY_AVAILABLE",e[e.COPY_IN_PROGRESS=5]="COPY_IN_PROGRESS"}(c||(c={})),A.proto3.util.setEnumType(c,"aiserver.v1.RepositoryCodebaseInfo.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_UP_TO_DATE"},{no:2,name:"STATUS_OUT_OF_SYNC"},{no:3,name:"STATUS_EMPTY"},{no:4,name:"STATUS_EMPTY_WITH_COPY_AVAILABLE"},{no:5,name:"STATUS_COPY_IN_PROGRESS"}]);class Ue extends A.Message{constructor(e){super(),this.status=d.UNSPECIFIED,this.codebases=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ue,e,t)}}Ue.runtime=A.proto3,Ue.typeName="aiserver.v1.FastRepoInitHandshakeV2Response",Ue.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(d)},{no:2,name:"codebases",kind:"message",T:Ce,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FAILURE=1]="FAILURE",e[e.SUCCESS=2]="SUCCESS"}(d||(d={})),A.proto3.util.setEnumType(d,"aiserver.v1.FastRepoInitHandshakeV2Response.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_FAILURE"},{no:2,name:"STATUS_SUCCESS"}]);class De extends A.Message{constructor(e){super(),this.codebaseId="",this.status=p.UNSPECIFIED,this.similarityMetricType=o.UNSPECIFIED,this.similarityMetric=[],this.pathKeyHash="",this.pathKeyHashType=i.UNSPECIFIED,this.failedUploadCount=0,this.failedDeleteCount=0,this.totalUploadCount=0,this.totalDeleteCount=0,this.failedSubtreeCount=0,this.totalSubtreeCount=0,this.hitIterationLimit=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(De,e,t)}}De.runtime=A.proto3,De.typeName="aiserver.v1.RepositoryCodebaseSyncStatus",De.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(p)},{no:3,name:"similarity_metric_type",kind:"enum",T:A.proto3.getEnumType(o)},{no:4,name:"similarity_metric",kind:"scalar",T:2,repeated:!0},{no:5,name:"path_key_hash",kind:"scalar",T:9},{no:6,name:"path_key_hash_type",kind:"enum",T:A.proto3.getEnumType(i)},{no:7,name:"failed_upload_count",kind:"scalar",T:5},{no:8,name:"failed_delete_count",kind:"scalar",T:5},{no:9,name:"total_upload_count",kind:"scalar",T:5},{no:10,name:"total_delete_count",kind:"scalar",T:5},{no:11,name:"failed_subtree_count",kind:"scalar",T:5},{no:12,name:"total_subtree_count",kind:"scalar",T:5},{no:13,name:"hit_iteration_limit",kind:"scalar",T:8}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(p||(p={})),A.proto3.util.setEnumType(p,"aiserver.v1.RepositoryCodebaseSyncStatus.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class Ge extends A.Message{constructor(e){super(),this.codebases=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ge,e,t)}}Ge.runtime=A.proto3,Ge.typeName="aiserver.v1.FastRepoSyncCompleteRequest",Ge.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebases",kind:"message",T:De,repeated:!0}]));class He extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(He,e,t)}}He.runtime=A.proto3,He.typeName="aiserver.v1.FastRepoSyncCompleteResponse",He.fields=A.proto3.util.newFieldList((()=>[]));class Ke extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ke,e,t)}}Ke.runtime=A.proto3,Ke.typeName="aiserver.v1.SyncMerkleSubtreeRequest",Ke.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"local_partial_path",kind:"message",T:Re}]));class We extends A.Message{constructor(e){super(),this.result={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(We,e,t)}}We.runtime=A.proto3,We.typeName="aiserver.v1.SyncMerkleSubtreeResponse",We.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Ye,oneof:"result"}]));class Ye extends A.Message{constructor(e){super(),this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ye,e,t)}}Ye.runtime=A.proto3,Ye.typeName="aiserver.v1.SyncMerkleSubtreeResponse.Mismatch",Ye.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"children",kind:"message",T:Re,repeated:!0}]));class ze extends A.Message{constructor(e){super(),this.orthogonalTransformSeed=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ze,e,t)}}ze.runtime=A.proto3,ze.typeName="aiserver.v1.ClientRepositoryInfo",ze.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"orthogonal_transform_seed",kind:"scalar",T:1}]));class Ve extends A.Message{constructor(e){super(),this.codebaseId="",this.localPartialPaths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ve,e,t)}}Ve.runtime=A.proto3,Ve.typeName="aiserver.v1.SyncMerkleSubtreeV2Request",Ve.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"client_repository_info",kind:"message",T:ze},{no:2,name:"codebase_id",kind:"scalar",T:9},{no:3,name:"local_partial_path",kind:"message",T:Re},{no:4,name:"local_partial_paths",kind:"message",T:Re,repeated:!0}]));class Qe extends A.Message{constructor(e){super(),this.result={case:void 0},this.results=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qe).fromBinary(e,t)}static fromJson(e,t){return(new Qe).fromJson(e,t)}static fromJsonString(e,t){return(new Qe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Qe,e,t)}}Qe.runtime=A.proto3,Qe.typeName="aiserver.v1.SyncMerkleSubtreeV2Response",Qe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Xe,oneof:"result"},{no:3,name:"results",kind:"message",T:$e,repeated:!0}]));class Xe extends A.Message{constructor(e){super(),this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xe).fromBinary(e,t)}static fromJson(e,t){return(new Xe).fromJson(e,t)}static fromJsonString(e,t){return(new Xe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Xe,e,t)}}Xe.runtime=A.proto3,Xe.typeName="aiserver.v1.SyncMerkleSubtreeV2Response.Mismatch",Xe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"children",kind:"message",T:Re,repeated:!0}]));class $e extends A.Message{constructor(e){super(),this.result={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $e).fromBinary(e,t)}static fromJson(e,t){return(new $e).fromJson(e,t)}static fromJsonString(e,t){return(new $e).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($e,e,t)}}$e.runtime=A.proto3,$e.typeName="aiserver.v1.SyncMerkleSubtreeV2Response.PartialPathResult",$e.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Xe,oneof:"result"},{no:3,name:"response_size_limit_exceeded",kind:"scalar",T:8,oneof:"result"}]));class Ze extends A.Message{constructor(e){super(),this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=f.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ze).fromBinary(e,t)}static fromJson(e,t){return(new Ze).fromJson(e,t)}static fromJsonString(e,t){return(new Ze).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ze,e,t)}}Ze.runtime=A.proto3,Ze.typeName="aiserver.v1.FastUpdateFileRequest",Ze.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:3,name:"local_file",kind:"message",T:et,oneof:"partial_path"},{no:4,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:5,name:"update_type",kind:"enum",T:A.proto3.getEnumType(f)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ADD=1]="ADD",e[e.DELETE=2]="DELETE",e[e.MODIFY=3]="MODIFY"}(f||(f={})),A.proto3.util.setEnumType(f,"aiserver.v1.FastUpdateFileRequest.UpdateType",[{no:0,name:"UPDATE_TYPE_UNSPECIFIED"},{no:1,name:"UPDATE_TYPE_ADD"},{no:2,name:"UPDATE_TYPE_DELETE"},{no:3,name:"UPDATE_TYPE_MODIFY"}]);class et extends A.Message{constructor(e){super(),this.hash="",this.unencryptedRelativeWorkspacePath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new et).fromBinary(e,t)}static fromJson(e,t){return(new et).fromJson(e,t)}static fromJsonString(e,t){return(new et).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(et,e,t)}}et.runtime=A.proto3,et.typeName="aiserver.v1.FastUpdateFileRequest.LocalFile",et.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"unencrypted_relative_workspace_path",kind:"scalar",T:9}]));class tt extends A.Message{constructor(e){super(),this.status=g.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tt).fromBinary(e,t)}static fromJson(e,t){return(new tt).fromJson(e,t)}static fromJsonString(e,t){return(new tt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(tt,e,t)}}tt.runtime=A.proto3,tt.typeName="aiserver.v1.FastUpdateFileResponse",tt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(g)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE"}(g||(g={})),A.proto3.util.setEnumType(g,"aiserver.v1.FastUpdateFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"}]);class nt extends A.Message{constructor(e){super(),this.codebaseId="",this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=_.UNSPECIFIED,this.fileUpdates=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nt).fromBinary(e,t)}static fromJson(e,t){return(new nt).fromJson(e,t)}static fromJsonString(e,t){return(new nt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(nt,e,t)}}nt.runtime=A.proto3,nt.typeName="aiserver.v1.FastUpdateFileV2Request",nt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"client_repository_info",kind:"message",T:ze},{no:2,name:"codebase_id",kind:"scalar",T:9},{no:3,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:4,name:"local_file",kind:"message",T:rt,oneof:"partial_path"},{no:5,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:6,name:"update_type",kind:"enum",T:A.proto3.getEnumType(_)},{no:7,name:"file_updates",kind:"message",T:st,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ADD=1]="ADD",e[e.DELETE=2]="DELETE",e[e.MODIFY=3]="MODIFY",e[e.BATCH=4]="BATCH"}(_||(_={})),A.proto3.util.setEnumType(_,"aiserver.v1.FastUpdateFileV2Request.UpdateType",[{no:0,name:"UPDATE_TYPE_UNSPECIFIED"},{no:1,name:"UPDATE_TYPE_ADD"},{no:2,name:"UPDATE_TYPE_DELETE"},{no:3,name:"UPDATE_TYPE_MODIFY"},{no:4,name:"UPDATE_TYPE_BATCH"}]);class rt extends A.Message{constructor(e){super(),this.hash="",this.unencryptedRelativeWorkspacePath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rt).fromBinary(e,t)}static fromJson(e,t){return(new rt).fromJson(e,t)}static fromJsonString(e,t){return(new rt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(rt,e,t)}}rt.runtime=A.proto3,rt.typeName="aiserver.v1.FastUpdateFileV2Request.LocalFile",rt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"unencrypted_relative_workspace_path",kind:"scalar",T:9}]));class st extends A.Message{constructor(e){super(),this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=_.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new st).fromBinary(e,t)}static fromJson(e,t){return(new st).fromJson(e,t)}static fromJsonString(e,t){return(new st).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(st,e,t)}}st.runtime=A.proto3,st.typeName="aiserver.v1.FastUpdateFileV2Request.FileUpdate",st.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:2,name:"local_file",kind:"message",T:rt,oneof:"partial_path"},{no:3,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:4,name:"update_type",kind:"enum",T:A.proto3.getEnumType(_)}]));class ot extends A.Message{constructor(e){super(),this.status=h.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ot).fromBinary(e,t)}static fromJson(e,t){return(new ot).fromJson(e,t)}static fromJsonString(e,t){return(new ot).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ot,e,t)}}ot.runtime=A.proto3,ot.typeName="aiserver.v1.FastUpdateFileV2Response",ot.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(h)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE"}(h||(h={})),A.proto3.util.setEnumType(h,"aiserver.v1.FastUpdateFileV2Response.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"}]);class it extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new it).fromBinary(e,t)}static fromJson(e,t){return(new it).fromJson(e,t)}static fromJsonString(e,t){return(new it).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(it,e,t)}}it.runtime=A.proto3,it.typeName="aiserver.v1.GetUploadLimitsRequest",it.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn,opt:!0}]));class at extends A.Message{constructor(e){super(),this.softLimit=0,this.hardLimit=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new at).fromBinary(e,t)}static fromJson(e,t){return(new at).fromJson(e,t)}static fromJsonString(e,t){return(new at).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(at,e,t)}}at.runtime=A.proto3,at.typeName="aiserver.v1.GetUploadLimitsResponse",at.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"soft_limit",kind:"scalar",T:5},{no:2,name:"hard_limit",kind:"scalar",T:5}]));class lt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lt).fromBinary(e,t)}static fromJson(e,t){return(new lt).fromJson(e,t)}static fromJsonString(e,t){return(new lt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(lt,e,t)}}lt.runtime=A.proto3,lt.typeName="aiserver.v1.GetNumFilesToSendRequest",lt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class ut extends A.Message{constructor(e){super(),this.numFiles=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ut).fromBinary(e,t)}static fromJson(e,t){return(new ut).fromJson(e,t)}static fromJsonString(e,t){return(new ut).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ut,e,t)}}ut.runtime=A.proto3,ut.typeName="aiserver.v1.GetNumFilesToSendResponse",ut.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"num_files",kind:"scalar",T:5}]));class mt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mt).fromBinary(e,t)}static fromJson(e,t){return(new mt).fromJson(e,t)}static fromJsonString(e,t){return(new mt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(mt,e,t)}}mt.runtime=A.proto3,mt.typeName="aiserver.v1.GetAvailableChunkingStrategiesRequest",mt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class ct extends A.Message{constructor(e){super(),this.chunkingStrategies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ct).fromBinary(e,t)}static fromJson(e,t){return(new ct).fromJson(e,t)}static fromJsonString(e,t){return(new ct).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ct,e,t)}}ct.runtime=A.proto3,ct.typeName="aiserver.v1.GetAvailableChunkingStrategiesResponse",ct.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"chunking_strategies",kind:"enum",T:A.proto3.getEnumType(s),repeated:!0}]));class dt extends A.Message{constructor(e){super(),this.texts=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dt).fromBinary(e,t)}static fromJson(e,t){return(new dt).fromJson(e,t)}static fromJsonString(e,t){return(new dt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(dt,e,t)}}dt.runtime=A.proto3,dt.typeName="aiserver.v1.GetEmbeddingsRequest",dt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"texts",kind:"scalar",T:9,repeated:!0}]));class pt extends A.Message{constructor(e){super(),this.embeddings=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pt).fromBinary(e,t)}static fromJson(e,t){return(new pt).fromJson(e,t)}static fromJsonString(e,t){return(new pt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pt,e,t)}}pt.runtime=A.proto3,pt.typeName="aiserver.v1.GetEmbeddingsResponse",pt.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"embeddings",kind:"message",T:ft,repeated:!0}]));class ft extends A.Message{constructor(e){super(),this.embedding=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ft).fromBinary(e,t)}static fromJson(e,t){return(new ft).fromJson(e,t)}static fromJsonString(e,t){return(new ft).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ft,e,t)}}ft.runtime=A.proto3,ft.typeName="aiserver.v1.GetEmbeddingsResponse.Embedding",ft.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,repeated:!0}]));class gt extends A.Message{constructor(e){super(),this.codebaseId=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gt).fromBinary(e,t)}static fromJson(e,t){return(new gt).fromJson(e,t)}static fromJsonString(e,t){return(new gt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(gt,e,t)}}gt.runtime=A.proto3,gt.typeName="aiserver.v1.AdminRemoveRepositoryRequest",gt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:5}]));class _t extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _t).fromBinary(e,t)}static fromJson(e,t){return(new _t).fromJson(e,t)}static fromJsonString(e,t){return(new _t).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_t,e,t)}}_t.runtime=A.proto3,_t.typeName="aiserver.v1.AdminRemoveRepositoryResponse",_t.fields=A.proto3.util.newFieldList((()=>[]));class ht extends A.Message{constructor(e){super(),this.codebaseId=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ht).fromBinary(e,t)}static fromJson(e,t){return(new ht).fromJson(e,t)}static fromJsonString(e,t){return(new ht).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ht,e,t)}}ht.runtime=A.proto3,ht.typeName="aiserver.v1.SyncRepositoryRequest",ht.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:5}]));class Tt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Tt,e,t)}}Tt.runtime=A.proto3,Tt.typeName="aiserver.v1.SyncRepositoryResponse",Tt.fields=A.proto3.util.newFieldList((()=>[]));class yt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yt).fromBinary(e,t)}static fromJson(e,t){return(new yt).fromJson(e,t)}static fromJsonString(e,t){return(new yt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(yt,e,t)}}yt.runtime=A.proto3,yt.typeName="aiserver.v1.StartUploadRepoRequest",yt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class St extends A.Message{constructor(e){super(),this.status=T.UNSPECIFIED,this.seenFiles=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(St,e,t)}}St.runtime=A.proto3,St.typeName="aiserver.v1.StartUploadRepoResponse",St.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(T)},{no:2,name:"seen_files",kind:"scalar",T:9,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.ALREADY_EXISTS=3]="ALREADY_EXISTS"}(T||(T={})),A.proto3.util.setEnumType(T,"aiserver.v1.StartUploadRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_ALREADY_EXISTS"}]);class wt extends A.Message{constructor(e){super(),this.commitSha="",this.queueId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wt).fromBinary(e,t)}static fromJson(e,t){return(new wt).fromJson(e,t)}static fromJsonString(e,t){return(new wt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(wt,e,t)}}wt.runtime=A.proto3,wt.typeName="aiserver.v1.UploadFileRequest",wt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"file",kind:"message",T:L.ZH},{no:3,name:"commit_sha",kind:"scalar",T:9},{no:4,name:"queue_id",kind:"scalar",T:9}]));class kt extends A.Message{constructor(e){super(),this.status=y.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(kt,e,t)}}kt.runtime=A.proto3,kt.typeName="aiserver.v1.UploadFileResponse",kt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(y)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE",e[e.QUEUE_BACKED_UP=4]="QUEUE_BACKED_UP"}(y||(y={})),A.proto3.util.setEnumType(y,"aiserver.v1.UploadFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"},{no:4,name:"STATUS_QUEUE_BACKED_UP"}]);class Jt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jt).fromBinary(e,t)}static fromJson(e,t){return(new Jt).fromJson(e,t)}static fromJsonString(e,t){return(new Jt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Jt,e,t)}}Jt.runtime=A.proto3,Jt.typeName="aiserver.v1.FinishUploadRepoRequest",Jt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class vt extends A.Message{constructor(e){super(),this.status=S.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vt).fromBinary(e,t)}static fromJson(e,t){return(new vt).fromJson(e,t)}static fromJsonString(e,t){return(new vt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(vt,e,t)}}vt.runtime=A.proto3,vt.typeName="aiserver.v1.FinishUploadRepoResponse",vt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(S)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(S||(S={})),A.proto3.util.setEnumType(S,"aiserver.v1.FinishUploadRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class Et extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Et,e,t)}}Et.runtime=A.proto3,Et.typeName="aiserver.v1.StartUpdateRepoRequest",Et.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class bt extends A.Message{constructor(e){super(),this.status=w.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bt).fromBinary(e,t)}static fromJson(e,t){return(new bt).fromJson(e,t)}static fromJsonString(e,t){return(new bt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(bt,e,t)}}bt.runtime=A.proto3,bt.typeName="aiserver.v1.StartUpdateRepoResponse",bt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(w)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.NOT_FOUND=3]="NOT_FOUND",e[e.ALREADY_SYNCING=4]="ALREADY_SYNCING"}(w||(w={})),A.proto3.util.setEnumType(w,"aiserver.v1.StartUpdateRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_NOT_FOUND"},{no:4,name:"STATUS_ALREADY_SYNCING"}]);class jt extends A.Message{constructor(e){super(),this.commitSha="",this.queueId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(jt,e,t)}}jt.runtime=A.proto3,jt.typeName="aiserver.v1.UpdateFileRequest",jt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"added_file",kind:"message",T:L.ZH},{no:3,name:"deleted_file_path",kind:"scalar",T:9,opt:!0},{no:4,name:"commit_sha",kind:"scalar",T:9},{no:5,name:"queue_id",kind:"scalar",T:9}]));class xt extends A.Message{constructor(e){super(),this.status=k.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xt).fromBinary(e,t)}static fromJson(e,t){return(new xt).fromJson(e,t)}static fromJsonString(e,t){return(new xt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xt,e,t)}}xt.runtime=A.proto3,xt.typeName="aiserver.v1.UpdateFileResponse",xt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(k)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE",e[e.QUEUE_BACKED_UP=4]="QUEUE_BACKED_UP"}(k||(k={})),A.proto3.util.setEnumType(k,"aiserver.v1.UpdateFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"},{no:4,name:"STATUS_QUEUE_BACKED_UP"}]);class Nt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Nt,e,t)}}Nt.runtime=A.proto3,Nt.typeName="aiserver.v1.FinishUpdateRepoRequest",Nt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Pt extends A.Message{constructor(e){super(),this.status=J.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pt,e,t)}}Pt.runtime=A.proto3,Pt.typeName="aiserver.v1.FinishUpdateRepoResponse",Pt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(J)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(J||(J={})),A.proto3.util.setEnumType(J,"aiserver.v1.FinishUpdateRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class Bt extends A.Message{constructor(e){super(),this.requests=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bt).fromBinary(e,t)}static fromJson(e,t){return(new Bt).fromJson(e,t)}static fromJsonString(e,t){return(new Bt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Bt,e,t)}}Bt.runtime=A.proto3,Bt.typeName="aiserver.v1.BatchRepositoryStatusRequest",Bt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"requests",kind:"message",T:mn,repeated:!0}]));class It extends A.Message{constructor(e){super(),this.responses=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(It,e,t)}}It.runtime=A.proto3,It.typeName="aiserver.v1.BatchRepositoryStatusResponse",It.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"responses",kind:"message",T:cn,repeated:!0}]));class qt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qt,e,t)}}qt.runtime=A.proto3,qt.typeName="aiserver.v1.UnsubscribeRepositoryRequest",qt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Rt extends A.Message{constructor(e){super(),this.status=v.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Rt,e,t)}}Rt.runtime=A.proto3,Rt.typeName="aiserver.v1.UnsubscribeRepositoryResponse",Rt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(v)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_SUBSCRIBED=2]="NOT_SUBSCRIBED",e[e.SUCCESS=3]="SUCCESS"}(v||(v={})),A.proto3.util.setEnumType(v,"aiserver.v1.UnsubscribeRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_SUBSCRIBED"},{no:3,name:"STATUS_SUCCESS"}]);class Mt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Mt,e,t)}}Mt.runtime=A.proto3,Mt.typeName="aiserver.v1.LogoutRequest",Mt.fields=A.proto3.util.newFieldList((()=>[]));class Ot extends A.Message{constructor(e){super(),this.status=E.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ot).fromBinary(e,t)}static fromJson(e,t){return(new Ot).fromJson(e,t)}static fromJsonString(e,t){return(new Ot).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ot,e,t)}}Ot.runtime=A.proto3,Ot.typeName="aiserver.v1.LogoutResponse",Ot.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(E)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.NOT_LOGGED_IN=3]="NOT_LOGGED_IN"}(E||(E={})),A.proto3.util.setEnumType(E,"aiserver.v1.LogoutResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_NOT_LOGGED_IN"}]);class Ft extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ft).fromBinary(e,t)}static fromJson(e,t){return(new Ft).fromJson(e,t)}static fromJsonString(e,t){return(new Ft).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ft,e,t)}}Ft.runtime=A.proto3,Ft.typeName="aiserver.v1.RemoveRepositoryRequest",Ft.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class At extends A.Message{constructor(e){super(),this.status=b.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new At).fromBinary(e,t)}static fromJson(e,t){return(new At).fromJson(e,t)}static fromJsonString(e,t){return(new At).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(At,e,t)}}At.runtime=A.proto3,At.typeName="aiserver.v1.RemoveRepositoryResponse",At.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(b)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.STARTED=3]="STARTED",e[e.SUCCESS=4]="SUCCESS"}(b||(b={})),A.proto3.util.setEnumType(b,"aiserver.v1.RemoveRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_STARTED"},{no:4,name:"STATUS_SUCCESS"}]);class Lt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Lt,e,t)}}Lt.runtime=A.proto3,Lt.typeName="aiserver.v1.SubscribeRepositoryRequest",Lt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Ct extends A.Message{constructor(e){super(),this.status=j.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ct,e,t)}}Ct.runtime=A.proto3,Ct.typeName="aiserver.v1.SubscribeRepositoryResponse",Ct.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(j)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.ALREADY_SUBSCRIBED=3]="ALREADY_SUBSCRIBED",e[e.SUCCESS=4]="SUCCESS"}(j||(j={})),A.proto3.util.setEnumType(j,"aiserver.v1.SubscribeRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_ALREADY_SUBSCRIBED"},{no:4,name:"STATUS_SUCCESS"}]);class Ut extends A.Message{constructor(e){super(),this.query="",this.topK=0,this.rerank=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ut).fromBinary(e,t)}static fromJson(e,t){return(new Ut).fromJson(e,t)}static fromJsonString(e,t){return(new Ut).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ut,e,t)}}Ut.runtime=A.proto3,Ut.typeName="aiserver.v1.SearchRepositoryRequest",Ut.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"repository",kind:"message",T:wn},{no:3,name:"top_k",kind:"scalar",T:5},{no:4,name:"model_details",kind:"message",T:L.Gm},{no:5,name:"rerank",kind:"scalar",T:8},{no:6,name:"context_cache_request",kind:"scalar",T:8,opt:!0},{no:7,name:"glob_filter",kind:"scalar",T:9,opt:!0},{no:8,name:"not_glob_filter",kind:"scalar",T:9,opt:!0},{no:9,name:"race_n_requests",kind:"scalar",T:5,opt:!0},{no:10,name:"query_only_repo_access",kind:"message",T:Dt}]));class Dt extends A.Message{constructor(e){super(),this.ownerAuthId="",this.accessToken="",this.userRepoOwner="",this.userRepoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Dt,e,t)}}Dt.runtime=A.proto3,Dt.typeName="aiserver.v1.QueryOnlyRepoAccess",Dt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"owner_auth_id",kind:"scalar",T:9},{no:2,name:"access_token",kind:"scalar",T:9},{no:3,name:"user_repo_owner",kind:"scalar",T:9},{no:4,name:"user_repo_name",kind:"scalar",T:9}]));class Gt extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Gt,e,t)}}Gt.runtime=A.proto3,Gt.typeName="aiserver.v1.CodeResult",Gt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_block",kind:"message",T:L.NG},{no:2,name:"score",kind:"scalar",T:2}]));class Ht extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ht).fromBinary(e,t)}static fromJson(e,t){return(new Ht).fromJson(e,t)}static fromJsonString(e,t){return(new Ht).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ht,e,t)}}Ht.runtime=A.proto3,Ht.typeName="aiserver.v1.FileResult",Ht.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"score",kind:"scalar",T:2}]));class Kt extends A.Message{constructor(e){super(),this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kt).fromBinary(e,t)}static fromJson(e,t){return(new Kt).fromJson(e,t)}static fromJsonString(e,t){return(new Kt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Kt,e,t)}}Kt.runtime=A.proto3,Kt.typeName="aiserver.v1.SearchRepositoryResponse",Kt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_results",kind:"message",T:Gt,repeated:!0}]));class Wt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Wt,e,t)}}Wt.runtime=A.proto3,Wt.typeName="aiserver.v1.SemSearchRequest",Wt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:Ut}]));class Yt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Yt,e,t)}}Yt.runtime=A.proto3,Yt.typeName="aiserver.v1.CodeResultWithClassificationInfo",Yt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_result",kind:"message",T:Gt},{no:2,name:"line_number_classification",kind:"message",T:zt,opt:!0}]));class zt extends A.Message{constructor(e){super(),this.queryComputedFor="",this.matchedStrings=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zt).fromBinary(e,t)}static fromJson(e,t){return(new zt).fromJson(e,t)}static fromJsonString(e,t){return(new zt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(zt,e,t)}}zt.runtime=A.proto3,zt.typeName="aiserver.v1.CodeResultWithClassificationInfo.LineNumberClassification",zt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"detailed_line",kind:"message",T:L.d7},{no:2,name:"query_computed_for",kind:"scalar",T:9},{no:3,name:"matched_strings",kind:"scalar",T:9,repeated:!0},{no:4,name:"highlight_range",kind:"message",T:L._u}]));class Vt extends A.Message{constructor(e){super(),this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Vt,e,t)}}Vt.runtime=A.proto3,Vt.typeName="aiserver.v1.SemSearchResponse",Vt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:Kt},{no:2,name:"metadata",kind:"message",T:Qt,opt:!0},{no:3,name:"code_results",kind:"message",T:Yt,repeated:!0}]));class Qt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qt).fromBinary(e,t)}static fromJson(e,t){return(new Qt).fromJson(e,t)}static fromJsonString(e,t){return(new Qt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Qt,e,t)}}Qt.runtime=A.proto3,Qt.typeName="aiserver.v1.SemSearchResponse.SemSearchMetadata",Qt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query_embedding_model",kind:"scalar",T:9,opt:!0},{no:2,name:"server_side_latency_ms",kind:"scalar",T:5,opt:!0},{no:3,name:"embed_latency_ms",kind:"scalar",T:5,opt:!0},{no:4,name:"knn_latency_ms",kind:"scalar",T:5,opt:!0}]));class Xt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Xt,e,t)}}Xt.runtime=A.proto3,Xt.typeName="aiserver.v1.LoginRequest",Xt.fields=A.proto3.util.newFieldList((()=>[]));class $t extends A.Message{constructor(e){super(),this.loginUrl="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $t).fromBinary(e,t)}static fromJson(e,t){return(new $t).fromJson(e,t)}static fromJsonString(e,t){return(new $t).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($t,e,t)}}$t.runtime=A.proto3,$t.typeName="aiserver.v1.LoginResponse",$t.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"login_url",kind:"scalar",T:9}]));class Zt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zt).fromBinary(e,t)}static fromJson(e,t){return(new Zt).fromJson(e,t)}static fromJsonString(e,t){return(new Zt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Zt,e,t)}}Zt.runtime=A.proto3,Zt.typeName="aiserver.v1.IsLoggedInRequest",Zt.fields=A.proto3.util.newFieldList((()=>[]));class en extends A.Message{constructor(e){super(),this.loggedIn=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new en).fromBinary(e,t)}static fromJson(e,t){return(new en).fromJson(e,t)}static fromJsonString(e,t){return(new en).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(en,e,t)}}en.runtime=A.proto3,en.typeName="aiserver.v1.IsLoggedInResponse",en.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"logged_in",kind:"scalar",T:8}]));class tn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tn).fromBinary(e,t)}static fromJson(e,t){return(new tn).fromJson(e,t)}static fromJsonString(e,t){return(new tn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(tn,e,t)}}tn.runtime=A.proto3,tn.typeName="aiserver.v1.PollLoginRequest",tn.fields=A.proto3.util.newFieldList((()=>[]));class nn extends A.Message{constructor(e){super(),this.status=x.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nn).fromBinary(e,t)}static fromJson(e,t){return(new nn).fromJson(e,t)}static fromJsonString(e,t){return(new nn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(nn,e,t)}}nn.runtime=A.proto3,nn.typeName="aiserver.v1.PollLoginResponse",nn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(x)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.FAILURE=2]="FAILURE",e[e.CHECKING=3]="CHECKING"}(x||(x={})),A.proto3.util.setEnumType(x,"aiserver.v1.PollLoginResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_LOGGED_IN"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_CHECKING"}]);class rn extends A.Message{constructor(e){super(),this.scopes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rn).fromBinary(e,t)}static fromJson(e,t){return(new rn).fromJson(e,t)}static fromJsonString(e,t){return(new rn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(rn,e,t)}}rn.runtime=A.proto3,rn.typeName="aiserver.v1.UpgradeScopeRequest",rn.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"scopes",kind:"scalar",T:9,repeated:!0}]));class sn extends A.Message{constructor(e){super(),this.status=N.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new sn).fromBinary(e,t)}static fromJson(e,t){return(new sn).fromJson(e,t)}static fromJsonString(e,t){return(new sn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(sn,e,t)}}sn.runtime=A.proto3,sn.typeName="aiserver.v1.UpgradeScopeResponse",sn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(N)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(N||(N={})),A.proto3.util.setEnumType(N,"aiserver.v1.UpgradeScopeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class on extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new on).fromBinary(e,t)}static fromJson(e,t){return(new on).fromJson(e,t)}static fromJsonString(e,t){return(new on).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(on,e,t)}}on.runtime=A.proto3,on.typeName="aiserver.v1.RepositoriesRequest",on.fields=A.proto3.util.newFieldList((()=>[]));class an extends A.Message{constructor(e){super(),this.repositories=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new an).fromBinary(e,t)}static fromJson(e,t){return(new an).fromJson(e,t)}static fromJsonString(e,t){return(new an).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(an,e,t)}}an.runtime=A.proto3,an.typeName="aiserver.v1.RepositoriesResponse",an.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repositories",kind:"message",T:wn,repeated:!0}]));class ln extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ln).fromBinary(e,t)}static fromJson(e,t){return(new ln).fromJson(e,t)}static fromJsonString(e,t){return(new ln).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ln,e,t)}}ln.runtime=A.proto3,ln.typeName="aiserver.v1.UploadRepositoryRequest",ln.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class un extends A.Message{constructor(e){super(),this.status=P.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new un).fromBinary(e,t)}static fromJson(e,t){return(new un).fromJson(e,t)}static fromJsonString(e,t){return(new un).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(un,e,t)}}un.runtime=A.proto3,un.typeName="aiserver.v1.UploadRepositoryResponse",un.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(P)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.AUTH_TOKEN_BAD_PERMISSIONS=3]="AUTH_TOKEN_BAD_PERMISSIONS",e[e.ALREADY_EXISTS=4]="ALREADY_EXISTS"}(P||(P={})),A.proto3.util.setEnumType(P,"aiserver.v1.UploadRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_AUTH_TOKEN_BAD_PERMISSIONS"},{no:4,name:"STATUS_ALREADY_EXISTS"}]);class mn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mn).fromBinary(e,t)}static fromJson(e,t){return(new mn).fromJson(e,t)}static fromJsonString(e,t){return(new mn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(mn,e,t)}}mn.runtime=A.proto3,mn.typeName="aiserver.v1.RepositoryStatusRequest",mn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class cn extends A.Message{constructor(e){super(),this.status={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cn).fromBinary(e,t)}static fromJson(e,t){return(new cn).fromJson(e,t)}static fromJsonString(e,t){return(new cn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(cn,e,t)}}cn.runtime=A.proto3,cn.typeName="aiserver.v1.RepositoryStatusResponse",cn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"not_found",kind:"message",T:dn,oneof:"status"},{no:2,name:"uploading",kind:"message",T:fn,oneof:"status"},{no:3,name:"syncing",kind:"message",T:gn,oneof:"status"},{no:4,name:"synced",kind:"message",T:_n,oneof:"status"},{no:5,name:"not_subscribed",kind:"message",T:pn,oneof:"status"},{no:6,name:"too_big",kind:"message",T:hn,oneof:"status"},{no:7,name:"auth_token_not_found",kind:"message",T:Tn,oneof:"status"},{no:8,name:"auth_token_not_authorized",kind:"message",T:yn,oneof:"status"},{no:10,name:"error_uploading",kind:"message",T:Sn,oneof:"status"},{no:11,name:"error_syncing",kind:"message",T:Sn,oneof:"status"},{no:9,name:"is_owner",kind:"scalar",T:8,opt:!0}]));class dn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dn).fromBinary(e,t)}static fromJson(e,t){return(new dn).fromJson(e,t)}static fromJsonString(e,t){return(new dn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(dn,e,t)}}dn.runtime=A.proto3,dn.typeName="aiserver.v1.RepositoryStatusResponse.NotFound",dn.fields=A.proto3.util.newFieldList((()=>[]));class pn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pn).fromBinary(e,t)}static fromJson(e,t){return(new pn).fromJson(e,t)}static fromJsonString(e,t){return(new pn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pn,e,t)}}pn.runtime=A.proto3,pn.typeName="aiserver.v1.RepositoryStatusResponse.NotSubscribed",pn.fields=A.proto3.util.newFieldList((()=>[]));class fn extends A.Message{constructor(e){super(),this.progress=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fn).fromBinary(e,t)}static fromJson(e,t){return(new fn).fromJson(e,t)}static fromJsonString(e,t){return(new fn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(fn,e,t)}}fn.runtime=A.proto3,fn.typeName="aiserver.v1.RepositoryStatusResponse.Uploading",fn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"progress",kind:"scalar",T:2}]));class gn extends A.Message{constructor(e){super(),this.branch="",this.oldCommit="",this.newCommit="",this.progress=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gn).fromBinary(e,t)}static fromJson(e,t){return(new gn).fromJson(e,t)}static fromJsonString(e,t){return(new gn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(gn,e,t)}}gn.runtime=A.proto3,gn.typeName="aiserver.v1.RepositoryStatusResponse.Syncing",gn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"branch",kind:"scalar",T:9},{no:2,name:"old_commit",kind:"scalar",T:9},{no:3,name:"new_commit",kind:"scalar",T:9},{no:4,name:"progress",kind:"scalar",T:2}]));class _n extends A.Message{constructor(e){super(),this.branch="",this.commit="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _n).fromBinary(e,t)}static fromJson(e,t){return(new _n).fromJson(e,t)}static fromJsonString(e,t){return(new _n).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_n,e,t)}}_n.runtime=A.proto3,_n.typeName="aiserver.v1.RepositoryStatusResponse.Synced",_n.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"branch",kind:"scalar",T:9},{no:2,name:"commit",kind:"scalar",T:9}]));class hn extends A.Message{constructor(e){super(),this.maxSize=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hn).fromBinary(e,t)}static fromJson(e,t){return(new hn).fromJson(e,t)}static fromJsonString(e,t){return(new hn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(hn,e,t)}}hn.runtime=A.proto3,hn.typeName="aiserver.v1.RepositoryStatusResponse.TooBig",hn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"max_size",kind:"scalar",T:5}]));class Tn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tn).fromBinary(e,t)}static fromJson(e,t){return(new Tn).fromJson(e,t)}static fromJsonString(e,t){return(new Tn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Tn,e,t)}}Tn.runtime=A.proto3,Tn.typeName="aiserver.v1.RepositoryStatusResponse.AuthTokenNotFound",Tn.fields=A.proto3.util.newFieldList((()=>[]));class yn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yn).fromBinary(e,t)}static fromJson(e,t){return(new yn).fromJson(e,t)}static fromJsonString(e,t){return(new yn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(yn,e,t)}}yn.runtime=A.proto3,yn.typeName="aiserver.v1.RepositoryStatusResponse.AuthTokenNotAuthorized",yn.fields=A.proto3.util.newFieldList((()=>[]));class Sn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sn).fromBinary(e,t)}static fromJson(e,t){return(new Sn).fromJson(e,t)}static fromJsonString(e,t){return(new Sn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Sn,e,t)}}Sn.runtime=A.proto3,Sn.typeName="aiserver.v1.RepositoryStatusResponse.EmptyMessage",Sn.fields=A.proto3.util.newFieldList((()=>[]));class wn extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.remoteUrls=[],this.remoteNames=[],this.repoName="",this.repoOwner="",this.isTracked=!1,this.isLocal=!1,this.workspaceUri="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wn).fromBinary(e,t)}static fromJson(e,t){return(new wn).fromJson(e,t)}static fromJsonString(e,t){return(new wn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(wn,e,t)}}wn.runtime=A.proto3,wn.typeName="aiserver.v1.RepositoryInfo",wn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"remote_urls",kind:"scalar",T:9,repeated:!0},{no:3,name:"remote_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"repo_name",kind:"scalar",T:9},{no:5,name:"repo_owner",kind:"scalar",T:9},{no:6,name:"is_tracked",kind:"scalar",T:8},{no:7,name:"is_local",kind:"scalar",T:8},{no:8,name:"num_files",kind:"scalar",T:5,opt:!0},{no:9,name:"orthogonal_transform_seed",kind:"scalar",T:1,opt:!0},{no:10,name:"preferred_embedding_model",kind:"enum",T:A.proto3.getEnumType(L.Nj),opt:!0},{no:11,name:"workspace_uri",kind:"scalar",T:9},{no:12,name:"preferred_db_provider",kind:"enum",T:A.proto3.getEnumType(l),opt:!0}]));class kn extends A.Message{constructor(e){super(),this.query="",this.topK=0,this.topReflectionsK=0,this.indexIds=[],this.useModelOnFiles=!1,this.useReflections=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kn).fromBinary(e,t)}static fromJson(e,t){return(new kn).fromJson(e,t)}static fromJsonString(e,t){return(new kn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(kn,e,t)}}kn.runtime=A.proto3,kn.typeName="aiserver.v1.SearchRepositoryDeepContextRequest",kn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"top_k",kind:"scalar",T:5},{no:3,name:"top_reflections_k",kind:"scalar",T:5},{no:4,name:"index_ids",kind:"scalar",T:9,repeated:!0},{no:5,name:"use_model_on_files",kind:"scalar",T:8},{no:6,name:"use_reflections",kind:"scalar",T:8}]));class Jn extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jn).fromBinary(e,t)}static fromJson(e,t){return(new Jn).fromJson(e,t)}static fromJsonString(e,t){return(new Jn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Jn,e,t)}}Jn.runtime=A.proto3,Jn.typeName="aiserver.v1.NodeResult",Jn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node",kind:"message",T:Te},{no:2,name:"file",kind:"message",T:L.ZH},{no:3,name:"score",kind:"scalar",T:2}]));class vn extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vn).fromBinary(e,t)}static fromJson(e,t){return(new vn).fromJson(e,t)}static fromJsonString(e,t){return(new vn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(vn,e,t)}}vn.runtime=A.proto3,vn.typeName="aiserver.v1.ReflectionResult",vn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"reflection",kind:"message",T:_e},{no:2,name:"score",kind:"scalar",T:2}]));class En extends A.Message{constructor(e){super(),this.topNodes=[],this.reflections=[],this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new En).fromBinary(e,t)}static fromJson(e,t){return(new En).fromJson(e,t)}static fromJsonString(e,t){return(new En).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(En,e,t)}}En.runtime=A.proto3,En.typeName="aiserver.v1.SearchRepositoryDeepContextResponse",En.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"top_nodes",kind:"message",T:Jn,repeated:!0},{no:2,name:"reflections",kind:"message",T:vn,repeated:!0},{no:3,name:"index_id",kind:"scalar",T:9}]));class bn extends A.Message{constructor(e){super(),this.query="",this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bn).fromBinary(e,t)}static fromJson(e,t){return(new bn).fromJson(e,t)}static fromJsonString(e,t){return(new bn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(bn,e,t)}}bn.runtime=A.proto3,bn.typeName="aiserver.v1.GetLineNumberClassificationsRequest",bn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"code_results",kind:"message",T:Gt,repeated:!0}]));class jn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jn).fromBinary(e,t)}static fromJson(e,t){return(new jn).fromJson(e,t)}static fromJsonString(e,t){return(new jn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(jn,e,t)}}jn.runtime=A.proto3,jn.typeName="aiserver.v1.GetLineNumberClassificationsResponse",jn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"classified_result",kind:"message",T:Yt}]));class xn extends A.Message{constructor(e){super(),this.codebaseId="",this.copyTaskHandle="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xn).fromBinary(e,t)}static fromJson(e,t){return(new xn).fromJson(e,t)}static fromJsonString(e,t){return(new xn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xn,e,t)}}xn.runtime=A.proto3,xn.typeName="aiserver.v1.GetCopyStatusRequest",xn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"copy_task_handle",kind:"scalar",T:9}]));class Nn extends A.Message{constructor(e){super(),this.phase=B.UNSPECIFIED,this.percentDone=0,this.errorMessage="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nn).fromBinary(e,t)}static fromJson(e,t){return(new Nn).fromJson(e,t)}static fromJsonString(e,t){return(new Nn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Nn,e,t)}}Nn.runtime=A.proto3,Nn.typeName="aiserver.v1.GetCopyStatusResponse",Nn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"phase",kind:"enum",T:A.proto3.getEnumType(B)},{no:2,name:"percent_done",kind:"scalar",T:2},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"completed_status",kind:"enum",T:A.proto3.getEnumType(I),opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INITIALIZING=1]="INITIALIZING",e[e.COPYING=2]="COPYING",e[e.COMPLETED=3]="COMPLETED",e[e.CREATING_SEARCH_FILTERS=4]="CREATING_SEARCH_FILTERS",e[e.COPYING_SEARCH_STATE=5]="COPYING_SEARCH_STATE",e[e.COPYING_TREE_STATE=6]="COPYING_TREE_STATE",e[e.SYNCING_COPY=7]="SYNCING_COPY"}(B||(B={})),A.proto3.util.setEnumType(B,"aiserver.v1.GetCopyStatusResponse.Phase",[{no:0,name:"PHASE_UNSPECIFIED"},{no:1,name:"PHASE_INITIALIZING"},{no:2,name:"PHASE_COPYING"},{no:3,name:"PHASE_COMPLETED"},{no:4,name:"PHASE_CREATING_SEARCH_FILTERS"},{no:5,name:"PHASE_COPYING_SEARCH_STATE"},{no:6,name:"PHASE_COPYING_TREE_STATE"},{no:7,name:"PHASE_SYNCING_COPY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.FAILURE=3]="FAILURE"}(I||(I={})),A.proto3.util.setEnumType(I,"aiserver.v1.GetCopyStatusResponse.CompletedStatus",[{no:0,name:"COMPLETED_STATUS_UNSPECIFIED"},{no:1,name:"COMPLETED_STATUS_UP_TO_DATE"},{no:2,name:"COMPLETED_STATUS_OUT_OF_SYNC"},{no:3,name:"COMPLETED_STATUS_FAILURE"}]);class Pn extends A.Message{constructor(e){super(),this.path="",this.diff=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pn).fromBinary(e,t)}static fromJson(e,t){return(new Pn).fromJson(e,t)}static fromJsonString(e,t){return(new Pn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pn,e,t)}}Pn.runtime=A.proto3,Pn.typeName="aiserver.v1.IndexedFile",Pn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diff",kind:"scalar",T:9,repeated:!0}]));class Bn extends A.Message{constructor(e){super(),this.prNumber=0,this.sha="",this.message="",this.changedFiles=[],this.generation=0,this.commitSecret="",this.unixTimestamp=A.protoInt64.zero,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bn).fromBinary(e,t)}static fromJson(e,t){return(new Bn).fromJson(e,t)}static fromJsonString(e,t){return(new Bn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Bn,e,t)}}Bn.runtime=A.proto3,Bn.typeName="aiserver.v1.IndexedPullRequest",Bn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"pr_number",kind:"scalar",T:13},{no:2,name:"sha",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"changed_files",kind:"message",T:Pn,repeated:!0},{no:5,name:"generation",kind:"scalar",T:13},{no:6,name:"commit_secret",kind:"scalar",T:9},{no:7,name:"unix_timestamp",kind:"scalar",T:3},{no:8,name:"title",kind:"scalar",T:9,opt:!0},{no:9,name:"author",kind:"scalar",T:9,opt:!0}]));class In extends A.Message{constructor(e){super(),this.origin="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new In).fromBinary(e,t)}static fromJson(e,t){return(new In).fromJson(e,t)}static fromJsonString(e,t){return(new In).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(In,e,t)}}In.runtime=A.proto3,In.typeName="aiserver.v1.RepoHistoryInitHandshakeRequest",In.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"origin",kind:"scalar",T:9},{no:3,name:"test_origin_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"test_origin_commit_secret",kind:"scalar",T:9,opt:!0},{no:5,name:"send_copy_candidates",kind:"scalar",T:8,opt:!0}]));class qn extends A.Message{constructor(e){super(),this.historyId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qn).fromBinary(e,t)}static fromJson(e,t){return(new qn).fromJson(e,t)}static fromJsonString(e,t){return(new qn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qn,e,t)}}qn.runtime=A.proto3,qn.typeName="aiserver.v1.RepoHistoryInfo",qn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_commit_generation",kind:"scalar",T:13,opt:!0},{no:5,name:"sync_bitmap",kind:"scalar",T:12,opt:!0}]));class Rn extends A.Message{constructor(e){super(),this.status=q.UNSPECIFIED,this.histories=[],this.copyCandidates=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rn).fromBinary(e,t)}static fromJson(e,t){return(new Rn).fromJson(e,t)}static fromJsonString(e,t){return(new Rn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Rn,e,t)}}Rn.runtime=A.proto3,Rn.typeName="aiserver.v1.RepoHistoryInitHandshakeResponse",Rn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(q)},{no:2,name:"histories",kind:"message",T:qn,repeated:!0},{no:3,name:"copy_candidate_nonce",kind:"scalar",T:9,opt:!0},{no:4,name:"copy_candidates",kind:"scalar",T:9,repeated:!0},{no:5,name:"error_message",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FAILURE=1]="FAILURE",e[e.SUCCESS=2]="SUCCESS",e[e.TEST_CANDIDATES=3]="TEST_CANDIDATES",e[e.NO_INDEXING=4]="NO_INDEXING"}(q||(q={})),A.proto3.util.setEnumType(q,"aiserver.v1.RepoHistoryInitHandshakeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_FAILURE"},{no:2,name:"STATUS_SUCCESS"},{no:3,name:"STATUS_TEST_CANDIDATES"},{no:4,name:"STATUS_NO_INDEXING"}]);class Mn extends A.Message{constructor(e){super(),this.historyId="",this.pullRequests=[],this.ignoreCommits=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mn).fromBinary(e,t)}static fromJson(e,t){return(new Mn).fromJson(e,t)}static fromJsonString(e,t){return(new Mn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Mn,e,t)}}Mn.runtime=A.proto3,Mn.typeName="aiserver.v1.RepoHistorySyncOneRequest",Mn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"pull_requests",kind:"message",T:Bn,repeated:!0},{no:3,name:"ignore_commits",kind:"scalar",T:13,repeated:!0}]));class On extends A.Message{constructor(e){super(),this.status=R.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new On).fromBinary(e,t)}static fromJson(e,t){return(new On).fromJson(e,t)}static fromJsonString(e,t){return(new On).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(On,e,t)}}On.runtime=A.proto3,On.typeName="aiserver.v1.RepoHistorySyncOneResponse",On.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(R)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.PARTIAL_SUCCESS=3]="PARTIAL_SUCCESS",e[e.NOT_INDEXING=4]="NOT_INDEXING"}(R||(R={})),A.proto3.util.setEnumType(R,"aiserver.v1.RepoHistorySyncOneResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_PARTIAL_SUCCESS"},{no:4,name:"STATUS_NOT_INDEXING"}]);class Fn extends A.Message{constructor(e){super(),this.syncedHistories=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fn).fromBinary(e,t)}static fromJson(e,t){return(new Fn).fromJson(e,t)}static fromJsonString(e,t){return(new Fn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Fn,e,t)}}Fn.runtime=A.proto3,Fn.typeName="aiserver.v1.RepoHistorySyncCompleteRequest",Fn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"synced_histories",kind:"message",T:An,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.TOTAL_FAILURE=3]="TOTAL_FAILURE",e[e.INTERRUPTED=4]="INTERRUPTED"}(M||(M={})),A.proto3.util.setEnumType(M,"aiserver.v1.RepoHistorySyncCompleteRequest.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_TOTAL_FAILURE"},{no:4,name:"STATUS_INTERRUPTED"}]);class An extends A.Message{constructor(e){super(),this.historyId="",this.status=M.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new An).fromBinary(e,t)}static fromJson(e,t){return(new An).fromJson(e,t)}static fromJsonString(e,t){return(new An).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(An,e,t)}}An.runtime=A.proto3,An.typeName="aiserver.v1.RepoHistorySyncCompleteRequest.SyncedHistory",An.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(M)},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_commit_secret",kind:"scalar",T:9,opt:!0},{no:5,name:"last_indexed_commit_generation",kind:"scalar",T:13,opt:!0}]));class Ln extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ln).fromBinary(e,t)}static fromJson(e,t){return(new Ln).fromJson(e,t)}static fromJsonString(e,t){return(new Ln).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ln,e,t)}}Ln.runtime=A.proto3,Ln.typeName="aiserver.v1.RepoHistorySyncCompleteResponse",Ln.fields=A.proto3.util.newFieldList((()=>[]));class Cn extends A.Message{constructor(e){super(),this.query="",this.topK=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cn).fromBinary(e,t)}static fromJson(e,t){return(new Cn).fromJson(e,t)}static fromJsonString(e,t){return(new Cn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Cn,e,t)}}Cn.runtime=A.proto3,Cn.typeName="aiserver.v1.SearchPRHistoryRequest",Cn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"top_k",kind:"scalar",T:5}]));class Un extends A.Message{constructor(e){super(),this.filePath="",this.startLineNumberZeroIndexed=0,this.endLineNumberZeroIndexedExclusive=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Un).fromBinary(e,t)}static fromJson(e,t){return(new Un).fromJson(e,t)}static fromJsonString(e,t){return(new Un).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Un,e,t)}}Un.runtime=A.proto3,Un.typeName="aiserver.v1.PRDiffChunkPointer",Un.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"start_line_number_zero_indexed",kind:"scalar",T:5},{no:3,name:"end_line_number_zero_indexed_exclusive",kind:"scalar",T:5}]));class Dn extends A.Message{constructor(e){super(),this.results=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dn).fromBinary(e,t)}static fromJson(e,t){return(new Dn).fromJson(e,t)}static fromJsonString(e,t){return(new Dn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Dn,e,t)}}Dn.runtime=A.proto3,Dn.typeName="aiserver.v1.SearchPRHistoryResponse",Dn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"message",T:Gn,repeated:!0},{no:2,name:"git_height",kind:"scalar",T:13,opt:!0}]));class Gn extends A.Message{constructor(e){super(),this.commitHash="",this.score=0,this.diffChunks=[],this.changedFiles=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gn).fromBinary(e,t)}static fromJson(e,t){return(new Gn).fromJson(e,t)}static fromJsonString(e,t){return(new Gn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Gn,e,t)}}Gn.runtime=A.proto3,Gn.typeName="aiserver.v1.SearchPRHistoryResponse.PRSearchResult",Gn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"commit_hash",kind:"scalar",T:9},{no:2,name:"score",kind:"scalar",T:2},{no:3,name:"diff_chunks",kind:"message",T:Un,repeated:!0},{no:4,name:"title",kind:"scalar",T:9,opt:!0},{no:5,name:"summary",kind:"scalar",T:9,opt:!0},{no:6,name:"pr_number",kind:"scalar",T:13,opt:!0},{no:7,name:"author",kind:"scalar",T:9,opt:!0},{no:8,name:"date",kind:"scalar",T:9,opt:!0},{no:9,name:"changed_files",kind:"scalar",T:9,repeated:!0}]));class Hn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hn).fromBinary(e,t)}static fromJson(e,t){return(new Hn).fromJson(e,t)}static fromJsonString(e,t){return(new Hn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Hn,e,t)}}Hn.runtime=A.proto3,Hn.typeName="aiserver.v1.RemoveRepoHistoryRequest",Hn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Kn extends A.Message{constructor(e){super(),this.status=O.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kn).fromBinary(e,t)}static fromJson(e,t){return(new Kn).fromJson(e,t)}static fromJsonString(e,t){return(new Kn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Kn,e,t)}}Kn.runtime=A.proto3,Kn.typeName="aiserver.v1.RemoveRepoHistoryResponse",Kn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(O)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.PARTIAL_SUCCESS=3]="PARTIAL_SUCCESS",e[e.SUCCESS=4]="SUCCESS"}(O||(O={})),A.proto3.util.setEnumType(O,"aiserver.v1.RemoveRepoHistoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_PARTIAL_SUCCESS"},{no:4,name:"STATUS_SUCCESS"}]);class Wn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wn).fromBinary(e,t)}static fromJson(e,t){return(new Wn).fromJson(e,t)}static fromJsonString(e,t){return(new Wn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Wn,e,t)}}Wn.runtime=A.proto3,Wn.typeName="aiserver.v1.GetPRIndexingStatusRequest",Wn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Yn extends A.Message{constructor(e){super(),this.status=F.UNSPECIFIED,this.syncPercentage=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yn).fromBinary(e,t)}static fromJson(e,t){return(new Yn).fromJson(e,t)}static fromJsonString(e,t){return(new Yn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Yn,e,t)}}Yn.runtime=A.proto3,Yn.typeName="aiserver.v1.GetPRIndexingStatusResponse",Yn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(F)},{no:2,name:"sync_percentage",kind:"scalar",T:2},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_generation",kind:"scalar",T:13,opt:!0},{no:5,name:"total_commits",kind:"scalar",T:13,opt:!0},{no:6,name:"indexing_rate",kind:"scalar",T:2,opt:!0},{no:7,name:"last_updated_timestamp",kind:"scalar",T:3,opt:!0},{no:8,name:"index_version",kind:"scalar",T:13,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.EMPTY=1]="EMPTY",e[e.SYNCING=2]="SYNCING",e[e.SYNCED=3]="SYNCED",e[e.PARTIAL=4]="PARTIAL"}(F||(F={})),A.proto3.util.setEnumType(F,"aiserver.v1.GetPRIndexingStatusResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_EMPTY"},{no:2,name:"STATUS_SYNCING"},{no:3,name:"STATUS_SYNCED"},{no:4,name:"STATUS_PARTIAL"}])},"../proto/dist/generated/aiserver/v1/utils_pb.js"(e,t,n){n.d(t,{Gm:()=>$,NG:()=>L,Nj:()=>o,ZH:()=>G,_u:()=>N,d7:()=>A});var r,s,o,i,a,l,u,m,c,d,p,f=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO",e[e.HINT=4]="HINT",e[e.AI=5]="AI"}(r||(r={})),f.proto3.util.setEnumType(r,"aiserver.v1.LintSeverity",[{no:0,name:"LINT_SEVERITY_UNSPECIFIED"},{no:1,name:"LINT_SEVERITY_ERROR"},{no:2,name:"LINT_SEVERITY_WARNING"},{no:3,name:"LINT_SEVERITY_INFO"},{no:4,name:"LINT_SEVERITY_HINT"},{no:5,name:"LINT_SEVERITY_AI"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.EDIT=1]="EDIT",e[e.GENERATE=2]="GENERATE",e[e.INLINE_LONG_COMPLETION=3]="INLINE_LONG_COMPLETION"}(s||(s={})),f.proto3.util.setEnumType(s,"aiserver.v1.FeatureType",[{no:0,name:"FEATURE_TYPE_UNSPECIFIED"},{no:1,name:"FEATURE_TYPE_EDIT"},{no:2,name:"FEATURE_TYPE_GENERATE"},{no:3,name:"FEATURE_TYPE_INLINE_LONG_COMPLETION"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.VOYAGE_CODE_2=1]="VOYAGE_CODE_2",e[e.TEXT_EMBEDDINGS_LARGE_3=2]="TEXT_EMBEDDINGS_LARGE_3",e[e.QWEN_1_5B_CUSTOM=3]="QWEN_1_5B_CUSTOM",e[e.MOCK_CHUNKER_ERROR=4]="MOCK_CHUNKER_ERROR",e[e.QWEN_1_5B_0618_CUSTOM=5]="QWEN_1_5B_0618_CUSTOM",e[e.QWEN_1_5B_0618_FP8_MM_CUSTOM=6]="QWEN_1_5B_0618_FP8_MM_CUSTOM"}(o||(o={})),f.proto3.util.setEnumType(o,"aiserver.v1.EmbeddingModel",[{no:0,name:"EMBEDDING_MODEL_UNSPECIFIED"},{no:1,name:"EMBEDDING_MODEL_VOYAGE_CODE_2"},{no:2,name:"EMBEDDING_MODEL_TEXT_EMBEDDINGS_LARGE_3"},{no:3,name:"EMBEDDING_MODEL_QWEN_1_5B_CUSTOM"},{no:4,name:"EMBEDDING_MODEL_MOCK_CHUNKER_ERROR"},{no:5,name:"EMBEDDING_MODEL_QWEN_1_5B_0618_CUSTOM"},{no:6,name:"EMBEDDING_MODEL_QWEN_1_5B_0618_FP8_MM_CUSTOM"}]);class g extends f.Message{constructor(e){super(),this.line=0,this.column=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(g,e,t)}}g.runtime=f.proto3,g.typeName="aiserver.v1.CursorPosition",g.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:5},{no:2,name:"column",kind:"scalar",T:5}]));class _ extends f.Message{constructor(e){super(),this.totalmem=0,this.freemem=0,this.loadavg=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(_,e,t)}}_.runtime=f.proto3,_.typeName="aiserver.v1.VscodeOSStatistics",_.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"totalmem",kind:"scalar",T:1},{no:2,name:"freemem",kind:"scalar",T:1},{no:3,name:"loadavg",kind:"scalar",T:1,repeated:!0}]));class h extends f.Message{constructor(e){super(),this.type="",this.release="",this.arch="",this.platform="",this.cpus=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(h,e,t)}}h.runtime=f.proto3,h.typeName="aiserver.v1.VscodeOSProperties",h.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"release",kind:"scalar",T:9},{no:3,name:"arch",kind:"scalar",T:9},{no:4,name:"platform",kind:"scalar",T:9},{no:5,name:"cpus",kind:"message",T,repeated:!0}]));class T extends f.Message{constructor(e){super(),this.model="",this.speed=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(T,e,t)}}T.runtime=f.proto3,T.typeName="aiserver.v1.VscodeCPUProperties",T.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model",kind:"scalar",T:9},{no:2,name:"speed",kind:"scalar",T:1}]));class y extends f.Message{constructor(e){super(),this.workspaceUris=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(y,e,t)}}y.runtime=f.proto3,y.typeName="aiserver.v1.EnvironmentInfo",y.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"exthost_platform",kind:"scalar",T:9,opt:!0},{no:2,name:"exthost_arch",kind:"scalar",T:9,opt:!0},{no:3,name:"exthost_release",kind:"scalar",T:9,opt:!0},{no:4,name:"exthost_shell",kind:"scalar",T:9,opt:!0},{no:5,name:"local_timestamp",kind:"scalar",T:9,opt:!0},{no:6,name:"workspace_uris",kind:"scalar",T:9,repeated:!0},{no:7,name:"cursor_version",kind:"scalar",T:9,opt:!0},{no:8,name:"is_remote",kind:"scalar",T:8,opt:!0},{no:9,name:"local_os_type",kind:"scalar",T:9,opt:!0},{no:10,name:"home_directory",kind:"scalar",T:9,opt:!0},{no:11,name:"local_timezone",kind:"scalar",T:9,opt:!0}]));class S extends f.Message{constructor(e){super(),this.selectionStartLineNumber=0,this.selectionStartColumn=0,this.positionLineNumber=0,this.positionColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(S,e,t)}}S.runtime=f.proto3,S.typeName="aiserver.v1.SelectionWithOrientation",S.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"selection_start_line_number",kind:"scalar",T:5},{no:2,name:"selection_start_column",kind:"scalar",T:5},{no:3,name:"position_line_number",kind:"scalar",T:5},{no:4,name:"position_column",kind:"scalar",T:5}]));class w extends f.Message{constructor(e){super(),this.cwd="",this.ref="",this.baseRef="",this.mergeBase=!1,this.targetPaths=[],this.maxUntrackedFiles=0,this.submoduleRecurseDepth=0,this.includeSpaceChanges=!1,this.committedOnly=!1,this.computePatchId=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(w,e,t)}}w.runtime=f.proto3,w.typeName="aiserver.v1.GetDiffRequest",w.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"cwd",kind:"scalar",T:9},{no:2,name:"ref",kind:"scalar",T:9},{no:3,name:"base_ref",kind:"scalar",T:9},{no:4,name:"merge_base",kind:"scalar",T:8},{no:5,name:"target_paths",kind:"scalar",T:9,repeated:!0},{no:6,name:"unified_context_lines",kind:"scalar",T:5,opt:!0},{no:7,name:"max_untracked_files",kind:"scalar",T:5},{no:9,name:"submodule_recurse_depth",kind:"scalar",T:5},{no:10,name:"include_space_changes",kind:"scalar",T:8},{no:11,name:"committed_only",kind:"scalar",T:8},{no:12,name:"compute_patch_id",kind:"scalar",T:8},{no:13,name:"return_head_sha",kind:"scalar",T:8,opt:!0},{no:14,name:"max_response_bytes",kind:"scalar",T:5,opt:!0},{no:8,name:"output_format",kind:"enum",T:f.proto3.getEnumType(i),opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NAME_STATUS=1]="NAME_STATUS",e[e.NAME_STATUS_AND_NUMSTAT=2]="NAME_STATUS_AND_NUMSTAT",e[e.FILE_DIFFS=3]="FILE_DIFFS",e[e.DIFFS_WITH_BEFORE_AND_AFTER=4]="DIFFS_WITH_BEFORE_AND_AFTER"}(i||(i={})),f.proto3.util.setEnumType(i,"aiserver.v1.GetDiffRequest.OutputFormat",[{no:0,name:"OUTPUT_FORMAT_UNSPECIFIED"},{no:1,name:"OUTPUT_FORMAT_NAME_STATUS"},{no:2,name:"OUTPUT_FORMAT_NAME_STATUS_AND_NUMSTAT"},{no:3,name:"OUTPUT_FORMAT_FILE_DIFFS"},{no:4,name:"OUTPUT_FORMAT_DIFFS_WITH_BEFORE_AND_AFTER"}]);class k extends f.Message{constructor(e){super(),this.submoduleDiffs=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(k,e,t)}}k.runtime=f.proto3,k.typeName="aiserver.v1.GetDiffResponse",k.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diff",kind:"message",T:b},{no:2,name:"submodule_diffs",kind:"message",T:J,repeated:!0},{no:3,name:"patch_id",kind:"scalar",T:9,opt:!0},{no:4,name:"head_sha",kind:"scalar",T:9,opt:!0},{no:5,name:"has_uncommitted_changes",kind:"scalar",T:8,opt:!0}]));class J extends f.Message{constructor(e){super(),this.relativePath="",this.errored=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(J,e,t)}}J.runtime=f.proto3,J.typeName="aiserver.v1.GetDiffResponse.SubmoduleDiff",J.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_path",kind:"scalar",T:9},{no:2,name:"diff",kind:"message",T:b},{no:3,name:"errored",kind:"scalar",T:8}]));class v extends f.Message{constructor(e){super(),this.startLine=0,this.endLineInclusive=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(v,e,t)}}v.runtime=f.proto3,v.typeName="aiserver.v1.SimplestRange",v.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line",kind:"scalar",T:5},{no:2,name:"end_line_inclusive",kind:"scalar",T:5}]));class E extends f.Message{constructor(e){super(),this.original=[],this.modified=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(E,e,t)}}E.runtime=f.proto3,E.typeName="aiserver.v1.ComputeLinesDiffOriginalAndModified",E.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"original",kind:"scalar",T:9,repeated:!0},{no:2,name:"modified",kind:"scalar",T:9,repeated:!0}]));class b extends f.Message{constructor(e){super(),this.diffs=[],this.diffType=a.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(b,e,t)}}b.runtime=f.proto3,b.typeName="aiserver.v1.GitDiff",b.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diffs",kind:"message",T:j,repeated:!0},{no:2,name:"diff_type",kind:"enum",T:f.proto3.getEnumType(a)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DIFF_TO_HEAD=1]="DIFF_TO_HEAD",e[e.DIFF_FROM_BRANCH_TO_MAIN=2]="DIFF_FROM_BRANCH_TO_MAIN"}(a||(a={})),f.proto3.util.setEnumType(a,"aiserver.v1.GitDiff.DiffType",[{no:0,name:"DIFF_TYPE_UNSPECIFIED"},{no:1,name:"DIFF_TYPE_DIFF_TO_HEAD"},{no:2,name:"DIFF_TYPE_DIFF_FROM_BRANCH_TO_MAIN"}]);class j extends f.Message{constructor(e){super(),this.added=0,this.removed=0,this.from="",this.to="",this.chunks=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(j,e,t)}}j.runtime=f.proto3,j.typeName="aiserver.v1.FileDiff",j.fields=f.proto3.util.newFieldList((()=>[{no:4,name:"added",kind:"scalar",T:5},{no:5,name:"removed",kind:"scalar",T:5},{no:1,name:"from",kind:"scalar",T:9},{no:2,name:"to",kind:"scalar",T:9},{no:3,name:"chunks",kind:"message",T:x,repeated:!0},{no:6,name:"before_file_contents",kind:"scalar",T:9,opt:!0},{no:7,name:"after_file_contents",kind:"scalar",T:9,opt:!0},{no:8,name:"is_generated",kind:"scalar",T:8,opt:!0}]));class x extends f.Message{constructor(e){super(),this.content="",this.lines=[],this.oldStart=0,this.oldLines=0,this.newStart=0,this.newLines=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(x,e,t)}}x.runtime=f.proto3,x.typeName="aiserver.v1.FileDiff.Chunk",x.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"lines",kind:"scalar",T:9,repeated:!0},{no:3,name:"old_start",kind:"scalar",T:5},{no:4,name:"old_lines",kind:"scalar",T:5},{no:5,name:"new_start",kind:"scalar",T:5},{no:6,name:"new_lines",kind:"scalar",T:5}]));class N extends f.Message{constructor(e){super(),this.startLineNumber=0,this.startColumn=0,this.endLineNumberInclusive=0,this.endColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(N,e,t)}}N.runtime=f.proto3,N.typeName="aiserver.v1.SimpleRange",N.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"start_column",kind:"scalar",T:5},{no:3,name:"end_line_number_inclusive",kind:"scalar",T:5},{no:4,name:"end_column",kind:"scalar",T:5}]));class P extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.chunkHash="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(P,e,t)}}P.runtime=f.proto3,P.typeName="aiserver.v1.SimpleFileChunk",P.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:v},{no:3,name:"chunk_hash",kind:"scalar",T:9}]));class B extends f.Message{constructor(e){super(),this.remoteUrl="",this.commitId="",this.gitPatch="",this.unsavedFiles=[],this.unixTimestampMs=0,this.openEditors=[],this.fileDiffHistories=[],this.branchName="",this.branchNotes="",this.branchNotesRich="",this.globalNotes="",this.pastThoughts=[],this.baseBranchName="",this.baseBranchCommitId="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(B,e,t)}}B.runtime=f.proto3,B.typeName="aiserver.v1.CmdKDebugInfo",B.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"remote_url",kind:"scalar",T:9},{no:2,name:"commit_id",kind:"scalar",T:9},{no:3,name:"git_patch",kind:"scalar",T:9},{no:4,name:"unsaved_files",kind:"message",T:I,repeated:!0},{no:5,name:"unix_timestamp_ms",kind:"scalar",T:1},{no:6,name:"open_editors",kind:"message",T:q,repeated:!0},{no:7,name:"file_diff_histories",kind:"message",T:R,repeated:!0},{no:8,name:"branch_name",kind:"scalar",T:9},{no:9,name:"branch_notes",kind:"scalar",T:9},{no:12,name:"branch_notes_rich",kind:"scalar",T:9},{no:10,name:"global_notes",kind:"scalar",T:9},{no:11,name:"past_thoughts",kind:"message",T:M,repeated:!0},{no:13,name:"base_branch_name",kind:"scalar",T:9},{no:14,name:"base_branch_commit_id",kind:"scalar",T:9}]));class I extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(I,e,t)}}I.runtime=f.proto3,I.typeName="aiserver.v1.CmdKDebugInfo.UnsavedFiles",I.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9}]));class q extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.editorGroupIndex=0,this.editorGroupId=0,this.isActive=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(q,e,t)}}q.runtime=f.proto3,q.typeName="aiserver.v1.CmdKDebugInfo.OpenEditor",q.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"editor_group_index",kind:"scalar",T:5},{no:3,name:"editor_group_id",kind:"scalar",T:5},{no:4,name:"is_active",kind:"scalar",T:8}]));class R extends f.Message{constructor(e){super(),this.fileName="",this.diffHistory=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(R,e,t)}}R.runtime=f.proto3,R.typeName="aiserver.v1.CmdKDebugInfo.CppFileDiffHistory",R.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"file_name",kind:"scalar",T:9},{no:2,name:"diff_history",kind:"scalar",T:9,repeated:!0}]));class M extends f.Message{constructor(e){super(),this.text="",this.timeInUnixSeconds=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(M,e,t)}}M.runtime=f.proto3,M.typeName="aiserver.v1.CmdKDebugInfo.PastThought",M.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"time_in_unix_seconds",kind:"scalar",T:1}]));class O extends f.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumberInclusive=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(O,e,t)}}O.runtime=f.proto3,O.typeName="aiserver.v1.LineRange",O.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number_inclusive",kind:"scalar",T:5}]));class F extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(F,e,t)}}F.runtime=f.proto3,F.typeName="aiserver.v1.CursorRange",F.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_position",kind:"message",T:g},{no:2,name:"end_position",kind:"message",T:g}]));class A extends f.Message{constructor(e){super(),this.text="",this.lineNumber=0,this.isSignature=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(A,e,t)}}A.runtime=f.proto3,A.typeName="aiserver.v1.DetailedLine",A.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"line_number",kind:"scalar",T:2},{no:3,name:"is_signature",kind:"scalar",T:8}]));class L extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(L,e,t)}}L.runtime=f.proto3,L.typeName="aiserver.v1.CodeBlock",L.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"file_contents",kind:"scalar",T:9,opt:!0},{no:9,name:"file_contents_length",kind:"scalar",T:5,opt:!0},{no:3,name:"range",kind:"message",T:F},{no:4,name:"contents",kind:"scalar",T:9},{no:5,name:"signatures",kind:"message",T:C},{no:6,name:"override_contents",kind:"scalar",T:9,opt:!0},{no:7,name:"original_contents",kind:"scalar",T:9,opt:!0},{no:8,name:"detailed_lines",kind:"message",T:A,repeated:!0},{no:10,name:"file_git_context",kind:"message",T:D}]));class C extends f.Message{constructor(e){super(),this.ranges=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(C,e,t)}}C.runtime=f.proto3,C.typeName="aiserver.v1.CodeBlock.Signatures",C.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"ranges",kind:"message",T:F,repeated:!0}]));class U extends f.Message{constructor(e){super(),this.commit="",this.author="",this.date="",this.message="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(U,e,t)}}U.runtime=f.proto3,U.typeName="aiserver.v1.GitCommit",U.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"commit",kind:"scalar",T:9},{no:2,name:"author",kind:"scalar",T:9},{no:3,name:"date",kind:"scalar",T:9},{no:4,name:"message",kind:"scalar",T:9}]));class D extends f.Message{constructor(e){super(),this.commits=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(D,e,t)}}D.runtime=f.proto3,D.typeName="aiserver.v1.FileGit",D.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"commits",kind:"message",T:U,repeated:!0}]));class G extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(G,e,t)}}G.runtime=f.proto3,G.typeName="aiserver.v1.File",G.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9},{no:3,name:"file_git_context",kind:"message",T:D}]));class H extends f.Message{constructor(e){super(),this.message="",this.severity=l.UNSPECIFIED,this.relatedInformation=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(H,e,t)}}H.runtime=f.proto3,H.typeName="aiserver.v1.Diagnostic",H.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F},{no:3,name:"severity",kind:"enum",T:f.proto3.getEnumType(l)},{no:4,name:"related_information",kind:"message",T:K,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFORMATION=3]="INFORMATION",e[e.HINT=4]="HINT"}(l||(l={})),f.proto3.util.setEnumType(l,"aiserver.v1.Diagnostic.DiagnosticSeverity",[{no:0,name:"DIAGNOSTIC_SEVERITY_UNSPECIFIED"},{no:1,name:"DIAGNOSTIC_SEVERITY_ERROR"},{no:2,name:"DIAGNOSTIC_SEVERITY_WARNING"},{no:3,name:"DIAGNOSTIC_SEVERITY_INFORMATION"},{no:4,name:"DIAGNOSTIC_SEVERITY_HINT"}]);class K extends f.Message{constructor(e){super(),this.message="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(K,e,t)}}K.runtime=f.proto3,K.typeName="aiserver.v1.Diagnostic.RelatedInformation",K.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F}]));class W extends f.Message{constructor(e){super(),this.message="",this.severity=r.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(W,e,t)}}W.runtime=f.proto3,W.typeName="aiserver.v1.Lint",W.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:N},{no:3,name:"severity",kind:"enum",T:f.proto3.getEnumType(r)}]));class Y extends f.Message{constructor(e){super(),this.content="",this.score=0,this.relativePath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Y,e,t)}}Y.runtime=f.proto3,Y.typeName="aiserver.v1.BM25Chunk",Y.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:v},{no:3,name:"score",kind:"scalar",T:5},{no:4,name:"relative_path",kind:"scalar",T:9}]));class z extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",this.relyOnFilesync=!1,this.cells=[],this.topChunks=[],this.contentsStartAtLine=0,this.dataframes=[],this.totalNumberOfLines=0,this.languageId="",this.diagnostics=[],this.cellStartLines=[],this.workspaceRootPath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(z,e,t)}}z.runtime=f.proto3,z.typeName="aiserver.v1.CurrentFileInfo",z.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9},{no:18,name:"rely_on_filesync",kind:"scalar",T:8},{no:17,name:"sha_256_hash",kind:"scalar",T:9,opt:!0},{no:16,name:"cells",kind:"message",T:V,repeated:!0},{no:10,name:"top_chunks",kind:"message",T:Y,repeated:!0},{no:9,name:"contents_start_at_line",kind:"scalar",T:5},{no:3,name:"cursor_position",kind:"message",T:g},{no:4,name:"dataframes",kind:"message",T:ne,repeated:!0},{no:8,name:"total_number_of_lines",kind:"scalar",T:5},{no:5,name:"language_id",kind:"scalar",T:9},{no:6,name:"selection",kind:"message",T:F},{no:11,name:"alternative_version_id",kind:"scalar",T:5,opt:!0},{no:7,name:"diagnostics",kind:"message",T:H,repeated:!0},{no:14,name:"file_version",kind:"scalar",T:5,opt:!0},{no:15,name:"cell_start_lines",kind:"scalar",T:5,repeated:!0},{no:19,name:"workspace_root_path",kind:"scalar",T:9},{no:20,name:"line_ending",kind:"scalar",T:9,opt:!0}]));class V extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(V,e,t)}}V.runtime=f.proto3,V.typeName="aiserver.v1.CurrentFileInfo.NotebookCell",V.fields=f.proto3.util.newFieldList((()=>[]));class Q extends f.Message{constructor(e){super(),this.apiKey="",this.baseUrl="",this.deployment="",this.useAzure=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Q,e,t)}}Q.runtime=f.proto3,Q.typeName="aiserver.v1.AzureState",Q.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9},{no:3,name:"deployment",kind:"scalar",T:9},{no:4,name:"use_azure",kind:"scalar",T:8}]));class X extends f.Message{constructor(e){super(),this.accessKey="",this.secretKey="",this.region="",this.useBedrock=!1,this.sessionToken="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(X,e,t)}}X.runtime=f.proto3,X.typeName="aiserver.v1.BedrockState",X.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"access_key",kind:"scalar",T:9},{no:2,name:"secret_key",kind:"scalar",T:9},{no:3,name:"region",kind:"scalar",T:9},{no:4,name:"use_bedrock",kind:"scalar",T:8},{no:5,name:"session_token",kind:"scalar",T:9}]));class $ extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals($,e,t)}}$.runtime=f.proto3,$.typeName="aiserver.v1.ModelDetails",$.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9,opt:!0},{no:2,name:"api_key",kind:"scalar",T:9,opt:!0},{no:3,name:"enable_ghost_mode",kind:"scalar",T:8,opt:!0},{no:4,name:"azure_state",kind:"message",T:Q,opt:!0},{no:5,name:"enable_slow_pool",kind:"scalar",T:8,opt:!0},{no:6,name:"openai_api_base_url",kind:"scalar",T:9,opt:!0},{no:7,name:"bedrock_state",kind:"message",T:X,opt:!0},{no:8,name:"max_mode",kind:"scalar",T:8,opt:!0}]));class Z extends f.Message{constructor(e){super(),this.modelId="",this.parameters=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Z,e,t)}}Z.runtime=f.proto3,Z.typeName="aiserver.v1.CloudAgentModelSelection",Z.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:2,name:"parameters",kind:"message",T:ee,repeated:!0},{no:3,name:"max_mode",kind:"scalar",T:8,opt:!0}]));class ee extends f.Message{constructor(e){super(),this.id="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ee,e,t)}}ee.runtime=f.proto3,ee.typeName="aiserver.v1.CloudAgentModelSelection.ParameterValue",ee.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class te extends f.Message{constructor(e){super(),this.modelName="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(te,e,t)}}te.runtime=f.proto3,te.typeName="aiserver.v1.ModelInfo",te.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9}]));class ne extends f.Message{constructor(e){super(),this.name="",this.shape="",this.dataDimensionality=0,this.columns=[],this.rowCount=0,this.indexColumn="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ne,e,t)}}ne.runtime=f.proto3,ne.typeName="aiserver.v1.DataframeInfo",ne.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"shape",kind:"scalar",T:9},{no:3,name:"data_dimensionality",kind:"scalar",T:5},{no:6,name:"columns",kind:"message",T:re,repeated:!0},{no:7,name:"row_count",kind:"scalar",T:5},{no:8,name:"index_column",kind:"scalar",T:9}]));class re extends f.Message{constructor(e){super(),this.key="",this.type="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(re,e,t)}}re.runtime=f.proto3,re.typeName="aiserver.v1.DataframeInfo.Column",re.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9}]));class se extends f.Message{constructor(e){super(),this.message="",this.relatedInformation=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(se,e,t)}}se.runtime=f.proto3,se.typeName="aiserver.v1.LinterError",se.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F},{no:3,name:"source",kind:"scalar",T:9,opt:!0},{no:4,name:"related_information",kind:"message",T:K,repeated:!0},{no:5,name:"severity",kind:"enum",T:f.proto3.getEnumType(l),opt:!0},{no:6,name:"is_stale",kind:"scalar",T:8,opt:!0}]));class oe extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.errors=[],this.fileContents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(oe,e,t)}}oe.runtime=f.proto3,oe.typeName="aiserver.v1.LinterErrors",oe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"errors",kind:"message",T:se,repeated:!0},{no:3,name:"file_contents",kind:"scalar",T:9}]));class ie extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.errors=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ie,e,t)}}ie.runtime=f.proto3,ie.typeName="aiserver.v1.LinterErrorsWithoutFileContents",ie.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"errors",kind:"message",T:se,repeated:!0}]));class ae extends f.Message{constructor(e){super(),this.name="",this.description="",this.environments=[],this.disabledEnvironments=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ae,e,t)}}ae.runtime=f.proto3,ae.typeName="aiserver.v1.CursorRule",ae.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"body",kind:"scalar",T:9,opt:!0},{no:4,name:"is_from_glob",kind:"scalar",T:8,opt:!0},{no:5,name:"always_apply",kind:"scalar",T:8,opt:!0},{no:6,name:"attach_to_background_agents",kind:"scalar",T:8,opt:!0},{no:7,name:"full_path",kind:"scalar",T:9,opt:!0},{no:8,name:"environments",kind:"scalar",T:9,repeated:!0},{no:9,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:10,name:"plugin",kind:"scalar",T:9,opt:!0},{no:11,name:"marketplace",kind:"scalar",T:9,opt:!0}]));class le extends f.Message{constructor(e){super(),this.context="",this.rules=[],this.mcpInstructions=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(le,e,t)}}le.runtime=f.proto3,le.typeName="aiserver.v1.ExplicitContext",le.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"context",kind:"scalar",T:9},{no:2,name:"repo_context",kind:"scalar",T:9,opt:!0},{no:3,name:"rules",kind:"message",T:ae,repeated:!0},{no:4,name:"mode_specific_context",kind:"scalar",T:9,opt:!0},{no:5,name:"mcp_instructions",kind:"message",T:ue,repeated:!0}]));class ue extends f.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.instructions="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ue).fromBinary(e,t)}static fromJson(e,t){return(new ue).fromJson(e,t)}static fromJsonString(e,t){return(new ue).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ue,e,t)}}ue.runtime=f.proto3,ue.typeName="aiserver.v1.MCPInstructions",ue.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"instructions",kind:"scalar",T:9}]));class me extends f.Message{constructor(e){super(),this.messageType=u.UNSPECIFIED,this.content="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new me).fromBinary(e,t)}static fromJson(e,t){return(new me).fromJson(e,t)}static fromJsonString(e,t){return(new me).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(me,e,t)}}me.runtime=f.proto3,me.typeName="aiserver.v1.PureMessage",me.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message_type",kind:"enum",T:f.proto3.getEnumType(u)},{no:2,name:"content",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER",e[e.ASSISTANT=3]="ASSISTANT"}(u||(u={})),f.proto3.util.setEnumType(u,"aiserver.v1.PureMessage.MessageType",[{no:0,name:"MESSAGE_TYPE_UNSPECIFIED"},{no:1,name:"MESSAGE_TYPE_SYSTEM"},{no:2,name:"MESSAGE_TYPE_USER"},{no:3,name:"MESSAGE_TYPE_ASSISTANT"}]);class ce extends f.Message{constructor(e){super(),this.name="",this.detail="",this.kind=m.UNSPECIFIED,this.containerName="",this.children=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ce).fromBinary(e,t)}static fromJson(e,t){return(new ce).fromJson(e,t)}static fromJsonString(e,t){return(new ce).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ce,e,t)}}ce.runtime=f.proto3,ce.typeName="aiserver.v1.DocumentSymbol",ce.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"detail",kind:"scalar",T:9},{no:3,name:"kind",kind:"enum",T:f.proto3.getEnumType(m)},{no:5,name:"container_name",kind:"scalar",T:9},{no:6,name:"range",kind:"message",T:de},{no:7,name:"selection_range",kind:"message",T:de},{no:8,name:"children",kind:"message",T:ce,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FILE=1]="FILE",e[e.MODULE=2]="MODULE",e[e.NAMESPACE=3]="NAMESPACE",e[e.PACKAGE=4]="PACKAGE",e[e.CLASS=5]="CLASS",e[e.METHOD=6]="METHOD",e[e.PROPERTY=7]="PROPERTY",e[e.FIELD=8]="FIELD",e[e.CONSTRUCTOR=9]="CONSTRUCTOR",e[e.ENUM=10]="ENUM",e[e.INTERFACE=11]="INTERFACE",e[e.FUNCTION=12]="FUNCTION",e[e.VARIABLE=13]="VARIABLE",e[e.CONSTANT=14]="CONSTANT",e[e.STRING=15]="STRING",e[e.NUMBER=16]="NUMBER",e[e.BOOLEAN=17]="BOOLEAN",e[e.ARRAY=18]="ARRAY",e[e.OBJECT=19]="OBJECT",e[e.KEY=20]="KEY",e[e.NULL=21]="NULL",e[e.ENUM_MEMBER=22]="ENUM_MEMBER",e[e.STRUCT=23]="STRUCT",e[e.EVENT=24]="EVENT",e[e.OPERATOR=25]="OPERATOR",e[e.TYPE_PARAMETER=26]="TYPE_PARAMETER"}(m||(m={})),f.proto3.util.setEnumType(m,"aiserver.v1.DocumentSymbol.SymbolKind",[{no:0,name:"SYMBOL_KIND_UNSPECIFIED"},{no:1,name:"SYMBOL_KIND_FILE"},{no:2,name:"SYMBOL_KIND_MODULE"},{no:3,name:"SYMBOL_KIND_NAMESPACE"},{no:4,name:"SYMBOL_KIND_PACKAGE"},{no:5,name:"SYMBOL_KIND_CLASS"},{no:6,name:"SYMBOL_KIND_METHOD"},{no:7,name:"SYMBOL_KIND_PROPERTY"},{no:8,name:"SYMBOL_KIND_FIELD"},{no:9,name:"SYMBOL_KIND_CONSTRUCTOR"},{no:10,name:"SYMBOL_KIND_ENUM"},{no:11,name:"SYMBOL_KIND_INTERFACE"},{no:12,name:"SYMBOL_KIND_FUNCTION"},{no:13,name:"SYMBOL_KIND_VARIABLE"},{no:14,name:"SYMBOL_KIND_CONSTANT"},{no:15,name:"SYMBOL_KIND_STRING"},{no:16,name:"SYMBOL_KIND_NUMBER"},{no:17,name:"SYMBOL_KIND_BOOLEAN"},{no:18,name:"SYMBOL_KIND_ARRAY"},{no:19,name:"SYMBOL_KIND_OBJECT"},{no:20,name:"SYMBOL_KIND_KEY"},{no:21,name:"SYMBOL_KIND_NULL"},{no:22,name:"SYMBOL_KIND_ENUM_MEMBER"},{no:23,name:"SYMBOL_KIND_STRUCT"},{no:24,name:"SYMBOL_KIND_EVENT"},{no:25,name:"SYMBOL_KIND_OPERATOR"},{no:26,name:"SYMBOL_KIND_TYPE_PARAMETER"}]);class de extends f.Message{constructor(e){super(),this.startLineNumber=0,this.startColumn=0,this.endLineNumber=0,this.endColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(de,e,t)}}de.runtime=f.proto3,de.typeName="aiserver.v1.DocumentSymbol.Range",de.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"start_column",kind:"scalar",T:5},{no:3,name:"end_line_number",kind:"scalar",T:5},{no:4,name:"end_column",kind:"scalar",T:5}]));class pe extends f.Message{constructor(e){super(),this.codeDetails="",this.markdownBlocks=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pe).fromBinary(e,t)}static fromJson(e,t){return(new pe).fromJson(e,t)}static fromJsonString(e,t){return(new pe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(pe,e,t)}}pe.runtime=f.proto3,pe.typeName="aiserver.v1.HoverDetails",pe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"code_details",kind:"scalar",T:9},{no:2,name:"markdown_blocks",kind:"scalar",T:9,repeated:!0}]));class fe extends f.Message{constructor(e){super(),this.scheme="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fe).fromBinary(e,t)}static fromJson(e,t){return(new fe).fromJson(e,t)}static fromJsonString(e,t){return(new fe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(fe,e,t)}}fe.runtime=f.proto3,fe.typeName="aiserver.v1.UriComponents",fe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"scheme",kind:"scalar",T:9},{no:2,name:"authority",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0},{no:4,name:"query",kind:"scalar",T:9,opt:!0},{no:5,name:"fragment",kind:"scalar",T:9,opt:!0}]));class ge extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.textInSymbolRange="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ge).fromBinary(e,t)}static fromJson(e,t){return(new ge).fromJson(e,t)}static fromJsonString(e,t){return(new ge).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ge,e,t)}}ge.runtime=f.proto3,ge.typeName="aiserver.v1.DocumentSymbolWithText",ge.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"symbol",kind:"message",T:ce},{no:2,name:"relative_workspace_path",kind:"scalar",T:9},{no:3,name:"text_in_symbol_range",kind:"scalar",T:9},{no:4,name:"uri_components",kind:"message",T:fe}]));class _e extends f.Message{constructor(e){super(),this.error=c.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(_e,e,t)}}_e.runtime=f.proto3,_e.typeName="aiserver.v1.ErrorDetails",_e.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"enum",T:f.proto3.getEnumType(c)},{no:2,name:"details",kind:"message",T:he},{no:3,name:"is_expected",kind:"scalar",T:8,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BAD_API_KEY=1]="BAD_API_KEY",e[e.BAD_USER_API_KEY=42]="BAD_USER_API_KEY",e[e.NOT_LOGGED_IN=2]="NOT_LOGGED_IN",e[e.INVALID_AUTH_ID=3]="INVALID_AUTH_ID",e[e.NOT_HIGH_ENOUGH_PERMISSIONS=4]="NOT_HIGH_ENOUGH_PERMISSIONS",e[e.AGENT_REQUIRES_LOGIN=18]="AGENT_REQUIRES_LOGIN",e[e.BAD_MODEL_NAME=5]="BAD_MODEL_NAME",e[e.NOT_FOUND=39]="NOT_FOUND",e[e.DEPRECATED=40]="DEPRECATED",e[e.USER_NOT_FOUND=6]="USER_NOT_FOUND",e[e.FREE_USER_RATE_LIMIT_EXCEEDED=7]="FREE_USER_RATE_LIMIT_EXCEEDED",e[e.PRO_USER_RATE_LIMIT_EXCEEDED=8]="PRO_USER_RATE_LIMIT_EXCEEDED",e[e.FREE_USER_USAGE_LIMIT=9]="FREE_USER_USAGE_LIMIT",e[e.PRO_USER_USAGE_LIMIT=10]="PRO_USER_USAGE_LIMIT",e[e.RESOURCE_EXHAUSTED=41]="RESOURCE_EXHAUSTED",e[e.AUTH_TOKEN_NOT_FOUND=11]="AUTH_TOKEN_NOT_FOUND",e[e.AUTH_TOKEN_EXPIRED=12]="AUTH_TOKEN_EXPIRED",e[e.OPENAI=13]="OPENAI",e[e.OPENAI_RATE_LIMIT_EXCEEDED=14]="OPENAI_RATE_LIMIT_EXCEEDED",e[e.MAX_TOKENS=20]="MAX_TOKENS",e[e.PRO_USER_ONLY=23]="PRO_USER_ONLY",e[e.USER_ABORTED_REQUEST=21]="USER_ABORTED_REQUEST",e[e.TIMEOUT=25]="TIMEOUT",e[e.GENERIC_RATE_LIMIT_EXCEEDED=22]="GENERIC_RATE_LIMIT_EXCEEDED",e[e.GPT_4_VISION_PREVIEW_RATE_LIMIT=28]="GPT_4_VISION_PREVIEW_RATE_LIMIT",e[e.CUSTOM_MESSAGE=29]="CUSTOM_MESSAGE",e[e.OUTDATED_CLIENT=30]="OUTDATED_CLIENT",e[e.CLAUDE_IMAGE_TOO_LARGE=31]="CLAUDE_IMAGE_TOO_LARGE",e[e.FILE_NOT_FOUND=33]="FILE_NOT_FOUND",e[e.API_KEY_RATE_LIMIT=34]="API_KEY_RATE_LIMIT",e[e.DEBOUNCED=35]="DEBOUNCED",e[e.BAD_REQUEST=36]="BAD_REQUEST",e[e.REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED=37]="REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED",e[e.UNAUTHORIZED=38]="UNAUTHORIZED",e[e.CONVERSATION_TOO_LONG=43]="CONVERSATION_TOO_LONG",e[e.USAGE_PRICING_REQUIRED=44]="USAGE_PRICING_REQUIRED",e[e.USAGE_PRICING_REQUIRED_CHANGEABLE=45]="USAGE_PRICING_REQUIRED_CHANGEABLE",e[e.GITHUB_NO_USER_CREDENTIALS=46]="GITHUB_NO_USER_CREDENTIALS",e[e.GITHUB_USER_NO_ACCESS=47]="GITHUB_USER_NO_ACCESS",e[e.GITHUB_APP_NO_ACCESS=48]="GITHUB_APP_NO_ACCESS",e[e.GITHUB_MULTIPLE_OWNERS=49]="GITHUB_MULTIPLE_OWNERS",e[e.RATE_LIMITED=50]="RATE_LIMITED",e[e.RATE_LIMITED_CHANGEABLE=51]="RATE_LIMITED_CHANGEABLE",e[e.CUSTOM=52]="CUSTOM",e[e.HOOKS_BLOCKED=53]="HOOKS_BLOCKED",e[e.SUSPICIOUS_USAGE_BLOCKED=54]="SUSPICIOUS_USAGE_BLOCKED",e[e.EXTENSION_HOST_TIMEOUT=55]="EXTENSION_HOST_TIMEOUT",e[e.NETWORK_ERROR=56]="NETWORK_ERROR",e[e.PROVIDER_ERROR=57]="PROVIDER_ERROR",e[e.MODEL_BLOCKED=58]="MODEL_BLOCKED",e[e.INTERNAL=59]="INTERNAL",e[e.MAX_MODE_REQUIRED=60]="MAX_MODE_REQUIRED",e[e.MODEL_NO_LONGER_SUPPORTED=61]="MODEL_NO_LONGER_SUPPORTED",e[e.PRICING_WARNING=62]="PRICING_WARNING",e[e.SLOW_POOL=63]="SLOW_POOL",e[e.UNSUPPORTED_REGION=64]="UNSUPPORTED_REGION",e[e.ACCOUNT_CLOSED=65]="ACCOUNT_CLOSED"}(c||(c={})),f.proto3.util.setEnumType(c,"aiserver.v1.ErrorDetails.Error",[{no:0,name:"ERROR_UNSPECIFIED"},{no:1,name:"ERROR_BAD_API_KEY"},{no:42,name:"ERROR_BAD_USER_API_KEY"},{no:2,name:"ERROR_NOT_LOGGED_IN"},{no:3,name:"ERROR_INVALID_AUTH_ID"},{no:4,name:"ERROR_NOT_HIGH_ENOUGH_PERMISSIONS"},{no:18,name:"ERROR_AGENT_REQUIRES_LOGIN"},{no:5,name:"ERROR_BAD_MODEL_NAME"},{no:39,name:"ERROR_NOT_FOUND"},{no:40,name:"ERROR_DEPRECATED"},{no:6,name:"ERROR_USER_NOT_FOUND"},{no:7,name:"ERROR_FREE_USER_RATE_LIMIT_EXCEEDED"},{no:8,name:"ERROR_PRO_USER_RATE_LIMIT_EXCEEDED"},{no:9,name:"ERROR_FREE_USER_USAGE_LIMIT"},{no:10,name:"ERROR_PRO_USER_USAGE_LIMIT"},{no:41,name:"ERROR_RESOURCE_EXHAUSTED"},{no:11,name:"ERROR_AUTH_TOKEN_NOT_FOUND"},{no:12,name:"ERROR_AUTH_TOKEN_EXPIRED"},{no:13,name:"ERROR_OPENAI"},{no:14,name:"ERROR_OPENAI_RATE_LIMIT_EXCEEDED"},{no:20,name:"ERROR_MAX_TOKENS"},{no:23,name:"ERROR_PRO_USER_ONLY"},{no:21,name:"ERROR_USER_ABORTED_REQUEST"},{no:25,name:"ERROR_TIMEOUT"},{no:22,name:"ERROR_GENERIC_RATE_LIMIT_EXCEEDED"},{no:28,name:"ERROR_GPT_4_VISION_PREVIEW_RATE_LIMIT"},{no:29,name:"ERROR_CUSTOM_MESSAGE"},{no:30,name:"ERROR_OUTDATED_CLIENT"},{no:31,name:"ERROR_CLAUDE_IMAGE_TOO_LARGE"},{no:33,name:"ERROR_FILE_NOT_FOUND"},{no:34,name:"ERROR_API_KEY_RATE_LIMIT"},{no:35,name:"ERROR_DEBOUNCED"},{no:36,name:"ERROR_BAD_REQUEST"},{no:37,name:"ERROR_REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED"},{no:38,name:"ERROR_UNAUTHORIZED"},{no:43,name:"ERROR_CONVERSATION_TOO_LONG"},{no:44,name:"ERROR_USAGE_PRICING_REQUIRED"},{no:45,name:"ERROR_USAGE_PRICING_REQUIRED_CHANGEABLE"},{no:46,name:"ERROR_GITHUB_NO_USER_CREDENTIALS"},{no:47,name:"ERROR_GITHUB_USER_NO_ACCESS"},{no:48,name:"ERROR_GITHUB_APP_NO_ACCESS"},{no:49,name:"ERROR_GITHUB_MULTIPLE_OWNERS"},{no:50,name:"ERROR_RATE_LIMITED"},{no:51,name:"ERROR_RATE_LIMITED_CHANGEABLE"},{no:52,name:"ERROR_CUSTOM"},{no:53,name:"ERROR_HOOKS_BLOCKED"},{no:54,name:"ERROR_SUSPICIOUS_USAGE_BLOCKED"},{no:55,name:"ERROR_EXTENSION_HOST_TIMEOUT"},{no:56,name:"ERROR_NETWORK_ERROR"},{no:57,name:"ERROR_PROVIDER_ERROR"},{no:58,name:"ERROR_MODEL_BLOCKED"},{no:59,name:"ERROR_INTERNAL"},{no:60,name:"ERROR_MAX_MODE_REQUIRED"},{no:61,name:"ERROR_MODEL_NO_LONGER_SUPPORTED"},{no:62,name:"ERROR_PRICING_WARNING"},{no:63,name:"ERROR_SLOW_POOL"},{no:64,name:"ERROR_UNSUPPORTED_REGION"},{no:65,name:"ERROR_ACCOUNT_CLOSED"}]);class he extends f.Message{constructor(e){super(),this.title="",this.detail="",this.buttons=[],this.additionalInfo={},this.planChoices=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new he).fromBinary(e,t)}static fromJson(e,t){return(new he).fromJson(e,t)}static fromJsonString(e,t){return(new he).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(he,e,t)}}he.runtime=f.proto3,he.typeName="aiserver.v1.CustomErrorDetails",he.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"detail",kind:"scalar",T:9},{no:3,name:"allow_command_links_potentially_unsafe_please_only_use_for_handwritten_trusted_markdown",kind:"scalar",T:8,opt:!0},{no:4,name:"is_retryable",kind:"scalar",T:8,opt:!0},{no:5,name:"show_request_id",kind:"scalar",T:8,opt:!0},{no:6,name:"should_show_immediate_error",kind:"scalar",T:8,opt:!0},{no:8,name:"buttons",kind:"message",T:Se,repeated:!0},{no:7,name:"additional_info",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:9,name:"plan_choices",kind:"message",T:ye,repeated:!0},{no:10,name:"analytics_metadata",kind:"message",T:Te,opt:!0}]));class Te extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Te).fromBinary(e,t)}static fromJson(e,t){return(new Te).fromJson(e,t)}static fromJsonString(e,t){return(new Te).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Te,e,t)}}Te.runtime=f.proto3,Te.typeName="aiserver.v1.ErrorAnalyticsMetadata",Te.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"action_required",kind:"scalar",T:9,opt:!0}]));class ye extends f.Message{constructor(e){super(),this.label="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ye,e,t)}}ye.runtime=f.proto3,ye.typeName="aiserver.v1.PlanChoice",ye.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"sublabel",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"value",kind:"scalar",T:9}]));class Se extends f.Message{constructor(e){super(),this.label="",this.action={case:void 0},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Se,e,t)}}Se.runtime=f.proto3,Se.typeName="aiserver.v1.ErrorButton",Se.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"upgrade",kind:"message",T:Ee,oneof:"action"},{no:3,name:"switch_model",kind:"message",T:be,oneof:"action"},{no:4,name:"configure_spend_limit",kind:"message",T:je,oneof:"action"},{no:5,name:"url",kind:"message",T:xe,oneof:"action"},{no:6,name:"upgrade_choice",kind:"message",T:ve,oneof:"action"},{no:7,name:"dashboard_action",kind:"message",T:Je,oneof:"action"},{no:8,name:"reload_window",kind:"message",T:ke,oneof:"action"},{no:9,name:"client_action",kind:"message",T:we,oneof:"action"}]));class we extends f.Message{constructor(e){super(),this.commandId="",this.args={},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(we,e,t)}}we.runtime=f.proto3,we.typeName="aiserver.v1.ClientAction",we.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"command_id",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"scalar",T:9}}]));class ke extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ke,e,t)}}ke.runtime=f.proto3,ke.typeName="aiserver.v1.ReloadWindowAction",ke.fields=f.proto3.util.newFieldList((()=>[]));class Je extends f.Message{constructor(e){super(),this.action="",this.args={},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Je,e,t)}}Je.runtime=f.proto3,Je.typeName="aiserver.v1.DashboardAction",Je.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"action",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:3,name:"success_message",kind:"scalar",T:9,opt:!0}]));class ve extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ve,e,t)}}ve.runtime=f.proto3,ve.typeName="aiserver.v1.UpgradeChoice",ve.fields=f.proto3.util.newFieldList((()=>[]));class Ee extends f.Message{constructor(e){super(),this.membershipToUpgradeTo="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ee,e,t)}}Ee.runtime=f.proto3,Ee.typeName="aiserver.v1.UpgradeAction",Ee.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"membership_to_upgrade_to",kind:"scalar",T:9},{no:2,name:"try_immediate_upgrade",kind:"scalar",T:8,opt:!0},{no:3,name:"allow_trial",kind:"scalar",T:8,opt:!0}]));class be extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(be,e,t)}}be.runtime=f.proto3,be.typeName="aiserver.v1.SwitchModelAction",be.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"suggested_model",kind:"scalar",T:9,opt:!0}]));class je extends f.Message{constructor(e){super(),this.confirmLabel="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(je,e,t)}}je.runtime=f.proto3,je.typeName="aiserver.v1.ConfigureSpendLimitAction",je.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"confirm_label",kind:"scalar",T:9}]));class xe extends f.Message{constructor(e){super(),this.url="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(xe,e,t)}}xe.runtime=f.proto3,xe.typeName="aiserver.v1.UrlAction",xe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));class Ne extends f.Message{constructor(e){super(),this.data=new Uint8Array(0),this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ne,e,t)}}Ne.runtime=f.proto3,Ne.typeName="aiserver.v1.ImageProto",Ne.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"dimension",kind:"message",T:Pe},{no:3,name:"uuid",kind:"scalar",T:9},{no:4,name:"task_specific_description",kind:"scalar",T:9,opt:!0}]));class Pe extends f.Message{constructor(e){super(),this.width=0,this.height=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Pe,e,t)}}Pe.runtime=f.proto3,Pe.typeName="aiserver.v1.ImageProto.Dimension",Pe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class Be extends f.Message{constructor(e){super(),this.markdown="",this.bubbleId="",this.sectionIndex=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Be,e,t)}}Be.runtime=f.proto3,Be.typeName="aiserver.v1.ChatQuote",Be.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"markdown",kind:"scalar",T:9},{no:2,name:"bubble_id",kind:"scalar",T:9},{no:3,name:"section_index",kind:"scalar",T:5}]));class Ie extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ie,e,t)}}Ie.runtime=f.proto3,Ie.typeName="aiserver.v1.ChatExternalLink",Ie.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0}]));class qe extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(qe,e,t)}}qe.runtime=f.proto3,qe.typeName="aiserver.v1.ComposerExternalLink",qe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0}]));class Re extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Re,e,t)}}Re.runtime=f.proto3,Re.typeName="aiserver.v1.CmdKExternalLink",Re.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]));class Me extends f.Message{constructor(e){super(),this.note="",this.commitHash="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Me,e,t)}}Me.runtime=f.proto3,Me.typeName="aiserver.v1.CommitNote",Me.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"note",kind:"scalar",T:9},{no:2,name:"commit_hash",kind:"scalar",T:9}]));class Oe extends f.Message{constructor(e){super(),this.note="",this.commitHash="",this.embeddings=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Oe,e,t)}}Oe.runtime=f.proto3,Oe.typeName="aiserver.v1.CommitNoteWithEmbeddings",Oe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"note",kind:"scalar",T:9},{no:2,name:"commit_hash",kind:"scalar",T:9},{no:3,name:"embeddings",kind:"scalar",T:1,repeated:!0}]));class Fe extends f.Message{constructor(e){super(),this.diff="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Fe,e,t)}}Fe.runtime=f.proto3,Fe.typeName="aiserver.v1.CommitDiffString",Fe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diff",kind:"scalar",T:9}]));class Ae extends f.Message{constructor(e){super(),this.notes=[],this.commitHash="",this.repoUrl="",this.filesChangedRelativePath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ae).fromBinary(e,t)}static fromJson(e,t){return(new Ae).fromJson(e,t)}static fromJsonString(e,t){return(new Ae).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ae,e,t)}}Ae.runtime=f.proto3,Ae.typeName="aiserver.v1.FullCommitNotes",Ae.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"notes",kind:"message",T:Me,repeated:!0},{no:2,name:"commit_hash",kind:"scalar",T:9},{no:3,name:"repo_url",kind:"scalar",T:9},{no:4,name:"files_changed_relative_path",kind:"scalar",T:9}]));class Le extends f.Message{constructor(e){super(),this.key="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Le).fromBinary(e,t)}static fromJson(e,t){return(new Le).fromJson(e,t)}static fromJsonString(e,t){return(new Le).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Le,e,t)}}Le.runtime=f.proto3,Le.typeName="aiserver.v1.CrossExtHostHeader",Le.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class Ce extends f.Message{constructor(e){super(),this.headers=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ce).fromBinary(e,t)}static fromJson(e,t){return(new Ce).fromJson(e,t)}static fromJsonString(e,t){return(new Ce).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ce,e,t)}}Ce.runtime=f.proto3,Ce.typeName="aiserver.v1.CrossExtHostHeaders",Ce.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"headers",kind:"message",T:Le,repeated:!0}]));class Ue extends f.Message{constructor(e){super(),this.message=new Uint8Array(0),this.isError=!1,this.connectError="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ue,e,t)}}Ue.runtime=f.proto3,Ue.typeName="aiserver.v1.SimpleUnaryCrossExtensionHostMessage",Ue.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:12},{no:2,name:"header",kind:"message",T:Ce},{no:3,name:"trailer",kind:"message",T:Ce},{no:4,name:"is_error",kind:"scalar",T:8},{no:5,name:"connect_error",kind:"scalar",T:9}]));class De extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.startLineNumber=0,this.lines=[],this.languageIdentifier="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(De,e,t)}}De.runtime=f.proto3,De.typeName="aiserver.v1.CodeChunk",De.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"start_line_number",kind:"scalar",T:5},{no:3,name:"lines",kind:"scalar",T:9,repeated:!0},{no:4,name:"summarization_strategy",kind:"enum",T:f.proto3.getEnumType(p),opt:!0},{no:5,name:"language_identifier",kind:"scalar",T:9},{no:6,name:"intent",kind:"enum",T:f.proto3.getEnumType(d),opt:!0},{no:7,name:"is_final_version",kind:"scalar",T:8,opt:!0},{no:8,name:"is_first_version",kind:"scalar",T:8,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.COMPOSER_FILE=1]="COMPOSER_FILE",e[e.COMPRESSED_COMPOSER_FILE=2]="COMPRESSED_COMPOSER_FILE"}(d||(d={})),f.proto3.util.setEnumType(d,"aiserver.v1.CodeChunk.Intent",[{no:0,name:"INTENT_UNSPECIFIED"},{no:1,name:"INTENT_COMPOSER_FILE"},{no:2,name:"INTENT_COMPRESSED_COMPOSER_FILE"}]),function(e){e[e.NONE_UNSPECIFIED=0]="NONE_UNSPECIFIED",e[e.SUMMARIZED=1]="SUMMARIZED",e[e.EMBEDDED=2]="EMBEDDED"}(p||(p={})),f.proto3.util.setEnumType(p,"aiserver.v1.CodeChunk.SummarizationStrategy",[{no:0,name:"SUMMARIZATION_STRATEGY_NONE_UNSPECIFIED"},{no:1,name:"SUMMARIZATION_STRATEGY_SUMMARIZED"},{no:2,name:"SUMMARIZATION_STRATEGY_EMBEDDED"}]);class Ge extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ge,e,t)}}Ge.runtime=f.proto3,Ge.typeName="aiserver.v1.RCPCallFrame",Ge.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"function_name",kind:"scalar",T:9,opt:!0},{no:2,name:"url",kind:"scalar",T:9,opt:!0},{no:3,name:"line_number",kind:"scalar",T:5,opt:!0},{no:4,name:"column_number",kind:"scalar",T:5,opt:!0}]));class He extends f.Message{constructor(e){super(),this.callFrames=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(He,e,t)}}He.runtime=f.proto3,He.typeName="aiserver.v1.RCPStackTrace",He.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"call_frames",kind:"message",T:Ge,repeated:!0},{no:2,name:"raw_stack_trace",kind:"scalar",T:9,opt:!0}]));class Ke extends f.Message{constructor(e){super(),this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ke,e,t)}}Ke.runtime=f.proto3,Ke.typeName="aiserver.v1.RCPLogEntry",Ke.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:1},{no:3,name:"level",kind:"scalar",T:9},{no:4,name:"client_name",kind:"scalar",T:9},{no:5,name:"session_id",kind:"scalar",T:9},{no:6,name:"stack_trace",kind:"message",T:He,opt:!0},{no:7,name:"object_data_json",kind:"scalar",T:9,opt:!0}]));class We extends f.Message{constructor(e){super(),this.element="",this.xpath="",this.textContent="",this.extra="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(We,e,t)}}We.runtime=f.proto3,We.typeName="aiserver.v1.RCPUIElementPicked",We.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"element",kind:"scalar",T:9},{no:2,name:"xpath",kind:"scalar",T:9},{no:3,name:"text_content",kind:"scalar",T:9},{no:4,name:"extra",kind:"scalar",T:9},{no:5,name:"component",kind:"scalar",T:9,opt:!0},{no:6,name:"component_props_json",kind:"scalar",T:9,opt:!0}]));class Ye extends f.Message{constructor(e){super(),this.text="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ye,e,t)}}Ye.runtime=f.proto3,Ye.typeName="aiserver.v1.RCPChatMessage",Ye.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class ze extends f.Message{constructor(e){super(),this.message={case:void 0},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ze,e,t)}}ze.runtime=f.proto3,ze.typeName="aiserver.v1.RCPMessage",ze.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"console",kind:"message",T:Ke,oneof:"message"},{no:2,name:"ui_element_picked",kind:"message",T:We,oneof:"message"},{no:3,name:"chat_message",kind:"message",T:Ye,oneof:"message"}]))},"../utils/dist/disposable.js"(e,t,n){n.d(t,{j:()=>r});class r{}},"../utils/dist/promise-extras.js"(e,t,n){n.d(t,{PH:()=>s});var r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/index.js");function s(e,t,n){return s=this,o=void 0,a=function*(){const{max:s=4}=null!=n?n:{},o=(0,r.from)(e.map(((e,t)=>t))).pipe((0,r.map)((n=>(0,r.defer)((()=>(0,r.from)(t(e[n])).pipe((0,r.map)((e=>({idx:n,v:e})))))))),(0,r.mergeAll)(s),(0,r.reduce)(((e,t)=>(e[t.idx]=t.v,e)),[]));return(0,r.firstValueFrom)(o)},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function r(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(n,r)}l((a=a.apply(s,o||[])).next())}));var s,o,i,a}Error}},g={};function _(e){var t=g[e];if(void 0!==t)return t.exports;var n=g[e]={exports:{}};return f[e].call(n.exports,n,n.exports,_),n.exports}_.m=f,a="function"==typeof Symbol,l=a?Symbol("webpack queues"):"__webpack_queues__",u=a?Symbol("webpack exports"):"__webpack_exports__",m=a?Symbol("webpack error"):"__webpack_error__",c=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},_.a=(e,t,n)=>{var r;n&&((r=[]).d=-1);var s,o,i,a=new Set,d=e.exports,p=new Promise(((e,t)=>{i=t,o=e}));p[u]=d,p[l]=e=>(r&&e(r),a.forEach(e),p.catch((e=>{}))),e.exports=p,t((e=>{var t;s=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[l])return e;if(e.then){var t=[];t.d=0,e.then((e=>{n[u]=e,c(t)}),(e=>{n[m]=e,c(t)}));var n={};return n[l]=e=>e(t),n}}var r={};return r[l]=e=>{},r[u]=e,r})))(e);var n=()=>s.map((e=>{if(e[m])throw e[m];return e[u]})),o=new Promise((e=>{(t=()=>e(n)).r=0;var o=e=>e!==r&&!a.has(e)&&(a.add(e),e&&!e.d&&(t.r++,e.push(t)));s.map((e=>e[l](o)))}));return t.r?o:n()}),(e=>(e?i(p[m]=e):o(d),c(r)))),r&&r.d<0&&(r.d=0)},_.d=(e,t)=>{for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.f={},_.e=e=>Promise.all(Object.keys(_.f).reduce(((t,n)=>(_.f[n](e,t),t)),[])),_.u=e=>e+".js",_.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d={279:0},p=e=>{var t,n,{__webpack_esm_ids__:r,__webpack_esm_modules__:s,__webpack_esm_runtime__:o}=e,i=0;for(t in s)_.o(s,t)&&(_.m[t]=s[t]);for(o&&o(_);i<r.length;i++)n=r[i],_.o(d,n)&&d[n]&&d[n][0](),d[r[i]]=0},_.f.j=(e,t)=>{var n=_.o(d,e)?d[e]:void 0;if(0!==n)if(n)t.push(n[1]);else{var r=import("./"+_.u(e)).then(p,(t=>{throw 0!==d[e]&&(d[e]=void 0),t}));r=Promise.race([r,new Promise((t=>n=d[e]=[t]))]),t.push(n[1]=r)}};var h=_("../agent-kv/dist/index.js"),T=_("../context/dist/core.js");function y(e){var t,n;return{agentId:e.agentId,cwd:e.workspaceRef,status:E(e.status),activeRunId:null!==(t=e.activeRunId)&&void 0!==t?t:null,latestCheckpoint:e.latestCheckpointRef?J(e.latestCheckpointRef):null,name:null!==(n=e.name)&&void 0!==n?n:null,createdAt:e.createdAt.getTime(),updatedAt:e.updatedAt.getTime(),sdkMetadata:e.metadata}}function S(e){var t,n,r,s,o,i,a,l,u,m,c,d,p,f;const g=null!==(i=null!==(s=null!==(n=null===(t=e.finishedAt)||void 0===t?void 0:t.getTime())&&void 0!==n?n:null===(r=e.cancelledAt)||void 0===r?void 0:r.getTime())&&void 0!==s?s:null===(o=e.expiredAt)||void 0===o?void 0:o.getTime())&&void 0!==i?i:null;return{runId:e.runId,requestId:null!==(a=e.requestId)&&void 0!==a?a:null,agentId:e.agentId,turnNumber:e.turnNumber,status:j(e.status),model:null!==(l=e.model)&&void 0!==l?l:null,result:null!==(u=e.result)&&void 0!==u?u:null,error:null!==(m=e.errorCode)&&void 0!==m?m:null,usageRef:null!==(c=e.usageRef)&&void 0!==c?c:null,usage:null!==(d=e.usage)&&void 0!==d?d:null,createdAt:e.createdAt.getTime(),updatedAt:e.updatedAt.getTime(),startedAt:null!==(f=null===(p=e.startedAt)||void 0===p?void 0:p.getTime())&&void 0!==f?f:null,endedAt:g,startCheckpointRef:e.startCheckpointRef?J(e.startCheckpointRef):null,latestCheckpointRef:e.latestCheckpointRef?J(e.latestCheckpointRef):null}}function w(e){var t,n,r;return{agentId:e.agentId,workspaceRef:e.cwd,status:b(e.status),activeRunId:null!==(t=e.activeRunId)&&void 0!==t?t:null,latestCheckpointRef:e.latestCheckpoint?v(e.latestCheckpoint):null,name:null!==(n=e.name)&&void 0!==n?n:null,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:null!==(r=e.sdkMetadata)&&void 0!==r?r:{}}}function k(e){var t,n,r,s,o,i;const a=function(e){switch(e){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}(e.status),l=e.endedAt?new Date(e.endedAt):null;return{runId:e.runId,requestId:null!==(t=e.requestId)&&void 0!==t?t:null,agentId:e.agentId,turnNumber:e.turnNumber,status:a,model:null!==(n=e.model)&&void 0!==n?n:null,startCheckpointRef:e.startCheckpointRef?v(e.startCheckpointRef):null,latestCheckpointRef:e.latestCheckpointRef?v(e.latestCheckpointRef):null,errorCode:null!==(r=e.error)&&void 0!==r?r:null,result:null!==(s=e.result)&&void 0!==s?s:null,usageRef:null!==(o=e.usageRef)&&void 0!==o?o:null,usage:null!==(i=e.usage)&&void 0!==i?i:null,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),startedAt:e.startedAt?new Date(e.startedAt):null,finishedAt:"FINISHED"===a?l:null,cancelledAt:"CANCELLED"===a?l:null,expiredAt:"EXPIRED"===a?l:null}}function J(e){return{schemaVersion:1,rootBlobId:e.blobId}}function v(e){return{blobId:e.rootBlobId,storeKind:"local-agent-store"}}function E(e){switch(e){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function b(e){switch(e){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function j(e){switch(e){case"QUEUED":return"queued";case"CREATING":case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function x(e,t){var n,r,s,o;return!(((null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)||(null===(r=null==t?void 0:t.blobIds)||void 0===r?void 0:r.length))&&((null===(s=t.agentIds)||void 0===s?void 0:s.length)&&!t.agentIds.includes(e.agentId)||(null===(o=t.blobIds)||void 0===o?void 0:o.length)&&!t.blobIds.includes(e.blobId)))}function N(e,t){var n,r,s,o;return!(((null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)||(null===(r=null==t?void 0:t.runIds)||void 0===r?void 0:r.length))&&((null===(s=t.agentIds)||void 0===s?void 0:s.length)&&!t.agentIds.includes(e.agentId)||(null===(o=t.runIds)||void 0===o?void 0:o.length)&&!t.runIds.includes(e.runId)))}function P(e,t){return t.updatedAt!==e.updatedAt?t.updatedAt-e.updatedAt:t.agentId.localeCompare(e.agentId)}function B(e,t){return e.turnNumber!==t.turnNumber?e.turnNumber-t.turnNumber:e.runId.localeCompare(t.runId)}function I(e){return Buffer.from(JSON.stringify(e),"utf8").toString("base64url")}function q(e){try{const t=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));if("object"==typeof t&&null!==t&&!Array.isArray(t))return t}catch(e){}throw new Error("Invalid list cursor")}var R=_("node:crypto?8af2"),M=_("node:path");var O=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};function F(e){var t,n,r;return{runId:e.runId,seq:e.seq,offset:e.offset,eventType:e.eventType,payload:null!==(t=e.payload)&&void 0!==t?t:null,payloadRef:null!==(n=e.payloadRef)&&void 0!==n?n:null,idempotencyKey:null!==(r=e.idempotencyKey)&&void 0!==r?r:null,createdAt:e.createdAt.getTime()}}function A(e){return O(this,void 0,void 0,(function*(){return(yield e.listAllAgentRecords()).map((e=>e.agentId))}))}function L(e){const t=(0,T.q6)();return{get:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r}){const s=yield e.checkpointStore.getBlobStore(n),o=yield s.getBlob(t,(0,h.aD)(r));return o?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(o):null})),create:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r,data:s}){const o=yield e.checkpointStore.getBlobStore(n);if(yield o.getBlob(t,(0,h.aD)(r)))throw new Error(`Checkpoint blob ${r} already exists for agent ${n}`);yield o.setBlob(t,(0,h.aD)(r),s)})),update:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r,data:s}){const o=yield e.checkpointStore.getBlobStore(n);if(!(yield o.getBlob(t,(0,h.aD)(r))))throw new Error(`Checkpoint blob ${r} not found for agent ${n}`);yield o.setBlob(t,(0,h.aD)(r),s)})),delete:t=>O(this,void 0,void 0,(function*(){const n=t.filter.agentIds&&t.filter.agentIds.length>0?t.filter.agentIds:yield A(e.runStore),r=t.filter.blobIds;for(const t of n)if(null==r?void 0:r.length){const n=yield e.checkpointStore.getBlobStore(t);for(const e of r)yield n.deleteBlob(e)}else yield e.checkpointStore.deleteAgent(t)})),list:t=>O(this,void 0,void 0,(function*(){const n=null==t?void 0:t.filter,r=(null==n?void 0:n.agentIds)&&n.agentIds.length>0?n.agentIds:yield A(e.runStore),s=[];for(const t of r){const r=yield e.checkpointStore.listCheckpointBlobIds(t);for(const e of r)x({agentId:t,blobId:e},n)&&s.push(e)}return function(e,t){var n;const r=[...e].sort(((e,t)=>e.localeCompare(t))),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;(null==t?void 0:t.cursor)&&(o=r.filter((e=>e>t.cursor)));const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i},o.length>s&&a?{nextCursor:a}:{})}(s,n)}))}}function C(e,t){return O(this,void 0,void 0,(function*(){return(yield e.runStore.listAllRunRecords([t])).map((e=>e.runId))}))}class U{static open(e){return O(this,void 0,void 0,(function*(){var t;const n=null!==(t=e.stateRoot)&&void 0!==t?t:function(e){const t=(0,R.createHash)("md5").update(e).digest("hex");return(0,M.join)(`${i()}/.cursor/projects/${e.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}`,"sdk-agent-store",t)}(e.workspaceRef),{createDefaultLocalAgentStores:r}=yield _.e(400).then(_.bind(_,"../cursor-sdk-local-runtime/dist/run-store/default-local-agent-stores.js")),s=yield r({stateRoot:n,workspaceRef:e.workspaceRef}),o=s.store,a=s.eventStore,l=s.checkpointStore;return function(e,t,n){if("function"!=typeof e.upsertAgentRecord)throw new Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if("function"!=typeof n.appendRunEvent)throw new Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if("function"!=typeof t.listCheckpointBlobIds)throw new Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}(o,l,a),new U({stateRoot:n,workspaceRef:e.workspaceRef,runStore:o,checkpointStore:l,eventStore:a})}))}constructor(e){this.stateRoot=e.stateRoot,this.workspaceRef=e.workspaceRef,this.deps={runStore:e.runStore,checkpointStore:e.checkpointStore,eventStore:e.eventStore},this.agents=function(e){return{get:t=>O(this,[t],void 0,(function*({agentId:t}){const n=yield e.runStore.getAgent(t);return n?y(n):null})),create:t=>O(this,[t],void 0,(function*({agent:t}){if(yield e.runStore.getAgent(t.agentId))throw new Error(`Agent ${t.agentId} already exists`);yield e.runStore.upsertAgentRecord(w(t));const n=yield e.runStore.getAgent(t.agentId);if(!n)throw new Error(`Failed to create agent ${t.agentId}`);return y(n)})),update:t=>O(this,[t],void 0,(function*({agent:t}){if(!(yield e.runStore.getAgent(t.agentId)))throw new Error(`Agent ${t.agentId} not found`);yield e.runStore.upsertAgentRecord(w(t));const n=yield e.runStore.getAgent(t.agentId);if(!n)throw new Error(`Failed to update agent ${t.agentId}`);return y(n)})),delete:t=>O(this,[t],void 0,(function*({filter:t}){const n=(yield e.runStore.listAllAgentRecords()).map(y).filter((e=>function(e,t){var n,r;return!(null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)&&void 0===(null==t?void 0:t.cwd)||!((null===(r=t.agentIds)||void 0===r?void 0:r.length)&&!t.agentIds.includes(e.agentId))&&(void 0===t.cwd||e.cwd===t.cwd)}(e,t)));if(0===n.length)throw new Error("No agents matched delete filter");for(const t of n){const n=yield C(e,t.agentId);for(const t of n)yield e.eventStore.deleteRunEvents({runId:t});yield e.checkpointStore.deleteAgent(t.agentId),yield e.runStore.deleteAgent(t.agentId)}})),list:t=>O(this,void 0,void 0,(function*(){return function(e,t){var n;const r=[...void 0===(null==t?void 0:t.cwd)?e:e.filter((e=>e.cwd===t.cwd))].sort(P),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;if(null==t?void 0:t.cursor){const e=function(e){const t=q(e);if("number"!=typeof t.updatedAt||"string"!=typeof t.agentId)throw new Error("Invalid agent list cursor");return{updatedAt:t.updatedAt,agentId:t.agentId}}(t.cursor);o=r.filter((t=>function(e,t){return e.updatedAt<t.updatedAt||!(e.updatedAt>t.updatedAt)&&e.agentId<t.agentId}(t,e)))}const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i.map((e=>structuredClone(e)))},o.length>s&&a?{nextCursor:I({updatedAt:a.updatedAt,agentId:a.agentId})}:{})}((yield e.runStore.listAllAgentRecords()).map(y),null==t?void 0:t.filter)}))}}(this.deps),this.checkpoints=L(this.deps),this.runs=function(e){return{get:t=>O(this,[t],void 0,(function*({agentId:t,runId:n}){const r=yield e.runStore.getRun(t,n);return r?S(r):null})),create:t=>O(this,[t],void 0,(function*({run:t}){if(yield e.runStore.getRun(t.agentId,t.runId))throw new Error(`Run ${t.runId} already exists for agent ${t.agentId}`);yield e.runStore.upsertRunRecord(k(t));const n=yield e.runStore.getRun(t.agentId,t.runId);if(!n)throw new Error(`Failed to create run ${t.runId} for agent ${t.agentId}`);return S(n)})),update:t=>O(this,[t],void 0,(function*({run:t}){if(!(yield e.runStore.getRun(t.agentId,t.runId)))throw new Error(`Run ${t.runId} not found for agent ${t.agentId}`);yield e.runStore.upsertRunRecord(k(t));const n=yield e.runStore.getRun(t.agentId,t.runId);if(!n)throw new Error(`Failed to update run ${t.runId} for agent ${t.agentId}`);return S(n)})),delete:t=>O(this,void 0,void 0,(function*(){const n=t.filter,r=(null==n?void 0:n.agentIds)&&n.agentIds.length>0?n.agentIds:void 0,s=(yield e.runStore.listAllRunRecords(r)).map(S).filter((e=>N(e,n)));if(0!==s.length){for(const t of s)yield e.eventStore.deleteRunEvents({runId:t.runId});yield e.runStore.deleteRunRecordsByKeys(s.map((e=>({agentId:e.agentId,runId:e.runId}))))}})),list:t=>O(this,void 0,void 0,(function*(){const n=null==t?void 0:t.filter;return function(e,t){var n;const r=[...e].sort(B),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;if(null==t?void 0:t.cursor){const e=function(e){const t=q(e);if("number"!=typeof t.turnNumber||"string"!=typeof t.runId)throw new Error("Invalid run list cursor");return{turnNumber:t.turnNumber,runId:t.runId}}(t.cursor);o=r.filter((t=>function(e,t){return e.turnNumber>t.turnNumber||!(e.turnNumber<t.turnNumber)&&e.runId>t.runId}(t,e)))}const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i.map((e=>structuredClone(e)))},o.length>s&&a?{nextCursor:I({turnNumber:a.turnNumber,runId:a.runId})}:{})}((yield e.runStore.listAllRunRecords(null==n?void 0:n.agentIds)).map(S).filter((e=>N(e,n))),n)}))}}(this.deps),this.runEvents=function(e){return{append:t=>O(this,void 0,void 0,(function*(){return F(yield e.appendRunEvent({runId:t.runId,eventType:t.eventType,payload:t.payload,payloadRef:t.payloadRef,idempotencyKey:t.idempotencyKey}))})),list:t=>O(this,void 0,void 0,(function*(){var n;const r=yield e.listRunEvents({runId:t.runId,afterOffset:null!==(n=t.afterOffset)&&void 0!==n?n:void 0,limit:t.limit});return Object.assign({items:r.events.map(F)},void 0!==r.nextOffset?{nextOffset:r.nextOffset}:{})})),delete:t=>O(this,void 0,void 0,(function*(){var n;const r=null!==(n=t.filter.runIds)&&void 0!==n?n:[];for(const t of r)yield e.deleteRunEvents({runId:t})}))}}(e.eventStore)}dispose(){return O(this,void 0,void 0,(function*(){yield Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}))}}export{U as SqliteLocalAgentStore};
1
+ import*as e from"@bufbuild/protobuf";import*as t from"node:crypto";import*as n from"node:fs";import*as r from"node:fs/promises";import*as s from"node:path";import*as o from"zod";import{homedir as i}from"node:os";var a,l,u,m,c,d,p,f={"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/index.js"(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.range=t.race=t.partition=t.onErrorResumeNext=t.of=t.merge=t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.forkJoin=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.TimeoutError=t.SequenceError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.identity=t.noop=t.pipe=t.rx=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.queueScheduler=t.asyncScheduler=t.asapScheduler=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.isObservable=t.UnsubscriptionError=t.operate=t.Subscriber=t.Subscription=t.config=t.from=t.Observable=void 0,t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=void 0,t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.mergeAll=void 0,t.zipWith=t.zipAll=t.withLatestFrom=void 0;var o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}}),Object.defineProperty(t,"from",{enumerable:!0,get:function(){return o.from}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return o.config}}),Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return o.Subscription}}),Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return o.Subscriber}}),Object.defineProperty(t,"operate",{enumerable:!0,get:function(){return o.operate}}),Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return o.UnsubscriptionError}}),Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return o.isObservable}});var i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js");Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return i.animationFrames}});var a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return a.Subject}});var l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js");Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var u=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js");Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return u.ReplaySubject}});var m=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js");Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return m.AsyncSubject}});var c=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js");Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return c.asapScheduler}});var d=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js");Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}});var p=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js");Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return p.queueScheduler}});var f=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js");Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return f.animationFrameScheduler}});var g=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js");Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var _=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js");Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return _.Scheduler}});var h=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js");Object.defineProperty(t,"rx",{enumerable:!0,get:function(){return h.rx}});var T=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js");Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return T.pipe}});var y=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return y.noop}});var S=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return S.identity}});var w=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js");Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return w.lastValueFrom}});var k=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js");Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var J=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js");Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return J.ArgumentOutOfRangeError}});var v=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return v.EmptyError}});var E=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js");Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return E.NotFoundError}});var b=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js");Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return b.SequenceError}});var j=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return j.TimeoutError}});var x=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js");Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return x.bindCallback}});var N=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js");Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return N.bindNodeCallback}});var P=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js");Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return P.combineLatest}});var I=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js");Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return I.concat}});var B=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/connectable.js");Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return B.connectable}});var q=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js");Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return q.defer}});var R=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js");Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return R.forkJoin}});var M=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js");Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return M.fromEvent}});var O=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js");Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return O.fromEventPattern}});var F=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/generate.js");Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return F.generate}});var A=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/iif.js");Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return A.iif}});var L=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js");Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return L.interval}});var C=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/merge.js");Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return C.merge}});var U=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/of.js");Object.defineProperty(t,"of",{enumerable:!0,get:function(){return U.of}});var D=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js");Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return D.onErrorResumeNext}});var G=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/partition.js");Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return G.partition}});var H=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js");Object.defineProperty(t,"race",{enumerable:!0,get:function(){return H.race}});var K=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/range.js");Object.defineProperty(t,"range",{enumerable:!0,get:function(){return K.range}});var W=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/throwError.js");Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return W.throwError}});var Y=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return Y.timer}});var z=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/using.js");Object.defineProperty(t,"using",{enumerable:!0,get:function(){return z.using}});var V=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js");Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return V.zip}});var Q=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return Q.scheduled}});var X=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return X.EMPTY}});var $=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/never.js");Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return $.NEVER}}),s(n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/types.js"),t);var Z=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js");Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return Z.audit}});var ee=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js");Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return ee.auditTime}});var te=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/buffer.js");Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return te.buffer}});var ne=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js");Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return ne.bufferCount}});var re=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js");Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return re.bufferTime}});var se=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js");Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return se.bufferToggle}});var oe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js");Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return oe.bufferWhen}});var ie=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/catchError.js");Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ie.catchError}});var ae=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js");Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return ae.combineLatestAll}});var le=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js");Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return le.combineLatestWith}});var ue=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js");Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return ue.concatAll}});var me=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js");Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return me.concatMap}});var ce=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js");Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return ce.concatMapTo}});var de=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js");Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return de.concatWith}});var pe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/connect.js");Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return pe.connect}});var fe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/count.js");Object.defineProperty(t,"count",{enumerable:!0,get:function(){return fe.count}});var ge=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounce.js");Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return ge.debounce}});var _e=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js");Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return _e.debounceTime}});var he=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js");Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return he.defaultIfEmpty}});var Te=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delay.js");Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Te.delay}});var ye=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js");Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return ye.delayWhen}});var Se=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js");Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Se.dematerialize}});var we=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinct.js");Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return we.distinct}});var ke=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js");Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return ke.distinctUntilChanged}});var Je=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js");Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Je.distinctUntilKeyChanged}});var ve=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js");Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return ve.elementAt}});var Ee=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/endWith.js");Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Ee.endWith}});var be=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/every.js");Object.defineProperty(t,"every",{enumerable:!0,get:function(){return be.every}});var je=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js");Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return je.exhaustAll}});var xe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js");Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return xe.exhaustMap}});var Ne=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/expand.js");Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return Ne.expand}});var Pe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js");Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return Pe.filter}});var Ie=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/finalize.js");Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return Ie.finalize}});var Be=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js");Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Be.find}});var qe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js");Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return qe.findIndex}});var Re=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/first.js");Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Re.first}});var Me=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js");Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Me.groupBy}});var Oe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js");Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Oe.ignoreElements}});var Fe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js");Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Fe.isEmpty}});var Ae=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/last.js");Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Ae.last}});var Le=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Le.map}});var Ce=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js");Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return Ce.mapTo}});var Ue=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/materialize.js");Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Ue.materialize}});var De=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/max.js");Object.defineProperty(t,"max",{enumerable:!0,get:function(){return De.max}});var Ge=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return Ge.mergeAll}});var He=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return He.mergeMap}});var Ke=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js");Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return Ke.mergeMapTo}});var We=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js");Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return We.mergeScan}});var Ye=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js");Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return Ye.mergeWith}});var ze=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/min.js");Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ze.min}});var Ve=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js");Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return Ve.observeOn}});var Qe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js");Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Qe.onErrorResumeNextWith}});var Xe=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js");Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return Xe.pairwise}});var $e=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js");Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return $e.raceWith}});var Ze=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js");Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return Ze.reduce}});var et=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeat.js");Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return et.repeat}});var tt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js");Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return tt.repeatWhen}});var nt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retry.js");Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return nt.retry}});var rt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js");Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return rt.retryWhen}});var st=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js");Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return st.sample}});var ot=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js");Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return ot.sampleTime}});var it=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scan.js");Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return it.scan}});var at=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js");Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return at.sequenceEqual}});var lt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js");Object.defineProperty(t,"share",{enumerable:!0,get:function(){return lt.share}});var ut=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js");Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return ut.shareReplay}});var mt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/single.js");Object.defineProperty(t,"single",{enumerable:!0,get:function(){return mt.single}});var ct=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skip.js");Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return ct.skip}});var dt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js");Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return dt.skipLast}});var pt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js");Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return pt.skipUntil}});var ft=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js");Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return ft.skipWhile}});var gt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/startWith.js");Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return gt.startWith}});var _t=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return _t.subscribeOn}});var ht=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js");Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return ht.switchAll}});var Tt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js");Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Tt.switchMap}});var yt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js");Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return yt.switchMapTo}});var St=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js");Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return St.switchScan}});var wt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js");Object.defineProperty(t,"take",{enumerable:!0,get:function(){return wt.take}});var kt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js");Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return kt.takeLast}});var Jt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js");Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Jt.takeUntil}});var vt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js");Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return vt.takeWhile}});var Et=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/tap.js");Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Et.tap}});var bt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js");Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return bt.throttle}});var jt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js");Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return jt.throttleTime}});var xt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js");Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return xt.throwIfEmpty}});var Nt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js");Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Nt.timeInterval}});var Pt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Pt.timeout}});var It=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js");Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return It.timeoutWith}});var Bt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js");Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Bt.timestamp}});var qt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js");Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return qt.toArray}});var Rt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/window.js");Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Rt.window}});var Mt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js");Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return Mt.windowCount}});var Ot=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js");Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return Ot.windowTime}});var Ft=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js");Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return Ft.windowToggle}});var At=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js");Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return At.windowWhen}});var Lt=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js");Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return Lt.withLatestFrom}});var Ct=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js");Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return Ct.zipAll}});var Ut=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js");Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return Ut.zipWith}})},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");class s extends r.Subject{_value=null;_hasValue=!1;_isComplete=!1;_checkFinalizedStatuses(e){const{hasError:t,_hasValue:n,_value:r,thrownError:s,_closed:o,_isComplete:i}=this;t?e.error(s):(o||i)&&(n&&e.next(r),e.complete())}next(e){this._closed||(this._value=e,this._hasValue=!0)}complete(){const{_hasValue:e,_value:t,_isComplete:n}=this;n||(this._isComplete=!0,e&&super.next(t),super.complete())}}t.AsyncSubject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");class s extends r.Subject{_value;constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){const{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return n}next(e){super.next(this._value=e)}}t.BehaviorSubject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Notification.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=void 0,t.observeNotification=function(e,t){const{kind:n,value:r,error:s}=e;if("string"!=typeof n)throw new TypeError('Invalid notification, missing "kind"');"N"===n?t.next?.(r):"E"===n?t.error?.(s):t.complete?.()}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=t.isObservable=t.isArrayLike=t.isPromise=t.readableStreamLikeToAsyncGenerator=t.isFunction=t.getObservableInputType=t.ObservableInputType=t.subscribeToArray=t.fromPromise=t.fromArrayLike=t.from=t.reportUnhandledError=t.Observable=t.operate=t.config=t.Subscriber=t.Subscription=t.UnsubscriptionError=void 0;class n extends Error{errors;constructor(e){super(e?`${e.length} errors occurred during unsubscription:\n${e.map(((e,t)=>`${t+1}) ${e.toString()}`)).join("\n ")}`:""),this.errors=e,this.name="UnsubscriptionError"}}t.UnsubscriptionError=n;class r{initialTeardown;static EMPTY=(()=>{const e=new r;return e.closed=!0,e})();closed=!1;_finalizers=null;constructor(e){this.initialTeardown=e}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{initialTeardown:t}=this;if(S(t))try{t()}catch(t){e=t instanceof n?t.errors:[t]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const t of r)try{s(t)}catch(t){e=e??[],t instanceof n?e.push(...t.errors):e.push(t)}}if(e)throw new n(e)}}add(e){e&&e!==this&&(this.closed?s(e):(e&&"add"in e&&e.add((()=>{this.remove(e)})),this._finalizers??=new Set,this._finalizers.add(e)))}remove(e){this._finalizers?.delete(e)}}function s(e){S(e)?e():e.unsubscribe()}t.Subscription=r,"symbol"==typeof Symbol.dispose&&(r.prototype[Symbol.dispose]=r.prototype.unsubscribe);class o extends r{isStopped=!1;destination;_nextOverride=null;_errorOverride=null;_completeOverride=null;_onFinalize=null;constructor(e,t){var n,r;super(),this.destination=e instanceof o?e:new u(!(n=e)||S(n)?{next:n??void 0}:n),this._nextOverride=t?.next??null,this._errorOverride=t?.error??null,this._completeOverride=t?.complete??null,this._onFinalize=t?.finalize??null,this._next=this._nextOverride?i:this._next,this._error=this._errorOverride?a:this._error,this._complete=this._completeOverride?l:this._complete,(r=e)&&S(r.unsubscribe)&&S(r.add)&&e.add(this)}next(e){this.isStopped?m(E(e),this):this._next(e)}error(e){this.isStopped?m(v(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?m(t.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this._onFinalize?.())}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}function i(e){try{this._nextOverride(e)}catch(e){this.destination.error(e)}}function a(e){try{this._errorOverride(e)}catch(e){this.destination.error(e)}finally{this.unsubscribe()}}function l(){try{this._completeOverride()}catch(e){this.destination.error(e)}finally{this.unsubscribe()}}t.Subscriber=o,t.config={onUnhandledError:null,onStoppedNotification:null};class u{partialObserver;constructor(e){this.partialObserver=e}next(e){const{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(e){p(e)}}error(e){const{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(e){p(e)}else p(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(e){p(e)}}}function m(e,n){const{onStoppedNotification:r}=t.config;r&&setTimeout((()=>r(e,n)))}t.operate=function({destination:e,...t}){return new o(e,t)};class c{constructor(e){e&&(this._subscribe=e)}subscribe(e){const t=e instanceof o?e:new o(e);return t.add(this._trySubscribe(t)),t}_trySubscribe(e){try{return this._subscribe(e)}catch(t){e.error(t)}}forEach(e){return new Promise(((t,n)=>{const r=new o({next:t=>{try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:t});this.subscribe(r)}))}_subscribe(e){}[Symbol.observable??"@@observable"](){return this}pipe(...e){return e.reduce(d,this)}[Symbol.asyncIterator](){let e,t,n=!1,r=!1;const s=[],o=[],i=e=>{for(n=!0,t=e;o.length;){const[t,n]=o.shift();n(e)}},a=()=>{for(r=!0;o.length;){const[e]=o.shift();e({value:void 0,done:!0})}};return{next:()=>(e||(e=this.subscribe({next:e=>{if(o.length){const[t]=o.shift();t({value:e,done:!1})}else s.push(e)},error:i,complete:a})),s.length?Promise.resolve({value:s.shift(),done:!1}):r?Promise.resolve({value:void 0,done:!0}):n?Promise.reject(t):new Promise(((e,t)=>{o.push([e,t])}))),throw:t=>(e?.unsubscribe(),i(t),Promise.reject(t)),return:()=>(e?.unsubscribe(),a(),Promise.resolve({value:void 0,done:!0})),[Symbol.asyncIterator](){return this}}}}function d(e,t){return t(e)}function p(e){setTimeout((()=>{const{onUnhandledError:n}=t.config;if(!n)throw e;n(e)}))}function f(e){return new c((t=>{h(e,t)}))}function g(e){return new c((t=>{e.then((e=>{t.closed||(t.next(e),t.complete())}),(e=>t.error(e))).then(null,p)}))}function _(e){return new c((t=>{(async function(e,t){for await(const n of e)if(t.next(n),t.closed)return;t.complete()})(e,t).catch((e=>t.error(e)))}))}function h(e,t){const n=e.length;for(let r=0;r<n;r++){if(t.closed)return;t.next(e[r])}t.complete()}var T;function y(e){if(e instanceof c)return T.Own;if(function(e){return S(e[Symbol.observable??"@@observable"])}(e))return T.InteropObservable;if(J(e))return T.ArrayLike;if(k(e))return T.Promise;if(t=e,Symbol.asyncIterator&&S(t?.[Symbol.asyncIterator]))return T.AsyncIterable;var t;if(function(e){return S(e?.[Symbol.iterator])}(e))return T.Iterable;if(function(e){return S(e?.getReader)}(e))return T.ReadableStreamLike;throw new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function S(e){return"function"==typeof e}async function*w(e){const t=e.getReader();try{for(;;){const{value:e,done:n}=await t.read();if(n)return;yield e}}finally{t.releaseLock()}}function k(e){return S(e?.then)}function J(e){return e&&"number"==typeof e.length&&!S(e)}function v(e){return b("E",void 0,e)}function E(e){return b("N",e,void 0)}function b(e,t,n){return{kind:e,value:t,error:n}}t.Observable=c,t.reportUnhandledError=p,t.from=function(e){switch(y(e)){case T.Own:return e;case T.InteropObservable:return n=e,new c((e=>{const t=n[Symbol.observable??"@@observable"]();if(S(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));case T.ArrayLike:return f(e);case T.Promise:return g(e);case T.AsyncIterable:return _(e);case T.Iterable:return t=e,new c((e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()}));case T.ReadableStreamLike:return _(w(e))}var t,n},t.fromArrayLike=f,t.fromPromise=g,t.subscribeToArray=h,function(e){e[e.Own=0]="Own",e[e.InteropObservable=1]="InteropObservable",e[e.ArrayLike=2]="ArrayLike",e[e.Promise=3]="Promise",e[e.AsyncIterable=4]="AsyncIterable",e[e.Iterable=5]="Iterable",e[e.ReadableStreamLike=6]="ReadableStreamLike"}(T=t.ObservableInputType||(t.ObservableInputType={})),t.getObservableInputType=y,t.isFunction=S,t.readableStreamLikeToAsyncGenerator=w,t.isPromise=k,t.isArrayLike=J,t.isObservable=function(e){return!!e&&(e instanceof c||S(e.lift)&&S(e.subscribe))},t.COMPLETE_NOTIFICATION=b("C",void 0,void 0),t.errorNotification=v,t.nextNotification=E,t.createNotification=b},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js");class o extends r.Subject{_bufferSize;_windowTime;_timestampProvider;_buffer=[];_infiniteTimeWindow=!0;constructor(e=1/0,t=1/0,n=s.dateTimestampProvider){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{_closed:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:s,_windowTime:o}=this;t||(n.push(e),!r&&n.push(s.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,s=r.slice();for(let t=0;t<s.length&&!e.closed;t+=n?1:2)e.next(s[t]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){const{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,s=(r?1:2)*e;if(e<1/0&&s<n.length&&n.splice(0,n.length-s),!r){const e=t.now();let r=0;for(let t=1;t<n.length&&n[t]<=e;t+=2)r=t;r&&n.splice(0,r+1)}}}t.ReplaySubject=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js");class s{schedulerActionCtor;static now=r.dateTimestampProvider.now;constructor(e,t=s.now){this.schedulerActionCtor=e,this.now=t}now;schedule(e,t=0,n){return new this.schedulerActionCtor(this,e).schedule(n,t)}}t.Scheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Subject=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");class s extends r.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(e){if(!this._closed){const{observers:t}=this,n=t.length;for(let r=0;r<n;r++)t[r].next(e)}}error(e){if(!this._closed){this.hasError=this._closed=!0,this.thrownError=e;const{observers:t}=this,n=t.length;for(let r=0;r<n;r++)t[r].error(e);this._clearObservers()}}complete(){if(!this._closed){this._closed=!0;const{observers:e}=this,t=e.length;for(let n=0;n<t;n++)e[n].complete();this._clearObservers()}}unsubscribe(){this._closed=!0,this._clearObservers()}get observed(){return this.currentObservers.size>0}_subscribe(e){return this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){if(this.hasError||this._closed)return r.Subscription.EMPTY;const{currentObservers:t}=this,n=this._observerCounter++;return t.set(n,e),this.observerSnapshot=void 0,e.add((()=>{t.delete(n),this.observerSnapshot=void 0})),e}_checkFinalizedStatuses(e){const{hasError:t,thrownError:n,_closed:r}=this;t?e.error(n):r&&e.complete()}asObservable(){return new r.Observable((e=>this.subscribe(e)))}}t.Subject=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.firstValueFrom=function(e,t){const n="object"==typeof t;return new Promise(((o,i)=>{const a=new r.Subscriber({next:e=>{o(e),a.unsubscribe()},error:i,complete:()=>{n?o(t.defaultValue):i(new s.EmptyError)}});e.subscribe(a)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.lastValueFrom=function(e,t){const n="object"==typeof t;return new Promise(((s,o)=>{let i,a=!1;e.subscribe({next:e=>{i=e,a=!0},error:o,complete:()=>{a?s(i):n?s(t.defaultValue):o(new r.EmptyError)}})}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js");t.bindCallback=function(e,t,n){return(0,r.bindCallbackInternals)(!1,e,t,n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.bindCallbackInternals=function e(t,n,l,u){if(l){if(!(0,r.isScheduler)(l))return function(...r){return(0,o.mapOneOrManyArgs)(l)(e(t,n,u).apply(this,r))};u=l}return u?function(...r){return(0,a.scheduled)(e(t,n).apply(this,r),u)}:function(...e){const r=new i.AsyncSubject;let o=!0;return new s.Observable((s=>{const i=r.subscribe(s);if(o){o=!1;let s=!1,i=!1;n.apply(this,[...e,(...e)=>{if(t){const t=e.shift();if(null!=t)return void r.error(t)}r.next(1<e.length?e:e[0]),i=!0,s&&r.complete()}]),i&&r.complete(),s=!0}return i}))}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js");t.bindNodeCallback=function(e,t,n){return(0,r.bindCallbackInternals)(!0,e,t,n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");function l(e,t=o.identity){return n=>{const{length:s}=e,o=new Array(s);let i=s,a=s;for(let l=0;l<s;l++){const s=(0,r.from)(e[l]);let u=!1;s.subscribe((0,r.operate)({destination:n,next:e=>{o[l]=e,u||(u=!0,a--),a||n.next(t(Array.from(o)))},complete:()=>{--i||n.complete()}}))}}}t.combineLatest=function(e,t){const n=(0,s.arrayOrObject)(e);if(!n)throw new TypeError("sources must be an array or object");const{args:u,keys:m}=n;return 0===u.length?a.EMPTY:new r.Observable(l(u,m?e=>(0,i.createObject)(m,e):t?e=>t(...e):o.identity))},t.combineLatestInit=l},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.concat=function(...e){const t=(0,o.popScheduler)(e);return(0,s.concatAll)()(t?(0,i.scheduled)(e,t):(0,r.from)(e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/connectable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"),i={connector:()=>new r.Subject,resetOnDisconnect:!0};t.connectable=function(e,t=i){let n=null;const{connector:r,resetOnDisconnect:a=!0}=t;let l=r();const u=new s.Observable((e=>l.subscribe(e)));return u.connect=()=>(n&&!n.closed||(n=(0,o.defer)((()=>e)).subscribe(l),a&&n.add((()=>l=r()))),n),u}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.defer=function(e){return new r.Observable((t=>{(0,r.from)(e()).subscribe(t)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js");function i(e){return new r.Observable((t=>{const n=e||s.performanceTimestampProvider,r=n.now();let i=0;const a=()=>{t.closed||(i=o.animationFrameProvider.requestAnimationFrame((s=>{i=0;const o=n.now();t.next({timestamp:e?o:s,elapsed:o-r}),a()})))};return a(),()=>{i&&o.animationFrameProvider.cancelAnimationFrame(i)}}))}t.animationFrames=function(e){return e?i(e):a};const a=i()},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.EMPTY=new r.Observable((e=>e.complete()))},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.forkJoin=function(...e){const t=(0,o.popResultSelector)(e),{args:n,keys:u}=(0,s.argsArgArrayOrObject)(e),m=new r.Observable((e=>{const{length:t}=n;if(!t)return void e.complete();const s=new Array(t);let o=t,i=t;for(let m=0;m<t;m++){let t=!1;(0,r.from)(n[m]).subscribe((0,r.operate)({destination:e,next:e=>{t||(t=!0,i--),s[m]=e},complete:()=>o--,finalize:()=>{o&&t||(0===i?(e.next(u?(0,a.createObject)(u,s):s),e.complete()):e.error(new l.EmptyError))}}))}}));return t?(0,i.mapOneOrManyArgs)(t)(m):m}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),o=["addListener","removeListener"],i=["addEventListener","removeEventListener"],a=["on","off"];function l(e,t,n,r,s){const[l,d]=c(p=n)?i:u(p)?o:m(p)?a:[];var p;if(!l||!d)throw new TypeError("Invalid event target");n[l](r,e,s),t.add((()=>n[d](r,e,s)))}function u(e){return(0,r.isFunction)(e.addListener)&&(0,r.isFunction)(e.removeListener)}function m(e){return(0,r.isFunction)(e.on)&&(0,r.isFunction)(e.off)}function c(e){return(0,r.isFunction)(e.addEventListener)&&(0,r.isFunction)(e.removeEventListener)}t.fromEvent=function e(t,n,o,i){if((0,r.isFunction)(o)&&(i=o,o=void 0),i)return(0,s.mapOneOrManyArgs)(i)(e(t,n,o));const a=u(t)||m(t)||c(t);if(!a&&!(0,r.isArrayLike)(t))throw new TypeError("Invalid event target");return new r.Observable((e=>{const r=(...t)=>e.next(1<t.length?t:t[0]);if(a)l(r,e,t,n,o);else for(let s=0;s<t.length&&!e.closed;s++){const i=t[s];l(r,e,i,n,o)}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js");t.fromEventPattern=function e(t,n,o){return o?(0,s.mapOneOrManyArgs)(o)(e(t,n)):new r.Observable((e=>{const s=(...t)=>e.next(1===t.length?t[0]:t),o=t(s);return(0,r.isFunction)(n)?()=>n(s,o):void 0}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.fromSubscribable=function(e){return new r.Observable((t=>e.subscribe(t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/generate.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js");t.generate=function(e,t,n,a,l){let u,m;function*c(){for(let e=m;!t||t(e);e=n(e))yield u(e)}return 1===arguments.length?({initialState:m,condition:t,iterate:n,resultSelector:u=r.identity,scheduler:l}=e):(m=e,!a||(0,s.isScheduler)(a)?(u=r.identity,l=a):u=a),(0,o.defer)(l?()=>(0,i.scheduleIterable)(c(),l):c)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/iif.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/defer.js");t.iif=function(e,t,n){return(0,r.defer)((()=>e()?t:n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.interval=function(e=0,t=r.asyncScheduler){return e<0&&(e=0),(0,s.timer)(e,e,t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/merge.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js");t.merge=function(...e){const t=(0,i.popScheduler)(e),n=(0,i.popNumber)(e,1/0),l=e;return l.length?1===l.length?(0,r.from)(l[0]):(0,s.mergeAll)(n)(t?(0,a.scheduled)(l,t):(0,r.from)(l)):o.EMPTY}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/never.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NEVER=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.NEVER=new r.Observable(s.noop)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/of.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.of=function(...e){return(0,r.fromArrayLike)(e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.onErrorResumeNext=function(...e){const t=(0,s.argsOrArgArray)(e);return new r.Observable((e=>{let n=0;const s=()=>{if(n<t.length){let i;try{i=(0,r.from)(t[n++])}catch(e){return void s()}const a=(0,r.operate)({destination:e,error:o.noop,complete:o.noop});i.subscribe(a),a.add(s)}else e.complete()};s()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/partition.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/not.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.partition=function(e,t,n){return[(0,s.filter)(t,n)((0,o.from)(e)),(0,s.filter)((0,r.not)(t,n))((0,o.from)(e))]}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js");function o(e){return t=>{let n=[];for(let s=0;n&&!t.closed&&s<e.length;s++)n.push((0,r.from)(e[s]).subscribe((0,r.operate)({destination:t,next:e=>{if(n){for(let e=0;e<n.length;e++)e!==s&&n[e].unsubscribe();n=null}t.next(e)}})))}}t.race=function(...e){return 1===(e=(0,s.argsOrArgArray)(e)).length?(0,r.from)(e[0]):new r.Observable(o(e))},t.raceInit=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/range.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.range=function(e,t,n){if(null==t&&(t=e,e=0),t<=0)return s.EMPTY;const i=t+e;return new r.Observable(n?t=>{let r=e;const s=()=>{r<i?(t.next(r++),t.closed||(0,o.executeSchedule)(t,n,s)):t.complete()};(0,o.executeSchedule)(t,n,s)}:t=>{let n=e;for(;n<i&&!t.closed;)t.next(n++);t.complete()})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/throwError.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.throwError=function(e){return new r.Observable((t=>{t.error(e())}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.timer=function(e=0,t,n=s.asyncScheduler){let l=-1;return null!=t&&((0,o.isScheduler)(t)?n=t:l=t),new r.Observable((t=>{let r=(0,i.isValidDate)(e)?+e-n.now():e;r<0&&(r=0);let s=0;return(0,a.executeSchedule)(t,n,(()=>{t.next(s++),0<=l?(0,a.executeSchedule)(t,n,(()=>{t.next(s++)}),l,!0):t.complete()}),r)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/using.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js");t.using=function(e,t){return new r.Observable((n=>{const o=e(),i=t(o);return(i?(0,r.from)(i):s.EMPTY).subscribe(n),()=>{o&&o.unsubscribe()}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js");t.zip=function(...e){const t=(0,i.popResultSelector)(e),n=(0,s.argsOrArgArray)(e);return n.length?new r.Observable((e=>{let s=n.map((()=>[])),o=n.map((()=>!1));e.add((()=>{s=o=null}));for(let i=0;!e.closed&&i<n.length;i++)(0,r.from)(n[i]).subscribe((0,r.operate)({destination:e,next:n=>{if(s[i].push(n),s.every((e=>e.length))){const n=s.map((e=>e.shift()));e.next(t?t(...n):n),s.some(((e,t)=>!e.length&&o[t]))&&e.complete()}},complete:()=>{o[i]=!0,!s[i].length&&e.complete()}}));return()=>{s=o=null}})):o.EMPTY}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.audit=function(e){return t=>new r.Observable((n=>{let s=!1,o=null,i=null,a=!1;const l=()=>{if(i?.unsubscribe(),i=null,s){s=!1;const e=o;o=null,n.next(e)}a&&n.complete()},u=()=>{i=null,a&&n.complete()};t.subscribe((0,r.operate)({destination:n,next:t=>{s=!0,o=t,i||(0,r.from)(e(t)).subscribe(i=(0,r.operate)({destination:n,next:l,complete:u}))},complete:()=>{a=!0,(!s||!i||i.closed)&&n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/audit.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.auditTime=function(e,t=r.asyncScheduler){return(0,s.audit)((()=>(0,o.timer)(e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/buffer.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.buffer=function(e){return t=>new r.Observable((n=>{let o=[];return(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{const e=o;o=[],n.next(e)},complete:s.noop})),t.subscribe((0,r.operate)({destination:n,next:e=>o.push(e),complete:()=>{n.next(o),n.complete()}})),()=>{o=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.bufferCount=function(e,t=null){return t=t??e,n=>new r.Observable((o=>{let i=[],a=0;n.subscribe((0,r.operate)({destination:o,next:n=>{let r=null;a++%t==0&&i.push([]);for(const t of i)t.push(n),e<=t.length&&(r=r??[],r.push(t));if(r)for(const e of r)(0,s.arrRemove)(i,e),o.next(e)},complete:()=>{for(const e of i)o.next(e);o.complete()},finalize:()=>{i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.bufferTime=function(e,...t){const n=(0,i.popScheduler)(t)??o.asyncScheduler,l=t[0]??null,u=t[1]||1/0;return t=>new r.Observable((o=>{let i=[],m=!1;const c=e=>{const{buffer:t,subs:n}=e;n.unsubscribe(),(0,s.arrRemove)(i,e),o.next(t),m&&d()},d=()=>{if(i){const t=new r.Subscription;o.add(t);const s={buffer:[],subs:t};i.push(s),(0,a.executeSchedule)(t,n,(()=>c(s)),e)}};null!==l&&l>=0?(0,a.executeSchedule)(o,n,d,l,!0):m=!0,d();const p=(0,r.operate)({destination:o,next:e=>{const t=i.slice();for(const n of t){const{buffer:t}=n;t.push(e),u<=t.length&&c(n)}},complete:()=>{for(;i?.length;)o.next(i.shift().buffer);p?.unsubscribe(),o.complete(),o.unsubscribe()},finalize:()=>i=null});t.subscribe(p)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.bufferToggle=function(e,t){return n=>new r.Observable((i=>{const a=[];(0,r.from)(e).subscribe((0,r.operate)({destination:i,next:e=>{const n=[];a.push(n);const l=new r.Subscription;l.add((0,r.from)(t(e)).subscribe((0,r.operate)({destination:i,next:()=>{(0,o.arrRemove)(a,n),i.next(n),l.unsubscribe()},complete:s.noop})))},complete:s.noop})),n.subscribe((0,r.operate)({destination:i,next:e=>{for(const t of a)t.push(e)},complete:()=>{for(;a.length>0;)i.next(a.shift());i.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.bufferWhen=function(e){return t=>new r.Observable((n=>{let o=null,i=null;const a=()=>{i?.unsubscribe();const t=o;o=[],t&&n.next(t),(0,r.from)(e()).subscribe(i=(0,r.operate)({destination:n,next:a,complete:s.noop}))};a(),t.subscribe((0,r.operate)({destination:n,next:e=>o?.push(e),complete:()=>{o&&n.next(o),n.complete()},finalize:()=>o=i=null}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/catchError.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.catchError=function e(t){return n=>new r.Observable((s=>{let o,i=null,a=!1;i=n.subscribe((0,r.operate)({destination:s,error:l=>{o=(0,r.from)(t(l,e(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(s)):a=!0}})),a&&(i.unsubscribe(),i=null,o.subscribe(s))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js");t.combineLatestAll=function(e){return(0,s.joinAllInternals)(r.combineLatest,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.combineLatestWith=function(...e){return t=>new s.Observable((n=>(0,r.combineLatestInit)([t,...e])(n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");t.concatAll=function(){return(0,r.mergeAll)(1)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");t.concatMap=function(e){return(0,r.mergeMap)(e,1)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js");t.concatMapTo=function(e){return(0,r.concatMap)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js");t.concatWith=function(...e){return t=>new r.Observable((n=>{(0,s.concatAll)()((0,r.from)([t,...e])).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/connect.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js"),i={connector:()=>new s.Subject};t.connect=function(e,t=i){const{connector:n}=t;return t=>new r.Observable((s=>{const i=n();(0,r.from)(e((0,o.fromSubscribable)(i))).subscribe(s),s.add(t.subscribe(i))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/count.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js");t.count=function(e){return(0,r.reduce)(((t,n,r)=>!e||e(n,r)?t+1:t),0)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounce.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.debounce=function(e){return t=>new r.Observable((n=>{let o=!1,i=null,a=null;const l=()=>{if(a?.unsubscribe(),a=null,o){o=!1;const e=i;i=null,n.next(e)}};t.subscribe((0,r.operate)({destination:n,next:t=>{a?.unsubscribe(),o=!0,i=t,a=(0,r.operate)({destination:n,next:l,complete:s.noop}),(0,r.from)(e(t)).subscribe(a)},complete:()=>{l(),n.complete()},finalize:()=>{i=a=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.debounceTime=function(e,t=r.asyncScheduler){return n=>new s.Observable((r=>{let i,a;n.subscribe((0,s.operate)({destination:r,next:n=>{i=n,a?.unsubscribe(),a=(0,o.executeSchedule)(r,t,(()=>{a=void 0;const e=i;i=null,r.next(e)}),e)},complete:()=>{a&&r.next(i),r.complete()},finalize:()=>{i=a=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.defaultIfEmpty=function(e){return t=>new r.Observable((n=>{let s=!1;t.subscribe((0,r.operate)({destination:n,next:e=>{s=!0,n.next(e)},complete:()=>{s||n.next(e),n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delay.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.delay=function(e,t=r.asyncScheduler){const n=(0,o.timer)(e,t);return(0,s.delayWhen)((()=>n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/concat.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.delayWhen=function e(t,n){return n?i=>(0,r.concat)((0,a.rx)(n,(0,s.take)(1),(0,o.ignoreElements)()),(0,a.rx)(i,e(t))):(0,i.mergeMap)(((e,n)=>(0,a.rx)(t(e,n),(0,s.take)(1),(0,l.map)((()=>e)))))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Notification.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.dematerialize=function(){return e=>new s.Observable((t=>{e.subscribe((0,s.operate)({destination:t,next:e=>(0,r.observeNotification)(e,t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinct.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.distinct=function(e,t){return n=>new r.Observable((o=>{const i=new Set;n.subscribe((0,r.operate)({destination:o,next:t=>{const n=e?e(t):t;i.has(n)||(i.add(n),o.next(t))}})),t&&(0,r.from)(t).subscribe((0,r.operate)({destination:o,next:()=>i.clear(),complete:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function o(e,t){return e===t}t.distinctUntilChanged=function(e,t=r.identity){return e=e??o,n=>new s.Observable((r=>{let o,i=!0;n.subscribe((0,s.operate)({destination:r,next:n=>{const s=t(n);!i&&e(o,s)||(i=!1,o=s,r.next(n))}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js");t.distinctUntilKeyChanged=function(e,t){return(0,r.distinctUntilChanged)(((n,r)=>t?t(n[e],r[e]):n[e]===r[e]))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;const n=arguments.length>=2;return o=>new s.Observable((i=>{let a=0;const l=(0,s.operate)({destination:i,next:t=>{a++===e&&(l.unsubscribe(),i.next(t),i.complete())},complete:()=>{n?(i.next(t),i.complete()):i.error(new r.ArgumentOutOfRangeError)}});o.subscribe(l)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.endWith=function(...e){return t=>new r.Observable((n=>{t.subscribe((0,r.operate)({destination:n,complete:()=>{(0,r.subscribeToArray)(e,n)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/every.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.every=function(e,t){return n=>new r.Observable((s=>{let o=0;n.subscribe((0,r.operate)({destination:s,next:r=>{e.call(t,r,o++,n)||(s.next(!1),s.complete())},complete:()=>{s.next(!0),s.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.exhaustAll=function(){return(0,r.exhaustMap)(s.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.exhaustMap=function(e){return t=>new r.Observable((n=>{let s=0,o=null,i=!1;t.subscribe((0,r.operate)({destination:n,next:t=>{o||(o=(0,r.operate)({destination:n,complete:()=>{o=null,i&&n.complete()}}),(0,r.from)(e(t,s++)).subscribe(o))},complete:()=>{i=!0,!o&&n.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/expand.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.expand=function(e,t=1/0,n){return t=(t||0)<1?1/0:t,o=>new r.Observable((r=>(0,s.mergeInternals)(o,r,e,t,void 0,!0,n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.filter=function(e,t){return n=>new r.Observable((s=>{let o=0;n.subscribe((0,r.operate)({destination:s,next:n=>e.call(t,n,o++)&&s.next(n)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/finalize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.finalize=function(e){return t=>new r.Observable((n=>{t.subscribe(n),n.add(e)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function s(e,t,n,s){const o="index"===t;let i=0;n.subscribe((0,r.operate)({destination:s,next:t=>{const r=i++;e(t,r,n)&&(s.next(o?r:t),s.complete())},complete:()=>{s.next(o?-1:void 0),s.complete()}}))}t.find=function(e){return t=>new r.Observable((n=>s(e,"value",t,n)))},t.createFind=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/find.js");t.findIndex=function(e){return t=>new r.Observable((n=>(0,s.createFind)(e,"index",t,n)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/first.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.first=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((i=>{let a=0;const l=(0,r.operate)({destination:i,next:t=>{(!e||e(t,a++,o))&&(l.unsubscribe(),i.next(t),i.complete())},complete:()=>{n?(i.next(t),i.complete()):i.error(new s.EmptyError)}});o.subscribe(l)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.groupBy=function(e,t,n,o){return i=>new r.Observable((a=>{let l;t&&"function"!=typeof t?({duration:n,element:l,connector:o}=t):l=t;const u=new Map,m=e=>{u.forEach(e),e(a)},c=e=>m((t=>t.error(e))),d=(0,r.operate)({destination:a,next:t=>{try{const i=e(t);let m=u.get(i);if(!m){u.set(i,m=o?o():new s.Subject);const e=function(e,t){const n=new r.Observable((e=>t.subscribe(e)));return n.key=e,n}(i,m);if(a.next(e),n){const t=(0,r.operate)({destination:m,next:()=>{m.complete(),t?.unsubscribe()},finalize:()=>u.delete(i)});d.add((0,r.from)(n(e)).subscribe(t))}}m.next(l?l(t):t)}catch(e){c(e)}},error:c,complete:()=>m((e=>e.complete())),finalize:()=>u.clear()});i.subscribe(d)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.ignoreElements=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.isEmpty=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:()=>{t.next(!1),t.complete()},complete:()=>{t.next(!0),t.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js");t.joinAllInternals=function(e,t){return(0,o.pipe)((0,a.toArray)(),(0,i.mergeMap)((t=>e(t))),t?(0,s.mapOneOrManyArgs)(t):r.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/last.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js");t.last=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((i=>{let a,l=0,u=!1;o.subscribe((0,r.operate)({destination:i,next(t){e&&!e(t,l++,o)||(u=!0,a=t)},complete(){u?(i.next(a),i.complete()):n?(i.next(t),i.complete()):i.error(new s.EmptyError)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.map=function(e){return t=>new r.Observable((n=>{let s=0;t.subscribe((0,r.operate)({destination:n,next:t=>{n.next(e(t,s++))}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.mapTo=function(e){return(0,r.map)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/materialize.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.materialize=function(){return e=>new r.Observable((t=>{e.subscribe((0,r.operate)({destination:t,next:e=>{t.next((0,r.nextNotification)(e))},error:e=>{t.next((0,r.errorNotification)(e)),t.complete()},complete:()=>{t.next(r.COMPLETE_NOTIFICATION),t.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/max.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.max=function(e){return(0,r.reduce)((0,s.isFunction)(e)?(t,n)=>e(t,n)>0?t:n:(e,t)=>e>t?e:t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.mergeAll=function(e=1/0){return(0,r.mergeMap)(s.identity,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.mergeInternals=function(e,t,n,o,i,a,l,u){const m=[];let c=0,d=0,p=!1;const f=()=>{!p||m.length||c||t.complete()},g=e=>c<o?_(e):m.push(e),_=e=>{a&&t.next(e),c++;let u=!1;(0,r.from)(n(e,d++)).subscribe((0,r.operate)({destination:t,next:e=>{i?.(e),a?g(e):t.next(e)},complete:()=>{u=!0},finalize:()=>{if(u)try{for(c--;m.length&&c<o;){const e=m.shift();l?(0,s.executeSchedule)(t,l,(()=>_(e))):_(e)}f()}catch(e){t.error(e)}}}))};return e.subscribe((0,r.operate)({destination:t,next:g,complete:()=>{p=!0,f()}})),()=>{u?.()}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.mergeMap=function(e,t=1/0){return n=>new r.Observable((r=>(0,s.mergeInternals)(n,r,e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js");t.mergeMapTo=function(e,t){return(0,r.mergeMap)((()=>e),t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js");t.mergeScan=function(e,t,n=1/0){return o=>new r.Observable((r=>{let i=t;return(0,s.mergeInternals)(o,r,((t,n)=>e(i,t,n)),n,(e=>{i=e}),!1,void 0,(()=>i=null))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js");t.mergeWith=function(...e){return t=>new r.Observable((n=>{(0,s.mergeAll)()((0,r.from)([t,...e])).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/min.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.min=function(e){return(0,r.reduce)((0,s.isFunction)(e)?(t,n)=>e(t,n)<0?t:n:(e,t)=>e<t?e:t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.observeOn=function(e,t=0){return n=>new s.Observable((o=>{n.subscribe((0,s.operate)({destination:o,next:n=>(0,r.executeSchedule)(o,e,(()=>o.next(n)),t),error:n=>(0,r.executeSchedule)(o,e,(()=>o.error(n)),t),complete:()=>(0,r.executeSchedule)(o,e,(()=>o.complete()),t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNextWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js");t.onErrorResumeNextWith=function(...e){const t=(0,r.argsOrArgArray)(e);return e=>(0,s.onErrorResumeNext)(e,...t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.pairwise=function(){return e=>new r.Observable((t=>{let n,s=!1;e.subscribe((0,r.operate)({destination:t,next:e=>{const r=n;n=e,s&&t.next([r,e]),s=!0}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/race.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.raceWith=function(...e){return e.length?t=>new s.Observable((n=>{(0,r.raceInit)([t,...e])(n)})):o.identity}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.reduce=function(e,t){const n=arguments.length>=2;return o=>new s.Observable((s=>(0,r.scanInternals)(e,t,n,!1,!0,o,s)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeat.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.repeat=function(e){let t,n=1/0;return null!=e&&("object"==typeof e?({count:n=1/0,delay:t}=e):n=e),n<=0?()=>s.EMPTY:e=>new r.Observable((s=>{let i,a=0;const l=()=>{if(i?.unsubscribe(),i=null,null!=t){const e="number"==typeof t?(0,o.timer)(t):(0,r.from)(t(a)),n=(0,r.operate)({destination:s,next:()=>{n.unsubscribe(),u()}});e.subscribe(n)}else u()},u=()=>{let t=!1;i=e.subscribe((0,r.operate)({destination:s,complete:()=>{++a<n?i?l():t=!0:s.complete()}})),t&&l()};u()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.repeatWhen=function(e){return t=>new r.Observable((n=>{let o,i,a=!1,l=!1,u=!1;const m=()=>u&&l&&(n.complete(),!0),c=()=>{u=!1,o=t.subscribe((0,r.operate)({destination:n,complete:()=>{u=!0,!m()&&(i||(i=new s.Subject,(0,r.from)(e(i)).subscribe((0,r.operate)({destination:n,next:()=>{o?c():a=!0},complete:()=>{l=!0,m()}}))),i).next()}})),a&&(o.unsubscribe(),o=null,a=!1,c())};c()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retry.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.retry=function(e=1/0){let t;t=e&&"object"==typeof e?e:{count:e};const{count:n=1/0,delay:i,resetOnSuccess:a=!1}=t;return n<=0?s.identity:e=>new r.Observable((t=>{let s,l=0;const u=()=>{let m=!1;s=e.subscribe((0,r.operate)({destination:t,next:e=>{a&&(l=0),t.next(e)},error:e=>{if(l++<n){const n=()=>{s?(s.unsubscribe(),s=null,u()):m=!0};if(null!=i){const s="number"==typeof i?(0,o.timer)(i):(0,r.from)(i(e,l)),a=(0,r.operate)({destination:t,next:()=>{a.unsubscribe(),n()},complete:()=>{t.complete()}});s.subscribe(a)}else n()}else t.error(e)}})),m&&(s.unsubscribe(),s=null,u())};u()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.retryWhen=function(e){return t=>new r.Observable((n=>{let o,i,a=!1;const l=()=>{o=t.subscribe((0,r.operate)({destination:n,error:t=>{i||(i=new s.Subject,(0,r.from)(e(i)).subscribe((0,r.operate)({destination:n,next:()=>o?l():a=!0}))),i&&i.next(t)}})),a&&(o.unsubscribe(),o=null,a=!1,l())};l()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.sample=function(e){return t=>new r.Observable((n=>{let o=!1,i=null;t.subscribe((0,r.operate)({destination:n,next:e=>{o=!0,i=e}})),(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{if(o){o=!1;const e=i;i=null,n.next(e)}},complete:s.noop}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sample.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/interval.js");t.sampleTime=function(e,t=r.asyncScheduler){return(0,s.sample)((0,o.interval)(e,t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js");t.scan=function(e,t){const n=arguments.length>=2;return o=>new r.Observable((r=>(0,s.scanInternals)(e,t,n,!0,!1,o,r)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.scanInternals=function(e,t,n,s,o,i,a){let l=n,u=t,m=0;i.subscribe((0,r.operate)({destination:a,next:t=>{const n=m++;u=l?e(u,t,n):(l=!0,t),s&&a.next(u)},complete:o?()=>{l&&a.next(u),a.complete()}:void 0}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.sequenceEqual=function(e,t=(e,t)=>e===t){return n=>new r.Observable((s=>{const o={buffer:[],complete:!1},i={buffer:[],complete:!1},a=e=>{s.next(e),s.complete()},l=(e,n)=>{const o=(0,r.operate)({destination:s,next:r=>{const{buffer:s,complete:o}=n;0===s.length?o?a(!1):e.buffer.push(r):!t(r,s.shift())&&a(!1)},complete:()=>{e.complete=!0;const{complete:t,buffer:r}=n;t&&a(0===r.length),o?.unsubscribe()}});return o};n.subscribe(l(o,i)),(0,r.from)(e).subscribe(l(i,o))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");function o(e,t,...n){if(!0===t)return void e();if(!1===t)return;const s=new r.Subscriber({next:()=>{s.unsubscribe(),e()}});return(0,r.from)(t(...n)).subscribe(s)}t.share=function(e={}){const{connector:t=()=>new s.Subject,resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:a=!0}=e;return e=>{let s,l,u,m=0,c=!1,d=!1;const p=()=>{l?.unsubscribe(),l=void 0},f=()=>{p(),s=u=void 0,c=d=!1},g=()=>{const e=s;f(),e?.unsubscribe()};return new r.Observable((_=>{m++,d||c||p();const h=u=u??t();_.add((()=>{m--,0!==m||d||c||(l=o(g,a))})),h.subscribe(_),!s&&m>0&&(s=new r.Subscriber({next:e=>h.next(e),error:e=>{d=!0,p(),l=o(f,n,e),h.error(e)},complete:()=>{c=!0,p(),l=o(f,i),h.complete()}}),(0,r.from)(e).subscribe(s))}))}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/share.js");t.shareReplay=function(e,t,n){let o,i=!1;return e&&"object"==typeof e?({bufferSize:o=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e):o=e??1/0,(0,s.share)({connector:()=>new r.ReplaySubject(o,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/single.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js");t.single=function(e){return t=>new r.Observable((n=>{let a,l=!1,u=!1,m=0;t.subscribe((0,r.operate)({destination:n,next:r=>{u=!0,e&&!e(r,m++,t)||(l&&n.error(new o.SequenceError("Too many matching values")),l=!0,a=r)},complete:()=>{l?(n.next(a),n.complete()):n.error(u?new i.NotFoundError("No matching values"):new s.EmptyError)}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skip.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/filter.js");t.skip=function(e){return(0,r.filter)(((t,n)=>e<=n))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.skipLast=function(e){return e<=0?r.identity:t=>new s.Observable((n=>{let r=new Array(e),o=0;return t.subscribe((0,s.operate)({destination:n,next:t=>{const s=o++;if(s<e)r[s]=t;else{const o=s%e,i=r[o];r[o]=t,n.next(i)}}})),()=>{r=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.skipUntil=function(e){return t=>new r.Observable((n=>{let o=!1;const i=(0,r.operate)({destination:n,next:()=>{i?.unsubscribe(),o=!0},complete:s.noop});(0,r.from)(e).subscribe(i),t.subscribe((0,r.operate)({destination:n,next:e=>o&&n.next(e)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.skipWhile=function(e){return t=>new r.Observable((n=>{let s=!1,o=0;t.subscribe((0,r.operate)({destination:n,next:t=>(s||(s=!e(t,o++)))&&n.next(t)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/startWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.startWith=function(...e){return t=>new r.Observable((n=>{(0,r.subscribeToArray)(e,(0,r.operate)({destination:n,complete:()=>t.subscribe(n)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.subscribeOn=function(e,t=0){return n=>new r.Observable((r=>{r.add(e.schedule((()=>n.subscribe(r)),t))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.switchAll=function(){return(0,r.switchMap)(s.identity)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.switchMap=function(e){return t=>new r.Observable((n=>{let s=null,o=0,i=!1;const a=()=>i&&!s&&n.complete();t.subscribe((0,r.operate)({destination:n,next:t=>{s?.unsubscribe();const i=o++;(0,r.from)(e(t,i)).subscribe(s=(0,r.operate)({destination:n,complete:()=>{s=null,a()}}))},complete:()=>{i=!0,a()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js");t.switchMapTo=function(e){return(0,r.switchMap)((()=>e))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.switchScan=function(e,t){return n=>new s.Observable((o=>{let i=t;return(0,r.switchMap)(((t,n)=>e(i,t,n)))(n).subscribe((0,s.operate)({destination:o,next:e=>{i=e,o.next(e)}})),()=>{i=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/take.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.take=function(e){return e<=0?()=>r.EMPTY:t=>new s.Observable((n=>{let r=0;const o=(0,s.operate)({destination:n,next:t=>{++r<e?n.next(t):(o.unsubscribe(),n.next(t),n.complete())}});t.subscribe(o)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/empty.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.takeLast=function(e){return e<=0?()=>r.EMPTY:t=>new s.Observable((n=>{let r=new Array(e),o=0;t.subscribe((0,s.operate)({destination:n,next:t=>{r[o++%e]=t},complete:()=>{const t=e<=o?o:0,s=Math.min(e,o);for(let o=0;o<s;o++)n.next(r[(t+o)%e]);n.complete()},finalize:()=>{r=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.takeUntil=function(e){return t=>new r.Observable((n=>{(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>n.complete(),complete:s.noop})),!n.closed&&t.subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.takeWhile=function(e,t=!1){return n=>new r.Observable((s=>{let o=0;const i=(0,r.operate)({destination:s,next:n=>{e(n,o++)?s.next(n):(i.unsubscribe(),t&&s.next(n),s.complete())}});n.subscribe(i)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/tap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js");t.tap=function(e){const t=(0,r.isFunction)(e)?{next:e}:e;return t?e=>new r.Observable((n=>{t.subscribe?.();let s=!0;e.subscribe((0,r.operate)({destination:n,next:e=>{t.next?.(e),n.next(e)},error:e=>{s=!1,t.error?.(e),n.error(e)},complete:()=>{s=!1,t.complete?.(),n.complete()},finalize:()=>{s&&t.unsubscribe?.(),t.finalize?.()}}))})):s.identity}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.throttle=function(e,t){return n=>new r.Observable((s=>{const{leading:o=!0,trailing:i=!1}=t??{};let a=!1,l=null,u=null,m=!1;const c=()=>{u?.unsubscribe(),u=null,i&&(f(),m&&s.complete())},d=()=>{u=null,m&&s.complete()},p=t=>u=(0,r.from)(e(t)).subscribe((0,r.operate)({destination:s,next:c,complete:d})),f=()=>{if(a){a=!1;const e=l;l=null,s.next(e),!m&&p(e)}};n.subscribe((0,r.operate)({destination:s,next:e=>{a=!0,l=e,(!u||u.closed)&&(o?f():p(e))},complete:()=>{m=!0,(!(i&&a&&u)||u.closed)&&s.complete()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throttle.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/timer.js");t.throttleTime=function(e,t=r.asyncScheduler,n){const i=(0,o.timer)(e,t);return(0,s.throttle)((()=>i),n)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function o(){return new r.EmptyError}t.throwIfEmpty=function(e=o){return t=>new s.Observable((n=>{let r=!1;t.subscribe((0,s.operate)({destination:n,next:e=>{r=!0,n.next(e)},complete:()=>r?n.complete():n.error(e())}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.timeInterval=function(e=r.asyncScheduler){return t=>new s.Observable((n=>{let r=e.now();t.subscribe((0,s.operate)({destination:n,next:t=>{const s=e.now(),i=s-r;r=s,n.next(new o(t,i))}}))}))};class o{value;interval;constructor(e,t){this.value=e,this.interval=t}}t.TimeInterval=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");class a extends Error{info;constructor(e=null){super("Timeout has occurred"),this.info=e,this.name="TimeoutError"}}function l(e){throw new a(e)}t.TimeoutError=a,t.timeout=function(e,t){const{first:n,each:a,with:u=l,scheduler:m=t??r.asyncScheduler,meta:c=null}=(0,s.isValidDate)(e)?{first:e}:"number"==typeof e?{each:e}:e;if(null==n&&null==a)throw new TypeError("No timeout provided.");return e=>new o.Observable((t=>{let r,s,l=null,d=0;const p=e=>{s=(0,i.executeSchedule)(t,m,(()=>{try{r.unsubscribe(),(0,o.from)(u({meta:c,lastValue:l,seen:d})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe((0,o.operate)({destination:t,next:e=>{s?.unsubscribe(),d++,t.next(l=e),a>0&&p(a)},finalize:()=>{s?.unsubscribe(),l=null}})),!d&&p(null!=n?"number"==typeof n?n:+n-m.now():a)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timeout.js");t.timeoutWith=function(e,t,n){let i,a,l;if(n=n??r.asyncScheduler,(0,s.isValidDate)(e)?i=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(l=()=>t,null==i&&null==a)throw new TypeError("No timeout provided.");return(0,o.timeout)({first:i,each:a,scheduler:n,with:l})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js");t.timestamp=function(e=r.dateTimestampProvider){return(0,s.map)((t=>({value:t,timestamp:e.now()})))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/toArray.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/reduce.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=(e,t)=>(e.push(t),e);t.toArray=function(){return e=>new s.Observable((t=>{(0,r.reduce)(o,[])(e).subscribe(t)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/window.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.window=function(e){return t=>new r.Observable((n=>{let i=new s.Subject;n.next(i.asObservable());const a=e=>{i.error(e),n.error(e)};return t.subscribe((0,r.operate)({destination:n,next:e=>i?.next(e),complete:()=>{i.complete(),n.complete()},error:a})),(0,r.from)(e).subscribe((0,r.operate)({destination:n,next:()=>{i.complete(),n.next(i=new s.Subject)},complete:o.noop,error:a})),()=>{i?.unsubscribe(),i=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js");t.windowCount=function(e,t=0){const n=t>0?t:e;return t=>new r.Observable((o=>{let i=[new s.Subject],a=[],l=0;o.next(i[0].asObservable()),t.subscribe((0,r.operate)({destination:o,next:t=>{for(const e of i)e.next(t);const r=l-e+1;if(r>=0&&r%n==0&&i.shift().complete(),++l%n==0){const e=new s.Subject;i.push(e),o.next(e.asObservable())}},error:e=>{for(;i.length>0;)i.shift().error(e);o.error(e)},complete:()=>{for(;i.length>0;)i.shift().complete();o.complete()},finalize:()=>{a=null,i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.windowTime=function(e,...t){const n=(0,a.popScheduler)(t)??s.asyncScheduler,u=t[0]??null,m=t[1]||1/0;return t=>new o.Observable((s=>{let a=[],c=!1;const d=e=>{const{window:t,subs:n}=e;t.complete(),n.unsubscribe(),(0,i.arrRemove)(a,e),c&&p()},p=()=>{if(a){const t=new o.Subscription;s.add(t);const i=new r.Subject,u={window:i,subs:t,seen:0};a.push(u),s.next(i.asObservable()),(0,l.executeSchedule)(t,n,(()=>d(u)),e)}};null!==u&&u>=0?(0,l.executeSchedule)(s,n,p,u,!0):c=!0,p();const f=e=>a.slice().forEach(e),g=e=>{f((({window:t})=>e(t))),e(s),s.unsubscribe()};return t.subscribe((0,o.operate)({destination:s,next:e=>{f((t=>{t.window.next(e),m<=++t.seen&&d(t)}))},error:e=>g((t=>t.error(e))),complete:()=>g((e=>e.complete()))})),()=>{a=null}}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");t.windowToggle=function(e,t){return n=>new r.Observable((a=>{const l=[],u=e=>{for(;0<l.length;)l.shift().error(e);a.error(e)};(0,r.from)(e).subscribe((0,r.operate)({destination:a,next:e=>{const n=new s.Subject;l.push(n);const m=new r.Subscription;let c;try{c=(0,r.from)(t(e))}catch(e){return void u(e)}a.next(n),m.add(c.subscribe((0,r.operate)({destination:a,next:()=>{(0,i.arrRemove)(l,n),n.complete(),m.unsubscribe()},error:u,complete:o.noop})))},complete:o.noop})),n.subscribe((0,r.operate)({destination:a,next:e=>{const t=l.slice();for(const n of t)n.next(e)},error:u,complete:()=>{for(;0<l.length;)l.shift().complete();a.complete()},finalize:()=>{for(;0<l.length;)l.shift().unsubscribe()}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Subject.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js");t.windowWhen=function(e){return t=>new r.Observable((n=>{let i,a;const l=e=>{i.error(e),n.error(e)},u=()=>{let t;a?.unsubscribe(),i?.complete(),i=new s.Subject,n.next(i.asObservable());try{t=(0,r.from)(e())}catch(e){return void l(e)}t.subscribe(a=(0,r.operate)({destination:n,next:u,error:l,complete:o.noop}))};u(),t.subscribe((0,r.operate)({destination:n,next:e=>i.next(e),error:l,complete:()=>{i.complete(),n.complete()},finalize:()=>{a?.unsubscribe(),i=null}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js");t.withLatestFrom=function(...e){const t=(0,i.popResultSelector)(e);return n=>new r.Observable((i=>{const a=e.length,l=new Array(a);let u=e.map((()=>!1)),m=!1;for(let t=0;t<a;t++)(0,r.from)(e[t]).subscribe((0,r.operate)({destination:i,next:e=>{l[t]=e,m||u[t]||(u[t]=!0,(m=u.every(s.identity))&&(u=null))},complete:o.noop}));n.subscribe((0,r.operate)({destination:i,next:e=>{if(m){const n=[e,...l];i.next(t?t(...n):n)}}}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js");t.zipAll=function(e){return(0,s.joinAllInternals)(r.zip,e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/observable/zip.js");t.zipWith=function(...e){return t=>new r.Observable((n=>{(0,s.zip)(t,...e).subscribe(n)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleArray=function(e,t){return new r.Observable((n=>{let r=0;const o=()=>{r===e.length?n.complete():(n.next(e[r++]),(0,s.executeSchedule)(n,t,o))};return(0,s.executeSchedule)(n,t,o)}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.Observable((n=>{(0,s.executeSchedule)(n,t,(()=>{const r=e[Symbol.asyncIterator]();(0,s.executeSchedule)(n,t,(()=>{r.next().then((e=>{e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js");t.scheduleIterable=function(e,t){return new r.Observable((n=>{let i;return(0,o.executeSchedule)(n,t,(()=>{i=e[s.iterator](),(0,o.executeSchedule)(n,t,(()=>{let e,t;try{({value:e,done:t}=i.next())}catch(e){return void n.error(e)}t?n.complete():n.next(e)}),0,!0)})),()=>(0,r.isFunction)(i?.return)&&i.return()}))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");t.scheduleObservable=function(e,t){return(0,r.from)(e).pipe((0,o.subscribeOn)(t),(0,s.observeOn)(t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js");t.schedulePromise=function(e,t){return(0,r.from)(e).pipe((0,o.subscribeOn)(t),(0,s.observeOn)(t))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js");t.scheduleReadableStreamLike=function(e,t){return(0,s.scheduleAsyncIterable)((0,r.readableStreamLikeToAsyncGenerator)(e),t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js"),i=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js"),a=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js"),l=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),u=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js");t.scheduled=function(e,t){switch((0,l.getObservableInputType)(e)){case l.ObservableInputType.Own:case l.ObservableInputType.InteropObservable:return(0,r.scheduleObservable)(e,t);case l.ObservableInputType.Promise:return(0,s.schedulePromise)(e,t);case l.ObservableInputType.ArrayLike:return(0,o.scheduleArray)(e,t);case l.ObservableInputType.Iterable:return(0,i.scheduleIterable)(e,t);case l.ObservableInputType.AsyncIterable:return(0,a.scheduleAsyncIterable)(e,t);case l.ObservableInputType.ReadableStreamLike:return(0,u.scheduleReadableStreamLike)(e,t)}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");class s extends r.Subscription{constructor(e,t){super()}schedule(e,t=0){return this}}t.Action=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js");class o extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=s.animationFrameProvider.requestAnimationFrame((()=>e.flush(void 0)))))}recycleAsyncId(e,t,n=0){if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:r}=e;null!=t&&r[r.length-1]?.id!==t&&(s.animationFrameProvider.cancelAnimationFrame(t),e._scheduled=void 0)}}t.AnimationFrameAction=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}t.AnimationFrameScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js");class o extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=s.immediateProvider.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:r}=e;null!=t&&r[r.length-1]?.id!==t&&(s.immediateProvider.clearImmediate(t),e._scheduled===t&&(e._scheduled=void 0))}}t.AsapAction=o},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}}}t.AsapScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js");class i extends r.Action{scheduler;work;id;state;delay;pending=!1;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id??this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return s.intervalProvider.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&s.intervalProvider.clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n}unsubscribe(){if(!this.closed){const{id:e,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,(0,o.arrRemove)(n,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,super.unsubscribe()}}}t.AsyncAction=i},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Scheduler.js");class s extends r.Scheduler{actions=[];_active=!1;_scheduled;constructor(e,t=r.Scheduler.now){super(e,t)}flush(e){const{actions:t}=this;if(this._active)return void t.push(e);let n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}t.AsyncScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js");class s extends r.AsyncAction{scheduler;work;constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(e,t,n):(e.flush(this),0)}}t.QueueAction=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class s extends r.AsyncScheduler{}t.QueueScheduler=s},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),o=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");class i extends o.AsyncScheduler{maxFrames;static frameTimeFactor=10;frame=0;index=-1;constructor(e=a,t=1/0){super(e,(()=>this.frame)),this.maxFrames=t}flush(){const{actions:e,maxFrames:t}=this;let n,r;for(;(r=e[0])&&r.delay<=t&&(e.shift(),this.frame=r.delay,!(n=r.execute(r.state,r.delay))););if(n){for(;r=e.shift();)r.unsubscribe();throw n}}}t.VirtualTimeScheduler=i;class a extends r.AsyncAction{scheduler;work;index;active=!0;constructor(e,t,n=(e.index+=1)){super(e,t),this.scheduler=e,this.work=t,this.index=n,this.index=e.index=n}schedule(e,t=0){if(Number.isFinite(t)){if(!this.id)return super.schedule(e,t);this.active=!1;const n=new a(this.scheduler,this.work);return this.add(n),n.schedule(e,t)}return s.Subscription.EMPTY}requestAsyncId(e,t,n=0){this.delay=e.frame+n;const{actions:r}=e;return r.push(this),r.sort(a.sortActions),1}recycleAsyncId(e,t,n=0){}_execute(e,t){if(!0===this.active)return super._execute(e,t)}static sortActions(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1}}t.VirtualAction=a},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js");t.animationFrameScheduler=new s.AnimationFrameScheduler(r.AnimationFrameAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.animationFrameProvider={schedule(e){let n=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:o}=t.animationFrameProvider;o&&(n=o.requestAnimationFrame,s=o.cancelAnimationFrame);const i=n((t=>{s=void 0,e(t)}));return new r.Subscription((()=>s?.(i)))},requestAnimationFrame(...e){const{delegate:n}=t.animationFrameProvider;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=t.animationFrameProvider;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asapScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js");t.asapScheduler=new s.AsapScheduler(r.AsapAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/async.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asyncScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js");t.asyncScheduler=new s.AsyncScheduler(r.AsyncAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:()=>(t.dateTimestampProvider.delegate||Date).now(),delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/Immediate.js"),{setImmediate:s,clearImmediate:o}=r.Immediate;t.immediateProvider={setImmediate(...e){const{delegate:n}=t.immediateProvider;return(n?.setImmediate||s)(...e)},clearImmediate(e){const{delegate:n}=t.immediateProvider;return(n?.clearImmediate||o)(e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval(e,n,...r){const{delegate:s}=t.intervalProvider;return s?.setInterval?s.setInterval(e,n,...r):setInterval(e,n,...r)},clearInterval(e){const{delegate:n}=t.intervalProvider;return(n?.clearInterval||clearInterval)(e)},delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:()=>(t.performanceTimestampProvider.delegate||performance).now(),delegate:void 0}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.queueScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js");t.queueScheduler=new s.QueueScheduler(r.QueueAction)},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js"(e,t){function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/types.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0})},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;class n extends Error{constructor(){super("argument out of range"),this.name="ArgumentOutOfRangeError"}}t.ArgumentOutOfRangeError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;class n extends Error{constructor(){super("no elements in sequence"),this.name="EmptyError"}}t.EmptyError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/Immediate.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;let n,r=1;const s={};function o(e){return e in s&&(delete s[e],!0)}t.Immediate={setImmediate(e){const t=r++;return s[t]=!0,n||(n=Promise.resolve()),n.then((()=>o(t)&&e())),t},clearImmediate(e){o(e)}},t.TestTools={pending:()=>Object.keys(s).length}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;class n extends Error{constructor(e){super(e),this.name="NotFoundError"}}t.NotFoundError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;class n extends Error{constructor(e){super(e),this.name="SequenceError"}}t.SequenceError=n},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/args.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js"),s=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js");function o(e){return e[e.length-1]}t.popResultSelector=function(e){return(0,r.isFunction)(o(e))?e.pop():void 0},t.popScheduler=function(e){return(0,s.isScheduler)(o(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof o(e)?e.pop():t}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.arrayOrObject=t.argsArgArrayOrObject=void 0;const{isArray:n}=Array,{getPrototypeOf:r,prototype:s,keys:o}=Object;function i(e){if(n(e))return{args:e,keys:null};if((t=e)&&"object"==typeof t&&r(t)===s){const t=o(e);return{args:t.map((t=>e[t])),keys:t}}var t;return null}t.argsArgArrayOrObject=function(e){if(1===e.length){const t=i(e[0]);if(t)return t}return{args:e,keys:null}},t.arrayOrObject=i},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;const{isArray:n}=Array;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/createObject.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce(((e,n,r)=>(e[n]=t[r],e)),{})}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r=0,s=!1){if(!e.closed){const o=t.schedule((function(){n(),s?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!s)return o}}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/identity.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isDate.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");t.isScheduler=function(e){return e&&(0,r.isFunction)(e.schedule)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/operators/map.js"),{isArray:s}=Array;t.mapOneOrManyArgs=function(e){return(0,r.map)((t=>function(e,t){return s(t)?e(...t):e(t)}(e,t)))}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/noop.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/not.js"(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return(n,r)=>!e.call(t,n,r)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/pipe.js"(e,t){function n(e,t){return t(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=void 0,t.pipe=function(...e){return 1===e.length?e[0]:t=>e.reduce(n,t)}},"../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/util/rx.js"(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.rx=void 0;const r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/internal/Observable.js");function s(e,t){return t(e)}t.rx=function(e,...t){return t.reduce(s,(0,r.from)(e))}},"bun:sqlite"(e){e.exports=import("bun:sqlite")},"node:sqlite"(e){e.exports=import("node:sqlite")},"@bufbuild/protobuf"(t,n,r){var s,o;t.exports=(s={Message:()=>e.Message,Struct:()=>e.Struct,Value:()=>e.Value,proto3:()=>e.proto3,protoInt64:()=>e.protoInt64},o={},r.d(o,s),o)},"node:crypto?8af2"(e,n,r){var s,o;e.exports=(s={createHash:()=>t.createHash,randomUUID:()=>t.randomUUID},o={},r.d(o,s),o)},"node:fs"(e,t,r){var s,o;e.exports=(s={chmodSync:()=>n.chmodSync,existsSync:()=>n.existsSync,mkdirSync:()=>n.mkdirSync,rmSync:()=>n.rmSync},o={},r.d(o,s),o)},"node:fs/promises"(e,t,n){var s,o;e.exports=(s={rm:()=>r.rm},o={},n.d(o,s),o)},"node:path"(e,t,n){var r,o;e.exports=(r={basename:()=>s.basename,dirname:()=>s.dirname,join:()=>s.join},o={},n.d(o,r),o)},zod(e,t,n){var r,s;e.exports=(r={z:()=>o.z},s={},n.d(s,r),s)},"../agent-kv/dist/index.js"(e,t,n){n.d(t,{aY:()=>N,pH:()=>F,aD:()=>p,sh:()=>b,nj:()=>d});var r=n("../proto/dist/generated/agent/v1/agent_pb.js"),s=n("../proto/dist/generated/agent/v1/todo_tool_pb.js"),o=n("../utils/dist/disposable.js"),i=n("zod"),a=n("../metrics/dist/index.js");const l=new TextDecoder,u=new TextEncoder,m=new class{serialize(e){return u.encode(e)}deserialize(e){return l.decode(e)}getBlobType(){return{kind:"string"}}};class c{constructor(e){this.proto=e}serialize(e){return e.toBinary()}deserialize(e){return this.proto.fromBinary(e)}getBlobType(){return{kind:"proto",typeName:this.proto.typeName}}}function d(e){try{return Buffer.from(e).toString("hex")}catch(t){return Array.from(e,(e=>e.toString(16).padStart(2,"0"))).join("")}}function p(e){const t=e.trim().toLowerCase();if(t.length%2!=0)throw new Error("Invalid hex string length");const n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=parseInt(t.slice(e,e+2),16);return n}function f(e){const t=e.buffer;return"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer?new Uint8Array(e):new Uint8Array(t,e.byteOffset,e.byteLength)}(0,a.v5)("agent_kv.in_memory.get_blob.duration_ms",{description:"Duration of InMemoryBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.in_memory.set_blob.duration_ms",{description:"Duration of InMemoryBlobStore setBlob operations in milliseconds"});var g=n("../context/dist/logger.js"),_=n("../utils/dist/promise-extras.js");class h extends Error{constructor(e,t){super(`This conversation's data is missing and can't be restored. Start a new chat to continue.${function(e){if(0===e.length)return"";const t=e.slice(0,3).map((e=>e.slice(0,12)));return` (${1===e.length?`missing blob ${t[0]}`:`${e.length} missing blobs: ${t.join(", ")}${e.length>t.length?", …":""}`})`}(e)}`,void 0!==(null==t?void 0:t.cause)?{cause:t.cause}:void 0),this.isBlobNotFound=!0,this.name="BlobNotFoundError",this.blobIdHexes=[...e]}}var T=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};const y=(0,g.h)("@anysphere/agent-kv:subagent-states");var S=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};const w=["default","plan","debug","search"],k=["allowlist","unrestricted","auto-review"],J=/^[0-9a-f]+$/;function v(){const e=new Uint8Array(32);return crypto.getRandomValues(e),d(e)}let E=null;const b=e=>({agentId:null!=e?e: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:v()}),j=new Set(w),x=new Set(k);class N{serialize(e){const t=d(e.latestRootBlobId);return m.serialize(JSON.stringify(Object.assign(Object.assign({},e),{latestRootBlobId:t})))}deserialize(e){const t=JSON.parse(m.deserialize(e)),n=b(t.agentId),r="string"==typeof t.latestRootBlobId?p(t.latestRootBlobId):n.latestRootBlobId;let s=!0===t.isRunEverything,o=t.mode;"auto-run"===o&&(o="default",s=!0);const a="string"==typeof o&&(l=o,j.has(l))?o:"default";var l;const u=t.approvalMode,c="string"==typeof u&&function(e){return x.has(e)}(u)?u:void 0,d=function(e){if(!e||"object"!=typeof e)return;const t=e;return"string"==typeof t.parentAgentId&&0!==t.parentAgentId.length&&"string"==typeof t.rootParentAgentId&&0!==t.rootParentAgentId.length&&"string"==typeof t.toolCallId&&0!==t.toolCallId.length&&"string"==typeof t.typeName&&0!==t.typeName.length?{parentAgentId:t.parentAgentId,rootParentAgentId:t.rootParentAgentId,toolCallId:t.toolCallId,typeName:t.typeName}:void 0}(t.subagentInfo),f=function(e){return"string"==typeof e&&64===e.length&&J.test(e)}(t.blobEncryptionKey)?t.blobEncryptionKey:n.blobEncryptionKey;return(null===E&&(E=i.z.object({agentId:i.z.string(),latestRootBlobId:i.z.custom((e=>e instanceof Uint8Array),{message:"Expected Uint8Array"}),name:i.z.string(),createdAt:i.z.number(),mode:i.z.enum(w),isRunEverything:i.z.boolean(),approvalMode:i.z.enum(k).optional(),lastUsedModel:i.z.string().optional(),lastDebugServerPort:i.z.number().int().positive().optional(),currentPlanUri:i.z.string().optional(),subagentInfo:i.z.union([i.z.object({parentAgentId:i.z.string().min(1),rootParentAgentId:i.z.string().min(1),toolCallId:i.z.string().min(1),typeName:i.z.string().min(1)}),i.z.undefined()]),blobEncryptionKey:i.z.string().optional()})),E).parse(Object.assign(Object.assign(Object.assign({},n),t),{mode:a,isRunEverything:s,approvalMode:c,latestRootBlobId:r,subagentInfo:d,blobEncryptionKey:f}))}getBlobType(){return{kind:"json"}}}const P=new c(s.kW),I=new c(r.RGk),B=new c(r.kJk),q=new c(r.cmU),R=new c(r.KRq),M=new c(r.oIR),O=new c(r.qKL);class F{constructor(e,t,n={}){this.blobStore=e,this.metadataStore=t,this.serde=new c(r.Y9z),this.conversationStateStructure=new r.Y9z,this.fixedRootBlobId=n.fixedRootBlobId}subscribeToMetadata(e,t){return this.metadataStore.subscribe(e,(()=>{t(this.metadataStore.get(e))}))}setMetadata(e,t){this.metadataStore.set(e,t)}getMetadata(e){return this.metadataStore.get(e)}getId(){return this.getMetadata("agentId")}getBlobStore(){return this.blobStore}getConversationStateStructure(){return this.conversationStateStructure}getLastRequestIdFromConversation(e){return S(this,void 0,void 0,(function*(){const t=this.conversationStateStructure.turns;if(0===t.length)return null;for(let n=t.length-1;n>=0;n--){const r=t[n],s=yield this.blobStore.getBlob(e,r);if(!s)continue;const o=q.deserialize(s);if("agentConversationTurn"===o.turn.case){const e=o.turn.value.requestId;return null!=e?e:null}}return null}))}getFullConversation(e){return S(this,void 0,void 0,(function*(){return this.deserializeConversationStateStructure(e,this.conversationStateStructure)}))}deserializeConversationStateStructure(e,t){return S(this,void 0,void 0,(function*(){return function(e,t,n){return S(this,void 0,void 0,(function*(){const s=new r.ljj,o=[],i=t.turns;for(const t of i){const s=yield n.getBlob(e,t);if(!s)continue;const i=q.deserialize(s);let a;switch(i.turn.case){case"agentConversationTurn":{const t=i.turn.value,s=yield n.getBlob(e,t.userMessage);if(!s)continue;const o=I.deserialize(s),l=[];for(const r of t.steps){const t=yield n.getBlob(e,r);if(t){const e=B.deserialize(t);l.push(e)}}const u=new r.i9c({userMessage:o,steps:l});a=new r.j97({turn:{case:"agentConversationTurn",value:u}});break}case"shellConversationTurn":{const t=i.turn.value,s=yield n.getBlob(e,t.shellCommand);if(!s)continue;const o=M.deserialize(s),l=yield n.getBlob(e,t.shellOutput);if(!l)continue;const u=O.deserialize(l),m=new r.tms({shellCommand:o,shellOutput:u});a=new r.j97({turn:{case:"shellConversationTurn",value:m}});break}}a&&o.push(a)}s.turns=o;const a=[];for(const r of t.todos){const t=yield n.getBlob(e,r);if(t){const e=P.deserialize(t);a.push(e)}}if(s.todos=a,t.summary){const r=yield n.getBlob(e,t.summary);if(r){const e=R.deserialize(r);s.summary=e}}return s}))}(e,t,this.blobStore)}))}getFullConversationWithSubagents(e){return S(this,void 0,void 0,(function*(){const t=this.conversationStateStructure,n=yield this.deserializeConversationStateStructure(e,t),s={},o=yield function(e,t,n){return T(this,void 0,void 0,(function*(){var s,o;const i=Object.assign({},null!==(s=t.subagentStates)&&void 0!==s?s:{}),a=Object.entries(null!==(o=t.subagentStateRefs)&&void 0!==o?o:{});if(0===a.length)return i;const l=yield(0,_.PH)(a,(t=>T(this,[t],void 0,(function*([t,s]){const o=yield n.getBlob(e,s);if(void 0===o)return void 0===i[t]?{kind:"missing",blobIdHex:d(s)}:(y.warn(e,"Subagent state ref blob not found; falling back to inline entry",{subagentId:t}),{kind:"fallback"});try{return{kind:"loaded",subagentId:t,state:r.aK_.fromBinary(o)}}catch(e){return{kind:"failed",error:e}}}))),{max:8}),u=l.flatMap((e=>"missing"===e.kind?[e.blobIdHex]:[]));if(u.length>0)throw new h(u);const m=l.find((e=>"failed"===e.kind));if(void 0!==m&&"failed"===m.kind)throw m.error;for(const e of l)"loaded"===e.kind&&(i[e.subagentId]=e.state);return i}))}(e,t,this.blobStore);for(const[t,n]of Object.entries(o))if(n.conversationState){const r=yield this.deserializeConversationStateStructure(e,n.conversationState);s[t]={conversationState:r,createdTimestampMs:n.createdTimestampMs,lastUsedTimestampMs:n.lastUsedTimestampMs,subagentType:n.subagentType}}return{conversationState:n,subagentStates:s}}))}getLatestCheckpoint(){return this.getConversationStateStructure()}handleCheckpoint(e,t){return S(this,void 0,void 0,(function*(){var n;this.conversationStateStructure=t;const r=this.serde.serialize(t),s=null!==(n=this.fixedRootBlobId)&&void 0!==n?n:yield function(e){return t=this,n=void 0,s=function*(){const t=yield crypto.subtle.digest("SHA-256",f(e));return new Uint8Array(t)},new((r=void 0)||(r=Promise))((function(e,o){function i(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,a)}l((s=s.apply(t,n||[])).next())}));var t,n,r,s}(r);yield this.blobStore.setBlob(e,s,r),this.setMetadata("latestRootBlobId",s)}))}resetFromDb(e){return S(this,void 0,void 0,(function*(){yield this.tryResetFromDb(e)}))}tryResetFromDb(e){return S(this,void 0,void 0,(function*(){try{const t=this.getMetadata("latestRootBlobId");if(!t||0===t.length)return this.conversationStateStructure=new r.Y9z,!1;const n=yield this.blobStore.getBlob(e,t);if(!n)return this.conversationStateStructure=new r.Y9z,!1;const s=this.serde.deserialize(n);return this.conversationStateStructure=s,!0}catch(e){return this.conversationStateStructure=new r.Y9z,!1}}))}dispose(){return S(this,void 0,void 0,(function*(){this.blobStore instanceof o.j&&(yield this.blobStore.dispose())}))}}var A=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("@anysphere/agent-kv"),(0,a.v5)("agent_kv.cached.get_blob.duration_ms",{description:"Duration of CachedBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.cached.set_blob.duration_ms",{description:"Duration of CachedBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.cached.flush.duration_ms",{description:"Duration of CachedBlobStore flush operations in milliseconds"}),(0,a.v5)("agent_kv.cached.cache_bytes",{description:"Resident bytes held in the CachedBlobStore in-memory cache, sampled on flush"}),(0,a.Pu)("agent_kv.cached.get_blob.results",{description:"Number of CachedBlobStore getBlob operations by cache result type",labelNames:["cache_type"]}),(0,a.Pu)("agent_kv.nearby.decrypt_errors",{description:"Number of nearby blob reads that found ciphertext but failed to decrypt it (wrong encryption key)"});const L=(0,a.Pu)("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"}),C=(0,a.v5)("agent_kv.encrypted.get_blob.duration_ms",{description:"Duration of EncryptedBlobStore getBlob operations in milliseconds"}),U=(0,a.v5)("agent_kv.encrypted.set_blob.duration_ms",{description:"Duration of EncryptedBlobStore setBlob operations in milliseconds"});class D extends Error{constructor(e){super("Failed to decrypt nearby blob (encryption key mismatch)",{cause:e}),this.name="NearbyBlobDecryptError"}}class G{constructor(e,t,n=null){this.blobStore=e,this.encryptionKeyStr=t,this.fallbackDecryptKeyStr=n}static deriveKey(e){return A(this,void 0,void 0,(function*(){const t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t);return crypto.subtle.importKey("raw",n,{name:G.ALGORITHM,length:256},!0,["encrypt","decrypt"])}))}getEncryptionKey(){return A(this,void 0,void 0,(function*(){return void 0===this.encryptionKey&&(this.encryptionKey=yield G.deriveKey(this.encryptionKeyStr)),this.encryptionKey}))}getFallbackDecryptKey(){return A(this,void 0,void 0,(function*(){return null===this.fallbackDecryptKeyStr?null:(void 0===this.fallbackDecryptKey&&(this.fallbackDecryptKey=yield G.deriveKey(this.fallbackDecryptKeyStr)),this.fallbackDecryptKey)}))}getBlob(e,t){return A(this,void 0,void 0,(function*(){const n=performance.now();try{const n=yield this.blobStore.getBlob(e,t);if(void 0===n)return;const r=n.slice(0,G.IV_LENGTH),s=n.slice(G.IV_LENGTH);let o;try{o=yield crypto.subtle.decrypt({name:G.ALGORITHM,iv:r},yield this.getEncryptionKey(),s)}catch(t){const n=yield this.getFallbackDecryptKey();if(null===n)throw new D(t);try{o=yield crypto.subtle.decrypt({name:G.ALGORITHM,iv:r},n,s),L.increment(e,1)}catch(e){throw new D(t)}}return new Uint8Array(o)}finally{const t=performance.now()-n;C.histogram(e,t)}}))}encryptBlob(e){return A(this,void 0,void 0,(function*(){const t=crypto.getRandomValues(new Uint8Array(G.IV_LENGTH)),n=yield crypto.subtle.encrypt({name:G.ALGORITHM,iv:t},yield this.getEncryptionKey(),f(e)),r=new Uint8Array(t.length+n.byteLength);return r.set(t,0),r.set(new Uint8Array(n),t.length),r}))}setBlob(e,t,n){return A(this,void 0,void 0,(function*(){const r=performance.now();try{const r=yield this.encryptBlob(n);yield this.blobStore.setBlob(e,t,r)}finally{const t=performance.now()-r;U.histogram(e,t)}}))}setBlobLocallyOnly(e,t,n){return A(this,void 0,void 0,(function*(){const r=performance.now();try{const r=yield this.encryptBlob(n);yield this.blobStore.setBlobLocallyOnly(e,t,r)}finally{const t=performance.now()-r;U.histogram(e,t)}}))}flush(e){return A(this,void 0,void 0,(function*(){return yield this.blobStore.flush(e)}))}}G.ALGORITHM="AES-GCM",G.IV_LENGTH=12,"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("ControlledKvManager"),(0,a.v5)("agent_kv.controlled.get_blob.duration_ms",{description:"Duration of ControlledKvManager getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.controlled.set_blob.duration_ms",{description:"Duration of ControlledKvManager setBlob operations in milliseconds"}),"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("@anysphere/agent-kv"),(0,a.v5)("agent_kv.writethrough.get_blob.duration_ms",{description:"Duration of WritethroughBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.writethrough.set_blob.duration_ms",{description:"Duration of WritethroughBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.writethrough.flush.duration_ms",{description:"Duration of WritethroughBlobStore flush operations in milliseconds"}),Symbol.for("anysphere.blobMetadataCallback"),(0,g.h)("@anysphere/agent-kv:reference"),(0,a.Pu)("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"]}),(0,a.v5)("agent_kv.lazy_reference.deserialize_bytes",{description:"Blob byte size loaded on a large or slow LazyReference deserialize cache miss",labelNames:["blob_type"]}),(0,a.v5)("agent_kv.lazy_reference.deserialize_ms",{description:"Time spent deserializing a blob on a large or slow LazyReference cache miss",labelNames:["blob_type"]}),"function"==typeof SuppressedError&&SuppressedError,(0,g.h)("RetryBlobStore"),(0,a.Pu)("agent_kv.retry.retries",{description:"Number of RetryBlobStore retry attempts (one per re-issued operation, not counting the first try)",labelNames:["operation","outcome"]}),(0,a.v5)("agent_kv.retry.get_blob.duration_ms",{description:"Duration of RetryBlobStore getBlob operations in milliseconds"}),(0,a.v5)("agent_kv.retry.set_blob.duration_ms",{description:"Duration of RetryBlobStore setBlob operations in milliseconds"}),(0,a.v5)("agent_kv.retry.set_blob_locally_only.duration_ms",{description:"Duration of RetryBlobStore setBlobLocallyOnly operations in milliseconds"}),(0,a.v5)("agent_kv.retry.flush.duration_ms",{description:"Duration of RetryBlobStore flush operations in milliseconds"})},"../context/dist/core.js"(e,t,n){function r(e,t){return{symbol:e,defaultValue:t}}function s(e){const t=new AbortController;return e.aborted?t.abort(e.reason):e.addEventListener("abort",(()=>t.abort(e.reason)),{once:!0}),t}n.d(t,{cF:()=>r,q6:()=>i});class o{constructor(e,t,n,r){this.parent=e,this.values=n||new Map,this.name=r,this.signal=t||(e?e.signal:(new AbortController).signal)}get canceled(){return this.signal.aborted}get reason(){return this.signal.reason}get(e){return this.values.has(e.symbol)?this.values.get(e.symbol):this.parent?this.parent.get(e):e.defaultValue}with(e,t){const n=new Map(this.values);return n.set(e.symbol,t),new o(this,void 0,n)}withCancel(){const e=s(this.signal);return[new o(this,e.signal),t=>e.abort(t)]}withTimeout(e){const t=s(this.signal),n=new o(this,t.signal),r=setTimeout((()=>{t.abort(new Error("context deadline exceeded"))}),e);return t.signal.addEventListener("abort",(()=>{clearTimeout(r)}),{once:!0}),n}withDeadline(e){const t=e.getTime()-Date.now();if(t<=0){const e=s(this.signal);return e.abort(new Error("context deadline exceeded")),new o(this,e.signal)}return this.withTimeout(t)}withTimeoutAndCancel(e){const[t,n]=this.withCancel();return[t.withTimeout(e),n]}withName(e){return new o(this,void 0,void 0,e)}withDetached(){return new o(this,(new AbortController).signal)}getParent(){return this.parent}getPath(){const e=[];let t=this;for(;t;)t.name&&e.unshift(t.name),t=t.getParent();return e}}function i(){return new o}},"../context/dist/logger.js"(e,t,n){n.d(t,{h:()=>d});var r=n("../context/dist/core.js");function s(e){return"object"==typeof e&&null!==e&&"getPath"in e&&"function"==typeof e.getPath}function o(e){return"object"==typeof e&&null!==e&&("message"in e||"stack"in e||"name"in e||"cause"in e)}function i(e,t,n,r,s,u){var m,c;const d=function(e,t,n,r){if(!t.inlineSerializer)return e;try{const s=t.inlineSerializer(e,{path:n,depth:r});return void 0===s?e:s}catch(t){return e}}(e,t,u,r);if(function(e){return"object"==typeof e&&null!==e&&"summary"===e.kind&&"string"==typeof e.summary}(d))return n.dim(`<${d.summary}>`);if(null===(e=d))return n.gray("null");if(void 0===e)return n.gray("undefined");if("string"==typeof e){const r=function(e,t){return e.length<=t?e:`${e.slice(0,t)}...`}(e,t.maxStringLength);return n.green(JSON.stringify(r))}if("number"==typeof e)return n.yellow(String(e));if("boolean"==typeof e)return n.magenta(String(e));if("bigint"==typeof e)return n.yellow(`${e}n`);if("symbol"==typeof e)return n.cyan(e.toString());if("function"==typeof e){const t=e.name?` ${e.name}`:"";return n.dim(`[Function${t}]`)}if(e instanceof Date){const t=Number.isNaN(e.getTime())?"Invalid Date":e.toISOString();return n.green(t)}if(e instanceof RegExp)return n.cyan(e.toString());if(o(e))return a(e,t,n,r,s,u);if(Array.isArray(e))return l(e,t,n,r,s,u);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return n.dim(`ArrayBuffer(${e.byteLength})`);if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(e)){const t=e,r=null!==(c=null===(m=t.constructor)||void 0===m?void 0:m.name)&&void 0!==c?c:"TypedArray";return n.dim(`${r}(${t.byteLength})`)}return e instanceof Map?function(e,t,n,r,s,o){if(r>=t.maxDepth)return n.dim(`Map(${e.size})`);if(s.has(e))return n.dim("[Circular]");s.add(e);const a=Array.from(e.entries()),l=Math.min(a.length,t.maxEntries),u=a.slice(0,l).map((([e,a])=>{const l=i(e,t,n,r+1,s,o.concat("<key>")),u=i(a,t,n,r+1,s,o.concat(String(e)));return`${l} ${n.dim("=>")} ${u}`}));a.length>l&&u.push(n.dim(`... ${a.length-l} more`));const m=n.dim(", "),c=`${n.dim("Map{")}${u.join(m)}${n.dim("}")}`;return s.delete(e),c}(e,t,n,r,s,u):e instanceof Set?l(Array.from(e.values()),t,n,r,s,u):function(e,t,n,r,s,o){var a,l;if(r>=t.maxDepth){const t=null!==(l=null===(a=null==e?void 0:e.constructor)||void 0===a?void 0:a.name)&&void 0!==l?l:"Object";return n.dim(`[${t}]`)}if(s.has(e))return n.dim("[Circular]");s.add(e);const u=Object.entries(e);if(0===u.length){const t=n.dim("{}");return s.delete(e),t}const m=Math.min(u.length,t.maxEntries),c=u.slice(0,m).map((([e,a])=>{const l=i(a,t,n,r+1,s,o.concat(e));return`${n.cyan(e)}: ${l}`}));u.length>m&&c.push(n.dim(`... ${u.length-m} more`));const d=n.dim(", "),p=`${n.dim("{")}${c.join(d)}${n.dim("}")}`;return s.delete(e),p}(e,t,n,r,s,u)}function a(e,t,n,r,s,o){const a=e;if(s.has(a))return n.dim("[Circular]");s.add(a);const l="string"==typeof e.name?e.name:"Error",u="string"==typeof e.message?e.message:"",m=u?`${l}: ${u}`:l;let c=n.red(m);if("cause"in e&&void 0!==e.cause){const a=i(e.cause,t,n,r+1,s,o.concat("cause"));c=`${c} ${n.dim("cause=")}${a}`}return s.delete(a),c}function l(e,t,n,r,s,o){if(r>=t.maxDepth)return n.dim(`[Array(${e.length})]`);if(s.has(e))return n.dim("[Circular]");if(s.add(e),0===e.length){const t=n.dim("[]");return s.delete(e),t}const a=Math.min(e.length,t.maxArrayLength),l=e.slice(0,a).map(((e,a)=>i(e,t,n,r+1,s,o.concat(a))));e.length>a&&l.push(n.dim(`... ${e.length-a} more`));const u=n.dim(", "),m=`${n.dim("[")}${l.join(u)}${n.dim("]")}`;return s.delete(e),m}let u=function(e={}){var t;const n=function(e){var t,n,r,s,o,i,a;return{indent:" ".repeat(null!==(t=e.indent)&&void 0!==t?t:2),maxDepth:null!==(n=e.maxDepth)&&void 0!==n?n:6,maxEntries:null!==(r=e.maxEntries)&&void 0!==r?r:50,maxArrayLength:null!==(s=e.maxArrayLength)&&void 0!==s?s:40,maxStringLength:null!==(o=e.maxStringLength)&&void 0!==o?o:200,includeTimestamp:null===(i=e.includeTimestamp)||void 0===i||i,includeContextPath:null===(a=e.includeContextPath)||void 0===a||a,inlineSerializer:e.inlineSerializer}}(e),r=function(e){const t=t=>n=>e?`[${t.join(";")}m${n}`:n,n=t([2]),r=t([90]),s=t([31]),o=t([32]),i=t([33]),a=t([34]),l=t([35]),u=t([36]),m=t([1]),c=t([1,31]);return{dim:n,gray:r,red:s,green:o,yellow:i,blue:a,magenta:l,cyan:u,bold:m,level:(e,t)=>{switch(e){case"debug":return l(t);case"info":return a(t);case"warn":return i(t);case"error":return c(t);default:return e}}}}(function(e){var t,n;if("boolean"==typeof e)return e;if("undefined"==typeof process)return!1;const r=null!==(n=process.env)&&void 0!==n?n:{};if("NO_COLOR"in r)return!1;if("dumb"===r.TERM)return!1;const s=r.FORCE_COLOR;return"1"===s||"true"===s||"0"!==s&&Boolean(null===(t=process.stdout)||void 0===t?void 0:t.isTTY)}(e.useColors)),l=null!==(t=e.console)&&void 0!==t?t:console;return{log:(e,t)=>{const u=[];n.includeTimestamp&&u.push(r.dim(t.timestamp.toISOString().slice(11,23)));const m=t.level.toUpperCase().padEnd(5);u.push(r.level(t.level,m));const c="error"===t.level?r.bold(t.message):t.message;if(u.push(c),n.includeContextPath&&s(t.context)){const e=t.context.getPath();e.length>0&&u.push(r.dim(`ctx=${e.join("/")}`))}const d=new WeakSet;if(!s(t.context)&&t.context&&Object.keys(t.context).length>0){const e=i(t.context,n,r,0,d,["context"]);u.push(`${r.dim("context=")}${e}`)}if(t.metadata&&Object.keys(t.metadata).length>0){const e=i(t.metadata,n,r,0,d,["metadata"]);u.push(`${r.dim("meta=")}${e}`)}const p=[u.join(" ")];if(void 0!==t.error){const e=o(t.error)?a(t.error,n,r,0,d,["error"]):i(t.error,n,r,0,d,["error"]);if(p[0]=`${p[0]} ${r.dim("error=")}${e}`,o(t.error)&&"string"==typeof t.error.stack){const e=t.error.stack.split("\n").slice(1);for(const t of e){const e=t.trim();e&&p.push(`${n.indent}${r.dim(e)}`)}}}const f=p.join("\n");switch(t.level){case"debug":case"info":l.log(f);break;case"warn":l.warn(f);break;case"error":l.error(f);break;default:{const e=t.level;throw new Error(`Unhandled log level: ${e}`)}}}}}();const m={log:(e,t)=>u.log(e,t)},c=(0,r.cF)(Symbol("loggerBackend"),m);function d(e){function t(e,t){const n=new Date,r=function(e){return e.get(c)}(e);r.log(e,Object.assign(Object.assign({},t),{timestamp:n}))}return{debug:(e,n,r)=>{t(e,{level:"debug",message:n,context:e,metadata:r})},info:(e,n,r)=>{t(e,{level:"info",message:n,context:e,metadata:r})},warn:(e,n,r)=>{t(e,{level:"warn",message:n,context:e,metadata:r})},error:(e,n,r,s)=>{t(e,{level:"error",message:n,context:e,error:r,metadata:s})}}}},"../metrics/dist/index.js"(e,t,n){n.d(t,{Pu:()=>o,v5:()=>i});const r=(0,n("../context/dist/core.js").cF)(Symbol("metricsBackend"),{record:()=>{},increment:()=>{},gauge:()=>{},histogram:()=>{}});function s(e){return e.get(r)}function o(e,t){const n={name:e,type:"counter",description:null==t?void 0:t.description,labelNames:null==t?void 0:t.labelNames};return{increment:(e,t,r)=>{s(e).increment(e,n,null!=t?t:1,r)},record:(e,t,r)=>{s(e).record(e,n,t,r)}}}function i(e,t){const n={name:e,type:"histogram",description:null==t?void 0:t.description,labelNames:null==t?void 0:t.labelNames};return{histogram:(e,t,r)=>{s(e).histogram(e,n,t,r)},record:(e,t,r)=>{s(e).record(e,n,t,r)}}}},"../proto/dist/generated/agent/v1/agent_pb.js"(e,t,n){n.d(t,{i9c:()=>Ws,ljj:()=>lo,Y9z:()=>go,kJk:()=>Mr,KRq:()=>Qs,j97:()=>Us,cmU:()=>Ks,oIR:()=>Ls,tms:()=>zs,qKL:()=>Cs,aK_:()=>co,RGk:()=>Ms});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/subagents_pb.js"),o=n("../proto/dist/generated/agent/v1/shell_exec_pb.js");class i extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.ShellToolCall",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o.a},{no:2,name:"result",kind:"message",T:o.W4},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));class a extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.ShellToolCallStdoutDelta",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.ShellToolCallStderrDelta",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.delta={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.ShellToolCallDelta",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:a,oneof:"delta"},{no:2,name:"stderr",kind:"message",T:l,oneof:"delta"}]));var m=n("../proto/dist/generated/agent/v1/delete_exec_pb.js");class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.DeleteToolCall",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:m.dn},{no:2,name:"result",kind:"message",T:m.Pi}]));class d extends r.Message{constructor(e){super(),this.globPattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GlobToolArgs",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"target_directory",kind:"scalar",T:9,opt:!0},{no:2,name:"glob_pattern",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.GlobToolResult",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:g,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"}]));class f extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.GlobToolError",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class g extends r.Message{constructor(e){super(),this.pattern="",this.path="",this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.GlobToolSuccess",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"files",kind:"scalar",T:9,repeated:!0},{no:4,name:"total_files",kind:"scalar",T:5},{no:5,name:"client_truncated",kind:"scalar",T:8},{no:6,name:"ripgrep_truncated",kind:"scalar",T:8}]));class _ extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.GlobToolCall",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:d},{no:2,name:"result",kind:"message",T:p}]));var h=n("../proto/dist/generated/agent/v1/grep_exec_pb.js");class T extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(T,e,t)}}T.runtime=r.proto3,T.typeName="agent.v1.GrepToolCall",T.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:h.Qj},{no:2,name:"result",kind:"message",T:h.Ud}]));var y=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js");class S extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(S,e,t)}}S.runtime=r.proto3,S.typeName="agent.v1.ReadToolCall",S.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:w},{no:2,name:"result",kind:"message",T:k}]));class w extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(w,e,t)}}w.runtime=r.proto3,w.typeName="agent.v1.ReadToolArgs",w.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:5,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0},{no:5,name:"include_line_numbers",kind:"scalar",T:8,opt:!0}]));class k extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(k,e,t)}}k.runtime=r.proto3,k.typeName="agent.v1.ReadToolResult",k.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:v,oneof:"result"},{no:2,name:"error",kind:"message",T:E,oneof:"result"}]));class J extends r.Message{constructor(e){super(),this.startLine=0,this.endLine=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(J,e,t)}}J.runtime=r.proto3,J.typeName="agent.v1.ReadRange",J.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start_line",kind:"scalar",T:13},{no:2,name:"end_line",kind:"scalar",T:13}]));class v extends r.Message{constructor(e){super(),this.output={case:void 0},this.isEmpty=!1,this.exceededLimit=!1,this.totalLines=0,this.fileSize=0,this.path="",this.relatedCursorRulePaths=[],this.relatedCursorRules=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(v,e,t)}}v.runtime=r.proto3,v.typeName="agent.v1.ReadToolSuccess",v.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9,oneof:"output"},{no:6,name:"data",kind:"scalar",T:12,oneof:"output"},{no:9,name:"data_blob_id",kind:"scalar",T:12,oneof:"output"},{no:10,name:"content_blob_id",kind:"scalar",T:12,oneof:"output"},{no:2,name:"is_empty",kind:"scalar",T:8},{no:3,name:"exceeded_limit",kind:"scalar",T:8},{no:4,name:"total_lines",kind:"scalar",T:13},{no:5,name:"file_size",kind:"scalar",T:13},{no:7,name:"path",kind:"scalar",T:9},{no:8,name:"read_range",kind:"message",T:J,opt:!0},{no:11,name:"include_line_numbers",kind:"scalar",T:8,opt:!0},{no:12,name:"related_cursor_rule_paths",kind:"scalar",T:9,repeated:!0},{no:13,name:"related_cursor_rules",kind:"message",T:y.DX,repeated:!0}]));class E extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(E,e,t)}}E.runtime=r.proto3,E.typeName="agent.v1.ReadToolError",E.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var b=n("../proto/dist/generated/agent/v1/todo_tool_pb.js");class j extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(j,e,t)}}j.runtime=r.proto3,j.typeName="agent.v1.EditArgs",j.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:6,name:"stream_content",kind:"scalar",T:9,opt:!0}]));class x extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(x,e,t)}}x.runtime=r.proto3,x.typeName="agent.v1.EditResult",x.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:N,oneof:"result"},{no:2,name:"file_not_found",kind:"message",T:P,oneof:"result"},{no:3,name:"read_permission_denied",kind:"message",T:I,oneof:"result"},{no:4,name:"write_permission_denied",kind:"message",T:B,oneof:"result"},{no:6,name:"rejected",kind:"message",T:q,oneof:"result"},{no:7,name:"error",kind:"message",T:R,oneof:"result"}]));class N extends r.Message{constructor(e){super(),this.path="",this.afterFullFileContent="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(N,e,t)}}N.runtime=r.proto3,N.typeName="agent.v1.EditSuccess",N.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:3,name:"lines_added",kind:"scalar",T:5,opt:!0},{no:4,name:"lines_removed",kind:"scalar",T:5,opt:!0},{no:5,name:"diff_string",kind:"scalar",T:9,opt:!0},{no:6,name:"before_full_file_content",kind:"scalar",T:9,opt:!0},{no:7,name:"after_full_file_content",kind:"scalar",T:9},{no:8,name:"message",kind:"scalar",T:9,opt:!0}]));class P extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(P,e,t)}}P.runtime=r.proto3,P.typeName="agent.v1.EditFileNotFound",P.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class I extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(I,e,t)}}I.runtime=r.proto3,I.typeName="agent.v1.EditReadPermissionDenied",I.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class B extends r.Message{constructor(e){super(),this.path="",this.error="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(B,e,t)}}B.runtime=r.proto3,B.typeName="agent.v1.EditWritePermissionDenied",B.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9},{no:3,name:"is_readonly",kind:"scalar",T:8}]));class q extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(q,e,t)}}q.runtime=r.proto3,q.typeName="agent.v1.EditRejected",q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class R extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(R,e,t)}}R.runtime=r.proto3,R.typeName="agent.v1.EditError",R.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9},{no:5,name:"model_visible_error",kind:"scalar",T:9,opt:!0}]));class M extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(M,e,t)}}M.runtime=r.proto3,M.typeName="agent.v1.EditToolCall",M.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:j},{no:2,name:"result",kind:"message",T:x}]));class O extends r.Message{constructor(e){super(),this.streamContentDelta="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(O,e,t)}}O.runtime=r.proto3,O.typeName="agent.v1.EditToolCallDelta",O.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stream_content_delta",kind:"scalar",T:9}]));var F=n("../proto/dist/generated/agent/v1/ls_exec_pb.js");class A extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(A,e,t)}}A.runtime=r.proto3,A.typeName="agent.v1.LsToolCall",A.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:F.xe},{no:2,name:"result",kind:"message",T:F.fv}]));var L=n("../proto/dist/generated/agent/v1/diagnostics_exec_pb.js"),C=n("../proto/dist/generated/agent/v1/utils_pb.js");class U extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(U,e,t)}}U.runtime=r.proto3,U.typeName="agent.v1.ReadLintsToolCall",U.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:D},{no:2,name:"result",kind:"message",T:G}]));class D extends r.Message{constructor(e){super(),this.paths=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(D,e,t)}}D.runtime=r.proto3,D.typeName="agent.v1.ReadLintsToolArgs",D.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"paths",kind:"scalar",T:9,repeated:!0}]));class G extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(G,e,t)}}G.runtime=r.proto3,G.typeName="agent.v1.ReadLintsToolResult",G.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:H,oneof:"result"},{no:2,name:"error",kind:"message",T:z,oneof:"result"}]));class H extends r.Message{constructor(e){super(),this.fileDiagnostics=[],this.totalFiles=0,this.totalDiagnostics=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(H,e,t)}}H.runtime=r.proto3,H.typeName="agent.v1.ReadLintsToolSuccess",H.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_diagnostics",kind:"message",T:K,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"total_diagnostics",kind:"scalar",T:5}]));class K extends r.Message{constructor(e){super(),this.path="",this.diagnostics=[],this.diagnosticsCount=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(K,e,t)}}K.runtime=r.proto3,K.typeName="agent.v1.FileDiagnostics",K.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diagnostics",kind:"message",T:W,repeated:!0},{no:3,name:"diagnostics_count",kind:"scalar",T:5}]));class W extends r.Message{constructor(e){super(),this.severity=L.h_.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(W,e,t)}}W.runtime=r.proto3,W.typeName="agent.v1.DiagnosticItem",W.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"severity",kind:"enum",T:r.proto3.getEnumType(L.h_)},{no:2,name:"range",kind:"message",T:Y},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"source",kind:"scalar",T:9},{no:5,name:"code",kind:"scalar",T:9},{no:6,name:"is_stale",kind:"scalar",T:8}]));class Y extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Y,e,t)}}Y.runtime=r.proto3,Y.typeName="agent.v1.DiagnosticRange",Y.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start",kind:"message",T:C.yX},{no:2,name:"end",kind:"message",T:C.yX}]));class z extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(z,e,t)}}z.runtime=r.proto3,z.typeName="agent.v1.ReadLintsToolError",z.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var V=n("../proto/dist/generated/agent/v1/mcp_exec_pb.js");class Q extends r.Message{constructor(e){super(),this.error="",this.readToolDefReminder="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Q,e,t)}}Q.runtime=r.proto3,Q.typeName="agent.v1.McpToolError",Q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"read_tool_def_reminder",kind:"scalar",T:9}]));class X extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(X,e,t)}}X.runtime=r.proto3,X.typeName="agent.v1.McpToolResult",X.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:V.QW,oneof:"result"},{no:2,name:"error",kind:"message",T:Q,oneof:"result"},{no:3,name:"rejected",kind:"message",T:V.xo,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:V.HQ,oneof:"result"}]));class $ extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($,e,t)}}$.runtime=r.proto3,$.typeName="agent.v1.McpToolCall",$.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.E_},{no:2,name:"result",kind:"message",T:X},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));var Z=n("../proto/dist/generated/aiserver/v1/repository_pb.js");class ee extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ee,e,t)}}ee.runtime=r.proto3,ee.typeName="agent.v1.SemSearchToolCall",ee.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:te},{no:2,name:"result",kind:"message",T:ne}]));class te extends r.Message{constructor(e){super(),this.query="",this.targetDirectories=[],this.explanation="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(te,e,t)}}te.runtime=r.proto3,te.typeName="agent.v1.SemSearchToolArgs",te.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"target_directories",kind:"scalar",T:9,repeated:!0},{no:3,name:"explanation",kind:"scalar",T:9}]));class ne extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ne,e,t)}}ne.runtime=r.proto3,ne.typeName="agent.v1.SemSearchToolResult",ne.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:re,oneof:"result"},{no:2,name:"error",kind:"message",T:se,oneof:"result"}]));class re extends r.Message{constructor(e){super(),this.results="",this.codeResults=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(re,e,t)}}re.runtime=r.proto3,re.typeName="agent.v1.SemSearchToolSuccess",re.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"scalar",T:9},{no:2,name:"code_results",kind:"message",T:Z.PT,repeated:!0}]));class se extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(se,e,t)}}se.runtime=r.proto3,se.typeName="agent.v1.SemSearchToolError",se.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));var oe=n("../proto/dist/generated/agent/v1/create_plan_tool_pb.js"),ie=n("../proto/dist/generated/agent/v1/web_search_tool_pb.js");class ae extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ae,e,t)}}ae.runtime=r.proto3,ae.typeName="agent.v1.ListMcpResourcesToolCall",ae.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.kj},{no:2,name:"result",kind:"message",T:V.kP}]));class le extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(le,e,t)}}le.runtime=r.proto3,le.typeName="agent.v1.ReadMcpResourceToolCall",le.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:V.DI},{no:2,name:"result",kind:"message",T:V.ZD}]));var ue=n("../proto/dist/generated/agent/v1/apply_agent_diff_tool_pb.js"),me=n("../proto/dist/generated/agent/v1/ask_question_tool_pb.js"),ce=n("../proto/dist/generated/agent/v1/fetch_exec_pb.js");class de extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(de,e,t)}}de.runtime=r.proto3,de.typeName="agent.v1.FetchToolCall",de.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ce.UM},{no:2,name:"result",kind:"message",T:ce.uN}]));var pe=n("../proto/dist/generated/agent/v1/switch_mode_tool_pb.js"),fe=n("../proto/dist/generated/agent/v1/generate_image_tool_pb.js"),ge=n("../proto/dist/generated/agent/v1/record_screen_exec_pb.js");class _e extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_e,e,t)}}_e.runtime=r.proto3,_e.typeName="agent.v1.RecordScreenToolCall",_e.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ge.zH},{no:2,name:"result",kind:"message",T:ge.Tj}]));var he=n("../proto/dist/generated/agent/v1/computer_use_tool_pb.js"),Te=n("../proto/dist/generated/agent/v1/background_shell_exec_pb.js");class ye extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ye,e,t)}}ye.runtime=r.proto3,ye.typeName="agent.v1.WriteShellStdinToolCall",ye.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Te.LL},{no:2,name:"result",kind:"message",T:Te.nt}]));class Se extends r.Message{constructor(e){super(),this.unexpectedActionOutcomes="",this.relevantInstructions="",this.scenarioAnalysis="",this.criticalSynthesis="",this.nextSteps="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Se,e,t)}}Se.runtime=r.proto3,Se.typeName="agent.v1.ReflectArgs",Se.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"unexpected_action_outcomes",kind:"scalar",T:9},{no:2,name:"relevant_instructions",kind:"scalar",T:9},{no:3,name:"scenario_analysis",kind:"scalar",T:9},{no:4,name:"critical_synthesis",kind:"scalar",T:9},{no:5,name:"next_steps",kind:"scalar",T:9},{no:6,name:"tool_call_id",kind:"scalar",T:9}]));class we extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(we,e,t)}}we.runtime=r.proto3,we.typeName="agent.v1.ReflectResult",we.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:ke,oneof:"result"},{no:2,name:"error",kind:"message",T:Je,oneof:"result"}]));class ke extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ke,e,t)}}ke.runtime=r.proto3,ke.typeName="agent.v1.ReflectSuccess",ke.fields=r.proto3.util.newFieldList((()=>[]));class Je extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Je,e,t)}}Je.runtime=r.proto3,Je.typeName="agent.v1.ReflectError",Je.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class ve extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ve,e,t)}}ve.runtime=r.proto3,ve.typeName="agent.v1.ReflectToolCall",ve.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Se},{no:2,name:"result",kind:"message",T:we}]));var Ee=n("../proto/dist/generated/agent/v1/setup_vm_environment_tool_pb.js");class be extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(be,e,t)}}be.runtime=r.proto3,be.typeName="agent.v1.StartGrindExecutionArgs",be.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"explanation",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class je extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(je,e,t)}}je.runtime=r.proto3,je.typeName="agent.v1.StartGrindExecutionResult",je.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:xe,oneof:"result"},{no:2,name:"error",kind:"message",T:Ne,oneof:"result"}]));class xe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xe,e,t)}}xe.runtime=r.proto3,xe.typeName="agent.v1.StartGrindExecutionSuccess",xe.fields=r.proto3.util.newFieldList((()=>[]));class Ne extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ne,e,t)}}Ne.runtime=r.proto3,Ne.typeName="agent.v1.StartGrindExecutionError",Ne.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Pe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pe,e,t)}}Pe.runtime=r.proto3,Pe.typeName="agent.v1.StartGrindExecutionToolCall",Pe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:be},{no:2,name:"result",kind:"message",T:je}]));class Ie extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ie,e,t)}}Ie.runtime=r.proto3,Ie.typeName="agent.v1.StartGrindPlanningArgs",Ie.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"explanation",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class Be extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Be,e,t)}}Be.runtime=r.proto3,Be.typeName="agent.v1.StartGrindPlanningResult",Be.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:qe,oneof:"result"},{no:2,name:"error",kind:"message",T:Re,oneof:"result"}]));class qe extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qe,e,t)}}qe.runtime=r.proto3,qe.typeName="agent.v1.StartGrindPlanningSuccess",qe.fields=r.proto3.util.newFieldList((()=>[]));class Re extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Re,e,t)}}Re.runtime=r.proto3,Re.typeName="agent.v1.StartGrindPlanningError",Re.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Me extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Me,e,t)}}Me.runtime=r.proto3,Me.typeName="agent.v1.StartGrindPlanningToolCall",Me.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ie},{no:2,name:"result",kind:"message",T:Be}]));var Oe=n("../proto/dist/generated/agent/v1/web_fetch_tool_pb.js"),Fe=n("../proto/dist/generated/agent/v1/report_bugfix_results_tool_pb.js"),Ae=n("../proto/dist/generated/agent/v1/ai_attribution_tool_pb.js"),Le=n("../proto/dist/generated/agent/v1/pr_management_tool_pb.js"),Ce=n("../proto/dist/generated/agent/v1/mcp_auth_tool_pb.js");class Ue extends r.Message{constructor(e){super(),this.taskId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ue,e,t)}}Ue.runtime=r.proto3,Ue.typeName="agent.v1.AwaitArgs",Ue.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"block_until_ms",kind:"scalar",T:13,opt:!0},{no:3,name:"regex",kind:"scalar",T:9,opt:!0}]));class De extends r.Message{constructor(e){super(),this.taskId="",this.runtimeMs=r.protoInt64.zero,this.outputFilePath="",this.outputLength=r.protoInt64.zero,this.regexRequested=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(De,e,t)}}De.runtime=r.proto3,De.typeName="agent.v1.AwaitTaskComplete",De.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"runtime_ms",kind:"scalar",T:4},{no:3,name:"output_file_path",kind:"scalar",T:9},{no:4,name:"output_length",kind:"scalar",T:4},{no:5,name:"regex_requested",kind:"scalar",T:8},{no:6,name:"regex_match",kind:"scalar",T:9,opt:!0},{no:7,name:"exit_code",kind:"scalar",T:17,opt:!0},{no:8,name:"wake_reason",kind:"scalar",T:9,opt:!0}]));class Ge extends r.Message{constructor(e){super(),this.taskId="",this.runtimeMs=r.protoInt64.zero,this.outputFilePath="",this.outputLength=r.protoInt64.zero,this.regexRequested=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ge,e,t)}}Ge.runtime=r.proto3,Ge.typeName="agent.v1.AwaitTaskStillRunning",Ge.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"runtime_ms",kind:"scalar",T:4},{no:3,name:"output_file_path",kind:"scalar",T:9},{no:4,name:"output_length",kind:"scalar",T:4},{no:5,name:"regex_requested",kind:"scalar",T:8},{no:6,name:"regex_match",kind:"scalar",T:9,opt:!0},{no:7,name:"wake_reason",kind:"scalar",T:9,opt:!0}]));class He extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(He,e,t)}}He.runtime=r.proto3,He.typeName="agent.v1.AwaitError",He.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Ke extends r.Message{constructor(e){super(),this.awaitResult={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ke,e,t)}}Ke.runtime=r.proto3,Ke.typeName="agent.v1.AwaitSuccess",Ke.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"complete",kind:"message",T:De,oneof:"await_result"},{no:2,name:"still_running",kind:"message",T:Ge,oneof:"await_result"}]));class We extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(We,e,t)}}We.runtime=r.proto3,We.typeName="agent.v1.AwaitResult",We.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"complete",kind:"message",T:De,oneof:"result"},{no:2,name:"still_running",kind:"message",T:Ge,oneof:"result"},{no:3,name:"error",kind:"message",T:He,oneof:"result"},{no:4,name:"success",kind:"message",T:Ke,oneof:"result"}]));class Ye extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ye,e,t)}}Ye.runtime=r.proto3,Ye.typeName="agent.v1.AwaitToolCall",Ye.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ue},{no:2,name:"result",kind:"message",T:We}]));class ze extends r.Message{constructor(e){super(),this.filePath="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ze,e,t)}}ze.runtime=r.proto3,ze.typeName="agent.v1.BlameByFilePathArgs",ze.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"start_line",kind:"scalar",T:5,opt:!0},{no:3,name:"end_line",kind:"scalar",T:5,opt:!0}]));class Ve extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ve,e,t)}}Ve.runtime=r.proto3,Ve.typeName="agent.v1.BlameByFilePathSuccess",Ve.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class Qe extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qe).fromBinary(e,t)}static fromJson(e,t){return(new Qe).fromJson(e,t)}static fromJsonString(e,t){return(new Qe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qe,e,t)}}Qe.runtime=r.proto3,Qe.typeName="agent.v1.BlameByFilePathError",Qe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class Xe extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xe).fromBinary(e,t)}static fromJson(e,t){return(new Xe).fromJson(e,t)}static fromJsonString(e,t){return(new Xe).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xe,e,t)}}Xe.runtime=r.proto3,Xe.typeName="agent.v1.BlameByFilePathResult",Xe.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ve,oneof:"result"},{no:2,name:"error",kind:"message",T:Qe,oneof:"result"}]));class $e extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $e).fromBinary(e,t)}static fromJson(e,t){return(new $e).fromJson(e,t)}static fromJsonString(e,t){return(new $e).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($e,e,t)}}$e.runtime=r.proto3,$e.typeName="agent.v1.BlameByFilePathToolCall",$e.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ze},{no:2,name:"result",kind:"message",T:Xe}]));class Ze extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ze).fromBinary(e,t)}static fromJson(e,t){return(new Ze).fromJson(e,t)}static fromJsonString(e,t){return(new Ze).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ze,e,t)}}Ze.runtime=r.proto3,Ze.typeName="agent.v1.GetMcpToolsArgs",Ze.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9,opt:!0},{no:2,name:"tool_name",kind:"scalar",T:9,opt:!0},{no:3,name:"pattern",kind:"scalar",T:9,opt:!0},{no:4,name:"tool_call_id",kind:"scalar",T:9}]));class et extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new et).fromBinary(e,t)}static fromJson(e,t){return(new et).fromJson(e,t)}static fromJsonString(e,t){return(new et).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(et,e,t)}}et.runtime=r.proto3,et.typeName="agent.v1.GetMcpToolsAgentResult",et.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:tt,oneof:"result"},{no:2,name:"error",kind:"message",T:nt,oneof:"result"}]));class tt extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tt).fromBinary(e,t)}static fromJson(e,t){return(new tt).fromJson(e,t)}static fromJsonString(e,t){return(new tt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(tt,e,t)}}tt.runtime=r.proto3,tt.typeName="agent.v1.GetMcpToolsSuccess",tt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"output_file_path",kind:"scalar",T:9,opt:!0}]));class nt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nt).fromBinary(e,t)}static fromJson(e,t){return(new nt).fromJson(e,t)}static fromJsonString(e,t){return(new nt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(nt,e,t)}}nt.runtime=r.proto3,nt.typeName="agent.v1.GetMcpToolsError",nt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class rt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rt).fromBinary(e,t)}static fromJson(e,t){return(new rt).fromJson(e,t)}static fromJsonString(e,t){return(new rt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rt,e,t)}}rt.runtime=r.proto3,rt.typeName="agent.v1.GetMcpToolsToolCall",rt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ze},{no:2,name:"result",kind:"message",T:et}]));class st extends r.Message{constructor(e){super(),this.title="",this.file="",this.startLine=0,this.endLine=0,this.description="",this.severity="",this.category="",this.rationale="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new st).fromBinary(e,t)}static fromJson(e,t){return(new st).fromJson(e,t)}static fromJsonString(e,t){return(new st).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(st,e,t)}}st.runtime=r.proto3,st.typeName="agent.v1.ReportBugArgs",st.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"file",kind:"scalar",T:9},{no:3,name:"start_line",kind:"scalar",T:5},{no:4,name:"end_line",kind:"scalar",T:5},{no:5,name:"description",kind:"scalar",T:9},{no:6,name:"severity",kind:"scalar",T:9},{no:7,name:"category",kind:"scalar",T:9},{no:8,name:"rationale",kind:"scalar",T:9}]));class ot extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ot).fromBinary(e,t)}static fromJson(e,t){return(new ot).fromJson(e,t)}static fromJsonString(e,t){return(new ot).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ot,e,t)}}ot.runtime=r.proto3,ot.typeName="agent.v1.ReportBugSuccess",ot.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9}]));class it extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new it).fromBinary(e,t)}static fromJson(e,t){return(new it).fromJson(e,t)}static fromJsonString(e,t){return(new it).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(it,e,t)}}it.runtime=r.proto3,it.typeName="agent.v1.ReportBugError",it.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class at extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new at).fromBinary(e,t)}static fromJson(e,t){return(new at).fromJson(e,t)}static fromJsonString(e,t){return(new at).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(at,e,t)}}at.runtime=r.proto3,at.typeName="agent.v1.ReportBugResult",at.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:ot,oneof:"result"},{no:2,name:"error",kind:"message",T:it,oneof:"result"}]));class lt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lt).fromBinary(e,t)}static fromJson(e,t){return(new lt).fromJson(e,t)}static fromJsonString(e,t){return(new lt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(lt,e,t)}}lt.runtime=r.proto3,lt.typeName="agent.v1.ReportBugToolCall",lt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:st},{no:2,name:"result",kind:"message",T:at}]));class ut extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ut).fromBinary(e,t)}static fromJson(e,t){return(new ut).fromJson(e,t)}static fromJsonString(e,t){return(new ut).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ut,e,t)}}ut.runtime=r.proto3,ut.typeName="agent.v1.CommunicateUpdateArgs",ut.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"current_step",kind:"scalar",T:9,opt:!0},{no:3,name:"final_summary",kind:"scalar",T:9,opt:!0},{no:4,name:"completed_subtitle",kind:"scalar",T:9,opt:!0}]));class mt extends r.Message{constructor(e){super(),this.currentStep="",this.messageIndex=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mt).fromBinary(e,t)}static fromJson(e,t){return(new mt).fromJson(e,t)}static fromJsonString(e,t){return(new mt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mt,e,t)}}mt.runtime=r.proto3,mt.typeName="agent.v1.CommunicateUpdateSuccess",mt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"current_step",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13}]));class ct extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ct).fromBinary(e,t)}static fromJson(e,t){return(new ct).fromJson(e,t)}static fromJsonString(e,t){return(new ct).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ct,e,t)}}ct.runtime=r.proto3,ct.typeName="agent.v1.CommunicateUpdateError",ct.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class dt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dt).fromBinary(e,t)}static fromJson(e,t){return(new dt).fromJson(e,t)}static fromJsonString(e,t){return(new dt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(dt,e,t)}}dt.runtime=r.proto3,dt.typeName="agent.v1.CommunicateUpdateResult",dt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:mt,oneof:"result"},{no:2,name:"error",kind:"message",T:ct,oneof:"result"}]));class pt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pt).fromBinary(e,t)}static fromJson(e,t){return(new pt).fromJson(e,t)}static fromJsonString(e,t){return(new pt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pt,e,t)}}pt.runtime=r.proto3,pt.typeName="agent.v1.CommunicateUpdateToolCall",pt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ut},{no:2,name:"result",kind:"message",T:dt}]));class ft extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ft).fromBinary(e,t)}static fromJson(e,t){return(new ft).fromJson(e,t)}static fromJsonString(e,t){return(new ft).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ft,e,t)}}ft.runtime=r.proto3,ft.typeName="agent.v1.SendFinalSummaryArgs",ft.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"final_summary",kind:"scalar",T:9,opt:!0}]));class gt extends r.Message{constructor(e){super(),this.finalSummary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gt).fromBinary(e,t)}static fromJson(e,t){return(new gt).fromJson(e,t)}static fromJsonString(e,t){return(new gt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gt,e,t)}}gt.runtime=r.proto3,gt.typeName="agent.v1.SendFinalSummarySuccess",gt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"final_summary",kind:"scalar",T:9}]));class _t extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _t).fromBinary(e,t)}static fromJson(e,t){return(new _t).fromJson(e,t)}static fromJsonString(e,t){return(new _t).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_t,e,t)}}_t.runtime=r.proto3,_t.typeName="agent.v1.SendFinalSummaryError",_t.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class ht extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ht).fromBinary(e,t)}static fromJson(e,t){return(new ht).fromJson(e,t)}static fromJsonString(e,t){return(new ht).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ht,e,t)}}ht.runtime=r.proto3,ht.typeName="agent.v1.SendFinalSummaryResult",ht.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:gt,oneof:"result"},{no:2,name:"error",kind:"message",T:_t,oneof:"result"}]));class Tt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tt,e,t)}}Tt.runtime=r.proto3,Tt.typeName="agent.v1.SendFinalSummaryToolCall",Tt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ft},{no:2,name:"result",kind:"message",T:ht}]));class yt extends r.Message{constructor(e){super(),this.feedback="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yt).fromBinary(e,t)}static fromJson(e,t){return(new yt).fromJson(e,t)}static fromJsonString(e,t){return(new yt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yt,e,t)}}yt.runtime=r.proto3,yt.typeName="agent.v1.UpdatePrCodeTourArgs",yt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"feedback",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class St extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(St,e,t)}}St.runtime=r.proto3,St.typeName="agent.v1.UpdatePrCodeTourResult",St.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:wt,oneof:"result"},{no:2,name:"error",kind:"message",T:kt,oneof:"result"}]));class wt extends r.Message{constructor(e){super(),this.revisionId="",this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wt).fromBinary(e,t)}static fromJson(e,t){return(new wt).fromJson(e,t)}static fromJsonString(e,t){return(new wt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wt,e,t)}}wt.runtime=r.proto3,wt.typeName="agent.v1.UpdatePrCodeTourSuccess",wt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"revision_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]));class kt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kt,e,t)}}kt.runtime=r.proto3,kt.typeName="agent.v1.UpdatePrCodeTourError",kt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Jt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jt).fromBinary(e,t)}static fromJson(e,t){return(new Jt).fromJson(e,t)}static fromJsonString(e,t){return(new Jt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jt,e,t)}}Jt.runtime=r.proto3,Jt.typeName="agent.v1.UpdatePrCodeTourToolCall",Jt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:yt},{no:2,name:"result",kind:"message",T:St}]));var vt=n("../proto/dist/generated/agent/v1/replace_env_tool_pb.js");class Et extends r.Message{constructor(e){super(),this.toolCallId="",this.prUrl="",this.addLabels=[],this.removeLabels=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Et,e,t)}}Et.runtime=r.proto3,Et.typeName="agent.v1.EditPrLabelsArgs",Et.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"pr_url",kind:"scalar",T:9},{no:4,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:5,name:"remove_labels",kind:"scalar",T:9,repeated:!0}]));class bt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bt).fromBinary(e,t)}static fromJson(e,t){return(new bt).fromJson(e,t)}static fromJsonString(e,t){return(new bt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bt,e,t)}}bt.runtime=r.proto3,bt.typeName="agent.v1.EditPrLabelsResult",bt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:jt,oneof:"result"},{no:2,name:"error",kind:"message",T:xt,oneof:"result"}]));class jt extends r.Message{constructor(e){super(),this.prUrl="",this.prNumber=0,this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jt,e,t)}}jt.runtime=r.proto3,jt.typeName="agent.v1.EditPrLabelsSuccess",jt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"pr_number",kind:"scalar",T:5},{no:3,name:"message",kind:"scalar",T:9}]));class xt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xt).fromBinary(e,t)}static fromJson(e,t){return(new xt).fromJson(e,t)}static fromJsonString(e,t){return(new xt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xt,e,t)}}xt.runtime=r.proto3,xt.typeName="agent.v1.EditPrLabelsError",xt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Nt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nt,e,t)}}Nt.runtime=r.proto3,Nt.typeName="agent.v1.EditPrLabelsToolCall",Nt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Et},{no:2,name:"result",kind:"message",T:bt}]));class Pt extends r.Message{constructor(e){super(),this.checkName="",this.tldr="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pt,e,t)}}Pt.runtime=r.proto3,Pt.typeName="agent.v1.RecordCiInvestigationFinding",Pt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"check_name",kind:"scalar",T:9},{no:2,name:"details_url",kind:"scalar",T:9,opt:!0},{no:3,name:"tldr",kind:"scalar",T:9},{no:4,name:"root_cause",kind:"scalar",T:9,opt:!0},{no:5,name:"failing_signal",kind:"scalar",T:9,opt:!0},{no:6,name:"suggested_next_step",kind:"scalar",T:9,opt:!0},{no:7,name:"diff_relation",kind:"scalar",T:9,opt:!0},{no:8,name:"diff_relation_evidence",kind:"scalar",T:9,opt:!0},{no:9,name:"flake_assessment",kind:"scalar",T:9,opt:!0},{no:10,name:"flake_evidence",kind:"scalar",T:9,opt:!0},{no:11,name:"rerun_available",kind:"scalar",T:8,opt:!0},{no:12,name:"rerun_evidence",kind:"scalar",T:9,opt:!0},{no:13,name:"recommended_action",kind:"scalar",T:9,opt:!0},{no:14,name:"recommended_action_evidence",kind:"scalar",T:9,opt:!0},{no:15,name:"confidence",kind:"scalar",T:9,opt:!0}]));class It extends r.Message{constructor(e){super(),this.summary="",this.themes=[],this.checkKeys=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(It,e,t)}}It.runtime=r.proto3,It.typeName="agent.v1.RecordCiInvestigationOverall",It.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"themes",kind:"scalar",T:9,repeated:!0},{no:3,name:"recommended_action",kind:"scalar",T:9,opt:!0},{no:4,name:"recommended_action_evidence",kind:"scalar",T:9,opt:!0},{no:5,name:"check_keys",kind:"scalar",T:9,repeated:!0}]));class Bt extends r.Message{constructor(e){super(),this.findings=[],this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bt).fromBinary(e,t)}static fromJson(e,t){return(new Bt).fromJson(e,t)}static fromJsonString(e,t){return(new Bt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bt,e,t)}}Bt.runtime=r.proto3,Bt.typeName="agent.v1.RecordCiInvestigationFindingsArgs",Bt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"findings",kind:"message",T:Pt,repeated:!0},{no:2,name:"overall",kind:"message",T:It,opt:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9}]));class qt extends r.Message{constructor(e){super(),this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qt,e,t)}}qt.runtime=r.proto3,qt.typeName="agent.v1.RecordCiInvestigationFindingsSuccess",qt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9}]));class Rt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rt,e,t)}}Rt.runtime=r.proto3,Rt.typeName="agent.v1.RecordCiInvestigationFindingsError",Rt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Mt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mt,e,t)}}Mt.runtime=r.proto3,Mt.typeName="agent.v1.RecordCiInvestigationFindingsResult",Mt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:qt,oneof:"result"},{no:2,name:"error",kind:"message",T:Rt,oneof:"result"}]));class Ot extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ot).fromBinary(e,t)}static fromJson(e,t){return(new Ot).fromJson(e,t)}static fromJsonString(e,t){return(new Ot).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ot,e,t)}}Ot.runtime=r.proto3,Ot.typeName="agent.v1.RecordCiInvestigationFindingsToolCall",Ot.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Bt},{no:2,name:"result",kind:"message",T:Mt}]));class Ft extends r.Message{constructor(e){super(),this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ft).fromBinary(e,t)}static fromJson(e,t){return(new Ft).fromJson(e,t)}static fromJsonString(e,t){return(new Ft).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ft,e,t)}}Ft.runtime=r.proto3,Ft.typeName="agent.v1.SendMessageText",Ft.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9}]));class At extends r.Message{constructor(e){super(),this.url="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new At).fromBinary(e,t)}static fromJson(e,t){return(new At).fromJson(e,t)}static fromJsonString(e,t){return(new At).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(At,e,t)}}At.runtime=r.proto3,At.typeName="agent.v1.SendMessageAttachment",At.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"alt",kind:"scalar",T:9,opt:!0}]));class Lt extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lt,e,t)}}Lt.runtime=r.proto3,Lt.typeName="agent.v1.SendMessageArgs",Lt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Ft,oneof:"message"},{no:2,name:"attachment",kind:"message",T:At,oneof:"message"}]));class Ct extends r.Message{constructor(e){super(),this.timestamp=r.protoInt64.zero,this.messageId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ct,e,t)}}Ct.runtime=r.proto3,Ct.typeName="agent.v1.SendMessageSuccess",Ct.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"timestamp",kind:"scalar",T:4},{no:2,name:"message_id",kind:"scalar",T:9}]));class Ut extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ut).fromBinary(e,t)}static fromJson(e,t){return(new Ut).fromJson(e,t)}static fromJsonString(e,t){return(new Ut).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ut,e,t)}}Ut.runtime=r.proto3,Ut.typeName="agent.v1.SendMessageError",Ut.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Dt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dt,e,t)}}Dt.runtime=r.proto3,Dt.typeName="agent.v1.SendMessageResult",Dt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ct,oneof:"result"},{no:2,name:"error",kind:"message",T:Ut,oneof:"result"}]));class Gt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gt,e,t)}}Gt.runtime=r.proto3,Gt.typeName="agent.v1.SendMessageToolCall",Gt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Lt},{no:2,name:"result",kind:"message",T:Dt}]));class Ht extends r.Message{constructor(e){super(),this.bcIds=[],this.sources=[],this.statuses=[],this.includeTeamWide=!1,this.includeArchived=!1,this.includeTranscript=!1,this.activeSince="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ht).fromBinary(e,t)}static fromJson(e,t){return(new Ht).fromJson(e,t)}static fromJsonString(e,t){return(new Ht).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ht,e,t)}}Ht.runtime=r.proto3,Ht.typeName="agent.v1.FetchCloudAgentDataArgs",Ht.fields=r.proto3.util.newFieldList((()=>[{no:4,name:"bc_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"sources",kind:"scalar",T:9,repeated:!0},{no:7,name:"statuses",kind:"scalar",T:9,repeated:!0},{no:8,name:"include_team_wide",kind:"scalar",T:8},{no:9,name:"include_archived",kind:"scalar",T:8},{no:10,name:"limit",kind:"scalar",T:5,opt:!0},{no:12,name:"include_transcript",kind:"scalar",T:8},{no:13,name:"active_since",kind:"scalar",T:9}]));class Kt extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kt).fromBinary(e,t)}static fromJson(e,t){return(new Kt).fromJson(e,t)}static fromJsonString(e,t){return(new Kt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kt,e,t)}}Kt.runtime=r.proto3,Kt.typeName="agent.v1.FetchCloudAgentDataResult",Kt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Wt,oneof:"result"},{no:2,name:"error",kind:"message",T:Yt,oneof:"result"}]));class Wt extends r.Message{constructor(e){super(),this.summary="",this.agentCount=0,this.writtenPaths=[],this.unavailableBcIds=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wt,e,t)}}Wt.runtime=r.proto3,Wt.typeName="agent.v1.FetchCloudAgentDataSuccess",Wt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"agent_count",kind:"scalar",T:5},{no:3,name:"written_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"unavailable_bc_ids",kind:"scalar",T:9,repeated:!0}]));class Yt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yt,e,t)}}Yt.runtime=r.proto3,Yt.typeName="agent.v1.FetchCloudAgentDataError",Yt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class zt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zt).fromBinary(e,t)}static fromJson(e,t){return(new zt).fromJson(e,t)}static fromJsonString(e,t){return(new zt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zt,e,t)}}zt.runtime=r.proto3,zt.typeName="agent.v1.FetchCloudAgentDataToolCall",zt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Ht},{no:2,name:"result",kind:"message",T:Kt}]));class Vt extends r.Message{constructor(e){super(),this.message="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vt,e,t)}}Vt.runtime=r.proto3,Vt.typeName="agent.v1.SendToUserArgs",Vt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9}]));class Qt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qt).fromBinary(e,t)}static fromJson(e,t){return(new Qt).fromJson(e,t)}static fromJsonString(e,t){return(new Qt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qt,e,t)}}Qt.runtime=r.proto3,Qt.typeName="agent.v1.SendToUserSuccess",Qt.fields=r.proto3.util.newFieldList((()=>[]));class Xt extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xt,e,t)}}Xt.runtime=r.proto3,Xt.typeName="agent.v1.SendToUserError",Xt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class $t extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $t).fromBinary(e,t)}static fromJson(e,t){return(new $t).fromJson(e,t)}static fromJsonString(e,t){return(new $t).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($t,e,t)}}$t.runtime=r.proto3,$t.typeName="agent.v1.SendToUserResult",$t.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Qt,oneof:"result"},{no:2,name:"error",kind:"message",T:Xt,oneof:"result"}]));class Zt extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zt).fromBinary(e,t)}static fromJson(e,t){return(new Zt).fromJson(e,t)}static fromJsonString(e,t){return(new Zt).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zt,e,t)}}Zt.runtime=r.proto3,Zt.typeName="agent.v1.SendToUserToolCall",Zt.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Vt},{no:2,name:"result",kind:"message",T:$t}]));var en=n("../proto/dist/generated/agent/v1/pi_common_pb.js");class tn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tn).fromBinary(e,t)}static fromJson(e,t){return(new tn).fromJson(e,t)}static fromJsonString(e,t){return(new tn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(tn,e,t)}}tn.runtime=r.proto3,tn.typeName="agent.v1.PiReadToolCall",tn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:nn},{no:2,name:"result",kind:"message",T:rn}]));class nn extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nn).fromBinary(e,t)}static fromJson(e,t){return(new nn).fromJson(e,t)}static fromJsonString(e,t){return(new nn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(nn,e,t)}}nn.runtime=r.proto3,nn.typeName="agent.v1.PiReadToolArgs",nn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"offset",kind:"scalar",T:5,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class rn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rn).fromBinary(e,t)}static fromJson(e,t){return(new rn).fromJson(e,t)}static fromJsonString(e,t){return(new rn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rn,e,t)}}rn.runtime=r.proto3,rn.typeName="agent.v1.PiReadToolResult",rn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:sn,oneof:"result"},{no:2,name:"error",kind:"message",T:on,oneof:"result"}]));class sn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new sn).fromBinary(e,t)}static fromJson(e,t){return(new sn).fromJson(e,t)}static fromJsonString(e,t){return(new sn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(sn,e,t)}}sn.runtime=r.proto3,sn.typeName="agent.v1.PiReadToolSuccess",sn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0}]));class on extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new on).fromBinary(e,t)}static fromJson(e,t){return(new on).fromJson(e,t)}static fromJsonString(e,t){return(new on).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(on,e,t)}}on.runtime=r.proto3,on.typeName="agent.v1.PiReadToolError",on.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class an extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new an).fromBinary(e,t)}static fromJson(e,t){return(new an).fromJson(e,t)}static fromJsonString(e,t){return(new an).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(an,e,t)}}an.runtime=r.proto3,an.typeName="agent.v1.PiBashToolCall",an.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:ln},{no:2,name:"result",kind:"message",T:un}]));class ln extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ln).fromBinary(e,t)}static fromJson(e,t){return(new ln).fromJson(e,t)}static fromJsonString(e,t){return(new ln).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ln,e,t)}}ln.runtime=r.proto3,ln.typeName="agent.v1.PiBashToolArgs",ln.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"timeout",kind:"scalar",T:1,opt:!0}]));class un extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new un).fromBinary(e,t)}static fromJson(e,t){return(new un).fromJson(e,t)}static fromJsonString(e,t){return(new un).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(un,e,t)}}un.runtime=r.proto3,un.typeName="agent.v1.PiBashToolResult",un.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:mn,oneof:"result"},{no:2,name:"error",kind:"message",T:cn,oneof:"result"}]));class mn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mn).fromBinary(e,t)}static fromJson(e,t){return(new mn).fromJson(e,t)}static fromJsonString(e,t){return(new mn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mn,e,t)}}mn.runtime=r.proto3,mn.typeName="agent.v1.PiBashToolSuccess",mn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"full_output_path",kind:"scalar",T:9,opt:!0}]));class cn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cn).fromBinary(e,t)}static fromJson(e,t){return(new cn).fromJson(e,t)}static fromJsonString(e,t){return(new cn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cn,e,t)}}cn.runtime=r.proto3,cn.typeName="agent.v1.PiBashToolError",cn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"full_output_path",kind:"scalar",T:9,opt:!0}]));var dn=n("../proto/dist/generated/agent/v1/pi_edit_tool_pb.js");class pn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pn).fromBinary(e,t)}static fromJson(e,t){return(new pn).fromJson(e,t)}static fromJsonString(e,t){return(new pn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pn,e,t)}}pn.runtime=r.proto3,pn.typeName="agent.v1.PiWriteToolCall",pn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:fn},{no:2,name:"result",kind:"message",T:gn}]));class fn extends r.Message{constructor(e){super(),this.path="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fn).fromBinary(e,t)}static fromJson(e,t){return(new fn).fromJson(e,t)}static fromJsonString(e,t){return(new fn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fn,e,t)}}fn.runtime=r.proto3,fn.typeName="agent.v1.PiWriteToolArgs",fn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]));class gn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gn).fromBinary(e,t)}static fromJson(e,t){return(new gn).fromJson(e,t)}static fromJsonString(e,t){return(new gn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gn,e,t)}}gn.runtime=r.proto3,gn.typeName="agent.v1.PiWriteToolResult",gn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:_n,oneof:"result"},{no:2,name:"error",kind:"message",T:hn,oneof:"result"},{no:3,name:"rejected",kind:"message",T:Tn,oneof:"result"}]));class _n extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _n).fromBinary(e,t)}static fromJson(e,t){return(new _n).fromJson(e,t)}static fromJsonString(e,t){return(new _n).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_n,e,t)}}_n.runtime=r.proto3,_n.typeName="agent.v1.PiWriteToolSuccess",_n.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9}]));class hn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hn).fromBinary(e,t)}static fromJson(e,t){return(new hn).fromJson(e,t)}static fromJsonString(e,t){return(new hn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hn,e,t)}}hn.runtime=r.proto3,hn.typeName="agent.v1.PiWriteToolError",hn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Tn extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tn).fromBinary(e,t)}static fromJson(e,t){return(new Tn).fromJson(e,t)}static fromJsonString(e,t){return(new Tn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tn,e,t)}}Tn.runtime=r.proto3,Tn.typeName="agent.v1.PiWriteToolRejected",Tn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class yn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yn).fromBinary(e,t)}static fromJson(e,t){return(new yn).fromJson(e,t)}static fromJsonString(e,t){return(new yn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yn,e,t)}}yn.runtime=r.proto3,yn.typeName="agent.v1.PiGrepToolCall",yn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Sn},{no:2,name:"result",kind:"message",T:wn}]));class Sn extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sn).fromBinary(e,t)}static fromJson(e,t){return(new Sn).fromJson(e,t)}static fromJsonString(e,t){return(new Sn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Sn,e,t)}}Sn.runtime=r.proto3,Sn.typeName="agent.v1.PiGrepToolArgs",Sn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"glob",kind:"scalar",T:9,opt:!0},{no:4,name:"ignore_case",kind:"scalar",T:8,opt:!0},{no:5,name:"literal",kind:"scalar",T:8,opt:!0},{no:6,name:"context",kind:"scalar",T:5,opt:!0},{no:7,name:"limit",kind:"scalar",T:5,opt:!0}]));class wn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wn).fromBinary(e,t)}static fromJson(e,t){return(new wn).fromJson(e,t)}static fromJsonString(e,t){return(new wn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wn,e,t)}}wn.runtime=r.proto3,wn.typeName="agent.v1.PiGrepToolResult",wn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:kn,oneof:"result"},{no:2,name:"error",kind:"message",T:Jn,oneof:"result"}]));class kn extends r.Message{constructor(e){super(),this.output="",this.linesTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kn).fromBinary(e,t)}static fromJson(e,t){return(new kn).fromJson(e,t)}static fromJsonString(e,t){return(new kn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kn,e,t)}}kn.runtime=r.proto3,kn.typeName="agent.v1.PiGrepToolSuccess",kn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"match_limit_reached",kind:"scalar",T:13,opt:!0},{no:4,name:"lines_truncated",kind:"scalar",T:8}]));class Jn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jn).fromBinary(e,t)}static fromJson(e,t){return(new Jn).fromJson(e,t)}static fromJsonString(e,t){return(new Jn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jn,e,t)}}Jn.runtime=r.proto3,Jn.typeName="agent.v1.PiGrepToolError",Jn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class vn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vn).fromBinary(e,t)}static fromJson(e,t){return(new vn).fromJson(e,t)}static fromJsonString(e,t){return(new vn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vn,e,t)}}vn.runtime=r.proto3,vn.typeName="agent.v1.PiFindToolCall",vn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:En},{no:2,name:"result",kind:"message",T:bn}]));class En extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new En).fromBinary(e,t)}static fromJson(e,t){return(new En).fromJson(e,t)}static fromJsonString(e,t){return(new En).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(En,e,t)}}En.runtime=r.proto3,En.typeName="agent.v1.PiFindToolArgs",En.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class bn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bn).fromBinary(e,t)}static fromJson(e,t){return(new bn).fromJson(e,t)}static fromJsonString(e,t){return(new bn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bn,e,t)}}bn.runtime=r.proto3,bn.typeName="agent.v1.PiFindToolResult",bn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:jn,oneof:"result"},{no:2,name:"error",kind:"message",T:xn,oneof:"result"}]));class jn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jn).fromBinary(e,t)}static fromJson(e,t){return(new jn).fromJson(e,t)}static fromJsonString(e,t){return(new jn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jn,e,t)}}jn.runtime=r.proto3,jn.typeName="agent.v1.PiFindToolSuccess",jn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"result_limit_reached",kind:"scalar",T:13,opt:!0}]));class xn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xn).fromBinary(e,t)}static fromJson(e,t){return(new xn).fromJson(e,t)}static fromJsonString(e,t){return(new xn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xn,e,t)}}xn.runtime=r.proto3,xn.typeName="agent.v1.PiFindToolError",xn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Nn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nn).fromBinary(e,t)}static fromJson(e,t){return(new Nn).fromJson(e,t)}static fromJsonString(e,t){return(new Nn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nn,e,t)}}Nn.runtime=r.proto3,Nn.typeName="agent.v1.PiLsToolCall",Nn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Pn},{no:2,name:"result",kind:"message",T:In}]));class Pn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pn).fromBinary(e,t)}static fromJson(e,t){return(new Pn).fromJson(e,t)}static fromJsonString(e,t){return(new Pn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pn,e,t)}}Pn.runtime=r.proto3,Pn.typeName="agent.v1.PiLsToolArgs",Pn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9,opt:!0},{no:2,name:"limit",kind:"scalar",T:5,opt:!0}]));class In extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new In).fromBinary(e,t)}static fromJson(e,t){return(new In).fromJson(e,t)}static fromJsonString(e,t){return(new In).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(In,e,t)}}In.runtime=r.proto3,In.typeName="agent.v1.PiLsToolResult",In.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Bn,oneof:"result"},{no:2,name:"error",kind:"message",T:qn,oneof:"result"}]));class Bn extends r.Message{constructor(e){super(),this.output="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bn).fromBinary(e,t)}static fromJson(e,t){return(new Bn).fromJson(e,t)}static fromJsonString(e,t){return(new Bn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bn,e,t)}}Bn.runtime=r.proto3,Bn.typeName="agent.v1.PiLsToolSuccess",Bn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"truncation",kind:"message",T:en.d,opt:!0},{no:3,name:"entry_limit_reached",kind:"scalar",T:13,opt:!0}]));class qn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qn).fromBinary(e,t)}static fromJson(e,t){return(new qn).fromJson(e,t)}static fromJsonString(e,t){return(new qn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qn,e,t)}}qn.runtime=r.proto3,qn.typeName="agent.v1.PiLsToolError",qn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));var Rn,Mn=n("../proto/dist/generated/agent/v1/connect_scm_tool_pb.js"),On=n("../proto/dist/generated/agent/v1/conversation_search_exec_pb.js");class Fn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fn).fromBinary(e,t)}static fromJson(e,t){return(new Fn).fromJson(e,t)}static fromJsonString(e,t){return(new Fn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fn,e,t)}}Fn.runtime=r.proto3,Fn.typeName="agent.v1.SearchConversationsToolCall",Fn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:On.$m},{no:2,name:"result",kind:"message",T:On.pT}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACTIVE=1]="ACTIVE",e[e.PAUSED=2]="PAUSED",e[e.COMPLETE=3]="COMPLETE",e[e.CLEARED=4]="CLEARED"}(Rn||(Rn={})),r.proto3.util.setEnumType(Rn,"agent.v1.GoalStatus",[{no:0,name:"GOAL_STATUS_UNSPECIFIED"},{no:1,name:"GOAL_STATUS_ACTIVE"},{no:2,name:"GOAL_STATUS_PAUSED"},{no:3,name:"GOAL_STATUS_COMPLETE"},{no:4,name:"GOAL_STATUS_CLEARED"}]);class An extends r.Message{constructor(e){super(),this.objective="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new An).fromBinary(e,t)}static fromJson(e,t){return(new An).fromJson(e,t)}static fromJsonString(e,t){return(new An).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(An,e,t)}}An.runtime=r.proto3,An.typeName="agent.v1.CreateGoalArgs",An.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"objective",kind:"scalar",T:9}]));class Ln extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ln).fromBinary(e,t)}static fromJson(e,t){return(new Ln).fromJson(e,t)}static fromJsonString(e,t){return(new Ln).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ln,e,t)}}Ln.runtime=r.proto3,Ln.typeName="agent.v1.CreateGoalSuccess",Ln.fields=r.proto3.util.newFieldList((()=>[]));class Cn extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cn).fromBinary(e,t)}static fromJson(e,t){return(new Cn).fromJson(e,t)}static fromJsonString(e,t){return(new Cn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cn,e,t)}}Cn.runtime=r.proto3,Cn.typeName="agent.v1.GoalError",Cn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Un extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Un).fromBinary(e,t)}static fromJson(e,t){return(new Un).fromJson(e,t)}static fromJsonString(e,t){return(new Un).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Un,e,t)}}Un.runtime=r.proto3,Un.typeName="agent.v1.CreateGoalResult",Un.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Ln,oneof:"result"},{no:2,name:"error",kind:"message",T:Cn,oneof:"result"}]));class Dn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dn).fromBinary(e,t)}static fromJson(e,t){return(new Dn).fromJson(e,t)}static fromJsonString(e,t){return(new Dn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dn,e,t)}}Dn.runtime=r.proto3,Dn.typeName="agent.v1.CreateGoalToolCall",Dn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:An},{no:2,name:"result",kind:"message",T:Un}]));class Gn extends r.Message{constructor(e){super(),this.status=Rn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gn).fromBinary(e,t)}static fromJson(e,t){return(new Gn).fromJson(e,t)}static fromJsonString(e,t){return(new Gn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gn,e,t)}}Gn.runtime=r.proto3,Gn.typeName="agent.v1.UpdateGoalArgs",Gn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)}]));class Hn extends r.Message{constructor(e){super(),this.status=Rn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hn).fromBinary(e,t)}static fromJson(e,t){return(new Hn).fromJson(e,t)}static fromJsonString(e,t){return(new Hn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hn,e,t)}}Hn.runtime=r.proto3,Hn.typeName="agent.v1.UpdateGoalSuccess",Hn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)}]));class Kn extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kn).fromBinary(e,t)}static fromJson(e,t){return(new Kn).fromJson(e,t)}static fromJsonString(e,t){return(new Kn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kn,e,t)}}Kn.runtime=r.proto3,Kn.typeName="agent.v1.UpdateGoalResult",Kn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Hn,oneof:"result"},{no:2,name:"error",kind:"message",T:Cn,oneof:"result"}]));class Wn extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wn).fromBinary(e,t)}static fromJson(e,t){return(new Wn).fromJson(e,t)}static fromJsonString(e,t){return(new Wn).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wn,e,t)}}Wn.runtime=r.proto3,Wn.typeName="agent.v1.UpdateGoalToolCall",Wn.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Gn},{no:2,name:"result",kind:"message",T:Kn}]));var Yn,zn,Vn,Qn,Xn,$n,Zn,er,tr,nr,rr,sr,or,ir,ar=n("../proto/dist/generated/agent/v1/hook_additional_context_pb.js"),lr=n("../proto/dist/generated/agent/v1/request_context_exec_pb.js"),ur=n("../proto/dist/generated/agent/v1/selected_context_pb.js"),mr=n("../proto/dist/generated/agent/v1/mcp_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT=1]="AGENT",e[e.ASK=2]="ASK",e[e.PLAN=3]="PLAN",e[e.DEBUG=4]="DEBUG",e[e.TRIAGE=5]="TRIAGE",e[e.PROJECT=6]="PROJECT",e[e.MULTITASK=7]="MULTITASK",e[e.CUSTOM=8]="CUSTOM"}(Yn||(Yn={})),r.proto3.util.setEnumType(Yn,"agent.v1.AgentMode",[{no:0,name:"AGENT_MODE_UNSPECIFIED"},{no:1,name:"AGENT_MODE_AGENT"},{no:2,name:"AGENT_MODE_ASK"},{no:3,name:"AGENT_MODE_PLAN"},{no:4,name:"AGENT_MODE_DEBUG"},{no:5,name:"AGENT_MODE_TRIAGE"},{no:6,name:"AGENT_MODE_PROJECT"},{no:7,name:"AGENT_MODE_MULTITASK"},{no:8,name:"AGENT_MODE_CUSTOM"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOCAL=1]="LOCAL",e[e.CLOUD=2]="CLOUD"}(zn||(zn={})),r.proto3.util.setEnumType(zn,"agent.v1.SubagentExecutionEnvironment",[{no:0,name:"SUBAGENT_EXECUTION_ENVIRONMENT_UNSPECIFIED"},{no:1,name:"SUBAGENT_EXECUTION_ENVIRONMENT_LOCAL"},{no:2,name:"SUBAGENT_EXECUTION_ENVIRONMENT_CLOUD"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT_REQUEST=1]="AGENT_REQUEST",e[e.USER_REQUEST=2]="USER_REQUEST",e[e.QUEUED_FOLLOW_UP=3]="QUEUED_FOLLOW_UP"}(Vn||(Vn={})),r.proto3.util.setEnumType(Vn,"agent.v1.SubagentBackgroundReason",[{no:0,name:"SUBAGENT_BACKGROUND_REASON_UNSPECIFIED"},{no:1,name:"SUBAGENT_BACKGROUND_REASON_AGENT_REQUEST"},{no:2,name:"SUBAGENT_BACKGROUND_REASON_USER_REQUEST"},{no:3,name:"SUBAGENT_BACKGROUND_REASON_QUEUED_FOLLOW_UP"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SHELL=1]="SHELL",e[e.SUBAGENT=2]="SUBAGENT"}(Qn||(Qn={})),r.proto3.util.setEnumType(Qn,"agent.v1.BackgroundTaskKind",[{no:0,name:"BACKGROUND_TASK_KIND_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_KIND_SHELL"},{no:2,name:"BACKGROUND_TASK_KIND_SUBAGENT"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.ERROR=2]="ERROR",e[e.ABORTED=3]="ABORTED"}(Xn||(Xn={})),r.proto3.util.setEnumType(Xn,"agent.v1.BackgroundTaskStatus",[{no:0,name:"BACKGROUND_TASK_STATUS_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_STATUS_SUCCESS"},{no:2,name:"BACKGROUND_TASK_STATUS_ERROR"},{no:3,name:"BACKGROUND_TASK_STATUS_ABORTED"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TASK_FINISHED=1]="TASK_FINISHED",e[e.TASK_PROGRESS=2]="TASK_PROGRESS"}($n||($n={})),r.proto3.util.setEnumType($n,"agent.v1.BackgroundTaskCompletionReason",[{no:0,name:"BACKGROUND_TASK_COMPLETION_REASON_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_COMPLETION_REASON_TASK_FINISHED"},{no:2,name:"BACKGROUND_TASK_COMPLETION_REASON_TASK_PROGRESS"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.USER_DRIVEN_INTERACTIVE_CHILD=1]="USER_DRIVEN_INTERACTIVE_CHILD"}(Zn||(Zn={})),r.proto3.util.setEnumType(Zn,"agent.v1.BackgroundTaskNotificationContext",[{no:0,name:"BACKGROUND_TASK_NOTIFICATION_CONTEXT_UNSPECIFIED"},{no:1,name:"BACKGROUND_TASK_NOTIFICATION_CONTEXT_USER_DRIVEN_INTERACTIVE_CHILD"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RUNNING=1]="RUNNING",e[e.BACKGROUNDED=2]="BACKGROUNDED",e[e.SUCCESS=3]="SUCCESS",e[e.ERROR=4]="ERROR",e[e.ABORTED=5]="ABORTED"}(er||(er={})),r.proto3.util.setEnumType(er,"agent.v1.SubagentRunStatus",[{no:0,name:"SUBAGENT_RUN_STATUS_UNSPECIFIED"},{no:1,name:"SUBAGENT_RUN_STATUS_RUNNING"},{no:2,name:"SUBAGENT_RUN_STATUS_BACKGROUNDED"},{no:3,name:"SUBAGENT_RUN_STATUS_SUCCESS"},{no:4,name:"SUBAGENT_RUN_STATUS_ERROR"},{no:5,name:"SUBAGENT_RUN_STATUS_ABORTED"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT_SKILL=1]="AGENT_SKILL",e[e.PLUGIN_SKILL=2]="PLUGIN_SKILL",e[e.REPO_SKILL=3]="REPO_SKILL",e[e.MANAGED_SKILL=4]="MANAGED_SKILL"}(tr||(tr={})),r.proto3.util.setEnumType(tr,"agent.v1.CustomModeSource",[{no:0,name:"CUSTOM_MODE_SOURCE_UNSPECIFIED"},{no:1,name:"CUSTOM_MODE_SOURCE_AGENT_SKILL"},{no:2,name:"CUSTOM_MODE_SOURCE_PLUGIN_SKILL"},{no:3,name:"CUSTOM_MODE_SOURCE_REPO_SKILL"},{no:4,name:"CUSTOM_MODE_SOURCE_MANAGED_SKILL"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PLAN_EXECUTION=1]="PLAN_EXECUTION",e[e.COMMIT_REMINDER=2]="COMMIT_REMINDER",e[e.BACKGROUND_TASK_COMPLETION=3]="BACKGROUND_TASK_COMPLETION",e[e.DIFF_TAB_COMMIT=4]="DIFF_TAB_COMMIT",e[e.DIFF_TAB_COMMIT_AND_PUSH=5]="DIFF_TAB_COMMIT_AND_PUSH",e[e.DIFF_TAB_PUSH=6]="DIFF_TAB_PUSH",e[e.DIFF_TAB_CREATE_PR=7]="DIFF_TAB_CREATE_PR",e[e.DIFF_TAB_FIX_MERGE_CONFLICTS=8]="DIFF_TAB_FIX_MERGE_CONFLICTS",e[e.USER_SENT_TO_SUBAGENT=9]="USER_SENT_TO_SUBAGENT",e[e.USER_INTERRUPTED_SUBAGENT=10]="USER_INTERRUPTED_SUBAGENT",e[e.USER_QUEUED_TO_SUBAGENT=11]="USER_QUEUED_TO_SUBAGENT",e[e.BABYSIT_PR_IN_CLOUD=12]="BABYSIT_PR_IN_CLOUD",e[e.CI_PANEL_INVESTIGATE_FAILURE=13]="CI_PANEL_INVESTIGATE_FAILURE",e[e.MULTITASK=14]="MULTITASK",e[e.BUILD_IN_PARALLEL=15]="BUILD_IN_PARALLEL",e[e.MULTITASK_SPLIT_PRS=16]="MULTITASK_SPLIT_PRS",e[e.APPLY_LOCALLY=17]="APPLY_LOCALLY",e[e.CHECKOUT_BRANCH=18]="CHECKOUT_BRANCH",e[e.DIFF_TAB_UPDATE_BRANCH=19]="DIFF_TAB_UPDATE_BRANCH",e[e.PR_TAB_BUGBOT_FIX=20]="PR_TAB_BUGBOT_FIX",e[e.RUN_BUGBOT_REVIEW=22]="RUN_BUGBOT_REVIEW",e[e.RUN_SECURITY_REVIEW=23]="RUN_SECURITY_REVIEW",e[e.FSD_APPLY_FINDING=24]="FSD_APPLY_FINDING",e[e.FSD_UNDO_FINDING=25]="FSD_UNDO_FINDING",e[e.FSD_START=26]="FSD_START",e[e.FSD_PR_INTERRUPT=27]="FSD_PR_INTERRUPT",e[e.SUBSCRIPTION=28]="SUBSCRIPTION",e[e.DIFF_TAB_CREATE_BRANCH=29]="DIFF_TAB_CREATE_BRANCH",e[e.AGENT_STORE_CONFLICT=30]="AGENT_STORE_CONFLICT",e[e.GOAL_CONTINUATION=31]="GOAL_CONTINUATION",e[e.PROJECT_KICKOFF=32]="PROJECT_KICKOFF"}(nr||(nr={})),r.proto3.util.setEnumType(nr,"agent.v1.SimulatedMsgReason",[{no:0,name:"SIMULATED_MSG_REASON_UNSPECIFIED"},{no:1,name:"SIMULATED_MSG_REASON_PLAN_EXECUTION"},{no:2,name:"SIMULATED_MSG_REASON_COMMIT_REMINDER"},{no:3,name:"SIMULATED_MSG_REASON_BACKGROUND_TASK_COMPLETION"},{no:4,name:"SIMULATED_MSG_REASON_DIFF_TAB_COMMIT"},{no:5,name:"SIMULATED_MSG_REASON_DIFF_TAB_COMMIT_AND_PUSH"},{no:6,name:"SIMULATED_MSG_REASON_DIFF_TAB_PUSH"},{no:7,name:"SIMULATED_MSG_REASON_DIFF_TAB_CREATE_PR"},{no:8,name:"SIMULATED_MSG_REASON_DIFF_TAB_FIX_MERGE_CONFLICTS"},{no:9,name:"SIMULATED_MSG_REASON_USER_SENT_TO_SUBAGENT"},{no:10,name:"SIMULATED_MSG_REASON_USER_INTERRUPTED_SUBAGENT"},{no:11,name:"SIMULATED_MSG_REASON_USER_QUEUED_TO_SUBAGENT"},{no:12,name:"SIMULATED_MSG_REASON_BABYSIT_PR_IN_CLOUD"},{no:13,name:"SIMULATED_MSG_REASON_CI_PANEL_INVESTIGATE_FAILURE"},{no:14,name:"SIMULATED_MSG_REASON_MULTITASK"},{no:15,name:"SIMULATED_MSG_REASON_BUILD_IN_PARALLEL"},{no:16,name:"SIMULATED_MSG_REASON_MULTITASK_SPLIT_PRS"},{no:17,name:"SIMULATED_MSG_REASON_APPLY_LOCALLY"},{no:18,name:"SIMULATED_MSG_REASON_CHECKOUT_BRANCH"},{no:19,name:"SIMULATED_MSG_REASON_DIFF_TAB_UPDATE_BRANCH"},{no:20,name:"SIMULATED_MSG_REASON_PR_TAB_BUGBOT_FIX"},{no:22,name:"SIMULATED_MSG_REASON_RUN_BUGBOT_REVIEW"},{no:23,name:"SIMULATED_MSG_REASON_RUN_SECURITY_REVIEW"},{no:24,name:"SIMULATED_MSG_REASON_FSD_APPLY_FINDING"},{no:25,name:"SIMULATED_MSG_REASON_FSD_UNDO_FINDING"},{no:26,name:"SIMULATED_MSG_REASON_FSD_START"},{no:27,name:"SIMULATED_MSG_REASON_FSD_PR_INTERRUPT"},{no:28,name:"SIMULATED_MSG_REASON_SUBSCRIPTION"},{no:29,name:"SIMULATED_MSG_REASON_DIFF_TAB_CREATE_BRANCH"},{no:30,name:"SIMULATED_MSG_REASON_AGENT_STORE_CONFLICT"},{no:31,name:"SIMULATED_MSG_REASON_GOAL_CONTINUATION"},{no:32,name:"SIMULATED_MSG_REASON_PROJECT_KICKOFF"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SLACK=1]="SLACK",e[e.GITHUB=2]="GITHUB",e[e.LINEAR=3]="LINEAR",e[e.ORIGIN=4]="ORIGIN"}(rr||(rr={})),r.proto3.util.setEnumType(rr,"agent.v1.SubscriptionSource",[{no:0,name:"SUBSCRIPTION_SOURCE_UNSPECIFIED"},{no:1,name:"SUBSCRIPTION_SOURCE_SLACK"},{no:2,name:"SUBSCRIPTION_SOURCE_GITHUB"},{no:3,name:"SUBSCRIPTION_SOURCE_LINEAR"},{no:4,name:"SUBSCRIPTION_SOURCE_ORIGIN"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT",e[e.CODEX=2]="CODEX",e[e.GPT5=3]="GPT5"}(sr||(sr={})),r.proto3.util.setEnumType(sr,"agent.v1.ThinkingStyle",[{no:0,name:"THINKING_STYLE_UNSPECIFIED"},{no:1,name:"THINKING_STYLE_DEFAULT"},{no:2,name:"THINKING_STYLE_CODEX"},{no:3,name:"THINKING_STYLE_GPT5"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PARENT_FIRST=1]="PARENT_FIRST",e[e.ALTERNATE_FIRST=2]="ALTERNATE_FIRST"}(or||(or={})),r.proto3.util.setEnumType(or,"agent.v1.ResponseComparisonDisplayOrder",[{no:0,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_UNSPECIFIED"},{no:1,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_PARENT_FIRST"},{no:2,name:"RESPONSE_COMPARISON_DISPLAY_ORDER_ALTERNATE_FIRST"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ALTERNATE_TOOL_CALL=1]="ALTERNATE_TOOL_CALL",e[e.INFERENCE_ERROR=2]="INFERENCE_ERROR",e[e.TIMEOUT=3]="TIMEOUT",e[e.CANCELLED=4]="CANCELLED"}(ir||(ir={})),r.proto3.util.setEnumType(ir,"agent.v1.ResponseComparisonSkipReason",[{no:0,name:"RESPONSE_COMPARISON_SKIP_REASON_UNSPECIFIED"},{no:1,name:"RESPONSE_COMPARISON_SKIP_REASON_ALTERNATE_TOOL_CALL"},{no:2,name:"RESPONSE_COMPARISON_SKIP_REASON_INFERENCE_ERROR"},{no:3,name:"RESPONSE_COMPARISON_SKIP_REASON_TIMEOUT"},{no:4,name:"RESPONSE_COMPARISON_SKIP_REASON_CANCELLED"}]);class cr extends r.Message{constructor(e){super(),this.description="",this.prompt="",this.attachments=[],this.mode=s.FL.UNSPECIFIED,this.respondingToMessageIds=[],this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cr).fromBinary(e,t)}static fromJson(e,t){return(new cr).fromJson(e,t)}static fromJsonString(e,t){return(new cr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cr,e,t)}}cr.runtime=r.proto3,cr.typeName="agent.v1.TaskArgs",cr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"subagent_type",kind:"message",T:s._L},{no:4,name:"model",kind:"scalar",T:9,opt:!0},{no:5,name:"resume",kind:"scalar",T:9,opt:!0},{no:6,name:"agent_id",kind:"scalar",T:9,opt:!0},{no:7,name:"attachments",kind:"scalar",T:9,repeated:!0},{no:8,name:"mode",kind:"enum",T:r.proto3.getEnumType(s.FL)},{no:9,name:"responding_to_message_ids",kind:"scalar",T:9,repeated:!0},{no:10,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:11,name:"machine",kind:"message",T:dr,opt:!0}]));class dr extends r.Message{constructor(e){super(),this.machine={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dr).fromBinary(e,t)}static fromJson(e,t){return(new dr).fromJson(e,t)}static fromJsonString(e,t){return(new dr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(dr,e,t)}}dr.runtime=r.proto3,dr.typeName="agent.v1.TargetMachine",dr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"same_machine",kind:"message",T:pr,oneof:"machine"},{no:2,name:"new_cloud_vm",kind:"message",T:fr,oneof:"machine"},{no:3,name:"self_hosted_worker",kind:"message",T:gr,oneof:"machine"},{no:4,name:"self_hosted_pool",kind:"message",T:_r,oneof:"machine"}]));class pr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pr).fromBinary(e,t)}static fromJson(e,t){return(new pr).fromJson(e,t)}static fromJsonString(e,t){return(new pr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pr,e,t)}}pr.runtime=r.proto3,pr.typeName="agent.v1.SameMachineTarget",pr.fields=r.proto3.util.newFieldList((()=>[]));class fr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fr).fromBinary(e,t)}static fromJson(e,t){return(new fr).fromJson(e,t)}static fromJsonString(e,t){return(new fr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fr,e,t)}}fr.runtime=r.proto3,fr.typeName="agent.v1.NewCloudVmTarget",fr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"environment_build_id",kind:"scalar",T:9,opt:!0},{no:2,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class gr extends r.Message{constructor(e){super(),this.workerId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gr).fromBinary(e,t)}static fromJson(e,t){return(new gr).fromJson(e,t)}static fromJsonString(e,t){return(new gr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gr,e,t)}}gr.runtime=r.proto3,gr.typeName="agent.v1.SelfHostedWorkerTarget",gr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"worker_id",kind:"scalar",T:9}]));class _r extends r.Message{constructor(e){super(),this.labels=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _r).fromBinary(e,t)}static fromJson(e,t){return(new _r).fromJson(e,t)}static fromJsonString(e,t){return(new _r).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_r,e,t)}}_r.runtime=r.proto3,_r.typeName="agent.v1.SelfHostedPoolTarget",_r.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pool",kind:"scalar",T:9,opt:!0},{no:2,name:"labels",kind:"message",T:hr,repeated:!0}]));class hr extends r.Message{constructor(e){super(),this.key="",this.value="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hr).fromBinary(e,t)}static fromJson(e,t){return(new hr).fromJson(e,t)}static fromJsonString(e,t){return(new hr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hr,e,t)}}hr.runtime=r.proto3,hr.typeName="agent.v1.SelfHostedWorkerLabel",hr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class Tr extends r.Message{constructor(e){super(),this.conversationSteps=[],this.isBackground=!1,this.backgroundReason=Vn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tr).fromBinary(e,t)}static fromJson(e,t){return(new Tr).fromJson(e,t)}static fromJsonString(e,t){return(new Tr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Tr,e,t)}}Tr.runtime=r.proto3,Tr.typeName="agent.v1.TaskSuccess",Tr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_steps",kind:"message",T:Mr,repeated:!0},{no:2,name:"agent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"is_background",kind:"scalar",T:8},{no:4,name:"duration_ms",kind:"scalar",T:4,opt:!0},{no:5,name:"result_suffix",kind:"scalar",T:9,opt:!0},{no:6,name:"background_reason",kind:"enum",T:r.proto3.getEnumType(Vn)},{no:7,name:"transcript_path",kind:"scalar",T:9,opt:!0}]));class yr extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yr).fromBinary(e,t)}static fromJson(e,t){return(new yr).fromJson(e,t)}static fromJsonString(e,t){return(new yr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yr,e,t)}}yr.runtime=r.proto3,yr.typeName="agent.v1.TaskError",yr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Sr extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sr).fromBinary(e,t)}static fromJson(e,t){return(new Sr).fromJson(e,t)}static fromJsonString(e,t){return(new Sr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Sr,e,t)}}Sr.runtime=r.proto3,Sr.typeName="agent.v1.TaskResult",Sr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Tr,oneof:"result"},{no:2,name:"error",kind:"message",T:yr,oneof:"result"}]));class wr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wr).fromBinary(e,t)}static fromJson(e,t){return(new wr).fromJson(e,t)}static fromJsonString(e,t){return(new wr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wr,e,t)}}wr.runtime=r.proto3,wr.typeName="agent.v1.TaskToolCall",wr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:cr},{no:2,name:"result",kind:"message",T:Sr},{no:3,name:"cloud_agent_bc_id",kind:"scalar",T:9,opt:!0}]));class kr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kr).fromBinary(e,t)}static fromJson(e,t){return(new kr).fromJson(e,t)}static fromJsonString(e,t){return(new kr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(kr,e,t)}}kr.runtime=r.proto3,kr.typeName="agent.v1.TaskToolCallDelta",kr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"interaction_update",kind:"message",T:ei}]));class Jr extends r.Message{constructor(e){super(),this.path="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jr).fromBinary(e,t)}static fromJson(e,t){return(new Jr).fromJson(e,t)}static fromJsonString(e,t){return(new Jr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jr,e,t)}}Jr.runtime=r.proto3,Jr.typeName="agent.v1.SetActiveBranchArgs",Jr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class vr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vr).fromBinary(e,t)}static fromJson(e,t){return(new vr).fromJson(e,t)}static fromJsonString(e,t){return(new vr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vr,e,t)}}vr.runtime=r.proto3,vr.typeName="agent.v1.SetActiveBranchSuccess",vr.fields=r.proto3.util.newFieldList((()=>[]));class Er extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Er).fromBinary(e,t)}static fromJson(e,t){return(new Er).fromJson(e,t)}static fromJsonString(e,t){return(new Er).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Er,e,t)}}Er.runtime=r.proto3,Er.typeName="agent.v1.SetActiveBranchError",Er.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class br extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new br).fromBinary(e,t)}static fromJson(e,t){return(new br).fromJson(e,t)}static fromJsonString(e,t){return(new br).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(br,e,t)}}br.runtime=r.proto3,br.typeName="agent.v1.SetActiveBranchResult",br.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:vr,oneof:"result"},{no:2,name:"error",kind:"message",T:Er,oneof:"result"}]));class jr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jr).fromBinary(e,t)}static fromJson(e,t){return(new jr).fromJson(e,t)}static fromJsonString(e,t){return(new jr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jr,e,t)}}jr.runtime=r.proto3,jr.typeName="agent.v1.SetActiveBranchToolCall",jr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:Jr},{no:2,name:"result",kind:"message",T:br}]));class xr extends r.Message{constructor(e){super(),this.tool={case:void 0},this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xr).fromBinary(e,t)}static fromJson(e,t){return(new xr).fromJson(e,t)}static fromJsonString(e,t){return(new xr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xr,e,t)}}xr.runtime=r.proto3,xr.typeName="agent.v1.ToolCall",xr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_tool_call",kind:"message",T:i,oneof:"tool"},{no:3,name:"delete_tool_call",kind:"message",T:c,oneof:"tool"},{no:4,name:"glob_tool_call",kind:"message",T:_,oneof:"tool"},{no:5,name:"grep_tool_call",kind:"message",T,oneof:"tool"},{no:8,name:"read_tool_call",kind:"message",T:S,oneof:"tool"},{no:9,name:"update_todos_tool_call",kind:"message",T:b.bk,oneof:"tool"},{no:10,name:"read_todos_tool_call",kind:"message",T:b.AJ,oneof:"tool"},{no:12,name:"edit_tool_call",kind:"message",T:M,oneof:"tool"},{no:13,name:"ls_tool_call",kind:"message",T:A,oneof:"tool"},{no:14,name:"read_lints_tool_call",kind:"message",T:U,oneof:"tool"},{no:15,name:"mcp_tool_call",kind:"message",T:$,oneof:"tool"},{no:16,name:"sem_search_tool_call",kind:"message",T:ee,oneof:"tool"},{no:17,name:"create_plan_tool_call",kind:"message",T:oe.Ih,oneof:"tool"},{no:18,name:"web_search_tool_call",kind:"message",T:ie.pn,oneof:"tool"},{no:19,name:"task_tool_call",kind:"message",T:wr,oneof:"tool"},{no:20,name:"list_mcp_resources_tool_call",kind:"message",T:ae,oneof:"tool"},{no:21,name:"read_mcp_resource_tool_call",kind:"message",T:le,oneof:"tool"},{no:22,name:"apply_agent_diff_tool_call",kind:"message",T:ue.JU,oneof:"tool"},{no:23,name:"ask_question_tool_call",kind:"message",T:me.OU,oneof:"tool"},{no:24,name:"fetch_tool_call",kind:"message",T:de,oneof:"tool"},{no:25,name:"switch_mode_tool_call",kind:"message",T:pe.Cs,oneof:"tool"},{no:28,name:"generate_image_tool_call",kind:"message",T:fe.r9,oneof:"tool"},{no:29,name:"record_screen_tool_call",kind:"message",T:_e,oneof:"tool"},{no:30,name:"computer_use_tool_call",kind:"message",T:he.t8,oneof:"tool"},{no:31,name:"write_shell_stdin_tool_call",kind:"message",T:ye,oneof:"tool"},{no:32,name:"reflect_tool_call",kind:"message",T:ve,oneof:"tool"},{no:33,name:"setup_vm_environment_tool_call",kind:"message",T:Ee.MU,oneof:"tool"},{no:34,name:"truncated_tool_call",kind:"message",T:qr,oneof:"tool"},{no:35,name:"start_grind_execution_tool_call",kind:"message",T:Pe,oneof:"tool"},{no:36,name:"start_grind_planning_tool_call",kind:"message",T:Me,oneof:"tool"},{no:37,name:"web_fetch_tool_call",kind:"message",T:Oe.fd,oneof:"tool"},{no:38,name:"report_bugfix_results_tool_call",kind:"message",T:Fe.U_,oneof:"tool"},{no:39,name:"ai_attribution_tool_call",kind:"message",T:Ae.ex,oneof:"tool"},{no:40,name:"pr_management_tool_call",kind:"message",T:Le.AU,oneof:"tool"},{no:41,name:"mcp_auth_tool_call",kind:"message",T:Ce.NX,oneof:"tool"},{no:42,name:"await_tool_call",kind:"message",T:Ye,oneof:"tool"},{no:43,name:"blame_by_file_path_tool_call",kind:"message",T:$e,oneof:"tool"},{no:44,name:"get_mcp_tools_tool_call",kind:"message",T:rt,oneof:"tool"},{no:45,name:"report_bug_tool_call",kind:"message",T:lt,oneof:"tool"},{no:46,name:"set_active_branch_tool_call",kind:"message",T:jr,oneof:"tool"},{no:48,name:"communicate_update_tool_call",kind:"message",T:pt,oneof:"tool"},{no:49,name:"send_final_summary_tool_call",kind:"message",T:Tt,oneof:"tool"},{no:50,name:"update_pr_code_tour_tool_call",kind:"message",T:Jt,oneof:"tool"},{no:51,name:"replace_env_tool_call",kind:"message",T:vt.us,oneof:"tool"},{no:52,name:"edit_pr_labels_tool_call",kind:"message",T:Nt,oneof:"tool"},{no:53,name:"record_ci_investigation_findings_tool_call",kind:"message",T:Ot,oneof:"tool"},{no:55,name:"send_message_tool_call",kind:"message",T:Gt,oneof:"tool"},{no:56,name:"fetch_cloud_agent_data_tool_call",kind:"message",T:zt,oneof:"tool"},{no:58,name:"send_to_user_tool_call",kind:"message",T:Zt,oneof:"tool"},{no:61,name:"pi_read_tool_call",kind:"message",T:tn,oneof:"tool"},{no:62,name:"pi_bash_tool_call",kind:"message",T:an,oneof:"tool"},{no:63,name:"pi_edit_tool_call",kind:"message",T:dn.EN,oneof:"tool"},{no:64,name:"pi_write_tool_call",kind:"message",T:pn,oneof:"tool"},{no:65,name:"pi_grep_tool_call",kind:"message",T:yn,oneof:"tool"},{no:66,name:"pi_find_tool_call",kind:"message",T:vn,oneof:"tool"},{no:67,name:"pi_ls_tool_call",kind:"message",T:Nn,oneof:"tool"},{no:68,name:"connect_scm_tool_call",kind:"message",T:Mn.iO,oneof:"tool"},{no:69,name:"search_conversations_tool_call",kind:"message",T:Fn,oneof:"tool"},{no:70,name:"create_goal_tool_call",kind:"message",T:Dn,oneof:"tool"},{no:71,name:"update_goal_tool_call",kind:"message",T:Wn,oneof:"tool"},{no:54,name:"hook_additional_contexts",kind:"message",T:ar.C,repeated:!0},{no:57,name:"tool_call_id",kind:"scalar",T:9,opt:!0},{no:59,name:"started_at_ms",kind:"scalar",T:4,opt:!0},{no:60,name:"completed_at_ms",kind:"scalar",T:4,opt:!0}]));class Nr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nr).fromBinary(e,t)}static fromJson(e,t){return(new Nr).fromJson(e,t)}static fromJsonString(e,t){return(new Nr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Nr,e,t)}}Nr.runtime=r.proto3,Nr.typeName="agent.v1.TruncatedToolCallArgs",Nr.fields=r.proto3.util.newFieldList((()=>[]));class Pr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pr).fromBinary(e,t)}static fromJson(e,t){return(new Pr).fromJson(e,t)}static fromJsonString(e,t){return(new Pr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pr,e,t)}}Pr.runtime=r.proto3,Pr.typeName="agent.v1.TruncatedToolCallSuccess",Pr.fields=r.proto3.util.newFieldList((()=>[]));class Ir extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ir).fromBinary(e,t)}static fromJson(e,t){return(new Ir).fromJson(e,t)}static fromJsonString(e,t){return(new Ir).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ir,e,t)}}Ir.runtime=r.proto3,Ir.typeName="agent.v1.TruncatedToolCallError",Ir.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class Br extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Br).fromBinary(e,t)}static fromJson(e,t){return(new Br).fromJson(e,t)}static fromJsonString(e,t){return(new Br).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Br,e,t)}}Br.runtime=r.proto3,Br.typeName="agent.v1.TruncatedToolCallResult",Br.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:Pr,oneof:"result"},{no:2,name:"error",kind:"message",T:Ir,oneof:"result"}]));class qr extends r.Message{constructor(e){super(),this.originalStepBlobId=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qr).fromBinary(e,t)}static fromJson(e,t){return(new qr).fromJson(e,t)}static fromJsonString(e,t){return(new qr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qr,e,t)}}qr.runtime=r.proto3,qr.typeName="agent.v1.TruncatedToolCall",qr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"original_step_blob_id",kind:"scalar",T:12},{no:2,name:"args",kind:"message",T:Nr},{no:3,name:"result",kind:"message",T:Br}]));class Rr extends r.Message{constructor(e){super(),this.delta={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rr).fromBinary(e,t)}static fromJson(e,t){return(new Rr).fromJson(e,t)}static fromJsonString(e,t){return(new Rr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rr,e,t)}}Rr.runtime=r.proto3,Rr.typeName="agent.v1.ToolCallDelta",Rr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_tool_call_delta",kind:"message",T:u,oneof:"delta"},{no:2,name:"task_tool_call_delta",kind:"message",T:kr,oneof:"delta"},{no:3,name:"edit_tool_call_delta",kind:"message",T:O,oneof:"delta"},{no:4,name:"replace_env_tool_call_delta",kind:"message",T:vt.km,oneof:"delta"}]));class Mr extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mr).fromBinary(e,t)}static fromJson(e,t){return(new Mr).fromJson(e,t)}static fromJsonString(e,t){return(new Mr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mr,e,t)}}Mr.runtime=r.proto3,Mr.typeName="agent.v1.ConversationStep",Mr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"assistant_message",kind:"message",T:Fs,oneof:"message"},{no:2,name:"tool_call",kind:"message",T:xr,oneof:"message"},{no:3,name:"thinking_message",kind:"message",T:As,oneof:"message"}]));class Or extends r.Message{constructor(e){super(),this.action={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Or).fromBinary(e,t)}static fromJson(e,t){return(new Or).fromJson(e,t)}static fromJsonString(e,t){return(new Or).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Or,e,t)}}Or.runtime=r.proto3,Or.typeName="agent.v1.ConversationAction",Or.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message_action",kind:"message",T:os,oneof:"action"},{no:2,name:"resume_action",kind:"message",T:Js,oneof:"action"},{no:3,name:"cancel_action",kind:"message",T:ks,oneof:"action"},{no:4,name:"summarize_action",kind:"message",T:Es,oneof:"action"},{no:5,name:"shell_command_action",kind:"message",T:bs,oneof:"action"},{no:6,name:"start_plan_action",kind:"message",T:js,oneof:"action"},{no:7,name:"execute_plan_action",kind:"message",T:xs,oneof:"action"},{no:8,name:"async_ask_question_completion_action",kind:"message",T:vs,oneof:"action"},{no:10,name:"cancel_subagent_action",kind:"message",T:Ur,oneof:"action"},{no:12,name:"background_task_completion_action",kind:"message",T:Ar,oneof:"action"},{no:13,name:"background_shell_action",kind:"message",T:Dr,oneof:"action"},{no:14,name:"background_subagent_action",kind:"message",T:Gr,oneof:"action"},{no:16,name:"subscription_notification_action",kind:"message",T:is,oneof:"action"},{no:18,name:"goal_continuation_action",kind:"message",T:as,oneof:"action"},{no:19,name:"inject_context_action",kind:"message",T:ls,oneof:"action"},{no:11,name:"triggering_auth_id",kind:"scalar",T:9,opt:!0},{no:15,name:"triggering_user_info",kind:"message",T:Fr,opt:!0},{no:17,name:"request_context_parts",kind:"message",T:lr.sG,opt:!0}]));class Fr extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fr).fromBinary(e,t)}static fromJson(e,t){return(new Fr).fromJson(e,t)}static fromJsonString(e,t){return(new Fr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fr,e,t)}}Fr.runtime=r.proto3,Fr.typeName="agent.v1.TriggeringUserInfo",Fr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"auth_id",kind:"scalar",T:9,opt:!0},{no:2,name:"user_id",kind:"scalar",T:5,opt:!0}]));class Ar extends r.Message{constructor(e){super(),this.completions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ar).fromBinary(e,t)}static fromJson(e,t){return(new Ar).fromJson(e,t)}static fromJsonString(e,t){return(new Ar).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ar,e,t)}}Ar.runtime=r.proto3,Ar.typeName="agent.v1.BackgroundTaskCompletionAction",Ar.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"completions",kind:"message",T:Lr,repeated:!0}]));class Lr extends r.Message{constructor(e){super(),this.taskId="",this.kind=Qn.UNSPECIFIED,this.status=Xn.UNSPECIFIED,this.title="",this.reason=$n.UNSPECIFIED,this.notificationContext=Zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lr).fromBinary(e,t)}static fromJson(e,t){return(new Lr).fromJson(e,t)}static fromJsonString(e,t){return(new Lr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lr,e,t)}}Lr.runtime=r.proto3,Lr.typeName="agent.v1.BackgroundTaskCompletion",Lr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"task_id",kind:"scalar",T:9},{no:2,name:"kind",kind:"enum",T:r.proto3.getEnumType(Qn)},{no:3,name:"status",kind:"enum",T:r.proto3.getEnumType(Xn)},{no:4,name:"title",kind:"scalar",T:9},{no:5,name:"detail",kind:"scalar",T:9,opt:!0},{no:6,name:"output_path",kind:"scalar",T:9,opt:!0},{no:7,name:"thread_id",kind:"scalar",T:9,opt:!0},{no:8,name:"reason",kind:"enum",T:r.proto3.getEnumType($n)},{no:9,name:"subagent_id",kind:"scalar",T:9,opt:!0},{no:10,name:"tool_call_id",kind:"scalar",T:9,opt:!0},{no:11,name:"notification_context",kind:"enum",T:r.proto3.getEnumType(Zn)}]));class Cr extends r.Message{constructor(e){super(),this.parentToolCallId="",this.environment=zn.UNSPECIFIED,this.status=er.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cr).fromBinary(e,t)}static fromJson(e,t){return(new Cr).fromJson(e,t)}static fromJsonString(e,t){return(new Cr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cr,e,t)}}Cr.runtime=r.proto3,Cr.typeName="agent.v1.SubagentRunState",Cr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"parent_tool_call_id",kind:"scalar",T:9},{no:2,name:"subagent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:4,name:"status",kind:"enum",T:r.proto3.getEnumType(er)},{no:5,name:"title",kind:"scalar",T:9,opt:!0},{no:6,name:"detail",kind:"scalar",T:9,opt:!0},{no:7,name:"transcript_path",kind:"scalar",T:9,opt:!0},{no:8,name:"output_path",kind:"scalar",T:9,opt:!0},{no:9,name:"completed_timestamp_ms",kind:"scalar",T:4,opt:!0},{no:10,name:"completion_reason",kind:"enum",T:r.proto3.getEnumType($n),opt:!0}]));class Ur extends r.Message{constructor(e){super(),this.subagentId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ur).fromBinary(e,t)}static fromJson(e,t){return(new Ur).fromJson(e,t)}static fromJsonString(e,t){return(new Ur).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ur,e,t)}}Ur.runtime=r.proto3,Ur.typeName="agent.v1.CancelSubagentAction",Ur.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9}]));class Dr extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dr).fromBinary(e,t)}static fromJson(e,t){return(new Dr).fromJson(e,t)}static fromJsonString(e,t){return(new Dr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Dr,e,t)}}Dr.runtime=r.proto3,Dr.typeName="agent.v1.BackgroundShellAction",Dr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class Gr extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gr).fromBinary(e,t)}static fromJson(e,t){return(new Gr).fromJson(e,t)}static fromJsonString(e,t){return(new Gr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gr,e,t)}}Gr.runtime=r.proto3,Gr.typeName="agent.v1.BackgroundSubagentAction",Gr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class Hr extends r.Message{constructor(e){super(),this.toolCallId="",this.resolution={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hr).fromBinary(e,t)}static fromJson(e,t){return(new Hr).fromJson(e,t)}static fromJsonString(e,t){return(new Hr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hr,e,t)}}Hr.runtime=r.proto3,Hr.typeName="agent.v1.InterruptedPendingToolCallResolution",Hr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"shell_result",kind:"message",T:o.W4,oneof:"resolution"},{no:3,name:"task_result",kind:"message",T:Sr,oneof:"resolution"}]));class Kr extends r.Message{constructor(e){super(),this.resolutions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kr).fromBinary(e,t)}static fromJson(e,t){return(new Kr).fromJson(e,t)}static fromJsonString(e,t){return(new Kr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Kr,e,t)}}Kr.runtime=r.proto3,Kr.typeName="agent.v1.InterruptedPendingToolCallResolutions",Kr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"resolutions",kind:"message",T:Hr,repeated:!0}]));class Wr extends r.Message{constructor(e){super(),this.messages=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wr).fromBinary(e,t)}static fromJson(e,t){return(new Wr).fromJson(e,t)}static fromJsonString(e,t){return(new Wr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wr,e,t)}}Wr.runtime=r.proto3,Wr.typeName="agent.v1.ConversationHistory",Wr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"messages",kind:"message",T:Yr,repeated:!0},{no:2,name:"replace_user_info",kind:"scalar",T:8,opt:!0}]));class Yr extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yr).fromBinary(e,t)}static fromJson(e,t){return(new Yr).fromJson(e,t)}static fromJsonString(e,t){return(new Yr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yr,e,t)}}Yr.runtime=r.proto3,Yr.typeName="agent.v1.ConversationHistoryMessage",Yr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user",kind:"message",T:zr,oneof:"message"},{no:2,name:"assistant",kind:"message",T:$r,oneof:"message"},{no:3,name:"tool",kind:"message",T:rs,oneof:"message"}]));class zr extends r.Message{constructor(e){super(),this.content=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zr).fromBinary(e,t)}static fromJson(e,t){return(new zr).fromJson(e,t)}static fromJsonString(e,t){return(new zr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zr,e,t)}}zr.runtime=r.proto3,zr.typeName="agent.v1.ConversationHistoryUserMessage",zr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:Vr,repeated:!0}]));class Vr extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vr).fromBinary(e,t)}static fromJson(e,t){return(new Vr).fromJson(e,t)}static fromJsonString(e,t){return(new Vr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vr,e,t)}}Vr.runtime=r.proto3,Vr.typeName="agent.v1.ConversationHistoryUserContent",Vr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Qr,oneof:"content"},{no:2,name:"image",kind:"message",T:Xr,oneof:"content"}]));class Qr extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qr).fromBinary(e,t)}static fromJson(e,t){return(new Qr).fromJson(e,t)}static fromJsonString(e,t){return(new Qr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qr,e,t)}}Qr.runtime=r.proto3,Qr.typeName="agent.v1.ConversationHistoryTextContent",Qr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Xr extends r.Message{constructor(e){super(),this.data="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xr).fromBinary(e,t)}static fromJson(e,t){return(new Xr).fromJson(e,t)}static fromJsonString(e,t){return(new Xr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xr,e,t)}}Xr.runtime=r.proto3,Xr.typeName="agent.v1.ConversationHistoryImageContent",Xr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9},{no:2,name:"mime_type",kind:"scalar",T:9,opt:!0}]));class $r extends r.Message{constructor(e){super(),this.content=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $r).fromBinary(e,t)}static fromJson(e,t){return(new $r).fromJson(e,t)}static fromJsonString(e,t){return(new $r).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($r,e,t)}}$r.runtime=r.proto3,$r.typeName="agent.v1.ConversationHistoryAssistantMessage",$r.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:Zr,repeated:!0}]));class Zr extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zr).fromBinary(e,t)}static fromJson(e,t){return(new Zr).fromJson(e,t)}static fromJsonString(e,t){return(new Zr).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zr,e,t)}}Zr.runtime=r.proto3,Zr.typeName="agent.v1.ConversationHistoryAssistantContent",Zr.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Qr,oneof:"content"},{no:2,name:"reasoning",kind:"message",T:es,oneof:"content"},{no:3,name:"redacted_reasoning",kind:"message",T:ts,oneof:"content"},{no:4,name:"tool_call",kind:"message",T:ns,oneof:"content"}]));class es extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new es).fromBinary(e,t)}static fromJson(e,t){return(new es).fromJson(e,t)}static fromJsonString(e,t){return(new es).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(es,e,t)}}es.runtime=r.proto3,es.typeName="agent.v1.ConversationHistoryReasoningContent",es.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"signature",kind:"scalar",T:9,opt:!0}]));class ts extends r.Message{constructor(e){super(),this.data="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ts).fromBinary(e,t)}static fromJson(e,t){return(new ts).fromJson(e,t)}static fromJsonString(e,t){return(new ts).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ts,e,t)}}ts.runtime=r.proto3,ts.typeName="agent.v1.ConversationHistoryRedactedReasoningContent",ts.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class ns extends r.Message{constructor(e){super(),this.toolCallId="",this.toolName="",this.argsJson="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ns).fromBinary(e,t)}static fromJson(e,t){return(new ns).fromJson(e,t)}static fromJsonString(e,t){return(new ns).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ns,e,t)}}ns.runtime=r.proto3,ns.typeName="agent.v1.ConversationHistoryToolCall",ns.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"tool_name",kind:"scalar",T:9},{no:3,name:"args_json",kind:"scalar",T:9}]));class rs extends r.Message{constructor(e){super(),this.toolCallId="",this.toolName="",this.content=[],this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rs).fromBinary(e,t)}static fromJson(e,t){return(new rs).fromJson(e,t)}static fromJsonString(e,t){return(new rs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(rs,e,t)}}rs.runtime=r.proto3,rs.typeName="agent.v1.ConversationHistoryToolMessage",rs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"tool_name",kind:"scalar",T:9},{no:3,name:"content",kind:"message",T:ss,repeated:!0},{no:4,name:"is_error",kind:"scalar",T:8,opt:!0},{no:5,name:"hook_additional_contexts",kind:"message",T:ar.C,repeated:!0}]));class ss extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ss).fromBinary(e,t)}static fromJson(e,t){return(new ss).fromJson(e,t)}static fromJsonString(e,t){return(new ss).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ss,e,t)}}ss.runtime=r.proto3,ss.typeName="agent.v1.ConversationHistoryToolResultContent",ss.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:Qr,oneof:"content"},{no:2,name:"image",kind:"message",T:Xr,oneof:"content"}]));class os extends r.Message{constructor(e){super(),this.prependUserMessages=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new os).fromBinary(e,t)}static fromJson(e,t){return(new os).fromJson(e,t)}static fromJsonString(e,t){return(new os).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(os,e,t)}}os.runtime=r.proto3,os.typeName="agent.v1.UserMessageAction",os.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:Ms},{no:2,name:"request_context",kind:"message",T:lr.bb},{no:3,name:"send_to_interaction_listener",kind:"scalar",T:8,opt:!0},{no:4,name:"prepend_user_messages",kind:"message",T:Ms,repeated:!0},{no:6,name:"interrupted_pending_tool_call_resolutions",kind:"message",T:Kr,opt:!0},{no:7,name:"conversation_history",kind:"message",T:Wr,opt:!0}]));class is extends r.Message{constructor(e){super(),this.notifications=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new is).fromBinary(e,t)}static fromJson(e,t){return(new is).fromJson(e,t)}static fromJsonString(e,t){return(new is).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(is,e,t)}}is.runtime=r.proto3,is.typeName="agent.v1.SubscriptionNotificationAction",is.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"notifications",kind:"message",T:Ms,repeated:!0},{no:2,name:"request_context",kind:"message",T:lr.bb},{no:3,name:"send_to_interaction_listener",kind:"scalar",T:8,opt:!0}]));class as extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new as).fromBinary(e,t)}static fromJson(e,t){return(new as).fromJson(e,t)}static fromJsonString(e,t){return(new as).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(as,e,t)}}as.runtime=r.proto3,as.typeName="agent.v1.GoalContinuationAction",as.fields=r.proto3.util.newFieldList((()=>[]));class ls extends r.Message{constructor(e){super(),this.injectionId="",this.expectedRunId="",this.payload={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ls).fromBinary(e,t)}static fromJson(e,t){return(new ls).fromJson(e,t)}static fromJsonString(e,t){return(new ls).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ls,e,t)}}ls.runtime=r.proto3,ls.typeName="agent.v1.InjectContextAction",ls.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"injection_id",kind:"scalar",T:9},{no:2,name:"expected_run_id",kind:"scalar",T:9},{no:3,name:"user_context",kind:"message",T:us,oneof:"payload"},{no:4,name:"system_context",kind:"message",T:ms,oneof:"payload"}]));class us extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new us).fromBinary(e,t)}static fromJson(e,t){return(new us).fromJson(e,t)}static fromJsonString(e,t){return(new us).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(us,e,t)}}us.runtime=r.proto3,us.typeName="agent.v1.UserContextInjection",us.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:Ms},{no:2,name:"request_context",kind:"message",T:lr.bb}]));class ms extends r.Message{constructor(e){super(),this.producer="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ms).fromBinary(e,t)}static fromJson(e,t){return(new ms).fromJson(e,t)}static fromJsonString(e,t){return(new ms).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ms,e,t)}}ms.runtime=r.proto3,ms.typeName="agent.v1.SystemContextInjection",ms.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"producer",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]));class cs extends r.Message{constructor(e){super(),this.state={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cs).fromBinary(e,t)}static fromJson(e,t){return(new cs).fromJson(e,t)}static fromJsonString(e,t){return(new cs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(cs,e,t)}}cs.runtime=r.proto3,cs.typeName="agent.v1.ContextInjectionState",cs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"queued",kind:"message",T:ds,oneof:"state"},{no:2,name:"delivered",kind:"message",T:ps,oneof:"state"},{no:3,name:"queued_for_next_turn",kind:"message",T:fs,oneof:"state"},{no:4,name:"cancelled",kind:"message",T:gs,oneof:"state"},{no:5,name:"rejected",kind:"message",T:_s,oneof:"state"}]));class ds extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ds).fromBinary(e,t)}static fromJson(e,t){return(new ds).fromJson(e,t)}static fromJsonString(e,t){return(new ds).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ds,e,t)}}ds.runtime=r.proto3,ds.typeName="agent.v1.ContextInjectionQueued",ds.fields=r.proto3.util.newFieldList((()=>[]));class ps extends r.Message{constructor(e){super(),this.step=0,this.deliveryBatchId="",this.deliveredAtMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ps).fromBinary(e,t)}static fromJson(e,t){return(new ps).fromJson(e,t)}static fromJsonString(e,t){return(new ps).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ps,e,t)}}ps.runtime=r.proto3,ps.typeName="agent.v1.ContextInjectionDelivered",ps.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step",kind:"scalar",T:5},{no:2,name:"delivery_batch_id",kind:"scalar",T:9},{no:3,name:"delivered_at_ms",kind:"scalar",T:3}]));class fs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fs).fromBinary(e,t)}static fromJson(e,t){return(new fs).fromJson(e,t)}static fromJsonString(e,t){return(new fs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fs,e,t)}}fs.runtime=r.proto3,fs.typeName="agent.v1.ContextInjectionQueuedForNextTurn",fs.fields=r.proto3.util.newFieldList((()=>[]));class gs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gs).fromBinary(e,t)}static fromJson(e,t){return(new gs).fromJson(e,t)}static fromJsonString(e,t){return(new gs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gs,e,t)}}gs.runtime=r.proto3,gs.typeName="agent.v1.ContextInjectionCancelled",gs.fields=r.proto3.util.newFieldList((()=>[]));class _s extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _s).fromBinary(e,t)}static fromJson(e,t){return(new _s).fromJson(e,t)}static fromJsonString(e,t){return(new _s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_s,e,t)}}_s.runtime=r.proto3,_s.typeName="agent.v1.ContextInjectionRejected",_s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class hs extends r.Message{constructor(e){super(),this.id="",this.label="",this.source=tr.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hs).fromBinary(e,t)}static fromJson(e,t){return(new hs).fromJson(e,t)}static fromJsonString(e,t){return(new hs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hs,e,t)}}hs.runtime=r.proto3,hs.typeName="agent.v1.SubmittedCustomMode",hs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:5,name:"source",kind:"enum",T:r.proto3.getEnumType(tr)},{no:6,name:"source_path",kind:"scalar",T:9,opt:!0},{no:7,name:"source_hash",kind:"scalar",T:9,opt:!0},{no:10,name:"managed_skill_id",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"plugin_snapshot_token",kind:"scalar",T:9,opt:!0}]));class Ts extends r.Message{constructor(e){super(),this.id="",this.label="",this.source=tr.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ts).fromBinary(e,t)}static fromJson(e,t){return(new Ts).fromJson(e,t)}static fromJsonString(e,t){return(new Ts).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ts,e,t)}}Ts.runtime=r.proto3,Ts.typeName="agent.v1.CustomModeDescriptor",Ts.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"icon",kind:"scalar",T:9,opt:!0},{no:5,name:"color",kind:"scalar",T:9,opt:!0},{no:6,name:"source",kind:"enum",T:r.proto3.getEnumType(tr)},{no:7,name:"source_path",kind:"scalar",T:9,opt:!0},{no:8,name:"source_hash",kind:"scalar",T:9,opt:!0},{no:9,name:"managed_skill_id",kind:"scalar",T:9,opt:!0},{no:10,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_snapshot_token",kind:"scalar",T:9,opt:!0}]));class ys extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ys).fromBinary(e,t)}static fromJson(e,t){return(new ys).fromJson(e,t)}static fromJsonString(e,t){return(new ys).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ys,e,t)}}ys.runtime=r.proto3,ys.typeName="agent.v1.SubmittedExitedCustomMode",ys.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class Ss extends r.Message{constructor(e){super(),this.nextMode=Yn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ss).fromBinary(e,t)}static fromJson(e,t){return(new Ss).fromJson(e,t)}static fromJsonString(e,t){return(new Ss).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ss,e,t)}}Ss.runtime=r.proto3,Ss.typeName="agent.v1.CustomModeExitIntent",Ss.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"next_mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:2,name:"exited_mode",kind:"message",T:ys}]));class ws extends r.Message{constructor(e){super(),this.intent={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ws).fromBinary(e,t)}static fromJson(e,t){return(new ws).fromJson(e,t)}static fromJsonString(e,t){return(new ws).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ws,e,t)}}ws.runtime=r.proto3,ws.typeName="agent.v1.CustomModeIntent",ws.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enter",kind:"message",T:hs,oneof:"intent"},{no:2,name:"exit",kind:"message",T:Ss,oneof:"intent"}]));class ks extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ks).fromBinary(e,t)}static fromJson(e,t){return(new ks).fromJson(e,t)}static fromJsonString(e,t){return(new ks).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ks,e,t)}}ks.runtime=r.proto3,ks.typeName="agent.v1.CancelAction",ks.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:3,name:"interrupted_pending_tool_call_resolutions",kind:"message",T:Kr,opt:!0}]));class Js extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Js).fromBinary(e,t)}static fromJson(e,t){return(new Js).fromJson(e,t)}static fromJsonString(e,t){return(new Js).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Js,e,t)}}Js.runtime=r.proto3,Js.typeName="agent.v1.ResumeAction",Js.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"request_context",kind:"message",T:lr.bb}]));class vs extends r.Message{constructor(e){super(),this.originalToolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vs).fromBinary(e,t)}static fromJson(e,t){return(new vs).fromJson(e,t)}static fromJsonString(e,t){return(new vs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vs,e,t)}}vs.runtime=r.proto3,vs.typeName="agent.v1.AsyncAskQuestionCompletionAction",vs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"original_tool_call_id",kind:"scalar",T:9},{no:2,name:"original_args",kind:"message",T:me.ju},{no:3,name:"result",kind:"message",T:me.tz}]));class Es extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Es).fromBinary(e,t)}static fromJson(e,t){return(new Es).fromJson(e,t)}static fromJsonString(e,t){return(new Es).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Es,e,t)}}Es.runtime=r.proto3,Es.typeName="agent.v1.SummarizeAction",Es.fields=r.proto3.util.newFieldList((()=>[]));class bs extends r.Message{constructor(e){super(),this.execId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bs).fromBinary(e,t)}static fromJson(e,t){return(new bs).fromJson(e,t)}static fromJsonString(e,t){return(new bs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bs,e,t)}}bs.runtime=r.proto3,bs.typeName="agent.v1.ShellCommandAction",bs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"message",T:Ls},{no:2,name:"exec_id",kind:"scalar",T:9}]));class js extends r.Message{constructor(e){super(),this.isSpec=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new js).fromBinary(e,t)}static fromJson(e,t){return(new js).fromJson(e,t)}static fromJsonString(e,t){return(new js).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(js,e,t)}}js.runtime=r.proto3,js.typeName="agent.v1.StartPlanAction",js.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:Ms},{no:2,name:"request_context",kind:"message",T:lr.bb},{no:3,name:"is_spec",kind:"scalar",T:8}]));class xs extends r.Message{constructor(e){super(),this.executionMode=Yn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xs).fromBinary(e,t)}static fromJson(e,t){return(new xs).fromJson(e,t)}static fromJsonString(e,t){return(new xs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xs,e,t)}}xs.runtime=r.proto3,xs.typeName="agent.v1.ExecutePlanAction",xs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_context",kind:"message",T:lr.bb},{no:2,name:"plan",kind:"message",T:Ds,opt:!0},{no:3,name:"plan_file_uri",kind:"scalar",T:9,opt:!0},{no:4,name:"plan_file_content",kind:"scalar",T:9,opt:!0},{no:5,name:"execution_mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:6,name:"kickoff_message_id",kind:"scalar",T:9,opt:!0},{no:7,name:"plan_id",kind:"scalar",T:9,opt:!0},{no:8,name:"plan_file_path",kind:"scalar",T:9,opt:!0}]));class Ns extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ns).fromBinary(e,t)}static fromJson(e,t){return(new Ns).fromJson(e,t)}static fromJsonString(e,t){return(new Ns).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ns,e,t)}}Ns.runtime=r.proto3,Ns.typeName="agent.v1.SubscriptionEventDisplay",Ns.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"display_label",kind:"scalar",T:9,opt:!0},{no:2,name:"resource_url",kind:"scalar",T:9,opt:!0},{no:3,name:"subscription_id",kind:"scalar",T:9,opt:!0}]));class Ps extends r.Message{constructor(e){super(),this.userId=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ps).fromBinary(e,t)}static fromJson(e,t){return(new Ps).fromJson(e,t)}static fromJsonString(e,t){return(new Ps).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ps,e,t)}}Ps.runtime=r.proto3,Ps.typeName="agent.v1.UserDisplayInfo",Ps.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:5},{no:2,name:"display_name",kind:"scalar",T:9,opt:!0},{no:3,name:"email",kind:"scalar",T:9,opt:!0},{no:4,name:"profile_picture_url",kind:"scalar",T:9,opt:!0}]));class Is extends r.Message{constructor(e){super(),this.planId="",this.planTitle="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Is).fromBinary(e,t)}static fromJson(e,t){return(new Is).fromJson(e,t)}static fromJsonString(e,t){return(new Is).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Is,e,t)}}Is.runtime=r.proto3,Is.typeName="agent.v1.ExecutePlanInfo",Is.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan_id",kind:"scalar",T:9},{no:2,name:"plan_title",kind:"scalar",T:9}]));class Bs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bs).fromBinary(e,t)}static fromJson(e,t){return(new Bs).fromJson(e,t)}static fromJsonString(e,t){return(new Bs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bs,e,t)}}Bs.runtime=r.proto3,Bs.typeName="agent.v1.ProjectDetails",Bs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9,opt:!0},{no:2,name:"subagent",kind:"message",T:qs,opt:!0},{no:3,name:"side_chat",kind:"message",T:Rs,opt:!0}]));class qs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qs).fromBinary(e,t)}static fromJson(e,t){return(new qs).fromJson(e,t)}static fromJsonString(e,t){return(new qs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qs,e,t)}}qs.runtime=r.proto3,qs.typeName="agent.v1.ProjectSubagentDetails",qs.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"store_dir",kind:"scalar",T:9,opt:!0}]));class Rs extends r.Message{constructor(e){super(),this.storeDir="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rs).fromBinary(e,t)}static fromJson(e,t){return(new Rs).fromJson(e,t)}static fromJsonString(e,t){return(new Rs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Rs,e,t)}}Rs.runtime=r.proto3,Rs.typeName="agent.v1.ProjectSideChatDetails",Rs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"store_dir",kind:"scalar",T:9}]));class Ms extends r.Message{constructor(e){super(),this.text="",this.messageId="",this.mode=Yn.UNSPECIFIED,this.conversationStateBlobId=new Uint8Array(0),this.hookAdditionalContexts=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ms).fromBinary(e,t)}static fromJson(e,t){return(new Ms).fromJson(e,t)}static fromJsonString(e,t){return(new Ms).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ms,e,t)}}Ms.runtime=r.proto3,Ms.typeName="agent.v1.UserMessage",Ms.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"message_id",kind:"scalar",T:9},{no:3,name:"selected_context",kind:"message",T:ur.xv,opt:!0},{no:4,name:"mode",kind:"enum",T:r.proto3.getEnumType(Yn)},{no:5,name:"is_simulated_msg",kind:"scalar",T:8,opt:!0},{no:6,name:"best_of_n_group_id",kind:"scalar",T:9,opt:!0},{no:7,name:"try_use_best_of_n_promotion",kind:"scalar",T:8,opt:!0},{no:8,name:"rich_text",kind:"scalar",T:9,opt:!0},{no:9,name:"simulated_msg_reason",kind:"enum",T:r.proto3.getEnumType(nr),opt:!0},{no:10,name:"conversation_state_blob_id",kind:"scalar",T:12},{no:11,name:"subagent_system_reminder",kind:"scalar",T:9,opt:!0},{no:13,name:"triggering_user_info",kind:"message",T:Fr,opt:!0},{no:14,name:"execute_plan_info",kind:"message",T:Is,opt:!0},{no:15,name:"simulated_message_metadata",kind:"message",T:Os,opt:!0},{no:16,name:"prompt_reference_id",kind:"scalar",T:9,opt:!0},{no:17,name:"thread_id",kind:"scalar",T:9,opt:!0},{no:18,name:"text_blob_id",kind:"scalar",T:12,opt:!0},{no:19,name:"rich_text_blob_id",kind:"scalar",T:12,opt:!0},{no:21,name:"hook_additional_contexts",kind:"message",T:ar.C,repeated:!0},{no:22,name:"custom_mode_intent",kind:"message",T:ws,opt:!0},{no:23,name:"project_details",kind:"message",T:Bs,opt:!0}]));class Os extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Os).fromBinary(e,t)}static fromJson(e,t){return(new Os).fromJson(e,t)}static fromJsonString(e,t){return(new Os).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Os,e,t)}}Os.runtime=r.proto3,Os.typeName="agent.v1.UserMessage.SimulatedMessageMetadata",Os.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9,opt:!0},{no:2,name:"task_id",kind:"scalar",T:9,opt:!0},{no:3,name:"fsd_finding_action",kind:"scalar",T:9,opt:!0},{no:4,name:"url",kind:"scalar",T:9,opt:!0},{no:5,name:"subscription_source",kind:"enum",T:r.proto3.getEnumType(rr),opt:!0},{no:6,name:"subscription_event_display",kind:"message",T:Ns,opt:!0}]));class Fs extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fs).fromBinary(e,t)}static fromJson(e,t){return(new Fs).fromJson(e,t)}static fromJsonString(e,t){return(new Fs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fs,e,t)}}Fs.runtime=r.proto3,Fs.typeName="agent.v1.AssistantMessage",Fs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class As extends r.Message{constructor(e){super(),this.text="",this.durationMs=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new As).fromBinary(e,t)}static fromJson(e,t){return(new As).fromJson(e,t)}static fromJsonString(e,t){return(new As).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(As,e,t)}}As.runtime=r.proto3,As.typeName="agent.v1.ThinkingMessage",As.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"duration_ms",kind:"scalar",T:13}]));class Ls extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ls).fromBinary(e,t)}static fromJson(e,t){return(new Ls).fromJson(e,t)}static fromJsonString(e,t){return(new Ls).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ls,e,t)}}Ls.runtime=r.proto3,Ls.typeName="agent.v1.ShellCommand",Ls.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9}]));class Cs extends r.Message{constructor(e){super(),this.stdout="",this.stderr="",this.exitCode=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cs).fromBinary(e,t)}static fromJson(e,t){return(new Cs).fromJson(e,t)}static fromJsonString(e,t){return(new Cs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Cs,e,t)}}Cs.runtime=r.proto3,Cs.typeName="agent.v1.ShellOutput",Cs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"scalar",T:9},{no:2,name:"stderr",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5}]));class Us extends r.Message{constructor(e){super(),this.turn={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Us).fromBinary(e,t)}static fromJson(e,t){return(new Us).fromJson(e,t)}static fromJsonString(e,t){return(new Us).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Us,e,t)}}Us.runtime=r.proto3,Us.typeName="agent.v1.ConversationTurn",Us.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"agent_conversation_turn",kind:"message",T:Ws,oneof:"turn"},{no:2,name:"shell_conversation_turn",kind:"message",T:zs,oneof:"turn"}]));class Ds extends r.Message{constructor(e){super(),this.plan="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ds).fromBinary(e,t)}static fromJson(e,t){return(new Ds).fromJson(e,t)}static fromJsonString(e,t){return(new Ds).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ds,e,t)}}Ds.runtime=r.proto3,Ds.typeName="agent.v1.ConversationPlan",Ds.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan",kind:"scalar",T:9}]));class Gs extends r.Message{constructor(e){super(),this.id="",this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gs).fromBinary(e,t)}static fromJson(e,t){return(new Gs).fromJson(e,t)}static fromJsonString(e,t){return(new Gs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Gs,e,t)}}Gs.runtime=r.proto3,Gs.typeName="agent.v1.PlanRegistryEntry",Gs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9}]));class Hs extends r.Message{constructor(e){super(),this.conversationId="",this.goalId="",this.objective="",this.status=Rn.UNSPECIFIED,this.idleContinuationsWithoutToolCalls=0,this.continuationCount=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hs).fromBinary(e,t)}static fromJson(e,t){return(new Hs).fromJson(e,t)}static fromJsonString(e,t){return(new Hs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Hs,e,t)}}Hs.runtime=r.proto3,Hs.typeName="agent.v1.GoalState",Hs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_id",kind:"scalar",T:9},{no:2,name:"goal_id",kind:"scalar",T:9},{no:3,name:"objective",kind:"scalar",T:9},{no:4,name:"status",kind:"enum",T:r.proto3.getEnumType(Rn)},{no:5,name:"idle_continuations_without_tool_calls",kind:"scalar",T:13},{no:6,name:"active_duration_ms",kind:"scalar",T:4,opt:!0},{no:7,name:"last_accrued_at_ms",kind:"scalar",T:4,opt:!0},{no:8,name:"continuation_count",kind:"scalar",T:13},{no:9,name:"agent_session_id",kind:"scalar",T:9,opt:!0}]));class Ks extends r.Message{constructor(e){super(),this.turn={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ks).fromBinary(e,t)}static fromJson(e,t){return(new Ks).fromJson(e,t)}static fromJsonString(e,t){return(new Ks).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ks,e,t)}}Ks.runtime=r.proto3,Ks.typeName="agent.v1.ConversationTurnStructure",Ks.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"agent_conversation_turn",kind:"message",T:Ys,oneof:"turn"},{no:2,name:"shell_conversation_turn",kind:"message",T:Vs,oneof:"turn"}]));class Ws extends r.Message{constructor(e){super(),this.steps=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ws).fromBinary(e,t)}static fromJson(e,t){return(new Ws).fromJson(e,t)}static fromJsonString(e,t){return(new Ws).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ws,e,t)}}Ws.runtime=r.proto3,Ws.typeName="agent.v1.AgentConversationTurn",Ws.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:Ms},{no:2,name:"steps",kind:"message",T:Mr,repeated:!0},{no:3,name:"request_id",kind:"scalar",T:9,opt:!0}]));class Ys extends r.Message{constructor(e){super(),this.userMessage=new Uint8Array(0),this.steps=[],this.sendMessageStepIndices=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ys).fromBinary(e,t)}static fromJson(e,t){return(new Ys).fromJson(e,t)}static fromJsonString(e,t){return(new Ys).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ys,e,t)}}Ys.runtime=r.proto3,Ys.typeName="agent.v1.AgentConversationTurnStructure",Ys.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"scalar",T:12},{no:2,name:"steps",kind:"scalar",T:12,repeated:!0},{no:3,name:"request_id",kind:"scalar",T:9,opt:!0},{no:4,name:"encrypted_model",kind:"scalar",T:9,opt:!0},{no:5,name:"dynamic_tool_count",kind:"scalar",T:13,opt:!0},{no:6,name:"send_message_step_indices",kind:"scalar",T:13,repeated:!0}]));class zs extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zs).fromBinary(e,t)}static fromJson(e,t){return(new zs).fromJson(e,t)}static fromJsonString(e,t){return(new zs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zs,e,t)}}zs.runtime=r.proto3,zs.typeName="agent.v1.ShellConversationTurn",zs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"message",T:Ls},{no:2,name:"shell_output",kind:"message",T:Cs}]));class Vs extends r.Message{constructor(e){super(),this.shellCommand=new Uint8Array(0),this.shellOutput=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vs).fromBinary(e,t)}static fromJson(e,t){return(new Vs).fromJson(e,t)}static fromJsonString(e,t){return(new Vs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vs,e,t)}}Vs.runtime=r.proto3,Vs.typeName="agent.v1.ShellConversationTurnStructure",Vs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_command",kind:"scalar",T:12},{no:2,name:"shell_output",kind:"scalar",T:12}]));class Qs extends r.Message{constructor(e){super(),this.summary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qs).fromBinary(e,t)}static fromJson(e,t){return(new Qs).fromJson(e,t)}static fromJsonString(e,t){return(new Qs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qs,e,t)}}Qs.runtime=r.proto3,Qs.typeName="agent.v1.ConversationSummary",Qs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class Xs extends r.Message{constructor(e){super(),this.summarizedMessages=[],this.summary="",this.windowTail=0,this.summaryMessage=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xs).fromBinary(e,t)}static fromJson(e,t){return(new Xs).fromJson(e,t)}static fromJsonString(e,t){return(new Xs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xs,e,t)}}Xs.runtime=r.proto3,Xs.typeName="agent.v1.ConversationSummaryArchive",Xs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summarized_messages",kind:"scalar",T:12,repeated:!0},{no:2,name:"summary",kind:"scalar",T:9},{no:3,name:"window_tail",kind:"scalar",T:13},{no:4,name:"summary_message",kind:"scalar",T:12}]));class $s extends r.Message{constructor(e){super(),this.id="",this.label="",this.estimatedTokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $s).fromBinary(e,t)}static fromJson(e,t){return(new $s).fromJson(e,t)}static fromJsonString(e,t){return(new $s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($s,e,t)}}$s.runtime=r.proto3,$s.typeName="agent.v1.PromptTokenBreakdownCategory",$s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"estimated_tokens",kind:"scalar",T:13},{no:4,name:"character_count",kind:"scalar",T:13,opt:!0}]));class Zs extends r.Message{constructor(e){super(),this.totalUsedTokens=0,this.maxTokens=0,this.categories=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zs).fromBinary(e,t)}static fromJson(e,t){return(new Zs).fromJson(e,t)}static fromJsonString(e,t){return(new Zs).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zs,e,t)}}Zs.runtime=r.proto3,Zs.typeName="agent.v1.PromptTokenBreakdownSnapshot",Zs.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"total_used_tokens",kind:"scalar",T:13},{no:2,name:"max_tokens",kind:"scalar",T:13},{no:3,name:"categories",kind:"message",T:$s,repeated:!0}]));class eo extends r.Message{constructor(e){super(),this.sourceType="",this.messageIndex=0,this.contentPath="",this.startOffset=0,this.endOffset=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new eo).fromBinary(e,t)}static fromJson(e,t){return(new eo).fromJson(e,t)}static fromJsonString(e,t){return(new eo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(eo,e,t)}}eo.runtime=r.proto3,eo.typeName="agent.v1.PromptContextSourceRef",eo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"source_type",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13},{no:4,name:"content_path",kind:"scalar",T:9},{no:5,name:"start_offset",kind:"scalar",T:13},{no:6,name:"end_offset",kind:"scalar",T:13}]));class to extends r.Message{constructor(e){super(),this.id="",this.kind="",this.label="",this.categoryId="",this.estimatedTokens=0,this.characterCount=0,this.contentAvailable=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new to).fromBinary(e,t)}static fromJson(e,t){return(new to).fromJson(e,t)}static fromJsonString(e,t){return(new to).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(to,e,t)}}to.runtime=r.proto3,to.typeName="agent.v1.PromptContextNode",to.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"parent_id",kind:"scalar",T:9,opt:!0},{no:3,name:"kind",kind:"scalar",T:9},{no:4,name:"label",kind:"scalar",T:9},{no:5,name:"category_id",kind:"scalar",T:9},{no:6,name:"estimated_tokens",kind:"scalar",T:13},{no:7,name:"character_count",kind:"scalar",T:13},{no:9,name:"content_available",kind:"scalar",T:8},{no:11,name:"source",kind:"message",T:eo,opt:!0},{no:12,name:"inline_content",kind:"scalar",T:9,opt:!0}]));class no extends r.Message{constructor(e){super(),this.schemaVersion=0,this.nodes=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new no).fromBinary(e,t)}static fromJson(e,t){return(new no).fromJson(e,t)}static fromJsonString(e,t){return(new no).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(no,e,t)}}no.runtime=r.proto3,no.typeName="agent.v1.PromptContextUsageTree",no.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"schema_version",kind:"scalar",T:13},{no:2,name:"nodes",kind:"message",T:to,repeated:!0}]));class ro extends r.Message{constructor(e){super(),this.rootPromptMessagesJson=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ro).fromBinary(e,t)}static fromJson(e,t){return(new ro).fromJson(e,t)}static fromJsonString(e,t){return(new ro).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ro,e,t)}}ro.runtime=r.proto3,ro.typeName="agent.v1.PromptContextUsageSnapshot",ro.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"prompt_context_usage_tree",kind:"message",T:no},{no:2,name:"root_prompt_messages_json",kind:"scalar",T:12,repeated:!0}]));class so extends r.Message{constructor(e){super(),this.usedTokens=0,this.maxTokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new so).fromBinary(e,t)}static fromJson(e,t){return(new so).fromJson(e,t)}static fromJsonString(e,t){return(new so).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(so,e,t)}}so.runtime=r.proto3,so.typeName="agent.v1.ConversationTokenDetails",so.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"used_tokens",kind:"scalar",T:13},{no:2,name:"max_tokens",kind:"scalar",T:13},{no:3,name:"breakdown",kind:"message",T:Zs,opt:!0},{no:4,name:"prompt_context_usage_tree",kind:"message",T:no,opt:!0},{no:5,name:"prompt_context_usage_snapshot_blob_id",kind:"scalar",T:12,opt:!0}]));class oo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oo).fromBinary(e,t)}static fromJson(e,t){return(new oo).fromJson(e,t)}static fromJsonString(e,t){return(new oo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(oo,e,t)}}oo.runtime=r.proto3,oo.typeName="agent.v1.FileState",oo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9,opt:!0},{no:2,name:"initial_content",kind:"scalar",T:9,opt:!0}]));class io extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new io).fromBinary(e,t)}static fromJson(e,t){return(new io).fromJson(e,t)}static fromJsonString(e,t){return(new io).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(io,e,t)}}io.runtime=r.proto3,io.typeName="agent.v1.FileStateStructure",io.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:12,opt:!0},{no:2,name:"initial_content",kind:"scalar",T:12,opt:!0}]));class ao extends r.Message{constructor(e){super(),this.durationMs=r.protoInt64.zero,this.timestampMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ao).fromBinary(e,t)}static fromJson(e,t){return(new ao).fromJson(e,t)}static fromJsonString(e,t){return(new ao).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ao,e,t)}}ao.runtime=r.proto3,ao.typeName="agent.v1.StepTiming",ao.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"duration_ms",kind:"scalar",T:4},{no:2,name:"timestamp_ms",kind:"scalar",T:4}]));class lo extends r.Message{constructor(e){super(),this.rootPromptMessagesJson=[],this.turns=[],this.todos=[],this.pendingToolCalls=[],this.fileStates={},this.summaryArchives=[],this.plans={},this.communicateUpdateHistory=[],this.communicateUpdateStatesByParentToolCallId={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lo).fromBinary(e,t)}static fromJson(e,t){return(new lo).fromJson(e,t)}static fromJsonString(e,t){return(new lo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(lo,e,t)}}lo.runtime=r.proto3,lo.typeName="agent.v1.ConversationState",lo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"root_prompt_messages_json",kind:"scalar",T:9,repeated:!0},{no:8,name:"turns",kind:"message",T:Us,repeated:!0},{no:3,name:"todos",kind:"message",T:b.kW,repeated:!0},{no:4,name:"pending_tool_calls",kind:"scalar",T:9,repeated:!0},{no:5,name:"token_details",kind:"message",T:so},{no:6,name:"summary",kind:"message",T:Qs,opt:!0},{no:7,name:"plan",kind:"message",T:Ds,opt:!0},{no:9,name:"summary_archive",kind:"message",T:Xs,opt:!0},{no:10,name:"file_states",kind:"map",K:9,V:{kind:"message",T:oo}},{no:11,name:"summary_archives",kind:"message",T:Xs,repeated:!0},{no:12,name:"plans",kind:"map",K:9,V:{kind:"message",T:Gs}},{no:13,name:"communicate_update_history",kind:"message",T:uo,repeated:!0},{no:14,name:"communicate_update_final_summary",kind:"scalar",T:9,opt:!0},{no:15,name:"communicate_update_completed_subtitle",kind:"scalar",T:9,opt:!0},{no:16,name:"communicate_update_states_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:mo}}]));class uo extends r.Message{constructor(e){super(),this.step="",this.messageIndex=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new uo).fromBinary(e,t)}static fromJson(e,t){return(new uo).fromJson(e,t)}static fromJsonString(e,t){return(new uo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(uo,e,t)}}uo.runtime=r.proto3,uo.typeName="agent.v1.CommunicateUpdateHistoryEntry",uo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step",kind:"scalar",T:9},{no:3,name:"message_index",kind:"scalar",T:13}]));class mo extends r.Message{constructor(e){super(),this.history=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mo).fromBinary(e,t)}static fromJson(e,t){return(new mo).fromJson(e,t)}static fromJsonString(e,t){return(new mo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mo,e,t)}}mo.runtime=r.proto3,mo.typeName="agent.v1.CommunicateUpdateTurnState",mo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"history",kind:"message",T:uo,repeated:!0},{no:2,name:"final_summary",kind:"scalar",T:9,opt:!0},{no:3,name:"completed_subtitle",kind:"scalar",T:9,opt:!0}]));class co extends r.Message{constructor(e){super(),this.createdTimestampMs=r.protoInt64.zero,this.lastUsedTimestampMs=r.protoInt64.zero,this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new co).fromBinary(e,t)}static fromJson(e,t){return(new co).fromJson(e,t)}static fromJsonString(e,t){return(new co).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(co,e,t)}}co.runtime=r.proto3,co.typeName="agent.v1.SubagentPersistedState",co.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_state",kind:"message",T:go},{no:2,name:"created_timestamp_ms",kind:"scalar",T:4},{no:3,name:"last_used_timestamp_ms",kind:"scalar",T:4},{no:4,name:"subagent_type",kind:"message",T:s._L},{no:5,name:"model_id",kind:"scalar",T:9,opt:!0},{no:6,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:7,name:"cloud_subagent",kind:"message",T:po,opt:!0},{no:8,name:"first_class_bc_id",kind:"scalar",T:9,opt:!0},{no:9,name:"cloud_requested_environment_build_id",kind:"scalar",T:9,opt:!0},{no:10,name:"machine",kind:"message",T:dr,opt:!0}]));class po extends r.Message{constructor(e){super(),this.bcId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new po).fromBinary(e,t)}static fromJson(e,t){return(new po).fromJson(e,t)}static fromJsonString(e,t){return(new po).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(po,e,t)}}po.runtime=r.proto3,po.typeName="agent.v1.CloudSubagentReference",po.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"bc_id",kind:"scalar",T:9},{no:2,name:"transcript_path",kind:"scalar",T:9,opt:!0}]));class fo extends r.Message{constructor(e){super(),this.repoPath="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fo).fromBinary(e,t)}static fromJson(e,t){return(new fo).fromJson(e,t)}static fromJsonString(e,t){return(new fo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fo,e,t)}}fo.runtime=r.proto3,fo.typeName="agent.v1.TrackedGitRepo",fo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"repo_path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class go extends r.Message{constructor(e){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={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new go).fromBinary(e,t)}static fromJson(e,t){return(new go).fromJson(e,t)}static fromJsonString(e,t){return(new go).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(go,e,t)}}go.runtime=r.proto3,go.typeName="agent.v1.ConversationStateStructure",go.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"root_prompt_messages_json",kind:"scalar",T:12,repeated:!0},{no:8,name:"turns",kind:"scalar",T:12,repeated:!0},{no:3,name:"todos",kind:"scalar",T:12,repeated:!0},{no:4,name:"pending_tool_calls",kind:"scalar",T:9,repeated:!0},{no:5,name:"token_details",kind:"message",T:so},{no:6,name:"summary",kind:"scalar",T:12,opt:!0},{no:7,name:"plan",kind:"scalar",T:12,opt:!0},{no:9,name:"previous_workspace_uris",kind:"scalar",T:9,repeated:!0},{no:10,name:"mode",kind:"enum",T:r.proto3.getEnumType(Yn),opt:!0},{no:11,name:"summary_archive",kind:"scalar",T:12,opt:!0},{no:12,name:"file_states",kind:"map",K:9,V:{kind:"scalar",T:12}},{no:15,name:"file_states_v2",kind:"map",K:9,V:{kind:"message",T:io}},{no:13,name:"summary_archives",kind:"scalar",T:12,repeated:!0},{no:14,name:"turn_timings",kind:"message",T:ao,repeated:!0},{no:16,name:"subagent_states",kind:"map",K:9,V:{kind:"message",T:co}},{no:17,name:"self_summary_count",kind:"scalar",T:13},{no:18,name:"read_paths",kind:"scalar",T:9,repeated:!0},{no:19,name:"active_branch_name",kind:"scalar",T:9,opt:!0},{no:20,name:"plans",kind:"map",K:9,V:{kind:"message",T:Gs}},{no:21,name:"tracked_git_repo_branches",kind:"message",T:fo,repeated:!0},{no:22,name:"agent_type",kind:"scalar",T:9,opt:!0},{no:23,name:"communicate_update_history",kind:"message",T:uo,repeated:!0},{no:24,name:"subagent_threads",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:25,name:"communicate_update_final_summary",kind:"scalar",T:9,opt:!0},{no:28,name:"communicate_update_completed_subtitle",kind:"scalar",T:9,opt:!0},{no:29,name:"communicate_update_states_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:mo}},{no:30,name:"subagent_runs_by_parent_tool_call_id",kind:"map",K:9,V:{kind:"message",T:Cr}},{no:26,name:"conversation_started_timestamp_ms",kind:"scalar",T:4,opt:!0},{no:27,name:"conversation_started_time_zone",kind:"scalar",T:9,opt:!0},{no:31,name:"subagent_state_refs",kind:"map",K:9,V:{kind:"scalar",T:12}},{no:32,name:"goal_state",kind:"message",T:Hs,opt:!0},{no:33,name:"is_root_project_conversation",kind:"scalar",T:8,opt:!0}]));class _o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _o).fromBinary(e,t)}static fromJson(e,t){return(new _o).fromJson(e,t)}static fromJsonString(e,t){return(new _o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_o,e,t)}}_o.runtime=r.proto3,_o.typeName="agent.v1.ThinkingDetails",_o.fields=r.proto3.util.newFieldList((()=>[]));class ho extends r.Message{constructor(e){super(),this.apiKey="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ho).fromBinary(e,t)}static fromJson(e,t){return(new ho).fromJson(e,t)}static fromJsonString(e,t){return(new ho).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ho,e,t)}}ho.runtime=r.proto3,ho.typeName="agent.v1.ApiKeyCredentials",ho.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9,opt:!0}]));class To extends r.Message{constructor(e){super(),this.apiKey="",this.baseUrl="",this.deployment="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new To).fromBinary(e,t)}static fromJson(e,t){return(new To).fromJson(e,t)}static fromJsonString(e,t){return(new To).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(To,e,t)}}To.runtime=r.proto3,To.typeName="agent.v1.AzureCredentials",To.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9},{no:3,name:"deployment",kind:"scalar",T:9}]));class yo extends r.Message{constructor(e){super(),this.accessKey="",this.secretKey="",this.region="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yo).fromBinary(e,t)}static fromJson(e,t){return(new yo).fromJson(e,t)}static fromJsonString(e,t){return(new yo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yo,e,t)}}yo.runtime=r.proto3,yo.typeName="agent.v1.BedrockCredentials",yo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"access_key",kind:"scalar",T:9},{no:2,name:"secret_key",kind:"scalar",T:9},{no:3,name:"region",kind:"scalar",T:9},{no:4,name:"session_token",kind:"scalar",T:9,opt:!0}]));class So extends r.Message{constructor(e){super(),this.modelId="",this.displayModelId="",this.displayName="",this.displayNameShort="",this.aliases=[],this.credentials={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new So).fromBinary(e,t)}static fromJson(e,t){return(new So).fromJson(e,t)}static fromJsonString(e,t){return(new So).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(So,e,t)}}So.runtime=r.proto3,So.typeName="agent.v1.ModelDetails",So.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:3,name:"display_model_id",kind:"scalar",T:9},{no:4,name:"display_name",kind:"scalar",T:9},{no:5,name:"display_name_short",kind:"scalar",T:9},{no:6,name:"aliases",kind:"scalar",T:9,repeated:!0},{no:2,name:"thinking_details",kind:"message",T:_o,opt:!0},{no:7,name:"max_mode",kind:"scalar",T:8,opt:!0},{no:8,name:"api_key_credentials",kind:"message",T:ho,oneof:"credentials"},{no:9,name:"azure_credentials",kind:"message",T:To,oneof:"credentials"},{no:10,name:"bedrock_credentials",kind:"message",T:yo,oneof:"credentials"}]));class wo extends r.Message{constructor(e){super(),this.modelId="",this.maxMode=!1,this.parameters=[],this.credentials={case:void 0},this.builtInModel=!1,this.isVariantStringRepresentation=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wo).fromBinary(e,t)}static fromJson(e,t){return(new wo).fromJson(e,t)}static fromJsonString(e,t){return(new wo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wo,e,t)}}wo.runtime=r.proto3,wo.typeName="agent.v1.RequestedModel",wo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:2,name:"max_mode",kind:"scalar",T:8},{no:3,name:"parameters",kind:"message",T:ko,repeated:!0},{no:4,name:"api_key_credentials",kind:"message",T:ho,oneof:"credentials"},{no:5,name:"azure_credentials",kind:"message",T:To,oneof:"credentials"},{no:6,name:"bedrock_credentials",kind:"message",T:yo,oneof:"credentials"},{no:7,name:"built_in_model",kind:"scalar",T:8},{no:8,name:"is_variant_string_representation",kind:"scalar",T:8}]));class ko extends r.Message{constructor(e){super(),this.id="",this.value="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ko).fromBinary(e,t)}static fromJson(e,t){return(new ko).fromJson(e,t)}static fromJsonString(e,t){return(new ko).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ko,e,t)}}ko.runtime=r.proto3,ko.typeName="agent.v1.RequestedModel.ModelParameterValue",ko.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class Jo extends r.Message{constructor(e){super(),this.subagentType="",this.selection={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jo).fromBinary(e,t)}static fromJson(e,t){return(new Jo).fromJson(e,t)}static fromJsonString(e,t){return(new Jo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Jo,e,t)}}Jo.runtime=r.proto3,Jo.typeName="agent.v1.SubagentModelOverride",Jo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_type",kind:"scalar",T:9},{no:2,name:"model",kind:"message",T:wo,oneof:"selection"},{no:3,name:"inherit",kind:"scalar",T:8,oneof:"selection"},{no:4,name:"disabled",kind:"scalar",T:8,oneof:"selection"}]));class vo extends r.Message{constructor(e){super(),this.id=new Uint8Array(0),this.value=new Uint8Array(0),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vo).fromBinary(e,t)}static fromJson(e,t){return(new vo).fromJson(e,t)}static fromJsonString(e,t){return(new vo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vo,e,t)}}vo.runtime=r.proto3,vo.typeName="agent.v1.PreFetchedBlob",vo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:12},{no:2,name:"value",kind:"scalar",T:12}]));class Eo extends r.Message{constructor(e){super(),this.selectedSubagentModels=[],this.selectedSubagentModelDetails=[],this.preFetchedBlobs=[],this.subagentModelOverrides=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Eo).fromBinary(e,t)}static fromJson(e,t){return(new Eo).fromJson(e,t)}static fromJsonString(e,t){return(new Eo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Eo,e,t)}}Eo.runtime=r.proto3,Eo.typeName="agent.v1.AgentRunRequest",Eo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"conversation_state",kind:"message",T:go},{no:2,name:"action",kind:"message",T:Or},{no:3,name:"model_details",kind:"message",T:So},{no:9,name:"requested_model",kind:"message",T:wo,opt:!0},{no:4,name:"mcp_tools",kind:"message",T:mr.Or},{no:5,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"mcp_file_system_options",kind:"message",T:mr.Is,opt:!0},{no:7,name:"skill_options",kind:"message",T:lr.uw,opt:!0},{no:8,name:"custom_system_prompt",kind:"scalar",T:9,opt:!0},{no:10,name:"suggest_next_prompt",kind:"scalar",T:8,opt:!0},{no:11,name:"subagent_type_name",kind:"scalar",T:9,opt:!0},{no:12,name:"exclude_workspace_context",kind:"scalar",T:8,opt:!0},{no:13,name:"harness",kind:"scalar",T:9,opt:!0},{no:14,name:"selected_subagent_models",kind:"message",T:wo,repeated:!0},{no:15,name:"selected_subagent_model_details",kind:"message",T:So,repeated:!0},{no:16,name:"conversation_group_id",kind:"scalar",T:9,opt:!0},{no:17,name:"pre_fetched_blobs",kind:"message",T:vo,repeated:!0},{no:18,name:"dev_raw_model_slug",kind:"scalar",T:9,opt:!0},{no:19,name:"client_supports_inline_images",kind:"scalar",T:8,opt:!0},{no:20,name:"subagent_model_overrides",kind:"message",T:Jo,repeated:!0},{no:21,name:"can_create_cloud_subagents",kind:"scalar",T:8,opt:!0},{no:22,name:"suppress_subagent_progress_update_tool",kind:"scalar",T:8,opt:!0},{no:23,name:"client_supports_send_to_user",kind:"scalar",T:8,opt:!0},{no:24,name:"computer_use_coordinate_mode",kind:"scalar",T:9,opt:!0},{no:25,name:"run_id",kind:"scalar",T:9,opt:!0},{no:26,name:"agent_session_id",kind:"scalar",T:9,opt:!0},{no:27,name:"client_supports_prompt_context_usage_rpc",kind:"scalar",T:8,opt:!0},{no:28,name:"client_supports_routed_model_update",kind:"scalar",T:8,opt:!0}]));class bo extends r.Message{constructor(e){super(),this.text="",this.isServerNotice=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bo).fromBinary(e,t)}static fromJson(e,t){return(new bo).fromJson(e,t)}static fromJsonString(e,t){return(new bo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bo,e,t)}}bo.runtime=r.proto3,bo.typeName="agent.v1.TextDeltaUpdate",bo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"is_server_notice",kind:"scalar",T:8}]));class jo extends r.Message{constructor(e){super(),this.displayName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jo).fromBinary(e,t)}static fromJson(e,t){return(new jo).fromJson(e,t)}static fromJsonString(e,t){return(new jo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(jo,e,t)}}jo.runtime=r.proto3,jo.typeName="agent.v1.RoutedModelUpdate",jo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"display_name",kind:"scalar",T:9}]));class xo extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xo).fromBinary(e,t)}static fromJson(e,t){return(new xo).fromJson(e,t)}static fromJsonString(e,t){return(new xo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xo,e,t)}}xo.runtime=r.proto3,xo.typeName="agent.v1.ToolCallStartedUpdate",xo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:xr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class No extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new No).fromBinary(e,t)}static fromJson(e,t){return(new No).fromJson(e,t)}static fromJsonString(e,t){return(new No).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(No,e,t)}}No.runtime=r.proto3,No.typeName="agent.v1.ToolCallCompletedUpdate",No.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:xr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class Po extends r.Message{constructor(e){super(),this.callId="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Po).fromBinary(e,t)}static fromJson(e,t){return(new Po).fromJson(e,t)}static fromJsonString(e,t){return(new Po).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Po,e,t)}}Po.runtime=r.proto3,Po.typeName="agent.v1.ToolCallDeltaUpdate",Po.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call_delta",kind:"message",T:Rr},{no:3,name:"model_call_id",kind:"scalar",T:9}]));class Io extends r.Message{constructor(e){super(),this.callId="",this.argsTextDelta="",this.modelCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Io).fromBinary(e,t)}static fromJson(e,t){return(new Io).fromJson(e,t)}static fromJsonString(e,t){return(new Io).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Io,e,t)}}Io.runtime=r.proto3,Io.typeName="agent.v1.PartialToolCallUpdate",Io.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"call_id",kind:"scalar",T:9},{no:2,name:"tool_call",kind:"message",T:xr},{no:3,name:"args_text_delta",kind:"scalar",T:9},{no:4,name:"model_call_id",kind:"scalar",T:9}]));class Bo extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bo).fromBinary(e,t)}static fromJson(e,t){return(new Bo).fromJson(e,t)}static fromJsonString(e,t){return(new Bo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Bo,e,t)}}Bo.runtime=r.proto3,Bo.typeName="agent.v1.ThinkingDeltaUpdate",Bo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"thinking_style",kind:"enum",T:r.proto3.getEnumType(sr),opt:!0}]));class qo extends r.Message{constructor(e){super(),this.thinkingDurationMs=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qo).fromBinary(e,t)}static fromJson(e,t){return(new qo).fromJson(e,t)}static fromJsonString(e,t){return(new qo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(qo,e,t)}}qo.runtime=r.proto3,qo.typeName="agent.v1.ThinkingCompletedUpdate",qo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"thinking_duration_ms",kind:"scalar",T:5}]));class Ro extends r.Message{constructor(e){super(),this.tokens=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ro).fromBinary(e,t)}static fromJson(e,t){return(new Ro).fromJson(e,t)}static fromJsonString(e,t){return(new Ro).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ro,e,t)}}Ro.runtime=r.proto3,Ro.typeName="agent.v1.TokenDeltaUpdate",Ro.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tokens",kind:"scalar",T:5}]));class Mo extends r.Message{constructor(e){super(),this.summary="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mo).fromBinary(e,t)}static fromJson(e,t){return(new Mo).fromJson(e,t)}static fromJsonString(e,t){return(new Mo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Mo,e,t)}}Mo.runtime=r.proto3,Mo.typeName="agent.v1.SummaryUpdate",Mo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class Oo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oo).fromBinary(e,t)}static fromJson(e,t){return(new Oo).fromJson(e,t)}static fromJsonString(e,t){return(new Oo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Oo,e,t)}}Oo.runtime=r.proto3,Oo.typeName="agent.v1.SummaryStartedUpdate",Oo.fields=r.proto3.util.newFieldList((()=>[]));class Fo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fo).fromBinary(e,t)}static fromJson(e,t){return(new Fo).fromJson(e,t)}static fromJsonString(e,t){return(new Fo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Fo,e,t)}}Fo.runtime=r.proto3,Fo.typeName="agent.v1.HeartbeatUpdate",Fo.fields=r.proto3.util.newFieldList((()=>[]));class Ao extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ao).fromBinary(e,t)}static fromJson(e,t){return(new Ao).fromJson(e,t)}static fromJsonString(e,t){return(new Ao).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ao,e,t)}}Ao.runtime=r.proto3,Ao.typeName="agent.v1.SummaryCompletedUpdate",Ao.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"hook_message",kind:"scalar",T:9,opt:!0}]));class Lo extends r.Message{constructor(e){super(),this.event={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lo).fromBinary(e,t)}static fromJson(e,t){return(new Lo).fromJson(e,t)}static fromJsonString(e,t){return(new Lo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Lo,e,t)}}Lo.runtime=r.proto3,Lo.typeName="agent.v1.ShellOutputDeltaUpdate",Lo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:o.o0,oneof:"event"},{no:2,name:"stderr",kind:"message",T:o.Db,oneof:"event"},{no:3,name:"exit",kind:"message",T:o.vb,oneof:"event"},{no:4,name:"start",kind:"message",T:o.tD,oneof:"event"}]));class Co extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Co).fromBinary(e,t)}static fromJson(e,t){return(new Co).fromJson(e,t)}static fromJsonString(e,t){return(new Co).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Co,e,t)}}Co.runtime=r.proto3,Co.typeName="agent.v1.TurnEndedUpdate",Co.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:2,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:3,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:4,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0},{no:5,name:"reasoning_tokens",kind:"scalar",T:3,opt:!0}]));class Uo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Uo).fromBinary(e,t)}static fromJson(e,t){return(new Uo).fromJson(e,t)}static fromJsonString(e,t){return(new Uo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Uo,e,t)}}Uo.runtime=r.proto3,Uo.typeName="agent.v1.UserMessageAppendedUpdate",Uo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"message",T:Ms}]));class Do extends r.Message{constructor(e){super(),this.stepId=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Do).fromBinary(e,t)}static fromJson(e,t){return(new Do).fromJson(e,t)}static fromJsonString(e,t){return(new Do).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Do,e,t)}}Do.runtime=r.proto3,Do.typeName="agent.v1.StepStartedUpdate",Do.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step_id",kind:"scalar",T:4}]));class Go extends r.Message{constructor(e){super(),this.stepId=r.protoInt64.zero,this.stepDurationMs=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Go).fromBinary(e,t)}static fromJson(e,t){return(new Go).fromJson(e,t)}static fromJsonString(e,t){return(new Go).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Go,e,t)}}Go.runtime=r.proto3,Go.typeName="agent.v1.StepCompletedUpdate",Go.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"step_id",kind:"scalar",T:4},{no:2,name:"step_duration_ms",kind:"scalar",T:3}]));class Ho extends r.Message{constructor(e){super(),this.suggestion="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ho).fromBinary(e,t)}static fromJson(e,t){return(new Ho).fromJson(e,t)}static fromJsonString(e,t){return(new Ho).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ho,e,t)}}Ho.runtime=r.proto3,Ho.typeName="agent.v1.PromptSuggestionUpdate",Ho.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"suggestion",kind:"scalar",T:9}]));class Ko extends r.Message{constructor(e){super(),this.path="",this.branchName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ko).fromBinary(e,t)}static fromJson(e,t){return(new Ko).fromJson(e,t)}static fromJsonString(e,t){return(new Ko).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ko,e,t)}}Ko.runtime=r.proto3,Ko.typeName="agent.v1.ActiveBranchChange",Ko.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9}]));class Wo extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wo).fromBinary(e,t)}static fromJson(e,t){return(new Wo).fromJson(e,t)}static fromJsonString(e,t){return(new Wo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Wo,e,t)}}Wo.runtime=r.proto3,Wo.typeName="agent.v1.FeedbackRequestCategory",Wo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class Yo extends r.Message{constructor(e){super(),this.id="",this.prompt="",this.categories=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yo).fromBinary(e,t)}static fromJson(e,t){return(new Yo).fromJson(e,t)}static fromJsonString(e,t){return(new Yo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Yo,e,t)}}Yo.runtime=r.proto3,Yo.typeName="agent.v1.FeedbackRequestCategoryGroup",Yo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"categories",kind:"message",T:Wo,repeated:!0}]));class zo extends r.Message{constructor(e){super(),this.requestId="",this.categories=[],this.categoryGroups=[],this.showFormImmediately=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zo).fromBinary(e,t)}static fromJson(e,t){return(new zo).fromJson(e,t)}static fromJsonString(e,t){return(new zo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(zo,e,t)}}zo.runtime=r.proto3,zo.typeName="agent.v1.FeedbackRequestUpdate",zo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"canonical_model_name",kind:"scalar",T:9,opt:!0},{no:3,name:"categories",kind:"message",T:Wo,repeated:!0},{no:4,name:"category_groups",kind:"message",T:Yo,repeated:!0},{no:5,name:"show_form_immediately",kind:"scalar",T:8},{no:6,name:"title",kind:"scalar",T:9,opt:!0},{no:7,name:"negative_title",kind:"scalar",T:9,opt:!0},{no:8,name:"comment_placeholder",kind:"scalar",T:9,opt:!0}]));class Vo extends r.Message{constructor(e){super(),this.displayOrder=or.UNSPECIFIED,this.parentInvocationId="",this.alternateInvocationId="",this.parentResponse="",this.comparisonConfigId="",this.alternateModelId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vo).fromBinary(e,t)}static fromJson(e,t){return(new Vo).fromJson(e,t)}static fromJsonString(e,t){return(new Vo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Vo,e,t)}}Vo.runtime=r.proto3,Vo.typeName="agent.v1.ResponseComparisonStarted",Vo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"display_order",kind:"enum",T:r.proto3.getEnumType(or)},{no:2,name:"parent_invocation_id",kind:"scalar",T:9},{no:3,name:"alternate_invocation_id",kind:"scalar",T:9},{no:4,name:"parent_response",kind:"scalar",T:9},{no:5,name:"comparison_config_id",kind:"scalar",T:9},{no:6,name:"alternate_model_id",kind:"scalar",T:9}]));class Qo extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qo).fromBinary(e,t)}static fromJson(e,t){return(new Qo).fromJson(e,t)}static fromJsonString(e,t){return(new Qo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Qo,e,t)}}Qo.runtime=r.proto3,Qo.typeName="agent.v1.ResponseComparisonTextDelta",Qo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Xo extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xo).fromBinary(e,t)}static fromJson(e,t){return(new Xo).fromJson(e,t)}static fromJsonString(e,t){return(new Xo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Xo,e,t)}}Xo.runtime=r.proto3,Xo.typeName="agent.v1.ResponseComparisonCompleted",Xo.fields=r.proto3.util.newFieldList((()=>[]));class $o extends r.Message{constructor(e){super(),this.reason=ir.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $o).fromBinary(e,t)}static fromJson(e,t){return(new $o).fromJson(e,t)}static fromJsonString(e,t){return(new $o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals($o,e,t)}}$o.runtime=r.proto3,$o.typeName="agent.v1.ResponseComparisonSkipped",$o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"enum",T:r.proto3.getEnumType(ir)}]));class Zo extends r.Message{constructor(e){super(),this.comparisonId="",this.event={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zo).fromBinary(e,t)}static fromJson(e,t){return(new Zo).fromJson(e,t)}static fromJsonString(e,t){return(new Zo).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Zo,e,t)}}Zo.runtime=r.proto3,Zo.typeName="agent.v1.ResponseComparisonUpdate",Zo.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"comparison_id",kind:"scalar",T:9},{no:2,name:"started",kind:"message",T:Vo,oneof:"event"},{no:3,name:"text_delta",kind:"message",T:Qo,oneof:"event"},{no:4,name:"completed",kind:"message",T:Xo,oneof:"event"},{no:5,name:"skipped",kind:"message",T:$o,oneof:"event"}]));class ei extends r.Message{constructor(e){super(),this.message={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ei).fromBinary(e,t)}static fromJson(e,t){return(new ei).fromJson(e,t)}static fromJsonString(e,t){return(new ei).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ei,e,t)}}ei.runtime=r.proto3,ei.typeName="agent.v1.InteractionUpdate",ei.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text_delta",kind:"message",T:bo,oneof:"message"},{no:7,name:"partial_tool_call",kind:"message",T:Io,oneof:"message"},{no:15,name:"tool_call_delta",kind:"message",T:Po,oneof:"message"},{no:2,name:"tool_call_started",kind:"message",T:xo,oneof:"message"},{no:3,name:"tool_call_completed",kind:"message",T:No,oneof:"message"},{no:4,name:"thinking_delta",kind:"message",T:Bo,oneof:"message"},{no:5,name:"thinking_completed",kind:"message",T:qo,oneof:"message"},{no:6,name:"user_message_appended",kind:"message",T:Uo,oneof:"message"},{no:8,name:"token_delta",kind:"message",T:Ro,oneof:"message"},{no:9,name:"summary",kind:"message",T:Mo,oneof:"message"},{no:10,name:"summary_started",kind:"message",T:Oo,oneof:"message"},{no:11,name:"summary_completed",kind:"message",T:Ao,oneof:"message"},{no:12,name:"shell_output_delta",kind:"message",T:Lo,oneof:"message"},{no:13,name:"heartbeat",kind:"message",T:Fo,oneof:"message"},{no:14,name:"turn_ended",kind:"message",T:Co,oneof:"message"},{no:16,name:"step_started",kind:"message",T:Do,oneof:"message"},{no:17,name:"step_completed",kind:"message",T:Go,oneof:"message"},{no:18,name:"prompt_suggestion",kind:"message",T:Ho,oneof:"message"},{no:19,name:"post_request_prompt",kind:"message",T:ni,oneof:"message"},{no:20,name:"active_branch_change",kind:"message",T:Ko,oneof:"message"},{no:21,name:"feedback_request",kind:"message",T:zo,oneof:"message"},{no:22,name:"response_comparison",kind:"message",T:Zo,oneof:"message"},{no:23,name:"context_injection_state",kind:"message",T:ti,oneof:"message"},{no:24,name:"routed_model",kind:"message",T:jo,oneof:"message"}]));class ti extends r.Message{constructor(e){super(),this.injectionId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ti).fromBinary(e,t)}static fromJson(e,t){return(new ti).fromJson(e,t)}static fromJsonString(e,t){return(new ti).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ti,e,t)}}ti.runtime=r.proto3,ti.typeName="agent.v1.ContextInjectionStateUpdate",ti.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"injection_id",kind:"scalar",T:9},{no:2,name:"state",kind:"message",T:cs}]));class ni extends r.Message{constructor(e){super(),this.title="",this.message="",this.buttonLabel="",this.buttonUrl="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ni).fromBinary(e,t)}static fromJson(e,t){return(new ni).fromJson(e,t)}static fromJsonString(e,t){return(new ni).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ni,e,t)}}ni.runtime=r.proto3,ni.typeName="agent.v1.PostRequestPromptUpdate",ni.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"button_url",kind:"scalar",T:9}]));class ri extends r.Message{constructor(e){super(),this.id=0,this.query={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ri).fromBinary(e,t)}static fromJson(e,t){return(new ri).fromJson(e,t)}static fromJsonString(e,t){return(new ri).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ri,e,t)}}ri.runtime=r.proto3,ri.typeName="agent.v1.InteractionQuery",ri.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:13},{no:2,name:"web_search_request_query",kind:"message",T:ie.KL,oneof:"query"},{no:3,name:"ask_question_interaction_query",kind:"message",T:oi,oneof:"query"},{no:4,name:"switch_mode_request_query",kind:"message",T:pe.Nc,oneof:"query"},{no:7,name:"create_plan_request_query",kind:"message",T:oe.vR,oneof:"query"},{no:8,name:"setup_vm_environment_args",kind:"message",T:Ee.BI,oneof:"query"},{no:9,name:"web_fetch_request_query",kind:"message",T:Oe.Un,oneof:"query"},{no:10,name:"pr_management_request_query",kind:"message",T:Le.DY,oneof:"query"},{no:11,name:"mcp_auth_request_query",kind:"message",T:Ce.uL,oneof:"query"},{no:12,name:"generate_image_request_query",kind:"message",T:fe.Uj,oneof:"query"},{no:13,name:"replace_env_args",kind:"message",T:vt.TO,oneof:"query"},{no:14,name:"connect_scm_request_query",kind:"message",T:Mn.$1,oneof:"query"}]));class si extends r.Message{constructor(e){super(),this.id=0,this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new si).fromBinary(e,t)}static fromJson(e,t){return(new si).fromJson(e,t)}static fromJsonString(e,t){return(new si).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(si,e,t)}}si.runtime=r.proto3,si.typeName="agent.v1.InteractionResponse",si.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:13},{no:2,name:"web_search_request_response",kind:"message",T:ie.lI,oneof:"result"},{no:3,name:"ask_question_interaction_response",kind:"message",T:ii,oneof:"result"},{no:4,name:"switch_mode_request_response",kind:"message",T:pe.w$,oneof:"result"},{no:7,name:"create_plan_request_response",kind:"message",T:oe.gz,oneof:"result"},{no:8,name:"setup_vm_environment_result",kind:"message",T:Ee.r$,oneof:"result"},{no:9,name:"web_fetch_request_response",kind:"message",T:Oe.fS,oneof:"result"},{no:10,name:"pr_management_result",kind:"message",T:Le.HL,oneof:"result"},{no:11,name:"mcp_auth_request_response",kind:"message",T:Ce.h,oneof:"result"},{no:12,name:"generate_image_request_response",kind:"message",T:fe.vW,oneof:"result"},{no:13,name:"replace_env_result",kind:"message",T:vt.dV,oneof:"result"},{no:14,name:"connect_scm_request_response",kind:"message",T:Mn.qG,oneof:"result"}]));class oi extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oi).fromBinary(e,t)}static fromJson(e,t){return(new oi).fromJson(e,t)}static fromJsonString(e,t){return(new oi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(oi,e,t)}}oi.runtime=r.proto3,oi.typeName="agent.v1.AskQuestionInteractionQuery",oi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:me.ju},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class ii extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ii).fromBinary(e,t)}static fromJson(e,t){return(new ii).fromJson(e,t)}static fromJsonString(e,t){return(new ii).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ii,e,t)}}ii.runtime=r.proto3,ii.typeName="agent.v1.AskQuestionInteractionResponse",ii.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:me.tz}]));class ai extends r.Message{constructor(e){super(),this.trigger="",this.contextUsagePercent=0,this.contextTokens=r.protoInt64.zero,this.contextWindowSize=r.protoInt64.zero,this.messageCount=0,this.messagesToCompact=0,this.isFirstCompaction=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ai).fromBinary(e,t)}static fromJson(e,t){return(new ai).fromJson(e,t)}static fromJsonString(e,t){return(new ai).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ai,e,t)}}ai.runtime=r.proto3,ai.typeName="agent.v1.PreCompactRequestQuery",ai.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"trigger",kind:"scalar",T:9},{no:2,name:"context_usage_percent",kind:"scalar",T:1},{no:3,name:"context_tokens",kind:"scalar",T:3},{no:4,name:"context_window_size",kind:"scalar",T:3},{no:5,name:"message_count",kind:"scalar",T:5},{no:6,name:"messages_to_compact",kind:"scalar",T:5},{no:7,name:"is_first_compaction",kind:"scalar",T:8},{no:8,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"model",kind:"scalar",T:9,opt:!0},{no:11,name:"model_id",kind:"scalar",T:9,opt:!0},{no:12,name:"model_params",kind:"message",T:ko,repeated:!0}]));class li extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new li).fromBinary(e,t)}static fromJson(e,t){return(new li).fromJson(e,t)}static fromJsonString(e,t){return(new li).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(li,e,t)}}li.runtime=r.proto3,li.typeName="agent.v1.PreCompactRequestResponse",li.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"user_message",kind:"scalar",T:9,opt:!0}]));class ui extends r.Message{constructor(e){super(),this.subagentId="",this.subagentType="",this.task="",this.parentConversationId="",this.isParallelWorker=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ui).fromBinary(e,t)}static fromJson(e,t){return(new ui).fromJson(e,t)}static fromJsonString(e,t){return(new ui).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ui,e,t)}}ui.runtime=r.proto3,ui.typeName="agent.v1.SubagentStartRequestQuery",ui.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type",kind:"scalar",T:9},{no:3,name:"task",kind:"scalar",T:9},{no:4,name:"parent_conversation_id",kind:"scalar",T:9},{no:5,name:"tool_call_id",kind:"scalar",T:9,opt:!0},{no:6,name:"subagent_model",kind:"scalar",T:9,opt:!0},{no:7,name:"is_parallel_worker",kind:"scalar",T:8},{no:8,name:"git_branch",kind:"scalar",T:9,opt:!0},{no:9,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:11,name:"model",kind:"scalar",T:9,opt:!0},{no:12,name:"model_id",kind:"scalar",T:9,opt:!0},{no:13,name:"model_params",kind:"message",T:ko,repeated:!0}]));class mi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mi).fromBinary(e,t)}static fromJson(e,t){return(new mi).fromJson(e,t)}static fromJsonString(e,t){return(new mi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(mi,e,t)}}mi.runtime=r.proto3,mi.typeName="agent.v1.SubagentStartRequestResponse",mi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"permission",kind:"scalar",T:9,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class ci extends r.Message{constructor(e){super(),this.subagentId="",this.subagentType="",this.status="",this.durationMs=r.protoInt64.zero,this.parentConversationId="",this.messageCount=0,this.toolCallCount=0,this.modifiedFiles=[],this.loopCount=0,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ci).fromBinary(e,t)}static fromJson(e,t){return(new ci).fromJson(e,t)}static fromJsonString(e,t){return(new ci).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ci,e,t)}}ci.runtime=r.proto3,ci.typeName="agent.v1.SubagentStopRequestQuery",ci.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type",kind:"scalar",T:9},{no:3,name:"status",kind:"scalar",T:9},{no:4,name:"duration_ms",kind:"scalar",T:3},{no:5,name:"summary",kind:"scalar",T:9,opt:!0},{no:6,name:"parent_conversation_id",kind:"scalar",T:9},{no:7,name:"message_count",kind:"scalar",T:5},{no:8,name:"tool_call_count",kind:"scalar",T:5},{no:9,name:"error_message",kind:"scalar",T:9,opt:!0},{no:10,name:"modified_files",kind:"scalar",T:9,repeated:!0},{no:11,name:"git_branch",kind:"scalar",T:9,opt:!0},{no:12,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:13,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:14,name:"model",kind:"scalar",T:9,opt:!0},{no:15,name:"loop_count",kind:"scalar",T:5},{no:16,name:"task",kind:"scalar",T:9,opt:!0},{no:17,name:"description",kind:"scalar",T:9,opt:!0},{no:18,name:"model_id",kind:"scalar",T:9,opt:!0},{no:19,name:"model_params",kind:"message",T:ko,repeated:!0}]));class di extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new di).fromBinary(e,t)}static fromJson(e,t){return(new di).fromJson(e,t)}static fromJsonString(e,t){return(new di).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(di,e,t)}}di.runtime=r.proto3,di.typeName="agent.v1.SubagentStopRequestResponse",di.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"followup_message",kind:"scalar",T:9,opt:!0},{no:2,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class pi extends r.Message{constructor(e){super(),this.type="",this.filePath="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pi).fromBinary(e,t)}static fromJson(e,t){return(new pi).fromJson(e,t)}static fromJsonString(e,t){return(new pi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(pi,e,t)}}pi.runtime=r.proto3,pi.typeName="agent.v1.BeforeSubmitPromptAttachment",pi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9}]));class fi extends r.Message{constructor(e){super(),this.prompt="",this.attachments=[],this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fi).fromBinary(e,t)}static fromJson(e,t){return(new fi).fromJson(e,t)}static fromJsonString(e,t){return(new fi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(fi,e,t)}}fi.runtime=r.proto3,fi.typeName="agent.v1.BeforeSubmitPromptRequestQuery",fi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"prompt",kind:"scalar",T:9},{no:2,name:"attachments",kind:"message",T:pi,repeated:!0},{no:3,name:"composer_mode",kind:"scalar",T:9,opt:!0},{no:4,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"model",kind:"scalar",T:9,opt:!0},{no:7,name:"model_id",kind:"scalar",T:9,opt:!0},{no:8,name:"model_params",kind:"message",T:ko,repeated:!0}]));class gi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gi).fromBinary(e,t)}static fromJson(e,t){return(new gi).fromJson(e,t)}static fromJsonString(e,t){return(new gi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(gi,e,t)}}gi.runtime=r.proto3,gi.typeName="agent.v1.BeforeSubmitPromptRequestResponse",gi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"continue",kind:"scalar",T:8,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class _i extends r.Message{constructor(e){super(),this.text="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _i).fromBinary(e,t)}static fromJson(e,t){return(new _i).fromJson(e,t)}static fromJsonString(e,t){return(new _i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_i,e,t)}}_i.runtime=r.proto3,_i.typeName="agent.v1.AfterAgentResponseRequestQuery",_i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:3,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"model",kind:"scalar",T:9,opt:!0},{no:5,name:"model_id",kind:"scalar",T:9,opt:!0},{no:6,name:"model_params",kind:"message",T:ko,repeated:!0},{no:7,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:8,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:9,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:10,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0}]));class hi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hi).fromBinary(e,t)}static fromJson(e,t){return(new hi).fromJson(e,t)}static fromJsonString(e,t){return(new hi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(hi,e,t)}}hi.runtime=r.proto3,hi.typeName="agent.v1.AfterAgentResponseRequestResponse",hi.fields=r.proto3.util.newFieldList((()=>[]));class Ti extends r.Message{constructor(e){super(),this.text="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ti).fromBinary(e,t)}static fromJson(e,t){return(new Ti).fromJson(e,t)}static fromJsonString(e,t){return(new Ti).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ti,e,t)}}Ti.runtime=r.proto3,Ti.typeName="agent.v1.AfterAgentThoughtRequestQuery",Ti.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"duration_ms",kind:"scalar",T:3,opt:!0},{no:3,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"model",kind:"scalar",T:9,opt:!0},{no:6,name:"model_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model_params",kind:"message",T:ko,repeated:!0}]));class yi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yi).fromBinary(e,t)}static fromJson(e,t){return(new yi).fromJson(e,t)}static fromJsonString(e,t){return(new yi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(yi,e,t)}}yi.runtime=r.proto3,yi.typeName="agent.v1.AfterAgentThoughtRequestResponse",yi.fields=r.proto3.util.newFieldList((()=>[]));class Si extends r.Message{constructor(e){super(),this.status="",this.loopCount=0,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Si).fromBinary(e,t)}static fromJson(e,t){return(new Si).fromJson(e,t)}static fromJsonString(e,t){return(new Si).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Si,e,t)}}Si.runtime=r.proto3,Si.typeName="agent.v1.StopRequestQuery",Si.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"scalar",T:9},{no:2,name:"loop_count",kind:"scalar",T:5},{no:3,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:4,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:5,name:"model",kind:"scalar",T:9,opt:!0},{no:6,name:"model_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model_params",kind:"message",T:ko,repeated:!0},{no:8,name:"input_tokens",kind:"scalar",T:3,opt:!0},{no:9,name:"output_tokens",kind:"scalar",T:3,opt:!0},{no:10,name:"cache_read_tokens",kind:"scalar",T:3,opt:!0},{no:11,name:"cache_write_tokens",kind:"scalar",T:3,opt:!0}]));class wi extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wi).fromBinary(e,t)}static fromJson(e,t){return(new wi).fromJson(e,t)}static fromJsonString(e,t){return(new wi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(wi,e,t)}}wi.runtime=r.proto3,wi.typeName="agent.v1.StopRequestResponse",wi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"followup_message",kind:"scalar",T:9,opt:!0}]));class ki extends r.Message{constructor(e){super(),this.toolName="",this.toolUseId="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ki).fromBinary(e,t)}static fromJson(e,t){return(new ki).fromJson(e,t)}static fromJsonString(e,t){return(new ki).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ki,e,t)}}ki.runtime=r.proto3,ki.typeName="agent.v1.PreToolUseRequestQuery",ki.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"tool_use_id",kind:"scalar",T:9},{no:4,name:"cwd",kind:"scalar",T:9,opt:!0},{no:5,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:6,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:7,name:"model",kind:"scalar",T:9,opt:!0},{no:8,name:"model_id",kind:"scalar",T:9,opt:!0},{no:9,name:"model_params",kind:"message",T:ko,repeated:!0}]));class Ji extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ji).fromBinary(e,t)}static fromJson(e,t){return(new Ji).fromJson(e,t)}static fromJsonString(e,t){return(new Ji).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ji,e,t)}}Ji.runtime=r.proto3,Ji.typeName="agent.v1.PreToolUseRequestResponse",Ji.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"permission",kind:"scalar",T:9,opt:!0},{no:2,name:"user_message",kind:"scalar",T:9,opt:!0},{no:3,name:"agent_message",kind:"scalar",T:9,opt:!0},{no:4,name:"updated_input",kind:"scalar",T:9,opt:!0},{no:5,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class vi extends r.Message{constructor(e){super(),this.toolName="",this.toolOutput="",this.durationMs=r.protoInt64.zero,this.toolUseId="",this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vi).fromBinary(e,t)}static fromJson(e,t){return(new vi).fromJson(e,t)}static fromJsonString(e,t){return(new vi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(vi,e,t)}}vi.runtime=r.proto3,vi.typeName="agent.v1.PostToolUseRequestQuery",vi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"tool_output",kind:"scalar",T:9},{no:4,name:"duration_ms",kind:"scalar",T:3},{no:5,name:"tool_use_id",kind:"scalar",T:9},{no:6,name:"cwd",kind:"scalar",T:9,opt:!0},{no:7,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:8,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"model",kind:"scalar",T:9,opt:!0},{no:10,name:"model_id",kind:"scalar",T:9,opt:!0},{no:11,name:"model_params",kind:"message",T:ko,repeated:!0}]));class Ei extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ei).fromBinary(e,t)}static fromJson(e,t){return(new Ei).fromJson(e,t)}static fromJsonString(e,t){return(new Ei).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ei,e,t)}}Ei.runtime=r.proto3,Ei.typeName="agent.v1.PostToolUseRequestResponse",Ei.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class bi extends r.Message{constructor(e){super(),this.toolName="",this.errorMessage="",this.failureType="",this.durationMs=r.protoInt64.zero,this.toolUseId="",this.isInterrupt=!1,this.modelParams=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bi).fromBinary(e,t)}static fromJson(e,t){return(new bi).fromJson(e,t)}static fromJsonString(e,t){return(new bi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(bi,e,t)}}bi.runtime=r.proto3,bi.typeName="agent.v1.PostToolUseFailureRequestQuery",bi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"tool_input",kind:"message",T:r.Struct},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"failure_type",kind:"scalar",T:9},{no:5,name:"duration_ms",kind:"scalar",T:3},{no:6,name:"tool_use_id",kind:"scalar",T:9},{no:7,name:"is_interrupt",kind:"scalar",T:8},{no:8,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:9,name:"generation_id",kind:"scalar",T:9,opt:!0},{no:10,name:"model",kind:"scalar",T:9,opt:!0},{no:11,name:"model_id",kind:"scalar",T:9,opt:!0},{no:12,name:"model_params",kind:"message",T:ko,repeated:!0}]));class ji extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ji).fromBinary(e,t)}static fromJson(e,t){return(new ji).fromJson(e,t)}static fromJsonString(e,t){return(new ji).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(ji,e,t)}}ji.runtime=r.proto3,ji.typeName="agent.v1.PostToolUseFailureRequestResponse",ji.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"additional_context",kind:"scalar",T:9,opt:!0}]));class xi extends r.Message{constructor(e){super(),this.description="",this.prompt="",this.subagentType="",this.attachments=[],this.environment=zn.UNSPECIFIED,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xi).fromBinary(e,t)}static fromJson(e,t){return(new xi).fromJson(e,t)}static fromJsonString(e,t){return(new xi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(xi,e,t)}}xi.runtime=r.proto3,xi.typeName="agent.v1.TaskToolCallArgsProto",xi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"model",kind:"scalar",T:9,opt:!0},{no:4,name:"subagent_type",kind:"scalar",T:9},{no:5,name:"resume",kind:"scalar",T:9,opt:!0},{no:6,name:"readonly",kind:"scalar",T:8,opt:!0},{no:7,name:"run_in_background",kind:"scalar",T:8,opt:!0},{no:8,name:"attachments",kind:"scalar",T:9,repeated:!0},{no:9,name:"environment",kind:"enum",T:r.proto3.getEnumType(zn)},{no:10,name:"cloud_base_branch",kind:"scalar",T:9,opt:!0},{no:11,name:"cloud_requested_environment_build_id",kind:"scalar",T:9,opt:!0},{no:12,name:"machine",kind:"message",T:dr,opt:!0}]));class Ni extends r.Message{constructor(e){super(),this.credentials={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ni).fromBinary(e,t)}static fromJson(e,t){return(new Ni).fromJson(e,t)}static fromJsonString(e,t){return(new Ni).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Ni,e,t)}}Ni.runtime=r.proto3,Ni.typeName="agent.v1.SubagentCredentials",Ni.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"api_key_credentials",kind:"message",T:ho,oneof:"credentials"},{no:2,name:"azure_credentials",kind:"message",T:To,oneof:"credentials"},{no:3,name:"bedrock_credentials",kind:"message",T:yo,oneof:"credentials"}]));class Pi extends r.Message{constructor(e){super(),this.subagentId="",this.subagentTypeName="",this.analyticsSubagentType="",this.resolvedModelId="",this.effectiveReadonly=!1,this.useAskModeForSubagent=!1,this.initialTurnsCount=0,this.subagentRequestId="",this.toolCallId="",this.isResume=!1,this.taskPrompt="",this.taskDescription="",this.parentModelName="",this.enableExecuteHookExec=!1,this.configuredSteps=[],this.readonlyShellEnabled=!1,this.toolName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pi).fromBinary(e,t)}static fromJson(e,t){return(new Pi).fromJson(e,t)}static fromJsonString(e,t){return(new Pi).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(Pi,e,t)}}Pi.runtime=r.proto3,Pi.typeName="agent.v1.PreparedTaskSubagent",Pi.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"subagent_id",kind:"scalar",T:9},{no:2,name:"subagent_type_name",kind:"scalar",T:9},{no:3,name:"subagent_type",kind:"message",T:s._L},{no:4,name:"analytics_subagent_type",kind:"scalar",T:9},{no:5,name:"resolved_model_id",kind:"scalar",T:9},{no:6,name:"effective_readonly",kind:"scalar",T:8},{no:7,name:"use_ask_mode_for_subagent",kind:"scalar",T:8},{no:8,name:"conversation_state",kind:"message",T:go},{no:9,name:"initial_action",kind:"message",T:Or},{no:10,name:"initial_turns_count",kind:"scalar",T:13},{no:11,name:"subagent_request_id",kind:"scalar",T:9},{no:12,name:"tool_call_id",kind:"scalar",T:9},{no:13,name:"is_resume",kind:"scalar",T:8},{no:14,name:"parent_request_id",kind:"scalar",T:9,opt:!0},{no:15,name:"root_parent_request_id",kind:"scalar",T:9,opt:!0},{no:16,name:"task_prompt",kind:"scalar",T:9},{no:17,name:"task_description",kind:"scalar",T:9},{no:18,name:"selected_context",kind:"message",T:ur.xv,opt:!0},{no:19,name:"plugin",kind:"scalar",T:9,opt:!0},{no:20,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:21,name:"parent_model_name",kind:"scalar",T:9},{no:22,name:"raw_args",kind:"message",T:xi},{no:23,name:"subagent_credentials",kind:"message",T:Ni},{no:25,name:"result_suffix",kind:"scalar",T:9,opt:!0},{no:26,name:"enable_execute_hook_exec",kind:"scalar",T:8},{no:27,name:"configured_steps",kind:"scalar",T:9,repeated:!0},{no:28,name:"readonly_shell_enabled",kind:"scalar",T:8},{no:29,name:"tool_name",kind:"scalar",T:9},{no:30,name:"prepared_timestamp_unix_ms",kind:"scalar",T:3,opt:!0},{no:31,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:32,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:33,name:"subagent_source",kind:"scalar",T:9,opt:!0},{no:34,name:"cloud_subagent_bc_id",kind:"scalar",T:9,opt:!0},{no:35,name:"provider_tool_name",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/agent_skills_pb.js"(e,t,n){n.d(t,{N:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.fullPath="",this.content="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.AgentSkill",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9},{no:4,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:5,name:"environments",kind:"scalar",T:9,repeated:!0},{no:6,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:7,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:8,name:"disable_model_invocation",kind:"scalar",T:8},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"globs",kind:"scalar",T:9,repeated:!0},{no:14,name:"scoped_to",kind:"scalar",T:9,repeated:!0}]));class o extends r.Message{constructor(e){super(),this.fullPath="",this.description="",this.environments=[],this.disabledEnvironments=[],this.disableModelInvocation=!1,this.globs=[],this.scopedTo=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AgentSkillMetadata",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:4,name:"environments",kind:"scalar",T:9,repeated:!0},{no:5,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:6,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:7,name:"disable_model_invocation",kind:"scalar",T:8},{no:8,name:"plugin",kind:"scalar",T:9,opt:!0},{no:9,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:10,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:11,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:12,name:"globs",kind:"scalar",T:9,repeated:!0},{no:13,name:"scoped_to",kind:"scalar",T:9,repeated:!0}]))},"../proto/dist/generated/agent/v1/ai_attribution_tool_pb.js"(e,t,n){n.d(t,{ex:()=>u});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js");class o extends r.Message{constructor(e){super(),this.filePaths=[],this.commitHashes=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AiAttributionArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:5,name:"file_paths",kind:"scalar",T:9,repeated:!0},{no:2,name:"start_line",kind:"scalar",T:5,opt:!0},{no:3,name:"end_line",kind:"scalar",T:5,opt:!0},{no:6,name:"commit_hashes",kind:"scalar",T:9,repeated:!0},{no:7,name:"output_mode",kind:"scalar",T:9,opt:!0},{no:9,name:"max_commits",kind:"scalar",T:5,opt:!0},{no:10,name:"include_line_ranges",kind:"scalar",T:8,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.AiAttributionResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.attributionText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.AiAttributionSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"attribution_text",kind:"scalar",T:9},{no:2,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class l extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.AiAttributionError",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.AiAttributionToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:i}]))},"../proto/dist/generated/agent/v1/apply_agent_diff_tool_pb.js"(e,t,n){n.d(t,{JU:()=>o});var r,s=n("@bufbuild/protobuf");class o extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.ApplyAgentDiffToolCall",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:a}]));class i extends s.Message{constructor(e){super(),this.agentId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ApplyAgentDiffArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_id",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ApplyAgentDiffResult",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"}]));class l extends s.Message{constructor(e){super(),this.appliedChanges=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ApplyAgentDiffSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"applied_changes",kind:"message",T:u,repeated:!0}]));class u extends s.Message{constructor(e){super(),this.path="",this.changeType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.AppliedAgentChange",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"change_type",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"before_content",kind:"scalar",T:9,opt:!0},{no:4,name:"after_content",kind:"scalar",T:9,opt:!0},{no:5,name:"error",kind:"scalar",T:9,opt:!0},{no:6,name:"message_for_model",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CREATED=1]="CREATED",e[e.MODIFIED=2]="MODIFIED",e[e.DELETED=3]="DELETED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.AppliedAgentChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_CREATED"},{no:2,name:"CHANGE_TYPE_MODIFIED"},{no:3,name:"CHANGE_TYPE_DELETED"}]);class m extends s.Message{constructor(e){super(),this.error="",this.appliedChanges=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ApplyAgentDiffError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"applied_changes",kind:"message",T:u,repeated:!0}]))},"../proto/dist/generated/agent/v1/ask_question_tool_pb.js"(e,t,n){n.d(t,{OU:()=>s,ju:()=>o,tz:()=>u});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.AskQuestionToolCall",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:u}]));class o extends r.Message{constructor(e){super(),this.title="",this.questions=[],this.runAsync=!1,this.asyncOriginalToolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.AskQuestionArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"questions",kind:"message",T:i,repeated:!0},{no:5,name:"run_async",kind:"scalar",T:8},{no:6,name:"async_original_tool_call_id",kind:"scalar",T:9}]));class i extends r.Message{constructor(e){super(),this.id="",this.prompt="",this.options=[],this.allowMultiple=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.AskQuestionArgs.Question",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"prompt",kind:"scalar",T:9},{no:3,name:"options",kind:"message",T:a,repeated:!0},{no:4,name:"allow_multiple",kind:"scalar",T:8}]));class a extends r.Message{constructor(e){super(),this.id="",this.label="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.AskQuestionArgs.Option",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.AskQuestionAsync",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.AskQuestionResult",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:m,oneof:"result"},{no:2,name:"error",kind:"message",T:d,oneof:"result"},{no:3,name:"rejected",kind:"message",T:p,oneof:"result"},{no:4,name:"async",kind:"message",T:l,oneof:"result"}]));class m extends r.Message{constructor(e){super(),this.answers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.AskQuestionSuccess",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"answers",kind:"message",T:c,repeated:!0}]));class c extends r.Message{constructor(e){super(),this.questionId="",this.selectedOptionIds=[],this.freeformText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.AskQuestionSuccess.Answer",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"selected_option_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"freeform_text",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.errorMessage="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.AskQuestionError",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.AskQuestionRejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/background_shell_exec_pb.js"(e,t,n){n.d(t,{LL:()=>c,nt:()=>d});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/shell_exec_pb.js"),o=n("../proto/dist/generated/agent/v1/sandbox_pb.js"),i=n("../proto/dist/generated/agent/v1/utils_pb.js");class a extends r.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.toolCallId="",this.enableWriteShellStdinTool=!1,this.skipApproval=!1,this.adminCommandDenylist=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.BackgroundShellSpawnArgs",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"parsing_result",kind:"message",T:s.HO},{no:5,name:"sandbox_policy",kind:"message",T:o.Mw,opt:!0},{no:6,name:"enable_write_shell_stdin_tool",kind:"scalar",T:8},{no:7,name:"description",kind:"scalar",T:9,opt:!0},{no:8,name:"classifier_result",kind:"message",T:s.E4,opt:!0},{no:9,name:"output_notification",kind:"message",T:s.$F,opt:!0},{no:10,name:"smart_mode_approval",kind:"message",T:i.UC,opt:!0},{no:11,name:"hook_approval_requirement",kind:"message",T:s.In,opt:!0},{no:12,name:"skip_approval",kind:"scalar",T:8},{no:13,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:14,name:"admin_command_denylist",kind:"scalar",T:9,repeated:!0}]));class l extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.BackgroundShellSpawnResult",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:s.pZ,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:s.jn,oneof:"result"},{no:5,name:"sandbox_unsupported",kind:"message",T:s.rI,oneof:"result"}]));class u extends r.Message{constructor(e){super(),this.shellId=0,this.command="",this.workingDirectory="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.BackgroundShellSpawnSuccess",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"command",kind:"scalar",T:9},{no:3,name:"working_directory",kind:"scalar",T:9},{no:4,name:"pid",kind:"scalar",T:13,opt:!0}]));class m extends r.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.BackgroundShellSpawnError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.shellId=0,this.chars="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WriteShellStdinArgs",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"chars",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WriteShellStdinResult",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:p,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),this.shellId=0,this.terminalFileLengthBeforeInputWritten=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WriteShellStdinSuccess",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"terminal_file_length_before_input_written",kind:"scalar",T:13}]));class f extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WriteShellStdinError",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/computer_use_tool_pb.js"(e,t,n){n.d(t,{t8:()=>J});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.MIDDLE=3]="MIDDLE",e[e.BACK=4]="BACK",e[e.FORWARD=5]="FORWARD"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.MouseButton",[{no:0,name:"MOUSE_BUTTON_UNSPECIFIED"},{no:1,name:"MOUSE_BUTTON_LEFT"},{no:2,name:"MOUSE_BUTTON_RIGHT"},{no:3,name:"MOUSE_BUTTON_MIDDLE"},{no:4,name:"MOUSE_BUTTON_BACK"},{no:5,name:"MOUSE_BUTTON_FORWARD"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.ScrollDirection",[{no:0,name:"SCROLL_DIRECTION_UNSPECIFIED"},{no:1,name:"SCROLL_DIRECTION_UP"},{no:2,name:"SCROLL_DIRECTION_DOWN"},{no:3,name:"SCROLL_DIRECTION_LEFT"},{no:4,name:"SCROLL_DIRECTION_RIGHT"}]);class i extends o.Message{constructor(e){super(),this.x=0,this.y=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.Coordinate",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"x",kind:"scalar",T:5},{no:2,name:"y",kind:"scalar",T:5}]));class a extends o.Message{constructor(e){super(),this.toolCallId="",this.actions=[],o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.ComputerUseArgs",a.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"message",T:l,repeated:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0}]));class l extends o.Message{constructor(e){super(),this.action={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.ComputerUseAction",l.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"mouse_move",kind:"message",T:u,oneof:"action"},{no:2,name:"click",kind:"message",T:m,oneof:"action"},{no:3,name:"mouse_down",kind:"message",T:c,oneof:"action"},{no:4,name:"mouse_up",kind:"message",T:d,oneof:"action"},{no:5,name:"drag",kind:"message",T:p,oneof:"action"},{no:6,name:"scroll",kind:"message",T:f,oneof:"action"},{no:7,name:"type",kind:"message",T:g,oneof:"action"},{no:8,name:"key",kind:"message",T:_,oneof:"action"},{no:9,name:"wait",kind:"message",T:h,oneof:"action"},{no:10,name:"screenshot",kind:"message",T,oneof:"action"},{no:11,name:"cursor_position",kind:"message",T:y,oneof:"action"}]));class u extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.MouseMoveAction",u.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i}]));class m extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,this.count=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.ClickAction",m.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i,opt:!0},{no:2,name:"button",kind:"enum",T:o.proto3.getEnumType(r)},{no:3,name:"count",kind:"scalar",T:5},{no:4,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class c extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.MouseDownAction",c.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"button",kind:"enum",T:o.proto3.getEnumType(r)}]));class d extends o.Message{constructor(e){super(),this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}d.runtime=o.proto3,d.typeName="agent.v1.MouseUpAction",d.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"button",kind:"enum",T:o.proto3.getEnumType(r)}]));class p extends o.Message{constructor(e){super(),this.path=[],this.button=r.UNSPECIFIED,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(p,e,t)}}p.runtime=o.proto3,p.typeName="agent.v1.DragAction",p.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"message",T:i,repeated:!0},{no:2,name:"button",kind:"enum",T:o.proto3.getEnumType(r)},{no:3,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class f extends o.Message{constructor(e){super(),this.direction=s.UNSPECIFIED,this.amount=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(f,e,t)}}f.runtime=o.proto3,f.typeName="agent.v1.ScrollAction",f.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"coordinate",kind:"message",T:i,opt:!0},{no:2,name:"direction",kind:"enum",T:o.proto3.getEnumType(s)},{no:3,name:"amount",kind:"scalar",T:5},{no:4,name:"modifier_keys",kind:"scalar",T:9,opt:!0}]));class g extends o.Message{constructor(e){super(),this.text="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(g,e,t)}}g.runtime=o.proto3,g.typeName="agent.v1.TypeAction",g.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class _ extends o.Message{constructor(e){super(),this.key="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(_,e,t)}}_.runtime=o.proto3,_.typeName="agent.v1.KeyAction",_.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"hold_duration_ms",kind:"scalar",T:5,opt:!0}]));class h extends o.Message{constructor(e){super(),this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(h,e,t)}}h.runtime=o.proto3,h.typeName="agent.v1.WaitAction",h.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"duration_ms",kind:"scalar",T:5}]));class T extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(T,e,t)}}T.runtime=o.proto3,T.typeName="agent.v1.ScreenshotAction",T.fields=o.proto3.util.newFieldList((()=>[]));class y extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(y,e,t)}}y.runtime=o.proto3,y.typeName="agent.v1.CursorPositionAction",y.fields=o.proto3.util.newFieldList((()=>[]));class S extends o.Message{constructor(e){super(),this.result={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(S,e,t)}}S.runtime=o.proto3,S.typeName="agent.v1.ComputerUseResult",S.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:w,oneof:"result"},{no:2,name:"error",kind:"message",T:k,oneof:"result"}]));class w extends o.Message{constructor(e){super(),this.actionCount=0,this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(w,e,t)}}w.runtime=o.proto3,w.typeName="agent.v1.ComputerUseSuccess",w.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"action_count",kind:"scalar",T:5},{no:2,name:"duration_ms",kind:"scalar",T:5},{no:3,name:"screenshot",kind:"scalar",T:9,opt:!0},{no:4,name:"log",kind:"scalar",T:9,opt:!0},{no:5,name:"screenshot_path",kind:"scalar",T:9,opt:!0},{no:6,name:"cursor_position",kind:"message",T:i,opt:!0}]));class k extends o.Message{constructor(e){super(),this.error="",this.actionCount=0,this.durationMs=0,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(k,e,t)}}k.runtime=o.proto3,k.typeName="agent.v1.ComputerUseError",k.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"action_count",kind:"scalar",T:5},{no:3,name:"duration_ms",kind:"scalar",T:5},{no:4,name:"log",kind:"scalar",T:9,opt:!0},{no:5,name:"screenshot",kind:"scalar",T:9,opt:!0},{no:6,name:"screenshot_path",kind:"scalar",T:9,opt:!0}]));class J extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(J,e,t)}}J.runtime=o.proto3,J.typeName="agent.v1.ComputerUseToolCall",J.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:S}]))},"../proto/dist/generated/agent/v1/connect_scm_tool_pb.js"(e,t,n){n.d(t,{$1:()=>d,iO:()=>c,qG:()=>p});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.toolCallId="",this.target={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.ConnectScmArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"github",kind:"message",T:o,oneof:"target"}]));class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.ConnectScmGithub",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:i},{no:2,name:"ghe_application",kind:"scalar",T:9,opt:!0}]));class i extends r.Message{constructor(e){super(),this.owner="",this.repo="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.ConnectScmGithubRepository",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"owner",kind:"scalar",T:9},{no:2,name:"repo",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.ConnectScmResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"},{no:3,name:"rejected",kind:"message",T:m,oneof:"result"}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.ConnectScmSuccess",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.ConnectScmError",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.ConnectScmRejected",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.ConnectScmToolCall",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:a}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.ConnectScmRequestQuery",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class p extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.ConnectScmRequestResponse",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:f,oneof:"result"},{no:2,name:"rejected",kind:"message",T:g,oneof:"result"},{no:3,name:"failed",kind:"message",T:_,oneof:"result"}]));class f extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.ConnectScmRequestResponse.Approved",f.fields=r.proto3.util.newFieldList((()=>[]));class g extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.ConnectScmRequestResponse.Rejected",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class _ extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.ConnectScmRequestResponse.Failed",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/conversation_search_exec_pb.js"(e,t,n){n.d(t,{$m:()=>o,pT:()=>i});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOCAL=1]="LOCAL",e[e.CLOUD_CACHE=2]="CLOUD_CACHE"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.ConversationSearchSource",[{no:0,name:"CONVERSATION_SEARCH_SOURCE_UNSPECIFIED"},{no:1,name:"CONVERSATION_SEARCH_SOURCE_LOCAL"},{no:2,name:"CONVERSATION_SEARCH_SOURCE_CLOUD_CACHE"}]);class o extends s.Message{constructor(e){super(),this.query="",this.toolCallId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.ConversationSearchArgs",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9},{no:3,name:"limit",kind:"scalar",T:5,opt:!0}]));class i extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ConversationSearchResult",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"}]));class a extends s.Message{constructor(e){super(),this.hits=[],this.truncated=!1,this.partial=!1,this.rebuilding=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ConversationSearchSuccess",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"hits",kind:"message",T:l,repeated:!0},{no:2,name:"truncated",kind:"scalar",T:8},{no:3,name:"partial",kind:"scalar",T:8},{no:4,name:"rebuilding",kind:"scalar",T:8}]));class l extends s.Message{constructor(e){super(),this.conversationId="",this.title="",this.source=r.UNSPECIFIED,this.updatedAtMs=s.protoInt64.zero,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ConversationSearchHit",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"conversation_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"source",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"updated_at_ms",kind:"scalar",T:3},{no:5,name:"snippet",kind:"scalar",T:9,opt:!0}]));class u extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ConversationSearchError",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/create_plan_tool_pb.js"(e,t,n){n.d(t,{Ih:()=>o,gz:()=>d,vR:()=>c});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/todo_tool_pb.js");class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.CreatePlanToolCall",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:l}]));class i extends r.Message{constructor(e){super(),this.name="",this.todos=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.Phase",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"todos",kind:"message",T:s.kW,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.plan="",this.todos=[],this.overview="",this.name="",this.isProject=!1,this.phases=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.CreatePlanArgs",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"plan",kind:"scalar",T:9},{no:2,name:"todos",kind:"message",T:s.kW,repeated:!0},{no:3,name:"overview",kind:"scalar",T:9},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"is_project",kind:"scalar",T:8},{no:6,name:"phases",kind:"message",T:i,repeated:!0}]));class l extends r.Message{constructor(e){super(),this.result={case:void 0},this.planUri="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.CreatePlanResult",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"plan_uri",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.CreatePlanSuccess",u.fields=r.proto3.util.newFieldList((()=>[]));class m extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.CreatePlanError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.CreatePlanRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.CreatePlanRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"result",kind:"message",T:l}]))},"../proto/dist/generated/agent/v1/cursor_rules_pb.js"(e,t,n){n.d(t,{DX:()=>m});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TEAM=1]="TEAM",e[e.USER=2]="USER"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.CursorRuleSource",[{no:0,name:"CURSOR_RULE_SOURCE_UNSPECIFIED"},{no:1,name:"CURSOR_RULE_SOURCE_TEAM"},{no:2,name:"CURSOR_RULE_SOURCE_USER"}]);class o extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.CursorRuleTypeGlobal",o.fields=s.proto3.util.newFieldList((()=>[]));class i extends s.Message{constructor(e){super(),this.globs=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CursorRuleTypeFileGlobs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"globs",kind:"scalar",T:9,repeated:!0}]));class a extends s.Message{constructor(e){super(),this.description="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.CursorRuleTypeAgentFetched",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class l extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.CursorRuleTypeManuallyAttached",l.fields=s.proto3.util.newFieldList((()=>[]));class u extends s.Message{constructor(e){super(),this.type={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.CursorRuleType",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"global",kind:"message",T:o,oneof:"type"},{no:2,name:"file_globbed",kind:"message",T:i,oneof:"type"},{no:3,name:"agent_fetched",kind:"message",T:a,oneof:"type"},{no:4,name:"manually_attached",kind:"message",T:l,oneof:"type"}]));class m extends s.Message{constructor(e){super(),this.fullPath="",this.content="",this.source=r.UNSPECIFIED,this.environments=[],this.disabledEnvironments=[],this.scopedTo=[],this.frontmatter="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.CursorRule",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"type",kind:"message",T:u},{no:4,name:"source",kind:"enum",T:s.proto3.getEnumType(r)},{no:5,name:"git_remote_origin",kind:"scalar",T:9,opt:!0},{no:6,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:7,name:"environments",kind:"scalar",T:9,repeated:!0},{no:8,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"scoped_to",kind:"scalar",T:9,repeated:!0},{no:14,name:"frontmatter",kind:"scalar",T:9},{no:15,name:"is_required",kind:"scalar",T:8,opt:!0}]))},"../proto/dist/generated/agent/v1/delete_exec_pb.js"(e,t,n){n.d(t,{Pi:()=>o,dn:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.path="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.DeleteArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.DeleteResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"file_not_found",kind:"message",T:a,oneof:"result"},{no:3,name:"not_file",kind:"message",T:l,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:u,oneof:"result"},{no:5,name:"file_busy",kind:"message",T:m,oneof:"result"},{no:6,name:"rejected",kind:"message",T:c,oneof:"result"},{no:7,name:"error",kind:"message",T:d,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.path="",this.deletedFile="",this.fileSize=r.protoInt64.zero,this.prevContent="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.DeleteSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"deleted_file",kind:"scalar",T:9},{no:3,name:"file_size",kind:"scalar",T:3},{no:4,name:"prev_content",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.DeleteFileNotFound",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.path="",this.actualType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.DeleteNotFile",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"actual_type",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.path="",this.clientVisibleError="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.DeletePermissionDenied",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"client_visible_error",kind:"scalar",T:9},{no:3,name:"is_readonly",kind:"scalar",T:8}]));class m extends r.Message{constructor(e){super(),this.path="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.DeleteFileBusy",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.DeleteRejected",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.DeleteError",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/diagnostics_exec_pb.js"(e,t,n){n.d(t,{h_:()=>r});var r,s=n("@bufbuild/protobuf"),o=n("../proto/dist/generated/agent/v1/utils_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFORMATION=3]="INFORMATION",e[e.HINT=4]="HINT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.DiagnosticSeverity",[{no:0,name:"DIAGNOSTIC_SEVERITY_UNSPECIFIED"},{no:1,name:"DIAGNOSTIC_SEVERITY_ERROR"},{no:2,name:"DIAGNOSTIC_SEVERITY_WARNING"},{no:3,name:"DIAGNOSTIC_SEVERITY_INFORMATION"},{no:4,name:"DIAGNOSTIC_SEVERITY_HINT"}]);class i extends s.Message{constructor(e){super(),this.path="",this.toolCallId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.DiagnosticsArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.DiagnosticsResult",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:c,oneof:"result"},{no:4,name:"file_not_found",kind:"message",T:d,oneof:"result"},{no:5,name:"permission_denied",kind:"message",T:p,oneof:"result"}]));class l extends s.Message{constructor(e){super(),this.path="",this.diagnostics=[],this.totalDiagnostics=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.DiagnosticsSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diagnostics",kind:"message",T:u,repeated:!0},{no:3,name:"total_diagnostics",kind:"scalar",T:5}]));class u extends s.Message{constructor(e){super(),this.severity=r.UNSPECIFIED,this.message="",this.source="",this.code="",this.isStale=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.Diagnostic",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"severity",kind:"enum",T:s.proto3.getEnumType(r)},{no:2,name:"range",kind:"message",T:o.Q6},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"source",kind:"scalar",T:9},{no:5,name:"code",kind:"scalar",T:9},{no:6,name:"is_stale",kind:"scalar",T:8}]));class m extends s.Message{constructor(e){super(),this.path="",this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.DiagnosticsError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class c extends s.Message{constructor(e){super(),this.path="",this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.DiagnosticsRejected",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.DiagnosticsFileNotFound",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]));class p extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.DiagnosticsPermissionDenied",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/fetch_exec_pb.js"(e,t,n){n.d(t,{UM:()=>s,uN:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.url="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.FetchArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.FetchResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.url="",this.content="",this.statusCode=0,this.contentType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.FetchSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"status_code",kind:"scalar",T:5},{no:4,name:"content_type",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.url="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.FetchError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/generate_image_tool_pb.js"(e,t,n){n.d(t,{Uj:()=>u,r9:()=>l,vW:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.description="",this.referenceImagePaths=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.GenerateImageArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9,opt:!0},{no:5,name:"reference_image_paths",kind:"scalar",T:9,repeated:!0},{no:6,name:"aspect_ratio",kind:"scalar",T:9,opt:!0}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.GenerateImageResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.filePath="",this.imageData="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.GenerateImageSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"image_data",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.GenerateImageError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.GenerateImageToolCall",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class u extends r.Message{constructor(e){super(),this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.GenerateImageRequestQuery",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.GenerateImageRequestResponse",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:c,oneof:"result"},{no:2,name:"rejected",kind:"message",T:d,oneof:"result"}]));class c extends r.Message{constructor(e){super(),this.description="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.GenerateImageRequestResponse.Approved",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GenerateImageRequestResponse.Rejected",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/grep_exec_pb.js"(e,t,n){n.d(t,{Qj:()=>o,Ud:()=>i});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/sandbox_pb.js");class o extends r.Message{constructor(e){super(),this.pattern="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.GrepArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9,opt:!0},{no:3,name:"glob",kind:"scalar",T:9,opt:!0},{no:4,name:"output_mode",kind:"scalar",T:9,opt:!0},{no:5,name:"context_before",kind:"scalar",T:5,opt:!0},{no:6,name:"context_after",kind:"scalar",T:5,opt:!0},{no:7,name:"context",kind:"scalar",T:5,opt:!0},{no:8,name:"case_insensitive",kind:"scalar",T:8,opt:!0},{no:9,name:"type",kind:"scalar",T:9,opt:!0},{no:10,name:"head_limit",kind:"scalar",T:5,opt:!0},{no:11,name:"multiline",kind:"scalar",T:8,opt:!0},{no:12,name:"sort",kind:"scalar",T:9,opt:!0},{no:13,name:"sort_ascending",kind:"scalar",T:8,opt:!0},{no:14,name:"tool_call_id",kind:"scalar",T:9},{no:15,name:"sandbox_policy",kind:"message",T:s.Mw,opt:!0},{no:16,name:"offset",kind:"scalar",T:5,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.GrepResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.GrepError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.pattern="",this.path="",this.outputMode="",this.workspaceResults={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.GrepSuccess",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"output_mode",kind:"scalar",T:9},{no:4,name:"workspace_results",kind:"map",K:9,V:{kind:"message",T:u}},{no:5,name:"active_editor_result",kind:"message",T:u,opt:!0}]));class u extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.GrepUnionResult",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"count",kind:"message",T:m,oneof:"result"},{no:2,name:"files",kind:"message",T:d,oneof:"result"},{no:3,name:"content",kind:"message",T:p,oneof:"result"}]));class m extends r.Message{constructor(e){super(),this.counts=[],this.totalFiles=0,this.totalMatches=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.GrepCountResult",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"counts",kind:"message",T:c,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"total_matches",kind:"scalar",T:5},{no:4,name:"client_truncated",kind:"scalar",T:8},{no:5,name:"ripgrep_truncated",kind:"scalar",T:8},{no:6,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:7,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class c extends r.Message{constructor(e){super(),this.file="",this.count=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.GrepFileCount",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"scalar",T:9},{no:2,name:"count",kind:"scalar",T:5}]));class d extends r.Message{constructor(e){super(),this.files=[],this.totalFiles=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.GrepFilesResult",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"files",kind:"scalar",T:9,repeated:!0},{no:2,name:"total_files",kind:"scalar",T:5},{no:3,name:"client_truncated",kind:"scalar",T:8},{no:4,name:"ripgrep_truncated",kind:"scalar",T:8},{no:5,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:6,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class p extends r.Message{constructor(e){super(),this.matches=[],this.totalLines=0,this.totalMatchedLines=0,this.clientTruncated=!1,this.ripgrepTruncated=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.GrepContentResult",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"matches",kind:"message",T:f,repeated:!0},{no:2,name:"total_lines",kind:"scalar",T:5},{no:3,name:"total_matched_lines",kind:"scalar",T:5},{no:4,name:"client_truncated",kind:"scalar",T:8},{no:5,name:"ripgrep_truncated",kind:"scalar",T:8},{no:6,name:"head_limit_applied",kind:"scalar",T:5,opt:!0},{no:7,name:"offset_applied",kind:"scalar",T:5,opt:!0}]));class f extends r.Message{constructor(e){super(),this.file="",this.matches=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.GrepFileMatch",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"scalar",T:9},{no:2,name:"matches",kind:"message",T:g,repeated:!0}]));class g extends r.Message{constructor(e){super(),this.lineNumber=0,this.content="",this.contentTruncated=!1,this.isContextLine=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.GrepContentMatch",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"line_number",kind:"scalar",T:5},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"content_truncated",kind:"scalar",T:8},{no:4,name:"is_context_line",kind:"scalar",T:8}]));class _ extends r.Message{constructor(e){super(),this.pattern="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.GrepStream",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/hook_additional_context_pb.js"(e,t,n){n.d(t,{C:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.hookEventName="",this.content="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.HookAdditionalContext",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"hook_event_name",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/ls_exec_pb.js"(e,t,n){n.d(t,{fv:()=>i,vq:()=>l,xe:()=>o});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/sandbox_pb.js");class o extends r.Message{constructor(e){super(),this.path="",this.ignore=[],this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.LsArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"ignore",kind:"scalar",T:9,repeated:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"sandbox_policy",kind:"message",T:s.Mw,opt:!0},{no:5,name:"timeout_ms",kind:"scalar",T:13,opt:!0}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.LsResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"},{no:3,name:"rejected",kind:"message",T:c,oneof:"result"},{no:4,name:"timeout",kind:"message",T:d,oneof:"result"}]));class a extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.LsSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"directory_tree_root",kind:"message",T:l}]));class l extends r.Message{constructor(e){super(),this.absPath="",this.childrenDirs=[],this.childrenFiles=[],this.childrenWereProcessed=!1,this.fullSubtreeExtensionCounts={},this.numFiles=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.LsDirectoryTreeNode",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"abs_path",kind:"scalar",T:9},{no:2,name:"children_dirs",kind:"message",T:l,repeated:!0},{no:3,name:"children_files",kind:"message",T:u,repeated:!0},{no:4,name:"children_were_processed",kind:"scalar",T:8},{no:5,name:"full_subtree_extension_counts",kind:"map",K:9,V:{kind:"scalar",T:5}},{no:6,name:"num_files",kind:"scalar",T:5}]));class u extends r.Message{constructor(e){super(),this.name="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.LsDirectoryTreeNode.File",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"terminal_metadata",kind:"message",T:p,opt:!0}]));class m extends r.Message{constructor(e){super(),this.path="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.LsError",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class c extends r.Message{constructor(e){super(),this.path="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.LsRejected",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.LsTimeout",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"directory_tree_root",kind:"message",T:l}]));class p extends r.Message{constructor(e){super(),this.lastCommands=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.TerminalMetadata",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"cwd",kind:"scalar",T:9,opt:!0},{no:2,name:"last_commands",kind:"message",T:f,repeated:!0},{no:3,name:"last_modified_ms",kind:"scalar",T:3,opt:!0},{no:4,name:"current_command",kind:"message",T:f,opt:!0}]));class f extends r.Message{constructor(e){super(),this.command="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.TerminalMetadata.Command",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"exit_code",kind:"scalar",T:5,opt:!0},{no:3,name:"timestamp_ms",kind:"scalar",T:3,opt:!0},{no:4,name:"duration_ms",kind:"scalar",T:3,opt:!0}]))},"../proto/dist/generated/agent/v1/mcp_auth_tool_pb.js"(e,t,n){n.d(t,{NX:()=>u,h:()=>c,uL:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.serverIdentifier="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.McpAuthArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifier",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.McpAuthResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpAuthSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpAuthError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpAuthRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpAuthToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpAuthRequestQuery",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class c extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.McpAuthRequestResponse",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:d,oneof:"result"},{no:2,name:"rejected",kind:"message",T:p,oneof:"result"}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.McpAuthRequestResponse.Approved",d.fields=r.proto3.util.newFieldList((()=>[]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.McpAuthRequestResponse.Rejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/mcp_exec_pb.js"(e,t,n){n.d(t,{DI:()=>P,E_:()=>i,HQ:()=>h,QW:()=>f,ZD:()=>I,kP:()=>E,kj:()=>v,xo:()=>_});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js"),o=n("../proto/dist/generated/agent/v1/mcp_pb.js");class i extends r.Message{constructor(e){super(),this.name="",this.args={},this.toolCallId="",this.providerIdentifier="",this.toolName="",this.smartModeApprovalOnly=!1,this.skipApproval=!1,this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpArgs",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"message",T:r.Value}},{no:3,name:"tool_call_id",kind:"scalar",T:9},{no:4,name:"provider_identifier",kind:"scalar",T:9},{no:5,name:"tool_name",kind:"scalar",T:9},{no:6,name:"smart_mode_approval",kind:"message",T:s.UC,opt:!0},{no:7,name:"smart_mode_approval_only",kind:"scalar",T:8},{no:8,name:"skip_approval",kind:"scalar",T:8},{no:9,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:f,oneof:"result"},{no:2,name:"error",kind:"message",T:g,oneof:"result"},{no:3,name:"rejected",kind:"message",T:_,oneof:"result"},{no:4,name:"permission_denied",kind:"message",T:h,oneof:"result"},{no:5,name:"tool_not_found",kind:"message",T:u,oneof:"result"},{no:6,name:"server_not_found",kind:"message",T:m,oneof:"result"},{no:7,name:"approved",kind:"message",T:l,oneof:"result"}]));class l extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpApproved",l.fields=r.proto3.util.newFieldList((()=>[]));class u extends r.Message{constructor(e){super(),this.name="",this.availableTools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpToolNotFound",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"available_tools",kind:"scalar",T:9,repeated:!0}]));class m extends r.Message{constructor(e){super(),this.name="",this.availableServers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpServerNotFound",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"available_servers",kind:"scalar",T:9,repeated:!0}]));class c extends r.Message{constructor(e){super(),this.text="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.McpTextContent",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class d extends r.Message{constructor(e){super(),this.data=new Uint8Array(0),this.mimeType="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.McpImageContent",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"mime_type",kind:"scalar",T:9}]));class p extends r.Message{constructor(e){super(),this.content={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.McpToolResultContentItem",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"message",T:c,oneof:"content"},{no:2,name:"image",kind:"message",T:d,oneof:"content"}]));class f extends r.Message{constructor(e){super(),this.content=[],this.isError=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.McpSuccess",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"message",T:p,repeated:!0},{no:2,name:"is_error",kind:"scalar",T:8},{no:3,name:"structured_content",kind:"message",T:r.Struct}]));class g extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(g,e,t)}}g.runtime=r.proto3,g.typeName="agent.v1.McpError",g.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class _ extends r.Message{constructor(e){super(),this.reason="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(_,e,t)}}_.runtime=r.proto3,_.typeName="agent.v1.McpRejected",_.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"is_readonly",kind:"scalar",T:8}]));class h extends r.Message{constructor(e){super(),this.error="",this.isReadonly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(h,e,t)}}h.runtime=r.proto3,h.typeName="agent.v1.McpPermissionDenied",h.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9},{no:2,name:"is_readonly",kind:"scalar",T:8}]));class T extends r.Message{constructor(e){super(),this.serverIdentifiers=[],this.kickOnly=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(T,e,t)}}T.runtime=r.proto3,T.typeName="agent.v1.McpStateExecArgs",T.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_identifiers",kind:"scalar",T:9,repeated:!0},{no:2,name:"kick_only",kind:"scalar",T:8}]));class y extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(y,e,t)}}y.runtime=r.proto3,y.typeName="agent.v1.McpStateExecResult",y.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:w,oneof:"result"},{no:2,name:"error",kind:"message",T:k,oneof:"result"},{no:3,name:"rejected",kind:"message",T:J,oneof:"result"}]));class S extends r.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.tools=[],this.instructions=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(S,e,t)}}S.runtime=r.proto3,S.typeName="agent.v1.McpStateServer",S.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"plugin",kind:"scalar",T:9,opt:!0},{no:4,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:5,name:"tools",kind:"message",T:o.gd,repeated:!0},{no:6,name:"instructions",kind:"message",T:o.I0,repeated:!0},{no:7,name:"status",kind:"scalar",T:9,opt:!0}]));class w extends r.Message{constructor(e){super(),this.servers=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(w,e,t)}}w.runtime=r.proto3,w.typeName="agent.v1.McpStateSuccess",w.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"servers",kind:"message",T:S,repeated:!0}]));class k extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(k,e,t)}}k.runtime=r.proto3,k.typeName="agent.v1.McpStateError",k.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class J extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(J,e,t)}}J.runtime=r.proto3,J.typeName="agent.v1.McpStateRejected",J.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class v extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(v,e,t)}}v.runtime=r.proto3,v.typeName="agent.v1.ListMcpResourcesExecArgs",v.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9,opt:!0}]));class E extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(E,e,t)}}E.runtime=r.proto3,E.typeName="agent.v1.ListMcpResourcesExecResult",E.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:j,oneof:"result"},{no:2,name:"error",kind:"message",T:x,oneof:"result"},{no:3,name:"rejected",kind:"message",T:N,oneof:"result"}]));class b extends r.Message{constructor(e){super(),this.uri="",this.server="",this.annotations={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(b,e,t)}}b.runtime=r.proto3,b.typeName="agent.v1.ListMcpResourcesExecResult.McpResource",b.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"mime_type",kind:"scalar",T:9,opt:!0},{no:5,name:"server",kind:"scalar",T:9},{no:6,name:"annotations",kind:"map",K:9,V:{kind:"scalar",T:9}}]));class j extends r.Message{constructor(e){super(),this.resources=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(j,e,t)}}j.runtime=r.proto3,j.typeName="agent.v1.ListMcpResourcesSuccess",j.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"resources",kind:"message",T:b,repeated:!0}]));class x extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(x,e,t)}}x.runtime=r.proto3,x.typeName="agent.v1.ListMcpResourcesError",x.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class N extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(N,e,t)}}N.runtime=r.proto3,N.typeName="agent.v1.ListMcpResourcesRejected",N.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class P extends r.Message{constructor(e){super(),this.server="",this.uri="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(P,e,t)}}P.runtime=r.proto3,P.typeName="agent.v1.ReadMcpResourceExecArgs",P.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server",kind:"scalar",T:9},{no:2,name:"uri",kind:"scalar",T:9},{no:3,name:"download_path",kind:"scalar",T:9,opt:!0},{no:4,name:"tool_call_id",kind:"scalar",T:9},{no:5,name:"smart_mode_approval",kind:"message",T:s.UC,opt:!0}]));class I extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(I,e,t)}}I.runtime=r.proto3,I.typeName="agent.v1.ReadMcpResourceExecResult",I.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:B,oneof:"result"},{no:2,name:"error",kind:"message",T:q,oneof:"result"},{no:3,name:"rejected",kind:"message",T:R,oneof:"result"},{no:4,name:"not_found",kind:"message",T:M,oneof:"result"}]));class B extends r.Message{constructor(e){super(),this.uri="",this.content={case:void 0},this.annotations={},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(B,e,t)}}B.runtime=r.proto3,B.typeName="agent.v1.ReadMcpResourceSuccess",B.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"mime_type",kind:"scalar",T:9,opt:!0},{no:5,name:"text",kind:"scalar",T:9,oneof:"content"},{no:6,name:"blob",kind:"scalar",T:12,oneof:"content"},{no:7,name:"annotations",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:8,name:"download_path",kind:"scalar",T:9,opt:!0},{no:9,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class q extends r.Message{constructor(e){super(),this.uri="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(q,e,t)}}q.runtime=r.proto3,q.typeName="agent.v1.ReadMcpResourceError",q.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class R extends r.Message{constructor(e){super(),this.uri="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(R,e,t)}}R.runtime=r.proto3,R.typeName="agent.v1.ReadMcpResourceRejected",R.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]));class M extends r.Message{constructor(e){super(),this.uri="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(M,e,t)}}M.runtime=r.proto3,M.typeName="agent.v1.ReadMcpResourceNotFound",M.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"uri",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/mcp_pb.js"(e,t,n){n.d(t,{I0:()=>i,Is:()=>u,Or:()=>o,U_:()=>m,gd:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.name="",this.providerIdentifier="",this.toolName="",this.description="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.McpToolDefinition",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:4,name:"provider_identifier",kind:"scalar",T:9},{no:5,name:"tool_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"input_schema",kind:"message",T:r.Value},{no:6,name:"input_schema_json",kind:"scalar",T:9,opt:!0}]));class o extends r.Message{constructor(e){super(),this.mcpTools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.McpTools",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"mcp_tools",kind:"message",T:s,repeated:!0}]));class i extends r.Message{constructor(e){super(),this.serverName="",this.instructions="",this.serverIdentifier="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.McpInstructions",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"instructions",kind:"scalar",T:9},{no:3,name:"server_identifier",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.tools=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.McpDescriptor",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9,opt:!0},{no:4,name:"server_use_instructions",kind:"scalar",T:9,opt:!0},{no:5,name:"tools",kind:"message",T:l,repeated:!0},{no:7,name:"plugin",kind:"scalar",T:9,opt:!0},{no:8,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:9,name:"plugin_db_id",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace_id",kind:"scalar",T:9,opt:!0}]));class l extends r.Message{constructor(e){super(),this.toolName="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.McpToolDescriptor",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"tool_name",kind:"scalar",T:9},{no:2,name:"definition_path",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"input_schema",kind:"message",T:r.Value,opt:!0},{no:5,name:"input_schema_json",kind:"scalar",T:9,opt:!0},{no:6,name:"annotations_json",kind:"scalar",T:9,opt:!0}]));class u extends r.Message{constructor(e){super(),this.enabled=!1,this.workspaceProjectDir="",this.mcpDescriptors=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.McpFileSystemOptions",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"workspace_project_dir",kind:"scalar",T:9},{no:3,name:"mcp_descriptors",kind:"message",T:a,repeated:!0}]));class m extends r.Message{constructor(e){super(),this.enabled=!1,this.mcpDescriptors=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.McpMetaToolOptions",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"mcp_descriptors",kind:"message",T:a,repeated:!0}]))},"../proto/dist/generated/agent/v1/pi_common_pb.js"(e,t,n){n.d(t,{d:()=>s});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.truncated=!1,this.truncatedBy="",this.totalLines=0,this.outputLines=0,this.outputBytes=0,this.firstLineExceedsLimit=!1,this.lastLinePartial=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.PiTruncation",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"truncated",kind:"scalar",T:8},{no:2,name:"truncated_by",kind:"scalar",T:9},{no:3,name:"total_lines",kind:"scalar",T:13},{no:4,name:"output_lines",kind:"scalar",T:13},{no:5,name:"output_bytes",kind:"scalar",T:13},{no:6,name:"max_lines",kind:"scalar",T:13,opt:!0},{no:7,name:"max_bytes",kind:"scalar",T:13,opt:!0},{no:8,name:"first_line_exceeds_limit",kind:"scalar",T:8},{no:9,name:"last_line_partial",kind:"scalar",T:8}]))},"../proto/dist/generated/agent/v1/pi_edit_tool_pb.js"(e,t,n){n.d(t,{EN:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.oldText="",this.newText="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.PiEditReplacement",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"old_text",kind:"scalar",T:9},{no:2,name:"new_text",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.PiEditToolCall",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:a}]));class i extends r.Message{constructor(e){super(),this.path="",this.edits=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.PiEditToolArgs",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"edits",kind:"message",T:s,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.PiEditToolResult",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"error",kind:"message",T:u,oneof:"result"},{no:3,name:"rejected",kind:"message",T:m,oneof:"result"}]));class l extends r.Message{constructor(e){super(),this.output="",this.diff="",this.patch="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.PiEditToolSuccess",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"output",kind:"scalar",T:9},{no:2,name:"diff",kind:"scalar",T:9},{no:3,name:"patch",kind:"scalar",T:9},{no:4,name:"first_changed_line",kind:"scalar",T:13,opt:!0}]));class u extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.PiEditToolError",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.PiEditToolRejected",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/pr_management_tool_pb.js"(e,t,n){n.d(t,{AU:()=>T,DY:()=>y,HL:()=>d});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.PullRequestStatus",[{no:0,name:"PULL_REQUEST_STATUS_UNSPECIFIED"},{no:1,name:"PULL_REQUEST_STATUS_OPEN"},{no:2,name:"PULL_REQUEST_STATUS_CLOSED"}]);class o extends s.Message{constructor(e){super(),this.toolCallId="",this.action={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.PrManagementArgs",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9},{no:2,name:"create_pr",kind:"message",T:i,oneof:"action"},{no:3,name:"update_pr",kind:"message",T:a,oneof:"action"},{no:4,name:"post_comment",kind:"message",T:l,oneof:"action"},{no:5,name:"resolve_comment",kind:"message",T:u,oneof:"action"},{no:6,name:"get_ci_status",kind:"message",T:m,oneof:"action"},{no:7,name:"set_pr_status",kind:"message",T:c,oneof:"action"}]));class i extends s.Message{constructor(e){super(),this.title="",this.body="",this.branchName="",this.addLabels=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CreatePrAction",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:4,name:"draft",kind:"scalar",T:8,opt:!0},{no:5,name:"branch_name",kind:"scalar",T:9},{no:6,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:7,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:8,name:"skip_branch_prefix_check",kind:"scalar",T:8,opt:!0},{no:9,name:"stack_on_pr_number",kind:"scalar",T:3,opt:!0}]));class a extends s.Message{constructor(e){super(),this.addLabels=[],this.removeLabels=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.UpdatePrAction",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"body",kind:"scalar",T:9,opt:!0},{no:4,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:5,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:6,name:"add_labels",kind:"scalar",T:9,repeated:!0},{no:7,name:"remove_labels",kind:"scalar",T:9,repeated:!0},{no:8,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:9,name:"stack_on_pr_number",kind:"scalar",T:3,opt:!0},{no:10,name:"clear_stack",kind:"scalar",T:8,opt:!0},{no:11,name:"draft",kind:"scalar",T:8,opt:!0}]));class l extends s.Message{constructor(e){super(),this.body="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.PostCommentAction",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"body",kind:"scalar",T:9},{no:4,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:5,name:"in_reply_to",kind:"scalar",T:3,opt:!0},{no:6,name:"path",kind:"scalar",T:9,opt:!0},{no:7,name:"line",kind:"scalar",T:5,opt:!0},{no:8,name:"start_line",kind:"scalar",T:5,opt:!0},{no:9,name:"side",kind:"scalar",T:9,opt:!0},{no:10,name:"reply_to_reference",kind:"scalar",T:9,opt:!0}]));class u extends s.Message{constructor(e){super(),this.commentId=s.protoInt64.zero,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ResolveCommentAction",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"comment_id",kind:"scalar",T:3},{no:4,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:5,name:"comment_reference",kind:"scalar",T:9,opt:!0}]));class m extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.GetCiStatusAction",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"repo_url",kind:"scalar",T:9,opt:!0}]));class c extends s.Message{constructor(e){super(),this.status=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.SetPrStatusAction",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9,opt:!0},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"repo_url",kind:"scalar",T:9,opt:!0},{no:4,name:"status",kind:"enum",T:s.proto3.getEnumType(r)}]));class d extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.PrManagementResult",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:p,oneof:"result"},{no:2,name:"error",kind:"message",T:f,oneof:"result"},{no:3,name:"rejected",kind:"message",T:g,oneof:"result"},{no:4,name:"registered",kind:"message",T:_,oneof:"result"},{no:5,name:"needs_confirmation",kind:"message",T:h,oneof:"result"}]));class p extends s.Message{constructor(e){super(),this.prUrl="",this.prNumber=0,this.message="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.PrManagementSuccess",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"pr_number",kind:"scalar",T:5},{no:3,name:"message",kind:"scalar",T:9}]));class f extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.PrManagementError",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class g extends s.Message{constructor(e){super(),this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.PrManagementRejected",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class _ extends s.Message{constructor(e){super(),this.message="",this.title="",this.body="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.PrManagementRegistered",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"body",kind:"scalar",T:9},{no:4,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:5,name:"draft",kind:"scalar",T:8,opt:!0},{no:6,name:"branch_name",kind:"scalar",T:9}]));class h extends s.Message{constructor(e){super(),this.message="",this.discoveredPrUrl="",this.discoveredPrNumber=0,this.discoveredPrTitle="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.PrManagementNeedsConfirmation",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"discovered_pr_url",kind:"scalar",T:9},{no:3,name:"discovered_pr_number",kind:"scalar",T:5},{no:4,name:"discovered_pr_title",kind:"scalar",T:9},{no:5,name:"branch_name",kind:"scalar",T:9}]));class T extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.PrManagementToolCall",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:d}]));class y extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.PrManagementRequestQuery",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o}]))},"../proto/dist/generated/agent/v1/record_screen_exec_pb.js"(e,t,n){n.d(t,{Tj:()=>a,zH:()=>i});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.START_RECORDING=1]="START_RECORDING",e[e.SAVE_RECORDING=2]="SAVE_RECORDING",e[e.DISCARD_RECORDING=3]="DISCARD_RECORDING"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.RecordingMode",[{no:0,name:"RECORDING_MODE_UNSPECIFIED"},{no:1,name:"RECORDING_MODE_START_RECORDING"},{no:2,name:"RECORDING_MODE_SAVE_RECORDING"},{no:3,name:"RECORDING_MODE_DISCARD_RECORDING"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SLASHES_NOT_ALLOWED=1]="SLASHES_NOT_ALLOWED"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.RequestedFilePathRejectedReason",[{no:0,name:"REQUESTED_FILE_PATH_REJECTED_REASON_UNSPECIFIED"},{no:1,name:"REQUESTED_FILE_PATH_REJECTED_REASON_SLASHES_NOT_ALLOWED"}]);class i extends o.Message{constructor(e){super(),this.mode=r.UNSPECIFIED,this.toolCallId="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.RecordScreenArgs",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"mode",kind:"enum",T:o.proto3.getEnumType(r)},{no:2,name:"tool_call_id",kind:"scalar",T:9},{no:3,name:"save_as_filename",kind:"scalar",T:9,opt:!0}]));class a extends o.Message{constructor(e){super(),this.result={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.RecordScreenResult",a.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"start_success",kind:"message",T:l,oneof:"result"},{no:2,name:"save_success",kind:"message",T:u,oneof:"result"},{no:3,name:"discard_success",kind:"message",T:m,oneof:"result"},{no:4,name:"failure",kind:"message",T:c,oneof:"result"}]));class l extends o.Message{constructor(e){super(),this.wasPriorRecordingCancelled=!1,this.wasSaveAsFilenameIgnored=!1,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.RecordScreenStartSuccess",l.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"was_prior_recording_cancelled",kind:"scalar",T:8},{no:2,name:"was_save_as_filename_ignored",kind:"scalar",T:8}]));class u extends o.Message{constructor(e){super(),this.path="",this.recordingDurationMs=o.protoInt64.zero,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.RecordScreenSaveSuccess",u.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"recording_duration_ms",kind:"scalar",T:3},{no:3,name:"requested_file_path_rejected_reason",kind:"enum",T:o.proto3.getEnumType(s),opt:!0}]));class m extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.RecordScreenDiscardSuccess",m.fields=o.proto3.util.newFieldList((()=>[]));class c extends o.Message{constructor(e){super(),this.error="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.RecordScreenFailure",c.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/replace_env_tool_pb.js"(e,t,n){n.d(t,{TO:()=>a,dV:()=>m,km:()=>d,us:()=>c});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CUSTOM=1]="CUSTOM",e[e.CLEAN_SLATE=2]="CLEAN_SLATE",e[e.DEFAULT=3]="DEFAULT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.ReplaceEnvMode",[{no:0,name:"REPLACE_ENV_MODE_UNSPECIFIED"},{no:1,name:"REPLACE_ENV_MODE_CUSTOM"},{no:2,name:"REPLACE_ENV_MODE_CLEAN_SLATE"},{no:3,name:"REPLACE_ENV_MODE_DEFAULT"}]);class o extends s.Message{constructor(e){super(),this.repoUrl="",this.ref="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.RepoCheckoutRefOverride",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"repo_url",kind:"scalar",T:9},{no:2,name:"ref",kind:"scalar",T:9}]));class i extends s.Message{constructor(e){super(),this.installScript="",this.dockerfileContents="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ReplaceEnvConfig",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"install_script",kind:"scalar",T:9},{no:2,name:"dockerfile_contents",kind:"scalar",T:9}]));class a extends s.Message{constructor(e){super(),this.mode=r.UNSPECIFIED,this.checkoutRefOverrides=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ReplaceEnvArgs",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"config",kind:"message",T:i},{no:2,name:"mode",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"checkout_ref_overrides",kind:"message",T:o,repeated:!0}]));class l extends s.Message{constructor(e){super(),this.setupLogs="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ReplaceEnvSuccess",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"setup_logs",kind:"scalar",T:9}]));class u extends s.Message{constructor(e){super(),this.errorMessage="",this.setupLogs="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ReplaceEnvFailure",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error_message",kind:"scalar",T:9},{no:2,name:"setup_logs",kind:"scalar",T:9}]));class m extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ReplaceEnvResult",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:l,oneof:"result"},{no:2,name:"failure",kind:"message",T:u,oneof:"result"}]));class c extends s.Message{constructor(e){super(),this.associatedPodKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.ReplaceEnvToolCall",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:m},{no:3,name:"associated_pod_key",kind:"scalar",T:9}]));class d extends s.Message{constructor(e){super(),this.associatedPodKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.ReplaceEnvToolCallDelta",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"associated_pod_key",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/report_bugfix_results_tool_pb.js"(e,t,n){n.d(t,{U_:()=>m});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FIXED=1]="FIXED",e[e.FALSE_POSITIVE=2]="FALSE_POSITIVE",e[e.COULD_NOT_FIX=3]="COULD_NOT_FIX",e[e.RESOLVED_BY_OTHER_FIX=4]="RESOLVED_BY_OTHER_FIX"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.BugfixVerdict",[{no:0,name:"BUGFIX_VERDICT_UNSPECIFIED"},{no:1,name:"BUGFIX_VERDICT_FIXED"},{no:2,name:"BUGFIX_VERDICT_FALSE_POSITIVE"},{no:3,name:"BUGFIX_VERDICT_COULD_NOT_FIX"},{no:4,name:"BUGFIX_VERDICT_RESOLVED_BY_OTHER_FIX"}]);class o extends s.Message{constructor(e){super(),this.bugId="",this.bugTitle="",this.verdict=r.UNSPECIFIED,this.explanation="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.BugfixResultItem",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"bug_id",kind:"scalar",T:9},{no:2,name:"bug_title",kind:"scalar",T:9},{no:3,name:"verdict",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"explanation",kind:"scalar",T:9},{no:5,name:"severity",kind:"scalar",T:9,opt:!0}]));class i extends s.Message{constructor(e){super(),this.summary="",this.results=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.ReportBugfixResultsArgs",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9},{no:2,name:"results",kind:"message",T:o,repeated:!0}]));class a extends s.Message{constructor(e){super(),this.results=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.ReportBugfixResultsSuccess",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"message",T:o,repeated:!0}]));class l extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.ReportBugfixResultsError",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class u extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.ReportBugfixResultsResult",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"}]));class m extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.ReportBugfixResultsToolCall",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:i},{no:2,name:"result",kind:"message",T:u}]))},"../proto/dist/generated/agent/v1/request_context_exec_pb.js"(e,t,n){n.d(t,{bb:()=>B,sG:()=>F,uw:()=>j});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CURSOR_PROJECT=1]="CURSOR_PROJECT",e[e.CURSOR_PERSONAL=2]="CURSOR_PERSONAL",e[e.CLAUDE_SKILL=3]="CLAUDE_SKILL",e[e.CLAUDE_PLUGIN=4]="CLAUDE_PLUGIN"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.PackageType",[{no:0,name:"PACKAGE_TYPE_UNSPECIFIED"},{no:1,name:"PACKAGE_TYPE_CURSOR_PROJECT"},{no:2,name:"PACKAGE_TYPE_CURSOR_PERSONAL"},{no:3,name:"PACKAGE_TYPE_CLAUDE_SKILL"},{no:4,name:"PACKAGE_TYPE_CLAUDE_PLUGIN"}]);class o extends s.Message{constructor(e){super(),this.name="",this.filePath="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.CursorPackagePrompt",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9}]));class i extends s.Message{constructor(e){super(),this.name="",this.description="",this.folderPath="",this.enabled=!1,this.prompts=[],this.readmeFilePath="",this.packageType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.CursorPackage",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9},{no:4,name:"enabled",kind:"scalar",T:8},{no:5,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:6,name:"prompts",kind:"message",T:o,repeated:!0},{no:7,name:"readme_file_path",kind:"scalar",T:9},{no:8,name:"package_type",kind:"enum",T:s.proto3.getEnumType(r)}]));var a=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js");class l extends s.Message{constructor(e){super(),this.relativeWorkspacePath="",this.remoteUrls=[],this.remoteNames=[],this.repoName="",this.repoOwner="",this.isTracked=!1,this.isLocal=!1,this.workspaceUri="",this.pathEncryptionKey="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.RepositoryIndexingInfo",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"remote_urls",kind:"scalar",T:9,repeated:!0},{no:3,name:"remote_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"repo_name",kind:"scalar",T:9},{no:5,name:"repo_owner",kind:"scalar",T:9},{no:6,name:"is_tracked",kind:"scalar",T:8},{no:7,name:"is_local",kind:"scalar",T:8},{no:8,name:"orthogonal_transform_seed",kind:"scalar",T:1,opt:!0},{no:9,name:"workspace_uri",kind:"scalar",T:9},{no:10,name:"path_encryption_key",kind:"scalar",T:9}]));var u,m=n("../proto/dist/generated/agent/v1/mcp_pb.js"),c=n("../proto/dist/generated/agent/v1/ls_exec_pb.js"),d=n("../proto/dist/generated/agent/v1/subagents_pb.js"),p=n("../proto/dist/generated/agent/v1/agent_skills_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SELF=1]="SELF",e[e.PEER=2]="PEER",e[e.SHARE=3]="SHARE",e[e.PRINCIPAL=4]="PRINCIPAL"}(u||(u={})),s.proto3.util.setEnumType(u,"agent.v1.MountedAgentStoreKind",[{no:0,name:"MOUNTED_AGENT_STORE_KIND_UNSPECIFIED"},{no:1,name:"MOUNTED_AGENT_STORE_KIND_SELF"},{no:2,name:"MOUNTED_AGENT_STORE_KIND_PEER"},{no:3,name:"MOUNTED_AGENT_STORE_KIND_SHARE"},{no:4,name:"MOUNTED_AGENT_STORE_KIND_PRINCIPAL"}]);class f extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.RequestContextArgs",f.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"notes_session_id",kind:"scalar",T:9,opt:!0},{no:3,name:"workspace_id",kind:"scalar",T:9,opt:!0},{no:4,name:"read_only_pinned_tree_sha",kind:"scalar",T:9,opt:!0},{no:5,name:"read_only_plugin_cache_root",kind:"scalar",T:9,opt:!0},{no:7,name:"use_cached",kind:"scalar",T:8,opt:!0}]));class g extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.RequestContextResult",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:_,oneof:"result"},{no:2,name:"error",kind:"message",T:h,oneof:"result"},{no:3,name:"rejected",kind:"message",T,oneof:"result"}]));class _ extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.RequestContextSuccess",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"request_context",kind:"message",T:B},{no:2,name:"served_from_disk_cache",kind:"scalar",T:8,opt:!0}]));class h extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.RequestContextError",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class T extends s.Message{constructor(e){super(),this.reason="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.RequestContextRejected",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class y extends s.Message{constructor(e){super(),this.data=new Uint8Array(0),this.uuid="",this.path="",this.mimeType="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.ImageProto",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"dimension",kind:"message",T:S},{no:6,name:"task_specific_description",kind:"scalar",T:9,opt:!0},{no:7,name:"mime_type",kind:"scalar",T:9}]));class S extends s.Message{constructor(e){super(),this.width=0,this.height=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(S,e,t)}}S.runtime=s.proto3,S.typeName="agent.v1.ImageProto.Dimension",S.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class w extends s.Message{constructor(e){super(),this.path="",this.status="",this.branchName="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(w,e,t)}}w.runtime=s.proto3,w.typeName="agent.v1.GitRepoInfo",w.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"status",kind:"scalar",T:9},{no:3,name:"branch_name",kind:"scalar",T:9},{no:4,name:"remote_url",kind:"scalar",T:9,opt:!0},{no:5,name:"previous_branch_is_ancestor",kind:"scalar",T:8,opt:!0},{no:6,name:"is_origin_backed",kind:"scalar",T:8,opt:!0}]));class k extends s.Message{constructor(e){super(),this.osVersion="",this.workspacePaths=[],this.shell="",this.sandboxEnabled=!1,this.terminalsFolder="",this.agentSharedNotesFolder="",this.agentConversationNotesFolder="",this.timeZone="",this.projectFolder="",this.agentTranscriptsFolder="",this.sandboxNetworkExplicitAllowlist=[],this.mountedAgentStores=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(k,e,t)}}k.runtime=s.proto3,k.typeName="agent.v1.RequestContextEnv",k.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"os_version",kind:"scalar",T:9},{no:2,name:"workspace_paths",kind:"scalar",T:9,repeated:!0},{no:3,name:"shell",kind:"scalar",T:9},{no:5,name:"sandbox_enabled",kind:"scalar",T:8},{no:7,name:"terminals_folder",kind:"scalar",T:9},{no:8,name:"agent_shared_notes_folder",kind:"scalar",T:9},{no:9,name:"agent_conversation_notes_folder",kind:"scalar",T:9},{no:10,name:"time_zone",kind:"scalar",T:9},{no:11,name:"project_folder",kind:"scalar",T:9},{no:12,name:"agent_transcripts_folder",kind:"scalar",T:9},{no:13,name:"artifacts_folder",kind:"scalar",T:9,opt:!0},{no:14,name:"sandbox_supported",kind:"scalar",T:8,opt:!0},{no:16,name:"sandbox_network_has_defaults",kind:"scalar",T:8,opt:!0},{no:17,name:"sandbox_network_explicit_allowlist",kind:"scalar",T:9,repeated:!0},{no:18,name:"secret_redaction_enabled",kind:"scalar",T:8,opt:!0},{no:19,name:"computer_use_supported",kind:"scalar",T:8,opt:!0},{no:20,name:"is_working_dir_home_dir",kind:"scalar",T:8,opt:!0},{no:21,name:"process_working_directory",kind:"scalar",T:9,opt:!0},{no:22,name:"smart_mode_classifier_auto_mode_enabled",kind:"scalar",T:8,opt:!0},{no:23,name:"dev_force_next_smart_mode_classifier_block_token",kind:"scalar",T:9,opt:!0},{no:24,name:"dev_delay_next_smart_mode_classifier_token",kind:"scalar",T:9,opt:!0},{no:25,name:"mounted_agent_stores",kind:"message",T:J,repeated:!0}]));class J extends s.Message{constructor(e){super(),this.path="",this.kind=u.UNSPECIFIED,this.readOnly=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(J,e,t)}}J.runtime=s.proto3,J.typeName="agent.v1.MountedAgentStore",J.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"kind",kind:"enum",T:s.proto3.getEnumType(u)},{no:3,name:"alias",kind:"scalar",T:9,opt:!0},{no:4,name:"read_only",kind:"scalar",T:8}]));class v extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(v,e,t)}}v.runtime=s.proto3,v.typeName="agent.v1.UserGitContext",v.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"username",kind:"scalar",T:9,opt:!0},{no:2,name:"email",kind:"scalar",T:9,opt:!0}]));class E extends s.Message{constructor(e){super(),this.logPath="",this.serverEndpoint="",this.sessionId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(E,e,t)}}E.runtime=s.proto3,E.typeName="agent.v1.DebugModeConfig",E.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"log_path",kind:"scalar",T:9},{no:2,name:"server_endpoint",kind:"scalar",T:9},{no:3,name:"session_id",kind:"scalar",T:9}]));class b extends s.Message{constructor(e){super(),this.name="",this.description="",this.folderPath="",this.enabled=!1,this.readmeFilePath="",this.packageType=r.UNSPECIFIED,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(b,e,t)}}b.runtime=s.proto3,b.typeName="agent.v1.SkillDescriptor",b.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"folder_path",kind:"scalar",T:9},{no:4,name:"enabled",kind:"scalar",T:8},{no:5,name:"parse_error",kind:"scalar",T:9,opt:!0},{no:6,name:"readme_file_path",kind:"scalar",T:9},{no:7,name:"package_type",kind:"enum",T:s.proto3.getEnumType(r)}]));class j extends s.Message{constructor(e){super(),this.skillDescriptors=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(j,e,t)}}j.runtime=s.proto3,j.typeName="agent.v1.SkillOptions",j.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"skill_descriptors",kind:"message",T:b,repeated:!0}]));class x extends s.Message{constructor(e){super(),this.configuredSteps=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(x,e,t)}}x.runtime=s.proto3,x.typeName="agent.v1.HooksConfigInfo",x.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"configured_steps",kind:"scalar",T:9,repeated:!0}]));class N extends s.Message{constructor(e){super(),this.allowInstructions=[],this.blockInstructions=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(N,e,t)}}N.runtime=s.proto3,N.typeName="agent.v1.PermissionsAutoRunInstructions",N.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"allow_instructions",kind:"scalar",T:9,repeated:!0},{no:2,name:"block_instructions",kind:"scalar",T:9,repeated:!0}]));class P extends s.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumberExclusive=0,this.beforeContextLines=[],this.removedLines=[],this.addedLines=[],this.afterContextLines=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(P,e,t)}}P.runtime=s.proto3,P.typeName="agent.v1.PrecomputedHumanChangeRenderedDiff",P.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number_exclusive",kind:"scalar",T:5},{no:3,name:"before_context_lines",kind:"scalar",T:9,repeated:!0},{no:4,name:"removed_lines",kind:"scalar",T:9,repeated:!0},{no:5,name:"added_lines",kind:"scalar",T:9,repeated:!0},{no:6,name:"after_context_lines",kind:"scalar",T:9,repeated:!0}]));class I extends s.Message{constructor(e){super(),this.path="",this.renderedDiffs=[],this.isNewFile=!1,this.isDeletedFile=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(I,e,t)}}I.runtime=s.proto3,I.typeName="agent.v1.PrecomputedHumanChange",I.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"rendered_diffs",kind:"message",T:P,repeated:!0},{no:3,name:"is_new_file",kind:"scalar",T:8},{no:4,name:"is_deleted_file",kind:"scalar",T:8}]));class B extends s.Message{constructor(e){super(),this.rules=[],this.repositoryInfo=[],this.tools=[],this.gitRepos=[],this.projectLayouts=[],this.mcpInstructions=[],this.fileContents={},this.customSubagents=[],this.agentSkills=[],this.precomputedHumanChanges=[],this.nonFileRules=[],this.disabledTeamRules=[],this.adminCommandDenylist=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(B,e,t)}}B.runtime=s.proto3,B.typeName="agent.v1.RequestContext",B.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"rules",kind:"message",T:a.DX,repeated:!0},{no:4,name:"env",kind:"message",T:k},{no:6,name:"repository_info",kind:"message",T:l,repeated:!0},{no:7,name:"tools",kind:"message",T:m.gd,repeated:!0},{no:8,name:"conversation_notes_listing",kind:"scalar",T:9,opt:!0},{no:9,name:"shared_notes_listing",kind:"scalar",T:9,opt:!0},{no:11,name:"git_repos",kind:"message",T:w,repeated:!0},{no:13,name:"project_layouts",kind:"message",T:c.vq,repeated:!0},{no:14,name:"mcp_instructions",kind:"message",T:m.I0,repeated:!0},{no:15,name:"debug_mode_config",kind:"message",T:E,opt:!0},{no:16,name:"cloud_rule",kind:"scalar",T:9,opt:!0},{no:17,name:"web_search_enabled",kind:"scalar",T:8,opt:!0},{no:18,name:"skill_options",kind:"message",T:j,opt:!0},{no:19,name:"repository_info_should_query_prod",kind:"scalar",T:8,opt:!0},{no:20,name:"file_contents",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:21,name:"user_intent_summary",kind:"scalar",T:9,opt:!0},{no:22,name:"custom_subagents",kind:"message",T:d.zz,repeated:!0},{no:23,name:"mcp_file_system_options",kind:"message",T:m.Is,opt:!0},{no:24,name:"web_fetch_enabled",kind:"scalar",T:8,opt:!0},{no:25,name:"hooks_additional_context",kind:"scalar",T:9,opt:!0},{no:26,name:"commit_attribution_message",kind:"scalar",T:9,opt:!0},{no:27,name:"pr_attribution_message",kind:"scalar",T:9,opt:!0},{no:28,name:"hooks_config",kind:"message",T:x,opt:!0},{no:29,name:"agent_skills",kind:"message",T:p.N,repeated:!0},{no:30,name:"precomputed_human_changes",kind:"message",T:I,repeated:!0},{no:31,name:"recently_added_plugin",kind:"message",T:A,opt:!0},{no:32,name:"supports_mcp_auth",kind:"scalar",T:8,opt:!0},{no:33,name:"git_repo_info_complete",kind:"scalar",T:8,opt:!0},{no:34,name:"mcp_meta_tool_options",kind:"message",T:m.U_,opt:!0},{no:35,name:"read_lints_enabled",kind:"scalar",T:8,opt:!0},{no:36,name:"mcp_info_complete",kind:"scalar",T:8,opt:!0},{no:37,name:"non_file_rules",kind:"message",T:a.DX,repeated:!0},{no:38,name:"matched_installed_plugin",kind:"message",T:C,opt:!0},{no:39,name:"rules_info_complete",kind:"scalar",T:8,opt:!0},{no:40,name:"env_info_complete",kind:"scalar",T:8,opt:!0},{no:41,name:"repository_info_complete",kind:"scalar",T:8,opt:!0},{no:42,name:"custom_subagents_info_complete",kind:"scalar",T:8,opt:!0},{no:43,name:"agent_skills_info_complete",kind:"scalar",T:8,opt:!0},{no:44,name:"mcp_file_system_info_complete",kind:"scalar",T:8,opt:!0},{no:45,name:"git_status_info_complete",kind:"scalar",T:8,opt:!0},{no:46,name:"user_permissions_auto_run",kind:"message",T:N,opt:!0},{no:47,name:"project_permissions_auto_run",kind:"message",T:N,opt:!0},{no:48,name:"admin_permissions_auto_run",kind:"message",T:N,opt:!0},{no:49,name:"disabled_team_rules",kind:"scalar",T:9,repeated:!0},{no:50,name:"search_conversations_enabled",kind:"scalar",T:8,opt:!0},{no:51,name:"send_message_enabled",kind:"scalar",T:8,opt:!0},{no:52,name:"admin_command_denylist",kind:"scalar",T:9,repeated:!0}]));class q extends s.Message{constructor(e){super(),this.rules=[],this.nonFileRules=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(q,e,t)}}q.runtime=s.proto3,q.typeName="agent.v1.RequestContextRulesPart",q.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rules",kind:"message",T:a.DX,repeated:!0},{no:2,name:"non_file_rules",kind:"message",T:a.DX,repeated:!0},{no:3,name:"cloud_rule",kind:"scalar",T:9,opt:!0}]));class R extends s.Message{constructor(e){super(),this.agentSkills=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(R,e,t)}}R.runtime=s.proto3,R.typeName="agent.v1.RequestContextSkillsPart",R.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_skills",kind:"message",T:p.N,repeated:!0},{no:2,name:"skill_options",kind:"message",T:j,opt:!0}]));class M extends s.Message{constructor(e){super(),this.customSubagents=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(M,e,t)}}M.runtime=s.proto3,M.typeName="agent.v1.RequestContextSubagentsPart",M.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"custom_subagents",kind:"message",T:d.zz,repeated:!0}]));class O extends s.Message{constructor(e){super(),this.tools=[],this.mcpInstructions=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(O,e,t)}}O.runtime=s.proto3,O.typeName="agent.v1.RequestContextMcpsPart",O.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"tools",kind:"message",T:m.gd,repeated:!0},{no:2,name:"mcp_instructions",kind:"message",T:m.I0,repeated:!0},{no:3,name:"mcp_file_system_options",kind:"message",T:m.Is,opt:!0},{no:4,name:"mcp_meta_tool_options",kind:"message",T:m.U_,opt:!0}]));class F extends s.Message{constructor(e){super(),this.rulesBlobId=new Uint8Array(0),this.rulesByteLength=0,this.skillsBlobId=new Uint8Array(0),this.skillsByteLength=0,this.subagentsBlobId=new Uint8Array(0),this.subagentsByteLength=0,this.mcpsBlobId=new Uint8Array(0),this.mcpsByteLength=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(F,e,t)}}F.runtime=s.proto3,F.typeName="agent.v1.RequestContextPartReferences",F.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rules_blob_id",kind:"scalar",T:12},{no:2,name:"rules_byte_length",kind:"scalar",T:13},{no:3,name:"skills_blob_id",kind:"scalar",T:12},{no:4,name:"skills_byte_length",kind:"scalar",T:13},{no:5,name:"subagents_blob_id",kind:"scalar",T:12},{no:6,name:"subagents_byte_length",kind:"scalar",T:13},{no:7,name:"mcps_blob_id",kind:"scalar",T:12},{no:8,name:"mcps_byte_length",kind:"scalar",T:13},{no:9,name:"dynamic_context",kind:"message",T:B}]));class A extends s.Message{constructor(e){super(),this.displayName="",this.description="",this.skills=[],this.subagents=[],this.hooks=[],this.rules=[],this.commands=[],this.mcpServers=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(A,e,t)}}A.runtime=s.proto3,A.typeName="agent.v1.RecentlyAddedPlugin",A.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"display_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"skills",kind:"message",T:L,repeated:!0},{no:4,name:"subagents",kind:"message",T:L,repeated:!0},{no:5,name:"hooks",kind:"message",T:L,repeated:!0},{no:6,name:"rules",kind:"message",T:L,repeated:!0},{no:7,name:"commands",kind:"message",T:L,repeated:!0},{no:8,name:"mcp_servers",kind:"scalar",T:9,repeated:!0}]));class L extends s.Message{constructor(e){super(),this.name="",this.description="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(L,e,t)}}L.runtime=s.proto3,L.typeName="agent.v1.RecentlyAddedPlugin.CapabilityDescriptor",L.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]));class C extends s.Message{constructor(e){super(),this.displayName="",this.description="",this.matchedKeyword="",this.skills=[],this.subagents=[],this.hooks=[],this.rules=[],this.commands=[],this.mcpServers=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(C,e,t)}}C.runtime=s.proto3,C.typeName="agent.v1.MatchedInstalledPlugin",C.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"display_name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"matched_keyword",kind:"scalar",T:9},{no:4,name:"skills",kind:"message",T:L,repeated:!0},{no:5,name:"subagents",kind:"message",T:L,repeated:!0},{no:6,name:"hooks",kind:"message",T:L,repeated:!0},{no:7,name:"rules",kind:"message",T:L,repeated:!0},{no:8,name:"commands",kind:"message",T:L,repeated:!0},{no:9,name:"mcp_servers",kind:"scalar",T:9,repeated:!0}]))},"../proto/dist/generated/agent/v1/sandbox_pb.js"(e,t,n){n.d(t,{Mw:()=>u});var r,s,o,i=n("@bufbuild/protobuf");class a extends i.Message{constructor(e){super(),i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(a,e,t)}}a.runtime=i.proto3,a.typeName="agent.v1.NetworkPolicyLoggingConfig",a.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"decision_log_path",kind:"scalar",T:9,opt:!0},{no:2,name:"log_format",kind:"scalar",T:9,opt:!0}]));class l extends i.Message{constructor(e){super(),this.deny=[],this.allow=[],i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(l,e,t)}}l.runtime=i.proto3,l.typeName="agent.v1.NetworkPolicy",l.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"version",kind:"scalar",T:13,opt:!0},{no:2,name:"default_action",kind:"enum",T:i.proto3.getEnumType(r),opt:!0},{no:3,name:"deny",kind:"scalar",T:9,repeated:!0},{no:4,name:"allow",kind:"scalar",T:9,repeated:!0},{no:5,name:"logging",kind:"message",T:a,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ALLOW=1]="ALLOW",e[e.DENY=2]="DENY"}(r||(r={})),i.proto3.util.setEnumType(r,"agent.v1.NetworkPolicy.DefaultAction",[{no:0,name:"DEFAULT_ACTION_UNSPECIFIED"},{no:1,name:"DEFAULT_ACTION_ALLOW"},{no:2,name:"DEFAULT_ACTION_DENY"}]);class u extends i.Message{constructor(e){super(),this.type=s.UNSPECIFIED,this.additionalReadwritePaths=[],this.additionalReadonlyPaths=[],this.readBoundary=o.UNSPECIFIED,this.additionalReadPaths=[],i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(u,e,t)}}u.runtime=i.proto3,u.typeName="agent.v1.SandboxPolicy",u.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"enum",T:i.proto3.getEnumType(s)},{no:2,name:"network_access",kind:"scalar",T:8,opt:!0},{no:3,name:"additional_readwrite_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"additional_readonly_paths",kind:"scalar",T:9,repeated:!0},{no:5,name:"debug_output_dir",kind:"scalar",T:9,opt:!0},{no:7,name:"disable_tmp_write",kind:"scalar",T:8,opt:!0},{no:8,name:"allowlist_escalated",kind:"scalar",T:8,opt:!0},{no:9,name:"enable_shared_build_cache",kind:"scalar",T:8,opt:!0},{no:10,name:"network_policy",kind:"message",T:l,opt:!0},{no:11,name:"network_policy_strict",kind:"scalar",T:8,opt:!0},{no:12,name:"capture_denies",kind:"scalar",T:8,opt:!0},{no:13,name:"skip_statsig_defaults",kind:"scalar",T:8,opt:!0},{no:14,name:"read_boundary",kind:"enum",T:i.proto3.getEnumType(o)},{no:15,name:"additional_read_paths",kind:"scalar",T:9,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INSECURE_NONE=1]="INSECURE_NONE",e[e.WORKSPACE_READWRITE=2]="WORKSPACE_READWRITE",e[e.WORKSPACE_READONLY=3]="WORKSPACE_READONLY"}(s||(s={})),i.proto3.util.setEnumType(s,"agent.v1.SandboxPolicy.Type",[{no:0,name:"TYPE_UNSPECIFIED"},{no:1,name:"TYPE_INSECURE_NONE"},{no:2,name:"TYPE_WORKSPACE_READWRITE"},{no:3,name:"TYPE_WORKSPACE_READONLY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SYSTEM=1]="SYSTEM",e[e.WORKSPACE=2]="WORKSPACE",e[e.CUSTOM=3]="CUSTOM"}(o||(o={})),i.proto3.util.setEnumType(o,"agent.v1.SandboxPolicy.ReadBoundaryMode",[{no:0,name:"READ_BOUNDARY_MODE_UNSPECIFIED"},{no:1,name:"READ_BOUNDARY_MODE_SYSTEM"},{no:2,name:"READ_BOUNDARY_MODE_WORKSPACE"},{no:3,name:"READ_BOUNDARY_MODE_CUSTOM"}]);class m extends i.Message{constructor(e){super(),i.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return i.proto3.util.equals(m,e,t)}}m.runtime=i.proto3,m.typeName="agent.v1.SandboxPolicyMergeSources",m.fields=i.proto3.util.newFieldList((()=>[{no:1,name:"per_user",kind:"message",T:u,opt:!0},{no:2,name:"per_repo",kind:"message",T:u,opt:!0},{no:3,name:"team_admin",kind:"message",T:u,opt:!0}]))},"../proto/dist/generated/agent/v1/selected_context_pb.js"(e,t,n){n.d(t,{xv:()=>Z});var r,s=n("@bufbuild/protobuf"),o=n("../proto/dist/generated/agent/v1/utils_pb.js"),i=n("../proto/dist/generated/agent/v1/ls_exec_pb.js"),a=n("../proto/dist/generated/agent/v1/cursor_rules_pb.js"),l=n("../proto/dist/generated/agent/v1/agent_skills_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.COMMAND=1]="COMMAND",e[e.SKILL=2]="SKILL",e[e.SUBAGENT=3]="SUBAGENT"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.SelectedPluginCapabilityType",[{no:0,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_UNSPECIFIED"},{no:1,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_COMMAND"},{no:2,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_SKILL"},{no:3,name:"SELECTED_PLUGIN_CAPABILITY_TYPE_SUBAGENT"}]);class u extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.SelectedImage",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:m,oneof:"data_or_blob_id"},{no:10,name:"prompt_upload_ref",kind:"message",T:d,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"dimension",kind:"message",T:c},{no:7,name:"mime_type",kind:"scalar",T:9}]));class m extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.SelectedImage.BlobIdWithData",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class c extends s.Message{constructor(e){super(),this.width=0,this.height=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.SelectedImage.Dimension",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class d extends s.Message{constructor(e){super(),this.uploadId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.PromptUploadRef",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"upload_id",kind:"scalar",T:9}]));class p extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.filename="",this.mimeType="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.SelectedDocument",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:f,oneof:"data_or_blob_id"},{no:10,name:"prompt_upload_ref",kind:"message",T:d,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"filename",kind:"scalar",T:9},{no:4,name:"mime_type",kind:"scalar",T:9},{no:7,name:"path",kind:"scalar",T:9}]));class f extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.SelectedDocument.BlobIdWithData",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class g extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},this.uuid="",this.path="",this.mimeType="",this.filename="",this.materializeToFilesystem=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.SelectedVideo",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:8,name:"data",kind:"scalar",T:12,oneof:"data_or_blob_id"},{no:9,name:"blob_id_with_data",kind:"message",T:_,oneof:"data_or_blob_id"},{no:11,name:"signed_url",kind:"message",T:h,oneof:"data_or_blob_id"},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"fps",kind:"scalar",T:2,opt:!0},{no:7,name:"mime_type",kind:"scalar",T:9},{no:10,name:"filename",kind:"scalar",T:9},{no:12,name:"materialize_to_filesystem",kind:"scalar",T:8}]));class _ extends s.Message{constructor(e){super(),this.blobId=new Uint8Array(0),this.data=new Uint8Array(0),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(_,e,t)}}_.runtime=s.proto3,_.typeName="agent.v1.SelectedVideo.BlobIdWithData",_.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"blob_id",kind:"scalar",T:12},{no:2,name:"data",kind:"scalar",T:12}]));class h extends s.Message{constructor(e){super(),this.url="",this.key="",this.expiresAtUnixMs=s.protoInt64.zero,this.refreshAfterUnixMs=s.protoInt64.zero,this.conversationId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(h,e,t)}}h.runtime=s.proto3,h.typeName="agent.v1.SelectedVideo.SignedUrl",h.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"expires_at_unix_ms",kind:"scalar",T:3},{no:4,name:"refresh_after_unix_ms",kind:"scalar",T:3},{no:5,name:"conversation_id",kind:"scalar",T:9}]));class T extends s.Message{constructor(e){super(),this.dataOrBlobId={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(T,e,t)}}T.runtime=s.proto3,T.typeName="agent.v1.ExtraContextEntry",T.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9,oneof:"data_or_blob_id"},{no:2,name:"blob_id",kind:"scalar",T:12,oneof:"data_or_blob_id"}]));class y extends s.Message{constructor(e){super(),this.content="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(y,e,t)}}y.runtime=s.proto3,y.typeName="agent.v1.SelectedFile",y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"relative_path",kind:"scalar",T:9,opt:!0}]));class S extends s.Message{constructor(e){super(),this.content="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(S,e,t)}}S.runtime=s.proto3,S.typeName="agent.v1.SelectedCodeSelection",S.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:4,name:"range",kind:"message",T:o.Q6}]));class w extends s.Message{constructor(e){super(),this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(w,e,t)}}w.runtime=s.proto3,w.typeName="agent.v1.SelectedTerminal",w.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0}]));class k extends s.Message{constructor(e){super(),this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(k,e,t)}}k.runtime=s.proto3,k.typeName="agent.v1.SelectedTerminalSelection",k.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0},{no:4,name:"range",kind:"message",T:o.Q6}]));class J extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(J,e,t)}}J.runtime=s.proto3,J.typeName="agent.v1.SelectedFolder",J.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:3,name:"directory_tree",kind:"message",T:i.vq}]));class v extends s.Message{constructor(e){super(),this.url="",this.uuid="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(v,e,t)}}v.runtime=s.proto3,v.typeName="agent.v1.SelectedExternalLink",v.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0},{no:6,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class E extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(E,e,t)}}E.runtime=s.proto3,E.typeName="agent.v1.SelectedCursorRule",E.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"rule",kind:"message",T:a.DX}]));class b extends s.Message{constructor(e){super(),this.content="",this.fullContentLengthCharCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(b,e,t)}}b.runtime=s.proto3,b.typeName="agent.v1.SelectedGitDiff",b.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"full_content_length_char_count",kind:"scalar",T:5}]));class j extends s.Message{constructor(e){super(),this.content="",this.fullContentLengthCharCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(j,e,t)}}j.runtime=s.proto3,j.typeName="agent.v1.SelectedGitDiffFromBranchToMain",j.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"full_content_length_char_count",kind:"scalar",T:5}]));class x extends s.Message{constructor(e){super(),this.sha="",this.message="",this.diff="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(x,e,t)}}x.runtime=s.proto3,x.typeName="agent.v1.SelectedGitCommit",x.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"sha",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"diff",kind:"scalar",T:9}]));class N extends s.Message{constructor(e){super(),this.number=0,this.url="",this.folderPath="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(N,e,t)}}N.runtime=s.proto3,N.typeName="agent.v1.SelectedPullRequest",N.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"title",kind:"scalar",T:9,opt:!0},{no:4,name:"folder_path",kind:"scalar",T:9},{no:5,name:"summary_json",kind:"scalar",T:9,opt:!0},{no:6,name:"description",kind:"scalar",T:9,opt:!0},{no:7,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class P extends s.Message{constructor(e){super(),this.prUrl="",this.filePath="",this.startLine=0,this.endLine=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(P,e,t)}}P.runtime=s.proto3,P.typeName="agent.v1.SelectedGitPRDiffSelection",P.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"pr_url",kind:"scalar",T:9},{no:2,name:"file_path",kind:"scalar",T:9},{no:3,name:"start_line",kind:"scalar",T:5},{no:4,name:"end_line",kind:"scalar",T:5},{no:5,name:"diff_content",kind:"scalar",T:9,opt:!0},{no:6,name:"blob_id",kind:"scalar",T:12,opt:!0}]));class I extends s.Message{constructor(e){super(),this.pluginId="",this.capabilityType=r.UNSPECIFIED,this.sourcePath="",this.snapshotToken="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(I,e,t)}}I.runtime=s.proto3,I.typeName="agent.v1.SelectedPluginCapabilityRef",I.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"plugin_id",kind:"scalar",T:9},{no:2,name:"capability_type",kind:"enum",T:s.proto3.getEnumType(r)},{no:3,name:"source_path",kind:"scalar",T:9},{no:4,name:"snapshot_token",kind:"scalar",T:9},{no:5,name:"resolved_commit_sha",kind:"scalar",T:9,opt:!0}]));class B extends s.Message{constructor(e){super(),this.name="",this.content="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(B,e,t)}}B.runtime=s.proto3,B.typeName="agent.v1.SelectedCursorCommand",B.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"plugin_capability",kind:"message",T:I,opt:!0},{no:4,name:"full_path",kind:"scalar",T:9,opt:!0},{no:5,name:"display_name",kind:"scalar",T:9,opt:!0}]));class q extends s.Message{constructor(e){super(),this.docId="",this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(q,e,t)}}q.runtime=s.proto3,q.typeName="agent.v1.SelectedDocumentation",q.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"doc_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class R extends s.Message{constructor(e){super(),this.agentId="",this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(R,e,t)}}R.runtime=s.proto3,R.typeName="agent.v1.SelectedPastChat",R.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"agent_id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class M extends s.Message{constructor(e){super(),this.name="",this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(M,e,t)}}M.runtime=s.proto3,M.typeName="agent.v1.RecentAgent",M.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"path",kind:"scalar",T:9},{no:3,name:"overview",kind:"scalar",T:9,opt:!0}]));class O extends s.Message{constructor(e){super(),this.recentAgents=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(O,e,t)}}O.runtime=s.proto3,O.typeName="agent.v1.RecentAgentsContext",O.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"recent_agents",kind:"message",T:M,repeated:!0}]));class F extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(F,e,t)}}F.runtime=s.proto3,F.typeName="agent.v1.CallFrame",F.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"function_name",kind:"scalar",T:9,opt:!0},{no:2,name:"url",kind:"scalar",T:9,opt:!0},{no:3,name:"line_number",kind:"scalar",T:5,opt:!0},{no:4,name:"column_number",kind:"scalar",T:5,opt:!0}]));class A extends s.Message{constructor(e){super(),this.callFrames=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(A,e,t)}}A.runtime=s.proto3,A.typeName="agent.v1.StackTrace",A.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"call_frames",kind:"message",T:F,repeated:!0},{no:2,name:"raw_stack_trace",kind:"scalar",T:9,opt:!0}]));class L extends s.Message{constructor(e){super(),this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(L,e,t)}}L.runtime=s.proto3,L.typeName="agent.v1.SelectedConsoleLog",L.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:1},{no:3,name:"level",kind:"scalar",T:9},{no:4,name:"client_name",kind:"scalar",T:9},{no:5,name:"session_id",kind:"scalar",T:9},{no:6,name:"stack_trace",kind:"message",T:A,opt:!0},{no:7,name:"object_data_json",kind:"scalar",T:9,opt:!0}]));class C extends s.Message{constructor(e){super(),this.element="",this.xpath="",this.textContent="",this.extra="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(C,e,t)}}C.runtime=s.proto3,C.typeName="agent.v1.SelectedUIElement",C.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"element",kind:"scalar",T:9},{no:2,name:"xpath",kind:"scalar",T:9},{no:3,name:"text_content",kind:"scalar",T:9},{no:4,name:"extra",kind:"scalar",T:9},{no:5,name:"component",kind:"scalar",T:9,opt:!0},{no:6,name:"component_props_json",kind:"scalar",T:9,opt:!0}]));class U extends s.Message{constructor(e){super(),this.name="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(U,e,t)}}U.runtime=s.proto3,U.typeName="agent.v1.SelectedSubagent",U.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9}]));class D extends s.Message{constructor(e){super(),this.browserId="",this.url="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(D,e,t)}}D.runtime=s.proto3,D.typeName="agent.v1.SelectedBrowser",D.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"browser_id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"page_title",kind:"scalar",T:9,opt:!0}]));class G extends s.Message{constructor(e){super(),this.filesToCommit=[],this.filesToExcludeFromCommit=[],this.shouldStageAllChanges=!1,this.filesToCommitWithStatus=[],this.filesToExcludeFromCommitWithStatus=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(G,e,t)}}G.runtime=s.proto3,G.typeName="agent.v1.SelectedAgenticGitActionCommitParams",G.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"files_to_commit",kind:"scalar",T:9,repeated:!0},{no:2,name:"files_to_exclude_from_commit",kind:"scalar",T:9,repeated:!0},{no:3,name:"should_stage_all_changes",kind:"scalar",T:8},{no:4,name:"create_pr_draft",kind:"scalar",T:8,opt:!0},{no:5,name:"files_to_commit_with_status",kind:"message",T:K,repeated:!0},{no:6,name:"files_to_exclude_from_commit_with_status",kind:"message",T:K,repeated:!0}]));class H extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(H,e,t)}}H.runtime=s.proto3,H.typeName="agent.v1.SelectedAgenticGitActionCreateBranchParams",H.fields=s.proto3.util.newFieldList((()=>[]));class K extends s.Message{constructor(e){super(),this.path="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(K,e,t)}}K.runtime=s.proto3,K.typeName="agent.v1.SelectedAgenticGitFileWithStatus",K.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"status",kind:"scalar",T:9,opt:!0}]));class W extends s.Message{constructor(e){super(),this.filesToPush=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(W,e,t)}}W.runtime=s.proto3,W.typeName="agent.v1.SelectedAgenticGitActionPushParams",W.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"files_to_push",kind:"scalar",T:9,repeated:!0},{no:2,name:"create_pr_draft",kind:"scalar",T:8,opt:!0}]));class Y extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Y,e,t)}}Y.runtime=s.proto3,Y.typeName="agent.v1.SelectedAgenticGitActionFixMergeConflictsParams",Y.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:2,name:"pr_url",kind:"scalar",T:9,opt:!0}]));class z extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(z,e,t)}}z.runtime=s.proto3,z.typeName="agent.v1.SelectedAgenticGitActionBabysitPrInCloudParams",z.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class V extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(V,e,t)}}V.runtime=s.proto3,V.typeName="agent.v1.SelectedAgenticGitActionUpdateBranchParams",V.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"base_branch",kind:"scalar",T:9,opt:!0}]));class Q extends s.Message{constructor(e){super(),this.remoteBranch="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Q,e,t)}}Q.runtime=s.proto3,Q.typeName="agent.v1.SelectedAgenticGitActionPullLocallyParams",Q.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"remote_branch",kind:"scalar",T:9}]));class X extends s.Message{constructor(e){super(),this.params={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(X,e,t)}}X.runtime=s.proto3,X.typeName="agent.v1.SelectedAgenticGitAction",X.fields=s.proto3.util.newFieldList((()=>[{no:2,name:"commit_params",kind:"message",T:G,oneof:"params"},{no:6,name:"commit_and_push_params",kind:"message",T:G,oneof:"params"},{no:3,name:"push_params",kind:"message",T:W,oneof:"params"},{no:7,name:"create_pr_params",kind:"message",T:W,oneof:"params"},{no:8,name:"create_pr_with_changes_params",kind:"message",T:G,oneof:"params"},{no:4,name:"fix_merge_conflicts_params",kind:"message",T:Y,oneof:"params"},{no:11,name:"babysit_pr_in_cloud_params",kind:"message",T:z,oneof:"params"},{no:14,name:"apply_locally_params",kind:"message",T:Q,oneof:"params"},{no:15,name:"checkout_branch_params",kind:"message",T:Q,oneof:"params"},{no:12,name:"create_branch_and_commit_params",kind:"message",T:G,oneof:"params"},{no:13,name:"create_branch_commit_and_push_params",kind:"message",T:G,oneof:"params"},{no:16,name:"update_branch_params",kind:"message",T:V,oneof:"params"},{no:17,name:"create_branch_params",kind:"message",T:H,oneof:"params"},{no:5,name:"branch_context",kind:"message",T:$,opt:!0},{no:9,name:"path_to_template_file",kind:"scalar",T:9,opt:!0},{no:10,name:"path_to_template_dir",kind:"scalar",T:9,opt:!0}]));class $ extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals($,e,t)}}$.runtime=s.proto3,$.typeName="agent.v1.SelectedGitBranchContext",$.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"current_branch",kind:"scalar",T:9,opt:!0},{no:2,name:"base_branch",kind:"scalar",T:9,opt:!0},{no:3,name:"agent_branch_prefix",kind:"scalar",T:9,opt:!0}]));class Z extends s.Message{constructor(e){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=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(Z,e,t)}}Z.runtime=s.proto3,Z.typeName="agent.v1.SelectedContext",Z.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"selected_images",kind:"message",T:u,repeated:!0},{no:2,name:"invocation_context",kind:"message",T:ee,opt:!0},{no:3,name:"extra_context",kind:"scalar",T:9,repeated:!0},{no:16,name:"extra_context_entries",kind:"message",T,repeated:!0},{no:4,name:"files",kind:"message",T:y,repeated:!0},{no:5,name:"code_selections",kind:"message",T:S,repeated:!0},{no:6,name:"terminals",kind:"message",T:w,repeated:!0},{no:7,name:"terminal_selections",kind:"message",T:k,repeated:!0},{no:8,name:"folders",kind:"message",T:J,repeated:!0},{no:9,name:"external_links",kind:"message",T:v,repeated:!0},{no:10,name:"cursor_rules",kind:"message",T:E,repeated:!0},{no:18,name:"git_diff",kind:"message",T:b,opt:!0},{no:11,name:"git_diff_from_branch_to_main",kind:"message",T:j,opt:!0},{no:12,name:"cursor_commands",kind:"message",T:B,repeated:!0},{no:13,name:"documentations",kind:"message",T:q,repeated:!0},{no:14,name:"ui_elements",kind:"message",T:C,repeated:!0},{no:15,name:"console_logs",kind:"message",T:L,repeated:!0},{no:17,name:"git_commits",kind:"message",T:x,repeated:!0},{no:19,name:"past_chats",kind:"message",T:R,repeated:!0},{no:20,name:"git_pr_diff_selections",kind:"message",T:P,repeated:!0},{no:21,name:"selected_pull_requests",kind:"message",T:N,repeated:!0},{no:22,name:"selected_subagents",kind:"message",T:U,repeated:!0},{no:23,name:"selected_videos",kind:"message",T:g,repeated:!0},{no:24,name:"selected_browsers",kind:"message",T:D,repeated:!0},{no:25,name:"selected_documents",kind:"message",T:p,repeated:!0},{no:26,name:"selected_skills",kind:"message",T:l.N,repeated:!0},{no:27,name:"recent_agents_context",kind:"message",T:O,opt:!0},{no:34,name:"selected_agentic_git_action",kind:"message",T:X,opt:!0}]));class ee extends s.Message{constructor(e){super(),this.data={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ee,e,t)}}ee.runtime=s.proto3,ee.typeName="agent.v1.InvocationContext",ee.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"slack_thread",kind:"message",T:te,oneof:"data"},{no:2,name:"github_pr",kind:"message",T:re,oneof:"data"},{no:3,name:"ide_state",kind:"message",T:se,oneof:"data"},{no:4,name:"microsoft_teams_thread",kind:"message",T:ne,oneof:"data"},{no:10,name:"blob_id",kind:"scalar",T:12,oneof:"data"}]));class te extends s.Message{constructor(e){super(),this.thread="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(te,e,t)}}te.runtime=s.proto3,te.typeName="agent.v1.InvocationContext.SlackThread",te.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"thread",kind:"scalar",T:9},{no:2,name:"channel_name",kind:"scalar",T:9,opt:!0},{no:3,name:"channel_purpose",kind:"scalar",T:9,opt:!0},{no:4,name:"channel_topic",kind:"scalar",T:9,opt:!0},{no:5,name:"sender_name",kind:"scalar",T:9,opt:!0},{no:6,name:"sender_id",kind:"scalar",T:9,opt:!0},{no:7,name:"sender_type",kind:"scalar",T:9,opt:!0},{no:8,name:"is_directly_addressed",kind:"scalar",T:8,opt:!0}]));class ne extends s.Message{constructor(e){super(),this.thread="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ne,e,t)}}ne.runtime=s.proto3,ne.typeName="agent.v1.InvocationContext.MicrosoftTeamsThread",ne.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"thread",kind:"scalar",T:9},{no:2,name:"channel_name",kind:"scalar",T:9,opt:!0},{no:3,name:"team_name",kind:"scalar",T:9,opt:!0},{no:4,name:"channel_description",kind:"scalar",T:9,opt:!0},{no:5,name:"team_description",kind:"scalar",T:9,opt:!0}]));class re extends s.Message{constructor(e){super(),this.title="",this.description="",this.comments="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(re,e,t)}}re.runtime=s.proto3,re.typeName="agent.v1.InvocationContext.GithubPR",re.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"comments",kind:"scalar",T:9},{no:4,name:"ci_failures",kind:"scalar",T:9,opt:!0}]));class se extends s.Message{constructor(e){super(),this.visibleFiles=[],this.recentlyViewedFiles=[],this.currentlyViewedPrs=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(se,e,t)}}se.runtime=s.proto3,se.typeName="agent.v1.InvocationContext.IdeState",se.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"visible_files",kind:"message",T:oe,repeated:!0},{no:2,name:"recently_viewed_files",kind:"message",T:oe,repeated:!0},{no:3,name:"currently_viewed_prs",kind:"message",T:ae,repeated:!0}]));class oe extends s.Message{constructor(e){super(),this.path="",this.totalLines=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(oe,e,t)}}oe.runtime=s.proto3,oe.typeName="agent.v1.InvocationContext.IdeState.File",oe.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"relative_path",kind:"scalar",T:9,opt:!0},{no:3,name:"cursor_position",kind:"message",T:ie,opt:!0},{no:4,name:"total_lines",kind:"scalar",T:5},{no:5,name:"active_command",kind:"scalar",T:9,opt:!0}]));class ie extends s.Message{constructor(e){super(),this.line=0,this.text="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ie,e,t)}}ie.runtime=s.proto3,ie.typeName="agent.v1.InvocationContext.IdeState.File.CursorPosition",ie.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:5},{no:2,name:"text",kind:"scalar",T:9}]));class ae extends s.Message{constructor(e){super(),this.number=0,this.url="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(ae,e,t)}}ae.runtime=s.proto3,ae.typeName="agent.v1.InvocationContext.IdeState.ViewedPullRequest",ae.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"title",kind:"scalar",T:9,opt:!0},{no:4,name:"folder_path",kind:"scalar",T:9,opt:!0},{no:5,name:"summary_json",kind:"scalar",T:9,opt:!0},{no:6,name:"description",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/setup_vm_environment_tool_pb.js"(e,t,n){n.d(t,{BI:()=>s,MU:()=>a,r$:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.installCommand="",this.startCommand="",this.dockerfileContents="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.SetupVmEnvironmentArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:2,name:"install_command",kind:"scalar",T:9},{no:3,name:"start_command",kind:"scalar",T:9},{no:4,name:"dockerfile_contents",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.SetupVmEnvironmentResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"}]));class i extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.SetupVmEnvironmentSuccess",i.fields=r.proto3.util.newFieldList((()=>[]));class a extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SetupVmEnvironmentToolCall",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]))},"../proto/dist/generated/agent/v1/shell_exec_pb.js"(e,t,n){n.d(t,{$F:()=>y,Db:()=>b,E4:()=>h,HO:()=>p,In:()=>k,W4:()=>v,a:()=>J,jn:()=>F,o0:()=>E,pZ:()=>O,rI:()=>I,tD:()=>x,vb:()=>j});var r,s,o,i,a,l,u=n("@bufbuild/protobuf"),m=n("../proto/dist/generated/agent/v1/sandbox_pb.js"),c=n("../proto/dist/generated/agent/v1/utils_pb.js"),d=n("../proto/dist/generated/agent/v1/hook_additional_context_pb.js");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.CANCEL=1]="CANCEL",e[e.BACKGROUND=2]="BACKGROUND"}(r||(r={})),u.proto3.util.setEnumType(r,"agent.v1.TimeoutBehavior",[{no:0,name:"TIMEOUT_BEHAVIOR_UNSPECIFIED"},{no:1,name:"TIMEOUT_BEHAVIOR_CANCEL"},{no:2,name:"TIMEOUT_BEHAVIOR_BACKGROUND"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TIMEOUT=1]="TIMEOUT",e[e.USER_REQUEST=2]="USER_REQUEST"}(s||(s={})),u.proto3.util.setEnumType(s,"agent.v1.ShellBackgroundReason",[{no:0,name:"SHELL_BACKGROUND_REASON_UNSPECIFIED"},{no:1,name:"SHELL_BACKGROUND_REASON_TIMEOUT"},{no:2,name:"SHELL_BACKGROUND_REASON_USER_REQUEST"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACCEPTED=1]="ACCEPTED",e[e.NOT_FOUND=2]="NOT_FOUND"}(o||(o={})),u.proto3.util.setEnumType(o,"agent.v1.ForceBackgroundShellStatus",[{no:0,name:"FORCE_BACKGROUND_SHELL_STATUS_UNSPECIFIED"},{no:1,name:"FORCE_BACKGROUND_SHELL_STATUS_ACCEPTED"},{no:2,name:"FORCE_BACKGROUND_SHELL_STATUS_NOT_FOUND"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.USER_ABORT=1]="USER_ABORT",e[e.TIMEOUT=2]="TIMEOUT"}(i||(i={})),u.proto3.util.setEnumType(i,"agent.v1.ShellAbortReason",[{no:0,name:"SHELL_ABORT_REASON_UNSPECIFIED"},{no:1,name:"SHELL_ABORT_REASON_USER_ABORT"},{no:2,name:"SHELL_ABORT_REASON_TIMEOUT"}]);class p extends u.Message{constructor(e){super(),this.parsingFailed=!1,this.executableCommands=[],this.hasRedirects=!1,this.hasCommandSubstitution=!1,this.redirects=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(p,e,t)}}p.runtime=u.proto3,p.typeName="agent.v1.ShellCommandParsingResult",p.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"parsing_failed",kind:"scalar",T:8},{no:2,name:"executable_commands",kind:"message",T:g,repeated:!0},{no:3,name:"has_redirects",kind:"scalar",T:8},{no:4,name:"has_command_substitution",kind:"scalar",T:8},{no:5,name:"all_redirects_are_dev_null",kind:"scalar",T:8,opt:!0},{no:6,name:"redirects",kind:"message",T:_,repeated:!0}]));class f extends u.Message{constructor(e){super(),this.type="",this.value="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(f,e,t)}}f.runtime=u.proto3,f.typeName="agent.v1.ShellCommandParsingResult.ExecutableCommandArg",f.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class g extends u.Message{constructor(e){super(),this.name="",this.args=[],this.fullText="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(g,e,t)}}g.runtime=u.proto3,g.typeName="agent.v1.ShellCommandParsingResult.ExecutableCommand",g.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"args",kind:"message",T:f,repeated:!0},{no:3,name:"full_text",kind:"scalar",T:9}]));class _ extends u.Message{constructor(e){super(),this.operator="",this.destinationFds=[],this.targetNodeType="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(_,e,t)}}_.runtime=u.proto3,_.typeName="agent.v1.ShellCommandParsingResult.Redirect",_.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"operator",kind:"scalar",T:9},{no:2,name:"destination_fds",kind:"scalar",T:13,repeated:!0},{no:3,name:"target_node_type",kind:"scalar",T:9},{no:4,name:"target_text",kind:"scalar",T:9,opt:!0}]));class h extends u.Message{constructor(e){super(),this.commands=[],this.suggestedSandboxMode=a.UNSPECIFIED,this.classificationFailed=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(h,e,t)}}h.runtime=u.proto3,h.typeName="agent.v1.CommandClassifierResult",h.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"commands",kind:"message",T,repeated:!0},{no:2,name:"suggested_sandbox_mode",kind:"enum",T:u.proto3.getEnumType(a)},{no:3,name:"classification_failed",kind:"scalar",T:8}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SANDBOX=1]="SANDBOX",e[e.NO_SANDBOX=2]="NO_SANDBOX",e[e.UNDETERMINED=3]="UNDETERMINED"}(a||(a={})),u.proto3.util.setEnumType(a,"agent.v1.CommandClassifierResult.SuggestedSandboxMode",[{no:0,name:"SUGGESTED_SANDBOX_MODE_UNSPECIFIED"},{no:1,name:"SUGGESTED_SANDBOX_MODE_SANDBOX"},{no:2,name:"SUGGESTED_SANDBOX_MODE_NO_SANDBOX"},{no:3,name:"SUGGESTED_SANDBOX_MODE_UNDETERMINED"}]);class T extends u.Message{constructor(e){super(),this.name="",this.arguments=[],this.subcommandTokens=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(T,e,t)}}T.runtime=u.proto3,T.typeName="agent.v1.CommandClassifierResult.ClassifiedCommand",T.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"arguments",kind:"scalar",T:9,repeated:!0},{no:3,name:"suggested_allowlist_entry",kind:"scalar",T:9,opt:!0},{no:4,name:"subcommand_tokens",kind:"scalar",T:9,repeated:!0}]));class y extends u.Message{constructor(e){super(),this.pattern="",this.reason="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(y,e,t)}}y.runtime=u.proto3,y.typeName="agent.v1.ShellOutputNotificationConfig",y.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"pattern",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9},{no:3,name:"debounce",kind:"scalar",T:1,opt:!0},{no:4,name:"notification_limit",kind:"scalar",T:5,opt:!0}]));class S extends u.Message{constructor(e){super(),this.toolCallId="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(S,e,t)}}S.runtime=u.proto3,S.typeName="agent.v1.ForceBackgroundShellArgs",S.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"tool_call_id",kind:"scalar",T:9}]));class w extends u.Message{constructor(e){super(),this.status=o.UNSPECIFIED,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(w,e,t)}}w.runtime=u.proto3,w.typeName="agent.v1.ForceBackgroundShellResult",w.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:u.proto3.getEnumType(o)},{no:2,name:"shell_result",kind:"message",T:v,opt:!0}]));class k extends u.Message{constructor(e){super(),this.kind=l.UNSPECIFIED,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(k,e,t)}}k.runtime=u.proto3,k.typeName="agent.v1.ShellHookApprovalRequirement",k.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"kind",kind:"enum",T:u.proto3.getEnumType(l)},{no:2,name:"reason",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FORCE_PROMPT=1]="FORCE_PROMPT"}(l||(l={})),u.proto3.util.setEnumType(l,"agent.v1.ShellHookApprovalRequirement.Kind",[{no:0,name:"KIND_UNSPECIFIED"},{no:1,name:"KIND_FORCE_PROMPT"}]);class J extends u.Message{constructor(e){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=r.UNSPECIFIED,this.closeStdin=!1,this.adminCommandDenylist=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(J,e,t)}}J.runtime=u.proto3,J.typeName="agent.v1.ShellArgs",J.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"timeout",kind:"scalar",T:5},{no:4,name:"tool_call_id",kind:"scalar",T:9},{no:5,name:"simple_commands",kind:"scalar",T:9,repeated:!0},{no:6,name:"has_input_redirect",kind:"scalar",T:8},{no:7,name:"has_output_redirect",kind:"scalar",T:8},{no:8,name:"parsing_result",kind:"message",T:p},{no:9,name:"requested_sandbox_policy",kind:"message",T:m.Mw,opt:!0},{no:10,name:"file_output_threshold_bytes",kind:"scalar",T:4,opt:!0},{no:11,name:"is_background",kind:"scalar",T:8},{no:12,name:"skip_approval",kind:"scalar",T:8},{no:13,name:"timeout_behavior",kind:"enum",T:u.proto3.getEnumType(r)},{no:14,name:"hard_timeout",kind:"scalar",T:5,opt:!0},{no:15,name:"description",kind:"scalar",T:9,opt:!0},{no:16,name:"classifier_result",kind:"message",T:h,opt:!0},{no:17,name:"close_stdin",kind:"scalar",T:8},{no:18,name:"output_notification",kind:"message",T:y,opt:!0},{no:19,name:"smart_mode_approval",kind:"message",T:c.UC,opt:!0},{no:20,name:"hook_approval_requirement",kind:"message",T:k,opt:!0},{no:21,name:"conversation_id",kind:"scalar",T:9,opt:!0},{no:22,name:"admin_command_denylist",kind:"scalar",T:9,repeated:!0}]));class v extends u.Message{constructor(e){super(),this.result={case:void 0},u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(v,e,t)}}v.runtime=u.proto3,v.typeName="agent.v1.ShellResult",v.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:q,oneof:"result"},{no:2,name:"failure",kind:"message",T:R,oneof:"result"},{no:3,name:"timeout",kind:"message",T:M,oneof:"result"},{no:4,name:"rejected",kind:"message",T:O,oneof:"result"},{no:5,name:"spawn_error",kind:"message",T:A,oneof:"result"},{no:7,name:"permission_denied",kind:"message",T:F,oneof:"result"},{no:101,name:"sandbox_policy",kind:"message",T:m.Mw,opt:!0},{no:102,name:"is_background",kind:"scalar",T:8,opt:!0},{no:103,name:"terminals_folder",kind:"scalar",T:9,opt:!0},{no:104,name:"pid",kind:"scalar",T:13,opt:!0}]));class E extends u.Message{constructor(e){super(),this.data="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(E,e,t)}}E.runtime=u.proto3,E.typeName="agent.v1.ShellStreamStdout",E.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class b extends u.Message{constructor(e){super(),this.data="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(b,e,t)}}b.runtime=u.proto3,b.typeName="agent.v1.ShellStreamStderr",b.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:9}]));class j extends u.Message{constructor(e){super(),this.code=0,this.cwd="",this.aborted=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(j,e,t)}}j.runtime=u.proto3,j.typeName="agent.v1.ShellStreamExit",j.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"code",kind:"scalar",T:13},{no:2,name:"cwd",kind:"scalar",T:9},{no:3,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:4,name:"aborted",kind:"scalar",T:8},{no:5,name:"abort_reason",kind:"enum",T:u.proto3.getEnumType(i),opt:!0},{no:6,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0}]));class x extends u.Message{constructor(e){super(),u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(x,e,t)}}x.runtime=u.proto3,x.typeName="agent.v1.ShellStreamStart",x.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"sandbox_policy",kind:"message",T:m.Mw,opt:!0}]));class N extends u.Message{constructor(e){super(),this.shellId=0,this.command="",this.workingDirectory="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(N,e,t)}}N.runtime=u.proto3,N.typeName="agent.v1.ShellStreamBackgrounded",N.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"shell_id",kind:"scalar",T:13},{no:2,name:"command",kind:"scalar",T:9},{no:3,name:"working_directory",kind:"scalar",T:9},{no:4,name:"pid",kind:"scalar",T:13,opt:!0},{no:5,name:"ms_to_wait",kind:"scalar",T:5,opt:!0},{no:6,name:"reason",kind:"enum",T:u.proto3.getEnumType(s),opt:!0}]));class P extends u.Message{constructor(e){super(),this.hookAdditionalContexts=[],u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(P,e,t)}}P.runtime=u.proto3,P.typeName="agent.v1.ShellStreamHookContext",P.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"hook_additional_contexts",kind:"message",T:d.C,repeated:!0}]));class I extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.sandboxPolicyType="",this.reason="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(I,e,t)}}I.runtime=u.proto3,I.typeName="agent.v1.ShellSandboxUnsupported",I.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"sandbox_policy_type",kind:"scalar",T:9},{no:4,name:"reason",kind:"scalar",T:9},{no:5,name:"is_readonly",kind:"scalar",T:8}]));class B extends u.Message{constructor(e){super(),this.event={case:void 0},u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(B,e,t)}}B.runtime=u.proto3,B.typeName="agent.v1.ShellStream",B.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"stdout",kind:"message",T:E,oneof:"event"},{no:2,name:"stderr",kind:"message",T:b,oneof:"event"},{no:3,name:"exit",kind:"message",T:j,oneof:"event"},{no:4,name:"start",kind:"message",T:x,oneof:"event"},{no:5,name:"rejected",kind:"message",T:O,oneof:"event"},{no:6,name:"permission_denied",kind:"message",T:F,oneof:"event"},{no:7,name:"backgrounded",kind:"message",T:N,oneof:"event"},{no:8,name:"hook_context",kind:"message",T:P,oneof:"event"},{no:9,name:"sandbox_unsupported",kind:"message",T:I,oneof:"event"}]));class q extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(q,e,t)}}q.runtime=u.proto3,q.typeName="agent.v1.ShellSuccess",q.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5},{no:4,name:"signal",kind:"scalar",T:9},{no:5,name:"stdout",kind:"scalar",T:9},{no:6,name:"stderr",kind:"scalar",T:9},{no:7,name:"execution_time",kind:"scalar",T:5},{no:8,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:9,name:"shell_id",kind:"scalar",T:13,opt:!0},{no:10,name:"interleaved_output",kind:"scalar",T:9,opt:!0},{no:11,name:"pid",kind:"scalar",T:13,opt:!0},{no:12,name:"ms_to_wait",kind:"scalar",T:5,opt:!0},{no:13,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0},{no:14,name:"background_reason",kind:"enum",T:u.proto3.getEnumType(s),opt:!0},{no:15,name:"output_head",kind:"scalar",T:9,opt:!0},{no:16,name:"output_tail",kind:"scalar",T:9,opt:!0},{no:17,name:"elided_chars",kind:"scalar",T:13,opt:!0}]));class R extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.exitCode=0,this.signal="",this.stdout="",this.stderr="",this.executionTime=0,this.aborted=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(R,e,t)}}R.runtime=u.proto3,R.typeName="agent.v1.ShellFailure",R.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"exit_code",kind:"scalar",T:5},{no:4,name:"signal",kind:"scalar",T:9},{no:5,name:"stdout",kind:"scalar",T:9},{no:6,name:"stderr",kind:"scalar",T:9},{no:7,name:"execution_time",kind:"scalar",T:5},{no:8,name:"output_location",kind:"message",T:c.pV,opt:!0},{no:9,name:"interleaved_output",kind:"scalar",T:9,opt:!0},{no:10,name:"abort_reason",kind:"enum",T:u.proto3.getEnumType(i),opt:!0},{no:11,name:"aborted",kind:"scalar",T:8},{no:12,name:"local_execution_time_ms",kind:"scalar",T:5,opt:!0},{no:13,name:"output_head",kind:"scalar",T:9,opt:!0},{no:14,name:"output_tail",kind:"scalar",T:9,opt:!0},{no:15,name:"elided_chars",kind:"scalar",T:13,opt:!0}]));class M extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.timeoutMs=0,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(M,e,t)}}M.runtime=u.proto3,M.typeName="agent.v1.ShellTimeout",M.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"timeout_ms",kind:"scalar",T:5}]));class O extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.reason="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(O,e,t)}}O.runtime=u.proto3,O.typeName="agent.v1.ShellRejected",O.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"reason",kind:"scalar",T:9},{no:4,name:"is_readonly",kind:"scalar",T:8}]));class F extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",this.isReadonly=!1,u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(F,e,t)}}F.runtime=u.proto3,F.typeName="agent.v1.ShellPermissionDenied",F.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9},{no:4,name:"is_readonly",kind:"scalar",T:8}]));class A extends u.Message{constructor(e){super(),this.command="",this.workingDirectory="",this.error="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(A,e,t)}}A.runtime=u.proto3,A.typeName="agent.v1.ShellSpawnError",A.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"command",kind:"scalar",T:9},{no:2,name:"working_directory",kind:"scalar",T:9},{no:3,name:"error",kind:"scalar",T:9}]));class L extends u.Message{constructor(e){super(),this.stdoutDelta="",this.stderrDelta="",u.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return u.proto3.util.equals(L,e,t)}}L.runtime=u.proto3,L.typeName="agent.v1.ShellPartialResult",L.fields=u.proto3.util.newFieldList((()=>[{no:1,name:"stdout_delta",kind:"scalar",T:9},{no:2,name:"stderr_delta",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/subagents_pb.js"(e,t,n){n.d(t,{FL:()=>s,_L:()=>i,zz:()=>y});var r,s,o=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT",e[e.READONLY=2]="READONLY",e[e.AGENT_ONLY=3]="AGENT_ONLY"}(r||(r={})),o.proto3.util.setEnumType(r,"agent.v1.CustomSubagentPermissionMode",[{no:0,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_UNSPECIFIED"},{no:1,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_DEFAULT"},{no:2,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_READONLY"},{no:3,name:"CUSTOM_SUBAGENT_PERMISSION_MODE_AGENT_ONLY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AGENT=1]="AGENT",e[e.PLAN=2]="PLAN"}(s||(s={})),o.proto3.util.setEnumType(s,"agent.v1.TaskMode",[{no:0,name:"TASK_MODE_UNSPECIFIED"},{no:1,name:"TASK_MODE_AGENT"},{no:2,name:"TASK_MODE_PLAN"}]);class i extends o.Message{constructor(e){super(),this.type={case:void 0},o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(i,e,t)}}i.runtime=o.proto3,i.typeName="agent.v1.SubagentType",i.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"unspecified",kind:"message",T:a,oneof:"type"},{no:2,name:"computer_use",kind:"message",T:l,oneof:"type"},{no:3,name:"custom",kind:"message",T,oneof:"type"},{no:4,name:"explore",kind:"message",T:u,oneof:"type"},{no:5,name:"media_review",kind:"message",T:m,oneof:"type"},{no:6,name:"bash",kind:"message",T:c,oneof:"type"},{no:7,name:"browser_use",kind:"message",T:p,oneof:"type"},{no:8,name:"shell",kind:"message",T:d,oneof:"type"},{no:9,name:"vm_setup_helper",kind:"message",T:f,oneof:"type"},{no:10,name:"debug",kind:"message",T:g,oneof:"type"},{no:11,name:"cursor_guide",kind:"message",T:_,oneof:"type"},{no:12,name:"watch_video",kind:"message",T:h,oneof:"type"}]));class a extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(a,e,t)}}a.runtime=o.proto3,a.typeName="agent.v1.SubagentTypeUnspecified",a.fields=o.proto3.util.newFieldList((()=>[]));class l extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(l,e,t)}}l.runtime=o.proto3,l.typeName="agent.v1.SubagentTypeComputerUse",l.fields=o.proto3.util.newFieldList((()=>[]));class u extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(u,e,t)}}u.runtime=o.proto3,u.typeName="agent.v1.SubagentTypeExplore",u.fields=o.proto3.util.newFieldList((()=>[]));class m extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(m,e,t)}}m.runtime=o.proto3,m.typeName="agent.v1.SubagentTypeMediaReview",m.fields=o.proto3.util.newFieldList((()=>[]));class c extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(c,e,t)}}c.runtime=o.proto3,c.typeName="agent.v1.SubagentTypeBash",c.fields=o.proto3.util.newFieldList((()=>[]));class d extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(d,e,t)}}d.runtime=o.proto3,d.typeName="agent.v1.SubagentTypeShell",d.fields=o.proto3.util.newFieldList((()=>[]));class p extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(p,e,t)}}p.runtime=o.proto3,p.typeName="agent.v1.SubagentTypeBrowserUse",p.fields=o.proto3.util.newFieldList((()=>[]));class f extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(f,e,t)}}f.runtime=o.proto3,f.typeName="agent.v1.SubagentTypeVmSetupHelper",f.fields=o.proto3.util.newFieldList((()=>[]));class g extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(g,e,t)}}g.runtime=o.proto3,g.typeName="agent.v1.SubagentTypeDebug",g.fields=o.proto3.util.newFieldList((()=>[]));class _ extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(_,e,t)}}_.runtime=o.proto3,_.typeName="agent.v1.SubagentTypeCursorGuide",_.fields=o.proto3.util.newFieldList((()=>[]));class h extends o.Message{constructor(e){super(),o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(h,e,t)}}h.runtime=o.proto3,h.typeName="agent.v1.SubagentTypeWatchVideo",h.fields=o.proto3.util.newFieldList((()=>[]));class T extends o.Message{constructor(e){super(),this.name="",o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(T,e,t)}}T.runtime=o.proto3,T.typeName="agent.v1.SubagentTypeCustom",T.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9}]));class y extends o.Message{constructor(e){super(),this.fullPath="",this.name="",this.description="",this.tools=[],this.model="",this.prompt="",this.permissionMode=r.UNSPECIFIED,this.isBackground=!1,this.forceDefaultModel=!1,o.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return o.proto3.util.equals(y,e,t)}}y.runtime=o.proto3,y.typeName="agent.v1.CustomSubagent",y.fields=o.proto3.util.newFieldList((()=>[{no:1,name:"full_path",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9},{no:4,name:"tools",kind:"scalar",T:9,repeated:!0},{no:5,name:"model",kind:"scalar",T:9},{no:6,name:"prompt",kind:"scalar",T:9},{no:7,name:"permission_mode",kind:"enum",T:o.proto3.getEnumType(r)},{no:8,name:"is_background",kind:"scalar",T:8},{no:9,name:"plugin",kind:"scalar",T:9,opt:!0},{no:10,name:"marketplace",kind:"scalar",T:9,opt:!0},{no:11,name:"plugin_id",kind:"scalar",T:9,opt:!0},{no:12,name:"marketplace_id",kind:"scalar",T:9,opt:!0},{no:13,name:"force_default_model",kind:"scalar",T:8},{no:14,name:"source",kind:"scalar",T:9,opt:!0}]))},"../proto/dist/generated/agent/v1/switch_mode_tool_pb.js"(e,t,n){n.d(t,{Cs:()=>u,Nc:()=>m,w$:()=>c});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.targetModeId="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.SwitchModeArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"target_mode_id",kind:"scalar",T:9},{no:2,name:"explanation",kind:"scalar",T:9,opt:!0},{no:3,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.SwitchModeResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.fromModeId="",this.toModeId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.SwitchModeSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"from_mode_id",kind:"scalar",T:9},{no:2,name:"to_mode_id",kind:"scalar",T:9}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SwitchModeError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.SwitchModeRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.SwitchModeToolCall",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.SwitchModeRequestQuery",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class c extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.SwitchModeRequestResponse",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:d,oneof:"result"},{no:2,name:"rejected",kind:"message",T:p,oneof:"result"}]));class d extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.SwitchModeRequestResponse.Approved",d.fields=r.proto3.util.newFieldList((()=>[]));class p extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.SwitchModeRequestResponse.Rejected",p.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/todo_tool_pb.js"(e,t,n){n.d(t,{AJ:()=>c,bk:()=>i,kW:()=>o});var r,s=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.PENDING=1]="PENDING",e[e.IN_PROGRESS=2]="IN_PROGRESS",e[e.COMPLETED=3]="COMPLETED",e[e.CANCELLED=4]="CANCELLED"}(r||(r={})),s.proto3.util.setEnumType(r,"agent.v1.TodoStatus",[{no:0,name:"TODO_STATUS_UNSPECIFIED"},{no:1,name:"TODO_STATUS_PENDING"},{no:2,name:"TODO_STATUS_IN_PROGRESS"},{no:3,name:"TODO_STATUS_COMPLETED"},{no:4,name:"TODO_STATUS_CANCELLED"}]);class o extends s.Message{constructor(e){super(),this.id="",this.content="",this.status=r.UNSPECIFIED,this.createdAt=s.protoInt64.zero,this.updatedAt=s.protoInt64.zero,this.dependencies=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(o,e,t)}}o.runtime=s.proto3,o.typeName="agent.v1.TodoItem",o.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"content",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:s.proto3.getEnumType(r)},{no:4,name:"created_at",kind:"scalar",T:3},{no:5,name:"updated_at",kind:"scalar",T:3},{no:6,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class i extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(i,e,t)}}i.runtime=s.proto3,i.typeName="agent.v1.UpdateTodosToolCall",i.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:a},{no:2,name:"result",kind:"message",T:l}]));class a extends s.Message{constructor(e){super(),this.todos=[],this.merge=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(a,e,t)}}a.runtime=s.proto3,a.typeName="agent.v1.UpdateTodosArgs",a.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"merge",kind:"scalar",T:8}]));class l extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(l,e,t)}}l.runtime=s.proto3,l.typeName="agent.v1.UpdateTodosResult",l.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:u,oneof:"result"},{no:2,name:"error",kind:"message",T:m,oneof:"result"}]));class u extends s.Message{constructor(e){super(),this.todos=[],this.totalCount=0,this.wasMerge=!1,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(u,e,t)}}u.runtime=s.proto3,u.typeName="agent.v1.UpdateTodosSuccess",u.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"total_count",kind:"scalar",T:5},{no:3,name:"was_merge",kind:"scalar",T:8}]));class m extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(m,e,t)}}m.runtime=s.proto3,m.typeName="agent.v1.UpdateTodosError",m.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class c extends s.Message{constructor(e){super(),s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(c,e,t)}}c.runtime=s.proto3,c.typeName="agent.v1.ReadTodosToolCall",c.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:d},{no:2,name:"result",kind:"message",T:p}]));class d extends s.Message{constructor(e){super(),this.statusFilter=[],this.idFilter=[],s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(d,e,t)}}d.runtime=s.proto3,d.typeName="agent.v1.ReadTodosArgs",d.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"status_filter",kind:"enum",T:s.proto3.getEnumType(r),repeated:!0},{no:2,name:"id_filter",kind:"scalar",T:9,repeated:!0}]));class p extends s.Message{constructor(e){super(),this.result={case:void 0},s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(p,e,t)}}p.runtime=s.proto3,p.typeName="agent.v1.ReadTodosResult",p.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:f,oneof:"result"},{no:2,name:"error",kind:"message",T:g,oneof:"result"}]));class f extends s.Message{constructor(e){super(),this.todos=[],this.totalCount=0,s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(f,e,t)}}f.runtime=s.proto3,f.typeName="agent.v1.ReadTodosSuccess",f.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"todos",kind:"message",T:o,repeated:!0},{no:2,name:"total_count",kind:"scalar",T:5}]));class g extends s.Message{constructor(e){super(),this.error="",s.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return s.proto3.util.equals(g,e,t)}}g.runtime=s.proto3,g.typeName="agent.v1.ReadTodosError",g.fields=s.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/utils_pb.js"(e,t,n){n.d(t,{Q6:()=>s,UC:()=>a,pV:()=>i,yX:()=>o});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.Range",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"start",kind:"message",T:o},{no:2,name:"end",kind:"message",T:o}]));class o extends r.Message{constructor(e){super(),this.line=0,this.column=0,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.Position",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:13},{no:2,name:"column",kind:"scalar",T:13}]));class i extends r.Message{constructor(e){super(),this.filePath="",this.sizeBytes=r.protoInt64.zero,this.lineCount=r.protoInt64.zero,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.OutputLocation",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"size_bytes",kind:"scalar",T:3},{no:3,name:"line_count",kind:"scalar",T:3}]));class a extends r.Message{constructor(e){super(),this.requestId="",this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.SmartModeApproval",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/web_fetch_tool_pb.js"(e,t,n){n.d(t,{Un:()=>c,fS:()=>d,fd:()=>m});var r=n("@bufbuild/protobuf"),s=n("../proto/dist/generated/agent/v1/utils_pb.js");class o extends r.Message{constructor(e){super(),this.url="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.WebFetchArgs",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class i extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.WebFetchResult",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:a,oneof:"result"},{no:2,name:"error",kind:"message",T:l,oneof:"result"},{no:3,name:"rejected",kind:"message",T:u,oneof:"result"}]));class a extends r.Message{constructor(e){super(),this.url="",this.markdown="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.WebFetchSuccess",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"markdown",kind:"scalar",T:9},{no:3,name:"output_location",kind:"message",T:s.pV,opt:!0}]));class l extends r.Message{constructor(e){super(),this.url="",this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.WebFetchError",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"error",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.WebFetchRejected",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.WebFetchToolCall",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"result",kind:"message",T:i}]));class c extends r.Message{constructor(e){super(),this.skipApproval=!1,r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WebFetchRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:o},{no:2,name:"skip_approval",kind:"scalar",T:8},{no:3,name:"smart_mode_approval",kind:"message",T:s.UC}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WebFetchRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:p,oneof:"result"},{no:2,name:"rejected",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WebFetchRequestResponse.Approved",p.fields=r.proto3.util.newFieldList((()=>[]));class f extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WebFetchRequestResponse.Rejected",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/agent/v1/web_search_tool_pb.js"(e,t,n){n.d(t,{KL:()=>c,lI:()=>d,pn:()=>m});var r=n("@bufbuild/protobuf");class s extends r.Message{constructor(e){super(),this.searchTerm="",this.toolCallId="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new s).fromBinary(e,t)}static fromJson(e,t){return(new s).fromJson(e,t)}static fromJsonString(e,t){return(new s).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(s,e,t)}}s.runtime=r.proto3,s.typeName="agent.v1.WebSearchArgs",s.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"search_term",kind:"scalar",T:9},{no:2,name:"tool_call_id",kind:"scalar",T:9}]));class o extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new o).fromBinary(e,t)}static fromJson(e,t){return(new o).fromJson(e,t)}static fromJsonString(e,t){return(new o).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(o,e,t)}}o.runtime=r.proto3,o.typeName="agent.v1.WebSearchResult",o.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:i,oneof:"result"},{no:2,name:"error",kind:"message",T:a,oneof:"result"},{no:3,name:"rejected",kind:"message",T:l,oneof:"result"}]));class i extends r.Message{constructor(e){super(),this.references=[],r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new i).fromBinary(e,t)}static fromJson(e,t){return(new i).fromJson(e,t)}static fromJsonString(e,t){return(new i).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(i,e,t)}}i.runtime=r.proto3,i.typeName="agent.v1.WebSearchSuccess",i.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"references",kind:"message",T:u,repeated:!0}]));class a extends r.Message{constructor(e){super(),this.error="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new a).fromBinary(e,t)}static fromJson(e,t){return(new a).fromJson(e,t)}static fromJsonString(e,t){return(new a).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(a,e,t)}}a.runtime=r.proto3,a.typeName="agent.v1.WebSearchError",a.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"scalar",T:9}]));class l extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new l).fromBinary(e,t)}static fromJson(e,t){return(new l).fromJson(e,t)}static fromJsonString(e,t){return(new l).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(l,e,t)}}l.runtime=r.proto3,l.typeName="agent.v1.WebSearchRejected",l.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]));class u extends r.Message{constructor(e){super(),this.title="",this.url="",this.chunk="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new u).fromBinary(e,t)}static fromJson(e,t){return(new u).fromJson(e,t)}static fromJsonString(e,t){return(new u).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(u,e,t)}}u.runtime=r.proto3,u.typeName="agent.v1.WebSearchReference",u.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"chunk",kind:"scalar",T:9}]));class m extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new m).fromBinary(e,t)}static fromJson(e,t){return(new m).fromJson(e,t)}static fromJsonString(e,t){return(new m).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(m,e,t)}}m.runtime=r.proto3,m.typeName="agent.v1.WebSearchToolCall",m.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s},{no:2,name:"result",kind:"message",T:o}]));class c extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new c).fromBinary(e,t)}static fromJson(e,t){return(new c).fromJson(e,t)}static fromJsonString(e,t){return(new c).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(c,e,t)}}c.runtime=r.proto3,c.typeName="agent.v1.WebSearchRequestQuery",c.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"args",kind:"message",T:s}]));class d extends r.Message{constructor(e){super(),this.result={case:void 0},r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new d).fromBinary(e,t)}static fromJson(e,t){return(new d).fromJson(e,t)}static fromJsonString(e,t){return(new d).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(d,e,t)}}d.runtime=r.proto3,d.typeName="agent.v1.WebSearchRequestResponse",d.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"approved",kind:"message",T:p,oneof:"result"},{no:2,name:"rejected",kind:"message",T:f,oneof:"result"}]));class p extends r.Message{constructor(e){super(),r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new p).fromBinary(e,t)}static fromJson(e,t){return(new p).fromJson(e,t)}static fromJsonString(e,t){return(new p).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(p,e,t)}}p.runtime=r.proto3,p.typeName="agent.v1.WebSearchRequestResponse.Approved",p.fields=r.proto3.util.newFieldList((()=>[]));class f extends r.Message{constructor(e){super(),this.reason="",r.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new f).fromBinary(e,t)}static fromJson(e,t){return(new f).fromJson(e,t)}static fromJsonString(e,t){return(new f).fromJsonString(e,t)}static equals(e,t){return r.proto3.util.equals(f,e,t)}}f.runtime=r.proto3,f.typeName="agent.v1.WebSearchRequestResponse.Rejected",f.fields=r.proto3.util.newFieldList((()=>[{no:1,name:"reason",kind:"scalar",T:9}]))},"../proto/dist/generated/aiserver/v1/repository_pb.js"(e,t,n){n.d(t,{PT:()=>Gt});var r,s,o,i,a,l,u,m,c,d,p,f,g,_,h,T,y,S,w,k,J,v,E,b,j,x,N,P,I,B,q,R,M,O,F,A=n("@bufbuild/protobuf"),L=n("../proto/dist/generated/aiserver/v1/utils_pb.js");class C extends A.Message{constructor(e){super(),this.files=[],this.targetDir="",this.repo="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(C,e,t)}}C.runtime=A.proto3,C.typeName="aiserver.v1.CreateExperimentalIndexRequest",C.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"files",kind:"scalar",T:9,repeated:!0},{no:2,name:"target_dir",kind:"scalar",T:9},{no:3,name:"repo",kind:"scalar",T:9}]));class U extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(U,e,t)}}U.runtime=A.proto3,U.typeName="aiserver.v1.CreateExperimentalIndexResponse",U.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class D extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(D,e,t)}}D.runtime=A.proto3,D.typeName="aiserver.v1.ListExperimentalIndexFilesRequest",D.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class G extends A.Message{constructor(e){super(),this.indexId="",this.files=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(G,e,t)}}G.runtime=A.proto3,G.typeName="aiserver.v1.ListExperimentalIndexFilesResponse",G.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"files",kind:"message",T:he,repeated:!0}]));class H extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(H,e,t)}}H.runtime=A.proto3,H.typeName="aiserver.v1.ListenExperimentalIndexRequest",H.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class K extends A.Message{constructor(e){super(),this.indexId="",this.item={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(K,e,t)}}K.runtime=A.proto3,K.typeName="aiserver.v1.ListenExperimentalIndexResponse",K.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"ready",kind:"message",T:W,oneof:"item"},{no:3,name:"register",kind:"message",T:Y,oneof:"item"},{no:4,name:"choose",kind:"message",T:z,oneof:"item"},{no:5,name:"summarize",kind:"message",T:V,oneof:"item"},{no:6,name:"error",kind:"message",T:Q,oneof:"item"}]));class W extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(W,e,t)}}W.runtime=A.proto3,W.typeName="aiserver.v1.ListenExperimentalIndexResponse.ReadyItem",W.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"request",kind:"message",T:H}]));class Y extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Y,e,t)}}Y.runtime=A.proto3,Y.typeName="aiserver.v1.ListenExperimentalIndexResponse.RegisterItem",Y.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:$},{no:2,name:"request",kind:"message",T:X},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class z extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(z,e,t)}}z.runtime=A.proto3,z.typeName="aiserver.v1.ListenExperimentalIndexResponse.ChooseItem",z.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:ie},{no:2,name:"request",kind:"message",T:re},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class V extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(V,e,t)}}V.runtime=A.proto3,V.typeName="aiserver.v1.ListenExperimentalIndexResponse.SummarizeItem",V.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:de},{no:2,name:"request",kind:"message",T:ce},{no:3,name:"req_uuid",kind:"scalar",T:9}]));class Q extends A.Message{constructor(e){super(),this.message="",this.statusCode=0,this.request={case:void 0},this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Q,e,t)}}Q.runtime=A.proto3,Q.typeName="aiserver.v1.ListenExperimentalIndexResponse.ErrorItem",Q.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"status_code",kind:"scalar",T:5},{no:3,name:"register",kind:"message",T:X,oneof:"request"},{no:4,name:"choose",kind:"message",T:re,oneof:"request"},{no:5,name:"summarize",kind:"message",T:ce,oneof:"request"},{no:6,name:"req_uuid",kind:"scalar",T:9}]));class X extends A.Message{constructor(e){super(),this.indexId="",this.workspaceRelativePath="",this.content=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(X,e,t)}}X.runtime=A.proto3,X.typeName="aiserver.v1.RegisterFileToIndexRequest",X.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"workspace_relative_path",kind:"scalar",T:9},{no:3,name:"root_context_node",kind:"message",T:ye},{no:4,name:"content",kind:"scalar",T:9,repeated:!0}]));class $ extends A.Message{constructor(e){super(),this.fileId="",this.rootContextNodeId="",this.dependencyResolutionAttempts=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($,e,t)}}$.runtime=A.proto3,$.typeName="aiserver.v1.RegisterFileToIndexResponse",$.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9},{no:2,name:"root_context_node_id",kind:"scalar",T:9},{no:3,name:"dependency_resolution_attempts",kind:"message",T:Se,repeated:!0},{no:4,name:"file_data",kind:"message",T:he}]));class Z extends A.Message{constructor(e){super(),this.indexId="",this.fileId="",this.dependencyResolutionResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Z,e,t)}}Z.runtime=A.proto3,Z.typeName="aiserver.v1.SetupIndexDependenciesRequest",Z.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:3,name:"file_id",kind:"scalar",T:9},{no:2,name:"dependency_resolution_results",kind:"message",T:we,repeated:!0}]));class ee extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ee,e,t)}}ee.runtime=A.proto3,ee.typeName="aiserver.v1.SetupIndexDependenciesResponse",ee.fields=A.proto3.util.newFieldList((()=>[]));class te extends A.Message{constructor(e){super(),this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(te,e,t)}}te.runtime=A.proto3,te.typeName="aiserver.v1.ComputeIndexTopoSortRequest",te.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9}]));class ne extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ne,e,t)}}ne.runtime=A.proto3,ne.typeName="aiserver.v1.ComputeIndexTopoSortResponse",ne.fields=A.proto3.util.newFieldList((()=>[]));class re extends A.Message{constructor(e){super(),this.indexId="",this.request={case:void 0},this.recompute=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(re,e,t)}}re.runtime=A.proto3,re.typeName="aiserver.v1.ChooseCodeReferencesRequest",re.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"file",kind:"message",T:se,oneof:"request"},{no:3,name:"node",kind:"message",T:oe,oneof:"request"},{no:4,name:"recompute",kind:"scalar",T:8}]));class se extends A.Message{constructor(e){super(),this.fileId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(se,e,t)}}se.runtime=A.proto3,se.typeName="aiserver.v1.ChooseCodeReferencesRequest.FileRequest",se.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9}]));class oe extends A.Message{constructor(e){super(),this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(oe,e,t)}}oe.runtime=A.proto3,oe.typeName="aiserver.v1.ChooseCodeReferencesRequest.NodeRequest",oe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9}]));class ie extends A.Message{constructor(e){super(),this.response={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ie,e,t)}}ie.runtime=A.proto3,ie.typeName="aiserver.v1.ChooseCodeReferencesResponse",ie.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:le,oneof:"response"},{no:2,name:"node",kind:"message",T:ae,oneof:"response"}]));class ae extends A.Message{constructor(e){super(),this.nodeId="",this.actions=[],this.skipped=!1,this.dependencies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ae,e,t)}}ae.runtime=A.proto3,ae.typeName="aiserver.v1.ChooseCodeReferencesResponse.NodeResponse",ae.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"actions",kind:"message",T:xe,repeated:!0},{no:3,name:"skipped",kind:"scalar",T:8},{no:4,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class le extends A.Message{constructor(e){super(),this.fileId="",this.nodeResponses=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(le,e,t)}}le.runtime=A.proto3,le.typeName="aiserver.v1.ChooseCodeReferencesResponse.FileResponse",le.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_id",kind:"scalar",T:9},{no:2,name:"node_responses",kind:"message",T:ae,repeated:!0}]));class ue extends A.Message{constructor(e){super(),this.nodeId="",this.references=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ue).fromBinary(e,t)}static fromJson(e,t){return(new ue).fromJson(e,t)}static fromJsonString(e,t){return(new ue).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ue,e,t)}}ue.runtime=A.proto3,ue.typeName="aiserver.v1.RegisterCodeReferencesRequest",ue.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"references",kind:"message",T:ve,repeated:!0}]));class me extends A.Message{constructor(e){super(),this.dependencies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new me).fromBinary(e,t)}static fromJson(e,t){return(new me).fromJson(e,t)}static fromJsonString(e,t){return(new me).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(me,e,t)}}me.runtime=A.proto3,me.typeName="aiserver.v1.RegisterCodeReferencesResponse",me.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"dependencies",kind:"scalar",T:9,repeated:!0}]));class ce extends A.Message{constructor(e){super(),this.indexId="",this.nodeId="",this.recompute=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ce).fromBinary(e,t)}static fromJson(e,t){return(new ce).fromJson(e,t)}static fromJsonString(e,t){return(new ce).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ce,e,t)}}ce.runtime=A.proto3,ce.typeName="aiserver.v1.SummarizeWithReferencesRequest",ce.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"node_id",kind:"scalar",T:9},{no:3,name:"recompute",kind:"scalar",T:8}]));class de extends A.Message{constructor(e){super(),this.response={case:void 0},this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(de,e,t)}}de.runtime=A.proto3,de.typeName="aiserver.v1.SummarizeWithReferencesResponse",de.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"success",kind:"message",T:pe,oneof:"response"},{no:2,name:"dependency",kind:"message",T:fe,oneof:"response"},{no:3,name:"node_id",kind:"scalar",T:9}]));class pe extends A.Message{constructor(e){super(),this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pe).fromBinary(e,t)}static fromJson(e,t){return(new pe).fromJson(e,t)}static fromJsonString(e,t){return(new pe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pe,e,t)}}pe.runtime=A.proto3,pe.typeName="aiserver.v1.SummarizeWithReferencesResponse.Success",pe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"summary",kind:"scalar",T:9}]));class fe extends A.Message{constructor(e){super(),this.nodes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fe).fromBinary(e,t)}static fromJson(e,t){return(new fe).fromJson(e,t)}static fromJsonString(e,t){return(new fe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(fe,e,t)}}fe.runtime=A.proto3,fe.typeName="aiserver.v1.SummarizeWithReferencesResponse.Dependency",fe.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"nodes",kind:"scalar",T:9,repeated:!0}]));class ge extends A.Message{constructor(e){super(),this.reqUuid="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ge).fromBinary(e,t)}static fromJson(e,t){return(new ge).fromJson(e,t)}static fromJsonString(e,t){return(new ge).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ge,e,t)}}ge.runtime=A.proto3,ge.typeName="aiserver.v1.RequestReceivedResponse",ge.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"req_uuid",kind:"scalar",T:9}]));class _e extends A.Message{constructor(e){super(),this.indexId="",this.id="",this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_e,e,t)}}_e.runtime=A.proto3,_e.typeName="aiserver.v1.ReflectionData",_e.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"id",kind:"scalar",T:9},{no:3,name:"summary",kind:"scalar",T:9}]));class he extends A.Message{constructor(e){super(),this.indexId="",this.workspaceRelativePath="",this.stage="",this.order=0,this.nodes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new he).fromBinary(e,t)}static fromJson(e,t){return(new he).fromJson(e,t)}static fromJsonString(e,t){return(new he).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(he,e,t)}}he.runtime=A.proto3,he.typeName="aiserver.v1.IndexFileData",he.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"index_id",kind:"scalar",T:9},{no:2,name:"workspace_relative_path",kind:"scalar",T:9},{no:3,name:"stage",kind:"scalar",T:9},{no:4,name:"order",kind:"scalar",T:5},{no:5,name:"nodes",kind:"message",T:Te,repeated:!0}]));class Te extends A.Message{constructor(e){super(),this.nodeId="",this.stage="",this.content="",this.summary="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Te).fromBinary(e,t)}static fromJson(e,t){return(new Te).fromJson(e,t)}static fromJsonString(e,t){return(new Te).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Te,e,t)}}Te.runtime=A.proto3,Te.typeName="aiserver.v1.IndexFileData.NodeData",Te.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node_id",kind:"scalar",T:9},{no:2,name:"stage",kind:"scalar",T:9},{no:3,name:"content",kind:"scalar",T:9},{no:4,name:"summary",kind:"scalar",T:9}]));class ye extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.startLineNumber=0,this.endLineNumber=0,this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ye,e,t)}}ye.runtime=A.proto3,ye.typeName="aiserver.v1.SerializedContextNode",ye.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"start_line_number",kind:"scalar",T:5},{no:3,name:"end_line_number",kind:"scalar",T:5},{no:4,name:"children",kind:"message",T:ye,repeated:!0},{no:5,name:"node_snippets",kind:"message",T:be}]));class Se extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.nodeId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Se,e,t)}}Se.runtime=A.proto3,Se.typeName="aiserver.v1.URIResolutionAttempt",Se.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"node_id",kind:"scalar",T:9},{no:3,name:"symbol",kind:"message",T:xe}]));class we extends A.Message{constructor(e){super(),this.resolvedPaths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(we,e,t)}}we.runtime=A.proto3,we.typeName="aiserver.v1.URIResolutionResult",we.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:Se},{no:2,name:"resolved_paths",kind:"scalar",T:9,repeated:!0}]));class ke extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ke,e,t)}}ke.runtime=A.proto3,ke.typeName="aiserver.v1.ExtractPathsRequest",ke.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_code_snippets",kind:"message",T:be}]));class Je extends A.Message{constructor(e){super(),this.paths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Je,e,t)}}Je.runtime=A.proto3,Je.typeName="aiserver.v1.ExtractPathsResponse",Je.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"paths",kind:"message",T:xe,repeated:!0}]));class ve extends A.Message{constructor(e){super(),this.references=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ve,e,t)}}ve.runtime=A.proto3,ve.typeName="aiserver.v1.SymbolActionResults",ve.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"action",kind:"message",T:xe},{no:2,name:"references",kind:"message",T:Ee,repeated:!0}]));class Ee extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ee,e,t)}}Ee.runtime=A.proto3,Ee.typeName="aiserver.v1.SymbolActionResultReference",Ee.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"range",kind:"message",T:L._u},{no:2,name:"reference",kind:"message",T:be}]));class be extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.totalLines=0,this.snippets=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(be,e,t)}}be.runtime=A.proto3,be.typeName="aiserver.v1.FileCodeSnippets",be.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"total_lines",kind:"scalar",T:5},{no:3,name:"snippets",kind:"message",T:je,repeated:!0}]));class je extends A.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumber=0,this.lines=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(je,e,t)}}je.runtime=A.proto3,je.typeName="aiserver.v1.CodeSnippet",je.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number",kind:"scalar",T:5},{no:3,name:"lines",kind:"scalar",T:9,repeated:!0}]));class xe extends A.Message{constructor(e){super(),this.workspaceRelativePath="",this.lineNumber=0,this.symbolStartColumn=0,this.symbolEndColumn=0,this.action=r.UNSPECIFIED,this.symbol="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xe,e,t)}}xe.runtime=A.proto3,xe.typeName="aiserver.v1.CodeSymbolWithAction",xe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"workspace_relative_path",kind:"scalar",T:9},{no:2,name:"line_number",kind:"scalar",T:5},{no:3,name:"symbol_start_column",kind:"scalar",T:5},{no:4,name:"symbol_end_column",kind:"scalar",T:5},{no:5,name:"action",kind:"enum",T:A.proto3.getEnumType(r)},{no:6,name:"symbol",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.GO_TO_DEFINITION=1]="GO_TO_DEFINITION",e[e.GO_TO_IMPLEMENTATION=2]="GO_TO_IMPLEMENTATION",e[e.REFERENCES=3]="REFERENCES"}(r||(r={})),A.proto3.util.setEnumType(r,"aiserver.v1.CodeSymbolWithAction.CodeSymbolAction",[{no:0,name:"CODE_SYMBOL_ACTION_UNSPECIFIED"},{no:1,name:"CODE_SYMBOL_ACTION_GO_TO_DEFINITION"},{no:2,name:"CODE_SYMBOL_ACTION_GO_TO_IMPLEMENTATION"},{no:3,name:"CODE_SYMBOL_ACTION_REFERENCES"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEFAULT=1]="DEFAULT"}(s||(s={})),A.proto3.util.setEnumType(s,"aiserver.v1.ChunkingStrategy",[{no:0,name:"CHUNKING_STRATEGY_UNSPECIFIED"},{no:1,name:"CHUNKING_STRATEGY_DEFAULT"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SIMHASH=1]="SIMHASH"}(o||(o={})),A.proto3.util.setEnumType(o,"aiserver.v1.SimilarityMetricType",[{no:0,name:"SIMILARITY_METRIC_TYPE_UNSPECIFIED"},{no:1,name:"SIMILARITY_METRIC_TYPE_SIMHASH"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SHA256=1]="SHA256"}(i||(i={})),A.proto3.util.setEnumType(i,"aiserver.v1.PathKeyHashType",[{no:0,name:"PATH_KEY_HASH_TYPE_UNSPECIFIED"},{no:1,name:"PATH_KEY_HASH_TYPE_SHA256"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LULEA=1]="LULEA",e[e.UMEA=2]="UMEA",e[e.NONE=3]="NONE",e[e.LLAMA=4]="LLAMA",e[e.STARCODER_V1=5]="STARCODER_V1",e[e.GPT_3_5_LOGPROBS=6]="GPT_3_5_LOGPROBS",e[e.LULEA_HAIKU=7]="LULEA_HAIKU",e[e.COHERE=8]="COHERE",e[e.VOYAGE=9]="VOYAGE",e[e.VOYAGE_EMBEDS=10]="VOYAGE_EMBEDS",e[e.IDENTITY=11]="IDENTITY",e[e.ADA_EMBEDS=12]="ADA_EMBEDS"}(a||(a={})),A.proto3.util.setEnumType(a,"aiserver.v1.RerankerAlgorithm",[{no:0,name:"RERANKER_ALGORITHM_UNSPECIFIED"},{no:1,name:"RERANKER_ALGORITHM_LULEA"},{no:2,name:"RERANKER_ALGORITHM_UMEA"},{no:3,name:"RERANKER_ALGORITHM_NONE"},{no:4,name:"RERANKER_ALGORITHM_LLAMA"},{no:5,name:"RERANKER_ALGORITHM_STARCODER_V1"},{no:6,name:"RERANKER_ALGORITHM_GPT_3_5_LOGPROBS"},{no:7,name:"RERANKER_ALGORITHM_LULEA_HAIKU"},{no:8,name:"RERANKER_ALGORITHM_COHERE"},{no:9,name:"RERANKER_ALGORITHM_VOYAGE"},{no:10,name:"RERANKER_ALGORITHM_VOYAGE_EMBEDS"},{no:11,name:"RERANKER_ALGORITHM_IDENTITY"},{no:12,name:"RERANKER_ALGORITHM_ADA_EMBEDS"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.AURORA=1]="AURORA",e[e.PLANETSCALE=2]="PLANETSCALE"}(l||(l={})),A.proto3.util.setEnumType(l,"aiserver.v1.DatabaseProvider",[{no:0,name:"DATABASE_PROVIDER_UNSPECIFIED"},{no:1,name:"DATABASE_PROVIDER_AURORA"},{no:2,name:"DATABASE_PROVIDER_PLANETSCALE"}]),function(e){e[e.RECHUNKER_CHOICE_UNSPECIFIED=0]="RECHUNKER_CHOICE_UNSPECIFIED",e[e.RECHUNKER_CHOICE_IDENTITY=1]="RECHUNKER_CHOICE_IDENTITY",e[e.RECHUNKER_CHOICE_600_TOKS=2]="RECHUNKER_CHOICE_600_TOKS",e[e.RECHUNKER_CHOICE_2400_TOKS=3]="RECHUNKER_CHOICE_2400_TOKS",e[e.RECHUNKER_CHOICE_4000_TOKS=4]="RECHUNKER_CHOICE_4000_TOKS"}(u||(u={})),A.proto3.util.setEnumType(u,"aiserver.v1.RechunkerChoice",[{no:0,name:"RECHUNKER_CHOICE_UNSPECIFIED"},{no:1,name:"RECHUNKER_CHOICE_IDENTITY"},{no:2,name:"RECHUNKER_CHOICE_600_TOKS"},{no:3,name:"RECHUNKER_CHOICE_2400_TOKS"},{no:4,name:"RECHUNKER_CHOICE_4000_TOKS"}]);class Ne extends A.Message{constructor(e){super(),this.readmes=[],this.topLevelRelativeWorkspacePaths=[],this.workspaceRootPath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ne,e,t)}}Ne.runtime=A.proto3,Ne.typeName="aiserver.v1.GetHighLevelFolderDescriptionRequest",Ne.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"readmes",kind:"message",T:Pe,repeated:!0},{no:2,name:"top_level_relative_workspace_paths",kind:"scalar",T:9,repeated:!0},{no:4,name:"workspace_root_path",kind:"scalar",T:9}]));class Pe extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pe,e,t)}}Pe.runtime=A.proto3,Pe.typeName="aiserver.v1.GetHighLevelFolderDescriptionRequest.Readme",Pe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9}]));class Ie extends A.Message{constructor(e){super(),this.description="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ie,e,t)}}Ie.runtime=A.proto3,Ie.typeName="aiserver.v1.GetHighLevelFolderDescriptionResponse",Ie.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"description",kind:"scalar",T:9}]));class Be extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Be,e,t)}}Be.runtime=A.proto3,Be.typeName="aiserver.v1.EnsureIndexCreatedRequest",Be.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class qe extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qe,e,t)}}qe.runtime=A.proto3,qe.typeName="aiserver.v1.EnsureIndexCreatedResponse",qe.fields=A.proto3.util.newFieldList((()=>[]));class Re extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.hashOfNode="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Re,e,t)}}Re.runtime=A.proto3,Re.typeName="aiserver.v1.PartialPathItem",Re.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"hash_of_node",kind:"scalar",T:9}]));class Me extends A.Message{constructor(e){super(),this.rootHash="",this.potentialLegacyRepoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Me,e,t)}}Me.runtime=A.proto3,Me.typeName="aiserver.v1.FastRepoInitHandshakeRequest",Me.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"root_hash",kind:"scalar",T:9},{no:3,name:"potential_legacy_repo_name",kind:"scalar",T:9}]));class Oe extends A.Message{constructor(e){super(),this.status=m.UNSPECIFIED,this.repoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Oe,e,t)}}Oe.runtime=A.proto3,Oe.typeName="aiserver.v1.FastRepoInitHandshakeResponse",Oe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(m)},{no:2,name:"repo_name",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.FAILURE=3]="FAILURE",e[e.EMPTY=4]="EMPTY"}(m||(m={})),A.proto3.util.setEnumType(m,"aiserver.v1.FastRepoInitHandshakeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_UP_TO_DATE"},{no:2,name:"STATUS_OUT_OF_SYNC"},{no:3,name:"STATUS_FAILURE"},{no:4,name:"STATUS_EMPTY"}]);class Fe extends A.Message{constructor(e){super(),this.encryptedRelativePath="",this.hash="",this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Fe,e,t)}}Fe.runtime=A.proto3,Fe.typeName="aiserver.v1.LocalCodebaseFileInfo",Fe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"encrypted_relative_path",kind:"scalar",T:9},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"children",kind:"message",T:Fe,repeated:!0},{no:4,name:"separator",kind:"scalar",T:9,opt:!0}]));class Ae extends A.Message{constructor(e){super(),this.rootHash="",this.similarityMetricType=o.UNSPECIFIED,this.similarityMetric=[],this.pathKeyHash="",this.pathKeyHashType=i.UNSPECIFIED,this.doCopy=!1,this.pathKey="",this.returnAfterBackgroundCopyStarted=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ae).fromBinary(e,t)}static fromJson(e,t){return(new Ae).fromJson(e,t)}static fromJsonString(e,t){return(new Ae).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ae,e,t)}}Ae.runtime=A.proto3,Ae.typeName="aiserver.v1.FastRepoInitHandshakeV2Request",Ae.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"root_hash",kind:"scalar",T:9},{no:3,name:"similarity_metric_type",kind:"enum",T:A.proto3.getEnumType(o)},{no:4,name:"similarity_metric",kind:"scalar",T:2,repeated:!0},{no:5,name:"path_key_hash",kind:"scalar",T:9},{no:6,name:"path_key_hash_type",kind:"enum",T:A.proto3.getEnumType(i)},{no:7,name:"do_copy",kind:"scalar",T:8},{no:8,name:"path_key",kind:"scalar",T:9},{no:9,name:"local_codebase_root_info",kind:"message",T:Fe},{no:10,name:"return_after_background_copy_started",kind:"scalar",T:8}]));class Le extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Le).fromBinary(e,t)}static fromJson(e,t){return(new Le).fromJson(e,t)}static fromJsonString(e,t){return(new Le).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Le,e,t)}}Le.runtime=A.proto3,Le.typeName="aiserver.v1.QueryOnlyRepositoryInfo",Le.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"query_only_repo_access",kind:"message",T:Dt}]));class Ce extends A.Message{constructor(e){super(),this.codebaseId="",this.status=c.UNSPECIFIED,this.copyTaskHandle="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ce).fromBinary(e,t)}static fromJson(e,t){return(new Ce).fromJson(e,t)}static fromJsonString(e,t){return(new Ce).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ce,e,t)}}Ce.runtime=A.proto3,Ce.typeName="aiserver.v1.RepositoryCodebaseInfo",Ce.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(c)},{no:3,name:"query_only_similar_repo",kind:"message",T:Le},{no:4,name:"copy_task_handle",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.EMPTY=3]="EMPTY",e[e.EMPTY_WITH_COPY_AVAILABLE=4]="EMPTY_WITH_COPY_AVAILABLE",e[e.COPY_IN_PROGRESS=5]="COPY_IN_PROGRESS"}(c||(c={})),A.proto3.util.setEnumType(c,"aiserver.v1.RepositoryCodebaseInfo.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_UP_TO_DATE"},{no:2,name:"STATUS_OUT_OF_SYNC"},{no:3,name:"STATUS_EMPTY"},{no:4,name:"STATUS_EMPTY_WITH_COPY_AVAILABLE"},{no:5,name:"STATUS_COPY_IN_PROGRESS"}]);class Ue extends A.Message{constructor(e){super(),this.status=d.UNSPECIFIED,this.codebases=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ue,e,t)}}Ue.runtime=A.proto3,Ue.typeName="aiserver.v1.FastRepoInitHandshakeV2Response",Ue.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(d)},{no:2,name:"codebases",kind:"message",T:Ce,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FAILURE=1]="FAILURE",e[e.SUCCESS=2]="SUCCESS"}(d||(d={})),A.proto3.util.setEnumType(d,"aiserver.v1.FastRepoInitHandshakeV2Response.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_FAILURE"},{no:2,name:"STATUS_SUCCESS"}]);class De extends A.Message{constructor(e){super(),this.codebaseId="",this.status=p.UNSPECIFIED,this.similarityMetricType=o.UNSPECIFIED,this.similarityMetric=[],this.pathKeyHash="",this.pathKeyHashType=i.UNSPECIFIED,this.failedUploadCount=0,this.failedDeleteCount=0,this.totalUploadCount=0,this.totalDeleteCount=0,this.failedSubtreeCount=0,this.totalSubtreeCount=0,this.hitIterationLimit=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(De,e,t)}}De.runtime=A.proto3,De.typeName="aiserver.v1.RepositoryCodebaseSyncStatus",De.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(p)},{no:3,name:"similarity_metric_type",kind:"enum",T:A.proto3.getEnumType(o)},{no:4,name:"similarity_metric",kind:"scalar",T:2,repeated:!0},{no:5,name:"path_key_hash",kind:"scalar",T:9},{no:6,name:"path_key_hash_type",kind:"enum",T:A.proto3.getEnumType(i)},{no:7,name:"failed_upload_count",kind:"scalar",T:5},{no:8,name:"failed_delete_count",kind:"scalar",T:5},{no:9,name:"total_upload_count",kind:"scalar",T:5},{no:10,name:"total_delete_count",kind:"scalar",T:5},{no:11,name:"failed_subtree_count",kind:"scalar",T:5},{no:12,name:"total_subtree_count",kind:"scalar",T:5},{no:13,name:"hit_iteration_limit",kind:"scalar",T:8}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(p||(p={})),A.proto3.util.setEnumType(p,"aiserver.v1.RepositoryCodebaseSyncStatus.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class Ge extends A.Message{constructor(e){super(),this.codebases=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ge,e,t)}}Ge.runtime=A.proto3,Ge.typeName="aiserver.v1.FastRepoSyncCompleteRequest",Ge.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebases",kind:"message",T:De,repeated:!0}]));class He extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(He,e,t)}}He.runtime=A.proto3,He.typeName="aiserver.v1.FastRepoSyncCompleteResponse",He.fields=A.proto3.util.newFieldList((()=>[]));class Ke extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ke,e,t)}}Ke.runtime=A.proto3,Ke.typeName="aiserver.v1.SyncMerkleSubtreeRequest",Ke.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"local_partial_path",kind:"message",T:Re}]));class We extends A.Message{constructor(e){super(),this.result={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(We,e,t)}}We.runtime=A.proto3,We.typeName="aiserver.v1.SyncMerkleSubtreeResponse",We.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Ye,oneof:"result"}]));class Ye extends A.Message{constructor(e){super(),this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ye,e,t)}}Ye.runtime=A.proto3,Ye.typeName="aiserver.v1.SyncMerkleSubtreeResponse.Mismatch",Ye.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"children",kind:"message",T:Re,repeated:!0}]));class ze extends A.Message{constructor(e){super(),this.orthogonalTransformSeed=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ze,e,t)}}ze.runtime=A.proto3,ze.typeName="aiserver.v1.ClientRepositoryInfo",ze.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"orthogonal_transform_seed",kind:"scalar",T:1}]));class Ve extends A.Message{constructor(e){super(),this.codebaseId="",this.localPartialPaths=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ve,e,t)}}Ve.runtime=A.proto3,Ve.typeName="aiserver.v1.SyncMerkleSubtreeV2Request",Ve.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"client_repository_info",kind:"message",T:ze},{no:2,name:"codebase_id",kind:"scalar",T:9},{no:3,name:"local_partial_path",kind:"message",T:Re},{no:4,name:"local_partial_paths",kind:"message",T:Re,repeated:!0}]));class Qe extends A.Message{constructor(e){super(),this.result={case:void 0},this.results=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qe).fromBinary(e,t)}static fromJson(e,t){return(new Qe).fromJson(e,t)}static fromJsonString(e,t){return(new Qe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Qe,e,t)}}Qe.runtime=A.proto3,Qe.typeName="aiserver.v1.SyncMerkleSubtreeV2Response",Qe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Xe,oneof:"result"},{no:3,name:"results",kind:"message",T:$e,repeated:!0}]));class Xe extends A.Message{constructor(e){super(),this.children=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xe).fromBinary(e,t)}static fromJson(e,t){return(new Xe).fromJson(e,t)}static fromJsonString(e,t){return(new Xe).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Xe,e,t)}}Xe.runtime=A.proto3,Xe.typeName="aiserver.v1.SyncMerkleSubtreeV2Response.Mismatch",Xe.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"children",kind:"message",T:Re,repeated:!0}]));class $e extends A.Message{constructor(e){super(),this.result={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $e).fromBinary(e,t)}static fromJson(e,t){return(new $e).fromJson(e,t)}static fromJsonString(e,t){return(new $e).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($e,e,t)}}$e.runtime=A.proto3,$e.typeName="aiserver.v1.SyncMerkleSubtreeV2Response.PartialPathResult",$e.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"match",kind:"scalar",T:8,oneof:"result"},{no:2,name:"mismatch",kind:"message",T:Xe,oneof:"result"},{no:3,name:"response_size_limit_exceeded",kind:"scalar",T:8,oneof:"result"}]));class Ze extends A.Message{constructor(e){super(),this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=f.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ze).fromBinary(e,t)}static fromJson(e,t){return(new Ze).fromJson(e,t)}static fromJsonString(e,t){return(new Ze).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ze,e,t)}}Ze.runtime=A.proto3,Ze.typeName="aiserver.v1.FastUpdateFileRequest",Ze.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:3,name:"local_file",kind:"message",T:et,oneof:"partial_path"},{no:4,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:5,name:"update_type",kind:"enum",T:A.proto3.getEnumType(f)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ADD=1]="ADD",e[e.DELETE=2]="DELETE",e[e.MODIFY=3]="MODIFY"}(f||(f={})),A.proto3.util.setEnumType(f,"aiserver.v1.FastUpdateFileRequest.UpdateType",[{no:0,name:"UPDATE_TYPE_UNSPECIFIED"},{no:1,name:"UPDATE_TYPE_ADD"},{no:2,name:"UPDATE_TYPE_DELETE"},{no:3,name:"UPDATE_TYPE_MODIFY"}]);class et extends A.Message{constructor(e){super(),this.hash="",this.unencryptedRelativeWorkspacePath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new et).fromBinary(e,t)}static fromJson(e,t){return(new et).fromJson(e,t)}static fromJsonString(e,t){return(new et).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(et,e,t)}}et.runtime=A.proto3,et.typeName="aiserver.v1.FastUpdateFileRequest.LocalFile",et.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"unencrypted_relative_workspace_path",kind:"scalar",T:9}]));class tt extends A.Message{constructor(e){super(),this.status=g.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tt).fromBinary(e,t)}static fromJson(e,t){return(new tt).fromJson(e,t)}static fromJsonString(e,t){return(new tt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(tt,e,t)}}tt.runtime=A.proto3,tt.typeName="aiserver.v1.FastUpdateFileResponse",tt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(g)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE"}(g||(g={})),A.proto3.util.setEnumType(g,"aiserver.v1.FastUpdateFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"}]);class nt extends A.Message{constructor(e){super(),this.codebaseId="",this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=_.UNSPECIFIED,this.fileUpdates=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nt).fromBinary(e,t)}static fromJson(e,t){return(new nt).fromJson(e,t)}static fromJsonString(e,t){return(new nt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(nt,e,t)}}nt.runtime=A.proto3,nt.typeName="aiserver.v1.FastUpdateFileV2Request",nt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"client_repository_info",kind:"message",T:ze},{no:2,name:"codebase_id",kind:"scalar",T:9},{no:3,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:4,name:"local_file",kind:"message",T:rt,oneof:"partial_path"},{no:5,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:6,name:"update_type",kind:"enum",T:A.proto3.getEnumType(_)},{no:7,name:"file_updates",kind:"message",T:st,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ADD=1]="ADD",e[e.DELETE=2]="DELETE",e[e.MODIFY=3]="MODIFY",e[e.BATCH=4]="BATCH"}(_||(_={})),A.proto3.util.setEnumType(_,"aiserver.v1.FastUpdateFileV2Request.UpdateType",[{no:0,name:"UPDATE_TYPE_UNSPECIFIED"},{no:1,name:"UPDATE_TYPE_ADD"},{no:2,name:"UPDATE_TYPE_DELETE"},{no:3,name:"UPDATE_TYPE_MODIFY"},{no:4,name:"UPDATE_TYPE_BATCH"}]);class rt extends A.Message{constructor(e){super(),this.hash="",this.unencryptedRelativeWorkspacePath="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rt).fromBinary(e,t)}static fromJson(e,t){return(new rt).fromJson(e,t)}static fromJsonString(e,t){return(new rt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(rt,e,t)}}rt.runtime=A.proto3,rt.typeName="aiserver.v1.FastUpdateFileV2Request.LocalFile",rt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"hash",kind:"scalar",T:9},{no:3,name:"unencrypted_relative_workspace_path",kind:"scalar",T:9}]));class st extends A.Message{constructor(e){super(),this.partialPath={case:void 0},this.ancestorSpline=[],this.updateType=_.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new st).fromBinary(e,t)}static fromJson(e,t){return(new st).fromJson(e,t)}static fromJsonString(e,t){return(new st).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(st,e,t)}}st.runtime=A.proto3,st.typeName="aiserver.v1.FastUpdateFileV2Request.FileUpdate",st.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"directory",kind:"message",T:Re,oneof:"partial_path"},{no:2,name:"local_file",kind:"message",T:rt,oneof:"partial_path"},{no:3,name:"ancestor_spline",kind:"message",T:Re,repeated:!0},{no:4,name:"update_type",kind:"enum",T:A.proto3.getEnumType(_)}]));class ot extends A.Message{constructor(e){super(),this.status=h.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ot).fromBinary(e,t)}static fromJson(e,t){return(new ot).fromJson(e,t)}static fromJsonString(e,t){return(new ot).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ot,e,t)}}ot.runtime=A.proto3,ot.typeName="aiserver.v1.FastUpdateFileV2Response",ot.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(h)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE"}(h||(h={})),A.proto3.util.setEnumType(h,"aiserver.v1.FastUpdateFileV2Response.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"}]);class it extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new it).fromBinary(e,t)}static fromJson(e,t){return(new it).fromJson(e,t)}static fromJsonString(e,t){return(new it).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(it,e,t)}}it.runtime=A.proto3,it.typeName="aiserver.v1.GetUploadLimitsRequest",it.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn,opt:!0}]));class at extends A.Message{constructor(e){super(),this.softLimit=0,this.hardLimit=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new at).fromBinary(e,t)}static fromJson(e,t){return(new at).fromJson(e,t)}static fromJsonString(e,t){return(new at).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(at,e,t)}}at.runtime=A.proto3,at.typeName="aiserver.v1.GetUploadLimitsResponse",at.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"soft_limit",kind:"scalar",T:5},{no:2,name:"hard_limit",kind:"scalar",T:5}]));class lt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new lt).fromBinary(e,t)}static fromJson(e,t){return(new lt).fromJson(e,t)}static fromJsonString(e,t){return(new lt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(lt,e,t)}}lt.runtime=A.proto3,lt.typeName="aiserver.v1.GetNumFilesToSendRequest",lt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class ut extends A.Message{constructor(e){super(),this.numFiles=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ut).fromBinary(e,t)}static fromJson(e,t){return(new ut).fromJson(e,t)}static fromJsonString(e,t){return(new ut).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ut,e,t)}}ut.runtime=A.proto3,ut.typeName="aiserver.v1.GetNumFilesToSendResponse",ut.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"num_files",kind:"scalar",T:5}]));class mt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mt).fromBinary(e,t)}static fromJson(e,t){return(new mt).fromJson(e,t)}static fromJsonString(e,t){return(new mt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(mt,e,t)}}mt.runtime=A.proto3,mt.typeName="aiserver.v1.GetAvailableChunkingStrategiesRequest",mt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class ct extends A.Message{constructor(e){super(),this.chunkingStrategies=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ct).fromBinary(e,t)}static fromJson(e,t){return(new ct).fromJson(e,t)}static fromJsonString(e,t){return(new ct).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ct,e,t)}}ct.runtime=A.proto3,ct.typeName="aiserver.v1.GetAvailableChunkingStrategiesResponse",ct.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"chunking_strategies",kind:"enum",T:A.proto3.getEnumType(s),repeated:!0}]));class dt extends A.Message{constructor(e){super(),this.texts=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dt).fromBinary(e,t)}static fromJson(e,t){return(new dt).fromJson(e,t)}static fromJsonString(e,t){return(new dt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(dt,e,t)}}dt.runtime=A.proto3,dt.typeName="aiserver.v1.GetEmbeddingsRequest",dt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"texts",kind:"scalar",T:9,repeated:!0}]));class pt extends A.Message{constructor(e){super(),this.embeddings=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pt).fromBinary(e,t)}static fromJson(e,t){return(new pt).fromJson(e,t)}static fromJsonString(e,t){return(new pt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pt,e,t)}}pt.runtime=A.proto3,pt.typeName="aiserver.v1.GetEmbeddingsResponse",pt.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"embeddings",kind:"message",T:ft,repeated:!0}]));class ft extends A.Message{constructor(e){super(),this.embedding=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ft).fromBinary(e,t)}static fromJson(e,t){return(new ft).fromJson(e,t)}static fromJsonString(e,t){return(new ft).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ft,e,t)}}ft.runtime=A.proto3,ft.typeName="aiserver.v1.GetEmbeddingsResponse.Embedding",ft.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"embedding",kind:"scalar",T:2,repeated:!0}]));class gt extends A.Message{constructor(e){super(),this.codebaseId=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gt).fromBinary(e,t)}static fromJson(e,t){return(new gt).fromJson(e,t)}static fromJsonString(e,t){return(new gt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(gt,e,t)}}gt.runtime=A.proto3,gt.typeName="aiserver.v1.AdminRemoveRepositoryRequest",gt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:5}]));class _t extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _t).fromBinary(e,t)}static fromJson(e,t){return(new _t).fromJson(e,t)}static fromJsonString(e,t){return(new _t).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_t,e,t)}}_t.runtime=A.proto3,_t.typeName="aiserver.v1.AdminRemoveRepositoryResponse",_t.fields=A.proto3.util.newFieldList((()=>[]));class ht extends A.Message{constructor(e){super(),this.codebaseId=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ht).fromBinary(e,t)}static fromJson(e,t){return(new ht).fromJson(e,t)}static fromJsonString(e,t){return(new ht).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ht,e,t)}}ht.runtime=A.proto3,ht.typeName="aiserver.v1.SyncRepositoryRequest",ht.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:5}]));class Tt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tt).fromBinary(e,t)}static fromJson(e,t){return(new Tt).fromJson(e,t)}static fromJsonString(e,t){return(new Tt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Tt,e,t)}}Tt.runtime=A.proto3,Tt.typeName="aiserver.v1.SyncRepositoryResponse",Tt.fields=A.proto3.util.newFieldList((()=>[]));class yt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yt).fromBinary(e,t)}static fromJson(e,t){return(new yt).fromJson(e,t)}static fromJsonString(e,t){return(new yt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(yt,e,t)}}yt.runtime=A.proto3,yt.typeName="aiserver.v1.StartUploadRepoRequest",yt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class St extends A.Message{constructor(e){super(),this.status=T.UNSPECIFIED,this.seenFiles=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new St).fromBinary(e,t)}static fromJson(e,t){return(new St).fromJson(e,t)}static fromJsonString(e,t){return(new St).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(St,e,t)}}St.runtime=A.proto3,St.typeName="aiserver.v1.StartUploadRepoResponse",St.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(T)},{no:2,name:"seen_files",kind:"scalar",T:9,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.ALREADY_EXISTS=3]="ALREADY_EXISTS"}(T||(T={})),A.proto3.util.setEnumType(T,"aiserver.v1.StartUploadRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_ALREADY_EXISTS"}]);class wt extends A.Message{constructor(e){super(),this.commitSha="",this.queueId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wt).fromBinary(e,t)}static fromJson(e,t){return(new wt).fromJson(e,t)}static fromJsonString(e,t){return(new wt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(wt,e,t)}}wt.runtime=A.proto3,wt.typeName="aiserver.v1.UploadFileRequest",wt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"file",kind:"message",T:L.ZH},{no:3,name:"commit_sha",kind:"scalar",T:9},{no:4,name:"queue_id",kind:"scalar",T:9}]));class kt extends A.Message{constructor(e){super(),this.status=y.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kt).fromBinary(e,t)}static fromJson(e,t){return(new kt).fromJson(e,t)}static fromJsonString(e,t){return(new kt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(kt,e,t)}}kt.runtime=A.proto3,kt.typeName="aiserver.v1.UploadFileResponse",kt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(y)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE",e[e.QUEUE_BACKED_UP=4]="QUEUE_BACKED_UP"}(y||(y={})),A.proto3.util.setEnumType(y,"aiserver.v1.UploadFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"},{no:4,name:"STATUS_QUEUE_BACKED_UP"}]);class Jt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jt).fromBinary(e,t)}static fromJson(e,t){return(new Jt).fromJson(e,t)}static fromJsonString(e,t){return(new Jt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Jt,e,t)}}Jt.runtime=A.proto3,Jt.typeName="aiserver.v1.FinishUploadRepoRequest",Jt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class vt extends A.Message{constructor(e){super(),this.status=S.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vt).fromBinary(e,t)}static fromJson(e,t){return(new vt).fromJson(e,t)}static fromJsonString(e,t){return(new vt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(vt,e,t)}}vt.runtime=A.proto3,vt.typeName="aiserver.v1.FinishUploadRepoResponse",vt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(S)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(S||(S={})),A.proto3.util.setEnumType(S,"aiserver.v1.FinishUploadRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class Et extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Et).fromBinary(e,t)}static fromJson(e,t){return(new Et).fromJson(e,t)}static fromJsonString(e,t){return(new Et).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Et,e,t)}}Et.runtime=A.proto3,Et.typeName="aiserver.v1.StartUpdateRepoRequest",Et.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class bt extends A.Message{constructor(e){super(),this.status=w.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bt).fromBinary(e,t)}static fromJson(e,t){return(new bt).fromJson(e,t)}static fromJsonString(e,t){return(new bt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(bt,e,t)}}bt.runtime=A.proto3,bt.typeName="aiserver.v1.StartUpdateRepoResponse",bt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(w)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.NOT_FOUND=3]="NOT_FOUND",e[e.ALREADY_SYNCING=4]="ALREADY_SYNCING"}(w||(w={})),A.proto3.util.setEnumType(w,"aiserver.v1.StartUpdateRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_NOT_FOUND"},{no:4,name:"STATUS_ALREADY_SYNCING"}]);class jt extends A.Message{constructor(e){super(),this.commitSha="",this.queueId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jt).fromBinary(e,t)}static fromJson(e,t){return(new jt).fromJson(e,t)}static fromJsonString(e,t){return(new jt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(jt,e,t)}}jt.runtime=A.proto3,jt.typeName="aiserver.v1.UpdateFileRequest",jt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"added_file",kind:"message",T:L.ZH},{no:3,name:"deleted_file_path",kind:"scalar",T:9,opt:!0},{no:4,name:"commit_sha",kind:"scalar",T:9},{no:5,name:"queue_id",kind:"scalar",T:9}]));class xt extends A.Message{constructor(e){super(),this.status=k.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xt).fromBinary(e,t)}static fromJson(e,t){return(new xt).fromJson(e,t)}static fromJsonString(e,t){return(new xt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xt,e,t)}}xt.runtime=A.proto3,xt.typeName="aiserver.v1.UpdateFileResponse",xt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(k)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.EXPECTED_FAILURE=3]="EXPECTED_FAILURE",e[e.QUEUE_BACKED_UP=4]="QUEUE_BACKED_UP"}(k||(k={})),A.proto3.util.setEnumType(k,"aiserver.v1.UpdateFileResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_EXPECTED_FAILURE"},{no:4,name:"STATUS_QUEUE_BACKED_UP"}]);class Nt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nt).fromBinary(e,t)}static fromJson(e,t){return(new Nt).fromJson(e,t)}static fromJsonString(e,t){return(new Nt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Nt,e,t)}}Nt.runtime=A.proto3,Nt.typeName="aiserver.v1.FinishUpdateRepoRequest",Nt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Pt extends A.Message{constructor(e){super(),this.status=J.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pt).fromBinary(e,t)}static fromJson(e,t){return(new Pt).fromJson(e,t)}static fromJsonString(e,t){return(new Pt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pt,e,t)}}Pt.runtime=A.proto3,Pt.typeName="aiserver.v1.FinishUpdateRepoResponse",Pt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(J)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(J||(J={})),A.proto3.util.setEnumType(J,"aiserver.v1.FinishUpdateRepoResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class It extends A.Message{constructor(e){super(),this.requests=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new It).fromBinary(e,t)}static fromJson(e,t){return(new It).fromJson(e,t)}static fromJsonString(e,t){return(new It).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(It,e,t)}}It.runtime=A.proto3,It.typeName="aiserver.v1.BatchRepositoryStatusRequest",It.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"requests",kind:"message",T:mn,repeated:!0}]));class Bt extends A.Message{constructor(e){super(),this.responses=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bt).fromBinary(e,t)}static fromJson(e,t){return(new Bt).fromJson(e,t)}static fromJsonString(e,t){return(new Bt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Bt,e,t)}}Bt.runtime=A.proto3,Bt.typeName="aiserver.v1.BatchRepositoryStatusResponse",Bt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"responses",kind:"message",T:cn,repeated:!0}]));class qt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qt).fromBinary(e,t)}static fromJson(e,t){return(new qt).fromJson(e,t)}static fromJsonString(e,t){return(new qt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qt,e,t)}}qt.runtime=A.proto3,qt.typeName="aiserver.v1.UnsubscribeRepositoryRequest",qt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Rt extends A.Message{constructor(e){super(),this.status=v.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rt).fromBinary(e,t)}static fromJson(e,t){return(new Rt).fromJson(e,t)}static fromJsonString(e,t){return(new Rt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Rt,e,t)}}Rt.runtime=A.proto3,Rt.typeName="aiserver.v1.UnsubscribeRepositoryResponse",Rt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(v)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_SUBSCRIBED=2]="NOT_SUBSCRIBED",e[e.SUCCESS=3]="SUCCESS"}(v||(v={})),A.proto3.util.setEnumType(v,"aiserver.v1.UnsubscribeRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_SUBSCRIBED"},{no:3,name:"STATUS_SUCCESS"}]);class Mt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mt).fromBinary(e,t)}static fromJson(e,t){return(new Mt).fromJson(e,t)}static fromJsonString(e,t){return(new Mt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Mt,e,t)}}Mt.runtime=A.proto3,Mt.typeName="aiserver.v1.LogoutRequest",Mt.fields=A.proto3.util.newFieldList((()=>[]));class Ot extends A.Message{constructor(e){super(),this.status=E.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ot).fromBinary(e,t)}static fromJson(e,t){return(new Ot).fromJson(e,t)}static fromJsonString(e,t){return(new Ot).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ot,e,t)}}Ot.runtime=A.proto3,Ot.typeName="aiserver.v1.LogoutResponse",Ot.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(E)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.NOT_LOGGED_IN=3]="NOT_LOGGED_IN"}(E||(E={})),A.proto3.util.setEnumType(E,"aiserver.v1.LogoutResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_NOT_LOGGED_IN"}]);class Ft extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ft).fromBinary(e,t)}static fromJson(e,t){return(new Ft).fromJson(e,t)}static fromJsonString(e,t){return(new Ft).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ft,e,t)}}Ft.runtime=A.proto3,Ft.typeName="aiserver.v1.RemoveRepositoryRequest",Ft.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class At extends A.Message{constructor(e){super(),this.status=b.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new At).fromBinary(e,t)}static fromJson(e,t){return(new At).fromJson(e,t)}static fromJsonString(e,t){return(new At).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(At,e,t)}}At.runtime=A.proto3,At.typeName="aiserver.v1.RemoveRepositoryResponse",At.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(b)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.STARTED=3]="STARTED",e[e.SUCCESS=4]="SUCCESS"}(b||(b={})),A.proto3.util.setEnumType(b,"aiserver.v1.RemoveRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_STARTED"},{no:4,name:"STATUS_SUCCESS"}]);class Lt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Lt).fromBinary(e,t)}static fromJson(e,t){return(new Lt).fromJson(e,t)}static fromJsonString(e,t){return(new Lt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Lt,e,t)}}Lt.runtime=A.proto3,Lt.typeName="aiserver.v1.SubscribeRepositoryRequest",Lt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Ct extends A.Message{constructor(e){super(),this.status=j.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ct).fromBinary(e,t)}static fromJson(e,t){return(new Ct).fromJson(e,t)}static fromJsonString(e,t){return(new Ct).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ct,e,t)}}Ct.runtime=A.proto3,Ct.typeName="aiserver.v1.SubscribeRepositoryResponse",Ct.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(j)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.ALREADY_SUBSCRIBED=3]="ALREADY_SUBSCRIBED",e[e.SUCCESS=4]="SUCCESS"}(j||(j={})),A.proto3.util.setEnumType(j,"aiserver.v1.SubscribeRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_ALREADY_SUBSCRIBED"},{no:4,name:"STATUS_SUCCESS"}]);class Ut extends A.Message{constructor(e){super(),this.query="",this.topK=0,this.rerank=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ut).fromBinary(e,t)}static fromJson(e,t){return(new Ut).fromJson(e,t)}static fromJsonString(e,t){return(new Ut).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ut,e,t)}}Ut.runtime=A.proto3,Ut.typeName="aiserver.v1.SearchRepositoryRequest",Ut.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"repository",kind:"message",T:wn},{no:3,name:"top_k",kind:"scalar",T:5},{no:4,name:"model_details",kind:"message",T:L.Gm},{no:5,name:"rerank",kind:"scalar",T:8},{no:6,name:"context_cache_request",kind:"scalar",T:8,opt:!0},{no:7,name:"glob_filter",kind:"scalar",T:9,opt:!0},{no:8,name:"not_glob_filter",kind:"scalar",T:9,opt:!0},{no:9,name:"race_n_requests",kind:"scalar",T:5,opt:!0},{no:10,name:"query_only_repo_access",kind:"message",T:Dt}]));class Dt extends A.Message{constructor(e){super(),this.ownerAuthId="",this.accessToken="",this.userRepoOwner="",this.userRepoName="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dt).fromBinary(e,t)}static fromJson(e,t){return(new Dt).fromJson(e,t)}static fromJsonString(e,t){return(new Dt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Dt,e,t)}}Dt.runtime=A.proto3,Dt.typeName="aiserver.v1.QueryOnlyRepoAccess",Dt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"owner_auth_id",kind:"scalar",T:9},{no:2,name:"access_token",kind:"scalar",T:9},{no:3,name:"user_repo_owner",kind:"scalar",T:9},{no:4,name:"user_repo_name",kind:"scalar",T:9}]));class Gt extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gt).fromBinary(e,t)}static fromJson(e,t){return(new Gt).fromJson(e,t)}static fromJsonString(e,t){return(new Gt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Gt,e,t)}}Gt.runtime=A.proto3,Gt.typeName="aiserver.v1.CodeResult",Gt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_block",kind:"message",T:L.NG},{no:2,name:"score",kind:"scalar",T:2}]));class Ht extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ht).fromBinary(e,t)}static fromJson(e,t){return(new Ht).fromJson(e,t)}static fromJsonString(e,t){return(new Ht).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ht,e,t)}}Ht.runtime=A.proto3,Ht.typeName="aiserver.v1.FileResult",Ht.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file",kind:"message",T:L.ZH},{no:2,name:"score",kind:"scalar",T:2}]));class Kt extends A.Message{constructor(e){super(),this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kt).fromBinary(e,t)}static fromJson(e,t){return(new Kt).fromJson(e,t)}static fromJsonString(e,t){return(new Kt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Kt,e,t)}}Kt.runtime=A.proto3,Kt.typeName="aiserver.v1.SearchRepositoryResponse",Kt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_results",kind:"message",T:Gt,repeated:!0}]));class Wt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wt).fromBinary(e,t)}static fromJson(e,t){return(new Wt).fromJson(e,t)}static fromJsonString(e,t){return(new Wt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Wt,e,t)}}Wt.runtime=A.proto3,Wt.typeName="aiserver.v1.SemSearchRequest",Wt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"request",kind:"message",T:Ut}]));class Yt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yt).fromBinary(e,t)}static fromJson(e,t){return(new Yt).fromJson(e,t)}static fromJsonString(e,t){return(new Yt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Yt,e,t)}}Yt.runtime=A.proto3,Yt.typeName="aiserver.v1.CodeResultWithClassificationInfo",Yt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"code_result",kind:"message",T:Gt},{no:2,name:"line_number_classification",kind:"message",T:zt,opt:!0}]));class zt extends A.Message{constructor(e){super(),this.queryComputedFor="",this.matchedStrings=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new zt).fromBinary(e,t)}static fromJson(e,t){return(new zt).fromJson(e,t)}static fromJsonString(e,t){return(new zt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(zt,e,t)}}zt.runtime=A.proto3,zt.typeName="aiserver.v1.CodeResultWithClassificationInfo.LineNumberClassification",zt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"detailed_line",kind:"message",T:L.d7},{no:2,name:"query_computed_for",kind:"scalar",T:9},{no:3,name:"matched_strings",kind:"scalar",T:9,repeated:!0},{no:4,name:"highlight_range",kind:"message",T:L._u}]));class Vt extends A.Message{constructor(e){super(),this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Vt).fromBinary(e,t)}static fromJson(e,t){return(new Vt).fromJson(e,t)}static fromJsonString(e,t){return(new Vt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Vt,e,t)}}Vt.runtime=A.proto3,Vt.typeName="aiserver.v1.SemSearchResponse",Vt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"response",kind:"message",T:Kt},{no:2,name:"metadata",kind:"message",T:Qt,opt:!0},{no:3,name:"code_results",kind:"message",T:Yt,repeated:!0}]));class Qt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Qt).fromBinary(e,t)}static fromJson(e,t){return(new Qt).fromJson(e,t)}static fromJsonString(e,t){return(new Qt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Qt,e,t)}}Qt.runtime=A.proto3,Qt.typeName="aiserver.v1.SemSearchResponse.SemSearchMetadata",Qt.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query_embedding_model",kind:"scalar",T:9,opt:!0},{no:2,name:"server_side_latency_ms",kind:"scalar",T:5,opt:!0},{no:3,name:"embed_latency_ms",kind:"scalar",T:5,opt:!0},{no:4,name:"knn_latency_ms",kind:"scalar",T:5,opt:!0}]));class Xt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Xt).fromBinary(e,t)}static fromJson(e,t){return(new Xt).fromJson(e,t)}static fromJsonString(e,t){return(new Xt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Xt,e,t)}}Xt.runtime=A.proto3,Xt.typeName="aiserver.v1.LoginRequest",Xt.fields=A.proto3.util.newFieldList((()=>[]));class $t extends A.Message{constructor(e){super(),this.loginUrl="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $t).fromBinary(e,t)}static fromJson(e,t){return(new $t).fromJson(e,t)}static fromJsonString(e,t){return(new $t).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals($t,e,t)}}$t.runtime=A.proto3,$t.typeName="aiserver.v1.LoginResponse",$t.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"login_url",kind:"scalar",T:9}]));class Zt extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Zt).fromBinary(e,t)}static fromJson(e,t){return(new Zt).fromJson(e,t)}static fromJsonString(e,t){return(new Zt).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Zt,e,t)}}Zt.runtime=A.proto3,Zt.typeName="aiserver.v1.IsLoggedInRequest",Zt.fields=A.proto3.util.newFieldList((()=>[]));class en extends A.Message{constructor(e){super(),this.loggedIn=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new en).fromBinary(e,t)}static fromJson(e,t){return(new en).fromJson(e,t)}static fromJsonString(e,t){return(new en).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(en,e,t)}}en.runtime=A.proto3,en.typeName="aiserver.v1.IsLoggedInResponse",en.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"logged_in",kind:"scalar",T:8}]));class tn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new tn).fromBinary(e,t)}static fromJson(e,t){return(new tn).fromJson(e,t)}static fromJsonString(e,t){return(new tn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(tn,e,t)}}tn.runtime=A.proto3,tn.typeName="aiserver.v1.PollLoginRequest",tn.fields=A.proto3.util.newFieldList((()=>[]));class nn extends A.Message{constructor(e){super(),this.status=x.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new nn).fromBinary(e,t)}static fromJson(e,t){return(new nn).fromJson(e,t)}static fromJsonString(e,t){return(new nn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(nn,e,t)}}nn.runtime=A.proto3,nn.typeName="aiserver.v1.PollLoginResponse",nn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(x)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.FAILURE=2]="FAILURE",e[e.CHECKING=3]="CHECKING"}(x||(x={})),A.proto3.util.setEnumType(x,"aiserver.v1.PollLoginResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_LOGGED_IN"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_CHECKING"}]);class rn extends A.Message{constructor(e){super(),this.scopes=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new rn).fromBinary(e,t)}static fromJson(e,t){return(new rn).fromJson(e,t)}static fromJsonString(e,t){return(new rn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(rn,e,t)}}rn.runtime=A.proto3,rn.typeName="aiserver.v1.UpgradeScopeRequest",rn.fields=A.proto3.util.newFieldList((()=>[{no:2,name:"scopes",kind:"scalar",T:9,repeated:!0}]));class sn extends A.Message{constructor(e){super(),this.status=N.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new sn).fromBinary(e,t)}static fromJson(e,t){return(new sn).fromJson(e,t)}static fromJsonString(e,t){return(new sn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(sn,e,t)}}sn.runtime=A.proto3,sn.typeName="aiserver.v1.UpgradeScopeResponse",sn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(N)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE"}(N||(N={})),A.proto3.util.setEnumType(N,"aiserver.v1.UpgradeScopeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"}]);class on extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new on).fromBinary(e,t)}static fromJson(e,t){return(new on).fromJson(e,t)}static fromJsonString(e,t){return(new on).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(on,e,t)}}on.runtime=A.proto3,on.typeName="aiserver.v1.RepositoriesRequest",on.fields=A.proto3.util.newFieldList((()=>[]));class an extends A.Message{constructor(e){super(),this.repositories=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new an).fromBinary(e,t)}static fromJson(e,t){return(new an).fromJson(e,t)}static fromJsonString(e,t){return(new an).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(an,e,t)}}an.runtime=A.proto3,an.typeName="aiserver.v1.RepositoriesResponse",an.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repositories",kind:"message",T:wn,repeated:!0}]));class ln extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ln).fromBinary(e,t)}static fromJson(e,t){return(new ln).fromJson(e,t)}static fromJsonString(e,t){return(new ln).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(ln,e,t)}}ln.runtime=A.proto3,ln.typeName="aiserver.v1.UploadRepositoryRequest",ln.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class un extends A.Message{constructor(e){super(),this.status=P.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new un).fromBinary(e,t)}static fromJson(e,t){return(new un).fromJson(e,t)}static fromJsonString(e,t){return(new un).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(un,e,t)}}un.runtime=A.proto3,un.typeName="aiserver.v1.UploadRepositoryResponse",un.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(P)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.AUTH_TOKEN_BAD_PERMISSIONS=3]="AUTH_TOKEN_BAD_PERMISSIONS",e[e.ALREADY_EXISTS=4]="ALREADY_EXISTS"}(P||(P={})),A.proto3.util.setEnumType(P,"aiserver.v1.UploadRepositoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_AUTH_TOKEN_BAD_PERMISSIONS"},{no:4,name:"STATUS_ALREADY_EXISTS"}]);class mn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new mn).fromBinary(e,t)}static fromJson(e,t){return(new mn).fromJson(e,t)}static fromJsonString(e,t){return(new mn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(mn,e,t)}}mn.runtime=A.proto3,mn.typeName="aiserver.v1.RepositoryStatusRequest",mn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class cn extends A.Message{constructor(e){super(),this.status={case:void 0},A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new cn).fromBinary(e,t)}static fromJson(e,t){return(new cn).fromJson(e,t)}static fromJsonString(e,t){return(new cn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(cn,e,t)}}cn.runtime=A.proto3,cn.typeName="aiserver.v1.RepositoryStatusResponse",cn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"not_found",kind:"message",T:dn,oneof:"status"},{no:2,name:"uploading",kind:"message",T:fn,oneof:"status"},{no:3,name:"syncing",kind:"message",T:gn,oneof:"status"},{no:4,name:"synced",kind:"message",T:_n,oneof:"status"},{no:5,name:"not_subscribed",kind:"message",T:pn,oneof:"status"},{no:6,name:"too_big",kind:"message",T:hn,oneof:"status"},{no:7,name:"auth_token_not_found",kind:"message",T:Tn,oneof:"status"},{no:8,name:"auth_token_not_authorized",kind:"message",T:yn,oneof:"status"},{no:10,name:"error_uploading",kind:"message",T:Sn,oneof:"status"},{no:11,name:"error_syncing",kind:"message",T:Sn,oneof:"status"},{no:9,name:"is_owner",kind:"scalar",T:8,opt:!0}]));class dn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new dn).fromBinary(e,t)}static fromJson(e,t){return(new dn).fromJson(e,t)}static fromJsonString(e,t){return(new dn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(dn,e,t)}}dn.runtime=A.proto3,dn.typeName="aiserver.v1.RepositoryStatusResponse.NotFound",dn.fields=A.proto3.util.newFieldList((()=>[]));class pn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pn).fromBinary(e,t)}static fromJson(e,t){return(new pn).fromJson(e,t)}static fromJsonString(e,t){return(new pn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(pn,e,t)}}pn.runtime=A.proto3,pn.typeName="aiserver.v1.RepositoryStatusResponse.NotSubscribed",pn.fields=A.proto3.util.newFieldList((()=>[]));class fn extends A.Message{constructor(e){super(),this.progress=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fn).fromBinary(e,t)}static fromJson(e,t){return(new fn).fromJson(e,t)}static fromJsonString(e,t){return(new fn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(fn,e,t)}}fn.runtime=A.proto3,fn.typeName="aiserver.v1.RepositoryStatusResponse.Uploading",fn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"progress",kind:"scalar",T:2}]));class gn extends A.Message{constructor(e){super(),this.branch="",this.oldCommit="",this.newCommit="",this.progress=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new gn).fromBinary(e,t)}static fromJson(e,t){return(new gn).fromJson(e,t)}static fromJsonString(e,t){return(new gn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(gn,e,t)}}gn.runtime=A.proto3,gn.typeName="aiserver.v1.RepositoryStatusResponse.Syncing",gn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"branch",kind:"scalar",T:9},{no:2,name:"old_commit",kind:"scalar",T:9},{no:3,name:"new_commit",kind:"scalar",T:9},{no:4,name:"progress",kind:"scalar",T:2}]));class _n extends A.Message{constructor(e){super(),this.branch="",this.commit="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _n).fromBinary(e,t)}static fromJson(e,t){return(new _n).fromJson(e,t)}static fromJsonString(e,t){return(new _n).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(_n,e,t)}}_n.runtime=A.proto3,_n.typeName="aiserver.v1.RepositoryStatusResponse.Synced",_n.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"branch",kind:"scalar",T:9},{no:2,name:"commit",kind:"scalar",T:9}]));class hn extends A.Message{constructor(e){super(),this.maxSize=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new hn).fromBinary(e,t)}static fromJson(e,t){return(new hn).fromJson(e,t)}static fromJsonString(e,t){return(new hn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(hn,e,t)}}hn.runtime=A.proto3,hn.typeName="aiserver.v1.RepositoryStatusResponse.TooBig",hn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"max_size",kind:"scalar",T:5}]));class Tn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Tn).fromBinary(e,t)}static fromJson(e,t){return(new Tn).fromJson(e,t)}static fromJsonString(e,t){return(new Tn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Tn,e,t)}}Tn.runtime=A.proto3,Tn.typeName="aiserver.v1.RepositoryStatusResponse.AuthTokenNotFound",Tn.fields=A.proto3.util.newFieldList((()=>[]));class yn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new yn).fromBinary(e,t)}static fromJson(e,t){return(new yn).fromJson(e,t)}static fromJsonString(e,t){return(new yn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(yn,e,t)}}yn.runtime=A.proto3,yn.typeName="aiserver.v1.RepositoryStatusResponse.AuthTokenNotAuthorized",yn.fields=A.proto3.util.newFieldList((()=>[]));class Sn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Sn).fromBinary(e,t)}static fromJson(e,t){return(new Sn).fromJson(e,t)}static fromJsonString(e,t){return(new Sn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Sn,e,t)}}Sn.runtime=A.proto3,Sn.typeName="aiserver.v1.RepositoryStatusResponse.EmptyMessage",Sn.fields=A.proto3.util.newFieldList((()=>[]));class wn extends A.Message{constructor(e){super(),this.relativeWorkspacePath="",this.remoteUrls=[],this.remoteNames=[],this.repoName="",this.repoOwner="",this.isTracked=!1,this.isLocal=!1,this.workspaceUri="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new wn).fromBinary(e,t)}static fromJson(e,t){return(new wn).fromJson(e,t)}static fromJsonString(e,t){return(new wn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(wn,e,t)}}wn.runtime=A.proto3,wn.typeName="aiserver.v1.RepositoryInfo",wn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"remote_urls",kind:"scalar",T:9,repeated:!0},{no:3,name:"remote_names",kind:"scalar",T:9,repeated:!0},{no:4,name:"repo_name",kind:"scalar",T:9},{no:5,name:"repo_owner",kind:"scalar",T:9},{no:6,name:"is_tracked",kind:"scalar",T:8},{no:7,name:"is_local",kind:"scalar",T:8},{no:8,name:"num_files",kind:"scalar",T:5,opt:!0},{no:9,name:"orthogonal_transform_seed",kind:"scalar",T:1,opt:!0},{no:10,name:"preferred_embedding_model",kind:"enum",T:A.proto3.getEnumType(L.Nj),opt:!0},{no:11,name:"workspace_uri",kind:"scalar",T:9},{no:12,name:"preferred_db_provider",kind:"enum",T:A.proto3.getEnumType(l),opt:!0}]));class kn extends A.Message{constructor(e){super(),this.query="",this.topK=0,this.topReflectionsK=0,this.indexIds=[],this.useModelOnFiles=!1,this.useReflections=!1,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new kn).fromBinary(e,t)}static fromJson(e,t){return(new kn).fromJson(e,t)}static fromJsonString(e,t){return(new kn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(kn,e,t)}}kn.runtime=A.proto3,kn.typeName="aiserver.v1.SearchRepositoryDeepContextRequest",kn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"top_k",kind:"scalar",T:5},{no:3,name:"top_reflections_k",kind:"scalar",T:5},{no:4,name:"index_ids",kind:"scalar",T:9,repeated:!0},{no:5,name:"use_model_on_files",kind:"scalar",T:8},{no:6,name:"use_reflections",kind:"scalar",T:8}]));class Jn extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Jn).fromBinary(e,t)}static fromJson(e,t){return(new Jn).fromJson(e,t)}static fromJsonString(e,t){return(new Jn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Jn,e,t)}}Jn.runtime=A.proto3,Jn.typeName="aiserver.v1.NodeResult",Jn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"node",kind:"message",T:Te},{no:2,name:"file",kind:"message",T:L.ZH},{no:3,name:"score",kind:"scalar",T:2}]));class vn extends A.Message{constructor(e){super(),this.score=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new vn).fromBinary(e,t)}static fromJson(e,t){return(new vn).fromJson(e,t)}static fromJsonString(e,t){return(new vn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(vn,e,t)}}vn.runtime=A.proto3,vn.typeName="aiserver.v1.ReflectionResult",vn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"reflection",kind:"message",T:_e},{no:2,name:"score",kind:"scalar",T:2}]));class En extends A.Message{constructor(e){super(),this.topNodes=[],this.reflections=[],this.indexId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new En).fromBinary(e,t)}static fromJson(e,t){return(new En).fromJson(e,t)}static fromJsonString(e,t){return(new En).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(En,e,t)}}En.runtime=A.proto3,En.typeName="aiserver.v1.SearchRepositoryDeepContextResponse",En.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"top_nodes",kind:"message",T:Jn,repeated:!0},{no:2,name:"reflections",kind:"message",T:vn,repeated:!0},{no:3,name:"index_id",kind:"scalar",T:9}]));class bn extends A.Message{constructor(e){super(),this.query="",this.codeResults=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new bn).fromBinary(e,t)}static fromJson(e,t){return(new bn).fromJson(e,t)}static fromJsonString(e,t){return(new bn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(bn,e,t)}}bn.runtime=A.proto3,bn.typeName="aiserver.v1.GetLineNumberClassificationsRequest",bn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"query",kind:"scalar",T:9},{no:2,name:"code_results",kind:"message",T:Gt,repeated:!0}]));class jn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new jn).fromBinary(e,t)}static fromJson(e,t){return(new jn).fromJson(e,t)}static fromJsonString(e,t){return(new jn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(jn,e,t)}}jn.runtime=A.proto3,jn.typeName="aiserver.v1.GetLineNumberClassificationsResponse",jn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"classified_result",kind:"message",T:Yt}]));class xn extends A.Message{constructor(e){super(),this.codebaseId="",this.copyTaskHandle="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xn).fromBinary(e,t)}static fromJson(e,t){return(new xn).fromJson(e,t)}static fromJsonString(e,t){return(new xn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(xn,e,t)}}xn.runtime=A.proto3,xn.typeName="aiserver.v1.GetCopyStatusRequest",xn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"codebase_id",kind:"scalar",T:9},{no:2,name:"copy_task_handle",kind:"scalar",T:9}]));class Nn extends A.Message{constructor(e){super(),this.phase=I.UNSPECIFIED,this.percentDone=0,this.errorMessage="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Nn).fromBinary(e,t)}static fromJson(e,t){return(new Nn).fromJson(e,t)}static fromJsonString(e,t){return(new Nn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Nn,e,t)}}Nn.runtime=A.proto3,Nn.typeName="aiserver.v1.GetCopyStatusResponse",Nn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"phase",kind:"enum",T:A.proto3.getEnumType(I)},{no:2,name:"percent_done",kind:"scalar",T:2},{no:3,name:"error_message",kind:"scalar",T:9},{no:4,name:"completed_status",kind:"enum",T:A.proto3.getEnumType(B),opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INITIALIZING=1]="INITIALIZING",e[e.COPYING=2]="COPYING",e[e.COMPLETED=3]="COMPLETED",e[e.CREATING_SEARCH_FILTERS=4]="CREATING_SEARCH_FILTERS",e[e.COPYING_SEARCH_STATE=5]="COPYING_SEARCH_STATE",e[e.COPYING_TREE_STATE=6]="COPYING_TREE_STATE",e[e.SYNCING_COPY=7]="SYNCING_COPY"}(I||(I={})),A.proto3.util.setEnumType(I,"aiserver.v1.GetCopyStatusResponse.Phase",[{no:0,name:"PHASE_UNSPECIFIED"},{no:1,name:"PHASE_INITIALIZING"},{no:2,name:"PHASE_COPYING"},{no:3,name:"PHASE_COMPLETED"},{no:4,name:"PHASE_CREATING_SEARCH_FILTERS"},{no:5,name:"PHASE_COPYING_SEARCH_STATE"},{no:6,name:"PHASE_COPYING_TREE_STATE"},{no:7,name:"PHASE_SYNCING_COPY"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.UP_TO_DATE=1]="UP_TO_DATE",e[e.OUT_OF_SYNC=2]="OUT_OF_SYNC",e[e.FAILURE=3]="FAILURE"}(B||(B={})),A.proto3.util.setEnumType(B,"aiserver.v1.GetCopyStatusResponse.CompletedStatus",[{no:0,name:"COMPLETED_STATUS_UNSPECIFIED"},{no:1,name:"COMPLETED_STATUS_UP_TO_DATE"},{no:2,name:"COMPLETED_STATUS_OUT_OF_SYNC"},{no:3,name:"COMPLETED_STATUS_FAILURE"}]);class Pn extends A.Message{constructor(e){super(),this.path="",this.diff=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pn).fromBinary(e,t)}static fromJson(e,t){return(new Pn).fromJson(e,t)}static fromJsonString(e,t){return(new Pn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Pn,e,t)}}Pn.runtime=A.proto3,Pn.typeName="aiserver.v1.IndexedFile",Pn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"diff",kind:"scalar",T:9,repeated:!0}]));class In extends A.Message{constructor(e){super(),this.prNumber=0,this.sha="",this.message="",this.changedFiles=[],this.generation=0,this.commitSecret="",this.unixTimestamp=A.protoInt64.zero,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new In).fromBinary(e,t)}static fromJson(e,t){return(new In).fromJson(e,t)}static fromJsonString(e,t){return(new In).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(In,e,t)}}In.runtime=A.proto3,In.typeName="aiserver.v1.IndexedPullRequest",In.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"pr_number",kind:"scalar",T:13},{no:2,name:"sha",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9},{no:4,name:"changed_files",kind:"message",T:Pn,repeated:!0},{no:5,name:"generation",kind:"scalar",T:13},{no:6,name:"commit_secret",kind:"scalar",T:9},{no:7,name:"unix_timestamp",kind:"scalar",T:3},{no:8,name:"title",kind:"scalar",T:9,opt:!0},{no:9,name:"author",kind:"scalar",T:9,opt:!0}]));class Bn extends A.Message{constructor(e){super(),this.origin="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Bn).fromBinary(e,t)}static fromJson(e,t){return(new Bn).fromJson(e,t)}static fromJsonString(e,t){return(new Bn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Bn,e,t)}}Bn.runtime=A.proto3,Bn.typeName="aiserver.v1.RepoHistoryInitHandshakeRequest",Bn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"origin",kind:"scalar",T:9},{no:3,name:"test_origin_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"test_origin_commit_secret",kind:"scalar",T:9,opt:!0},{no:5,name:"send_copy_candidates",kind:"scalar",T:8,opt:!0}]));class qn extends A.Message{constructor(e){super(),this.historyId="",A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qn).fromBinary(e,t)}static fromJson(e,t){return(new qn).fromJson(e,t)}static fromJsonString(e,t){return(new qn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(qn,e,t)}}qn.runtime=A.proto3,qn.typeName="aiserver.v1.RepoHistoryInfo",qn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"branch_name",kind:"scalar",T:9,opt:!0},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_commit_generation",kind:"scalar",T:13,opt:!0},{no:5,name:"sync_bitmap",kind:"scalar",T:12,opt:!0}]));class Rn extends A.Message{constructor(e){super(),this.status=q.UNSPECIFIED,this.histories=[],this.copyCandidates=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Rn).fromBinary(e,t)}static fromJson(e,t){return(new Rn).fromJson(e,t)}static fromJsonString(e,t){return(new Rn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Rn,e,t)}}Rn.runtime=A.proto3,Rn.typeName="aiserver.v1.RepoHistoryInitHandshakeResponse",Rn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(q)},{no:2,name:"histories",kind:"message",T:qn,repeated:!0},{no:3,name:"copy_candidate_nonce",kind:"scalar",T:9,opt:!0},{no:4,name:"copy_candidates",kind:"scalar",T:9,repeated:!0},{no:5,name:"error_message",kind:"scalar",T:9,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FAILURE=1]="FAILURE",e[e.SUCCESS=2]="SUCCESS",e[e.TEST_CANDIDATES=3]="TEST_CANDIDATES",e[e.NO_INDEXING=4]="NO_INDEXING"}(q||(q={})),A.proto3.util.setEnumType(q,"aiserver.v1.RepoHistoryInitHandshakeResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_FAILURE"},{no:2,name:"STATUS_SUCCESS"},{no:3,name:"STATUS_TEST_CANDIDATES"},{no:4,name:"STATUS_NO_INDEXING"}]);class Mn extends A.Message{constructor(e){super(),this.historyId="",this.pullRequests=[],this.ignoreCommits=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Mn).fromBinary(e,t)}static fromJson(e,t){return(new Mn).fromJson(e,t)}static fromJsonString(e,t){return(new Mn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Mn,e,t)}}Mn.runtime=A.proto3,Mn.typeName="aiserver.v1.RepoHistorySyncOneRequest",Mn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"pull_requests",kind:"message",T:In,repeated:!0},{no:3,name:"ignore_commits",kind:"scalar",T:13,repeated:!0}]));class On extends A.Message{constructor(e){super(),this.status=R.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new On).fromBinary(e,t)}static fromJson(e,t){return(new On).fromJson(e,t)}static fromJsonString(e,t){return(new On).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(On,e,t)}}On.runtime=A.proto3,On.typeName="aiserver.v1.RepoHistorySyncOneResponse",On.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(R)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.PARTIAL_SUCCESS=3]="PARTIAL_SUCCESS",e[e.NOT_INDEXING=4]="NOT_INDEXING"}(R||(R={})),A.proto3.util.setEnumType(R,"aiserver.v1.RepoHistorySyncOneResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_PARTIAL_SUCCESS"},{no:4,name:"STATUS_NOT_INDEXING"}]);class Fn extends A.Message{constructor(e){super(),this.syncedHistories=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fn).fromBinary(e,t)}static fromJson(e,t){return(new Fn).fromJson(e,t)}static fromJsonString(e,t){return(new Fn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Fn,e,t)}}Fn.runtime=A.proto3,Fn.typeName="aiserver.v1.RepoHistorySyncCompleteRequest",Fn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"synced_histories",kind:"message",T:An,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SUCCESS=1]="SUCCESS",e[e.FAILURE=2]="FAILURE",e[e.TOTAL_FAILURE=3]="TOTAL_FAILURE",e[e.INTERRUPTED=4]="INTERRUPTED"}(M||(M={})),A.proto3.util.setEnumType(M,"aiserver.v1.RepoHistorySyncCompleteRequest.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_SUCCESS"},{no:2,name:"STATUS_FAILURE"},{no:3,name:"STATUS_TOTAL_FAILURE"},{no:4,name:"STATUS_INTERRUPTED"}]);class An extends A.Message{constructor(e){super(),this.historyId="",this.status=M.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new An).fromBinary(e,t)}static fromJson(e,t){return(new An).fromJson(e,t)}static fromJsonString(e,t){return(new An).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(An,e,t)}}An.runtime=A.proto3,An.typeName="aiserver.v1.RepoHistorySyncCompleteRequest.SyncedHistory",An.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"history_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:A.proto3.getEnumType(M)},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_commit_secret",kind:"scalar",T:9,opt:!0},{no:5,name:"last_indexed_commit_generation",kind:"scalar",T:13,opt:!0}]));class Ln extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ln).fromBinary(e,t)}static fromJson(e,t){return(new Ln).fromJson(e,t)}static fromJsonString(e,t){return(new Ln).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Ln,e,t)}}Ln.runtime=A.proto3,Ln.typeName="aiserver.v1.RepoHistorySyncCompleteResponse",Ln.fields=A.proto3.util.newFieldList((()=>[]));class Cn extends A.Message{constructor(e){super(),this.query="",this.topK=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Cn).fromBinary(e,t)}static fromJson(e,t){return(new Cn).fromJson(e,t)}static fromJsonString(e,t){return(new Cn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Cn,e,t)}}Cn.runtime=A.proto3,Cn.typeName="aiserver.v1.SearchPRHistoryRequest",Cn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"top_k",kind:"scalar",T:5}]));class Un extends A.Message{constructor(e){super(),this.filePath="",this.startLineNumberZeroIndexed=0,this.endLineNumberZeroIndexedExclusive=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Un).fromBinary(e,t)}static fromJson(e,t){return(new Un).fromJson(e,t)}static fromJsonString(e,t){return(new Un).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Un,e,t)}}Un.runtime=A.proto3,Un.typeName="aiserver.v1.PRDiffChunkPointer",Un.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"file_path",kind:"scalar",T:9},{no:2,name:"start_line_number_zero_indexed",kind:"scalar",T:5},{no:3,name:"end_line_number_zero_indexed_exclusive",kind:"scalar",T:5}]));class Dn extends A.Message{constructor(e){super(),this.results=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Dn).fromBinary(e,t)}static fromJson(e,t){return(new Dn).fromJson(e,t)}static fromJsonString(e,t){return(new Dn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Dn,e,t)}}Dn.runtime=A.proto3,Dn.typeName="aiserver.v1.SearchPRHistoryResponse",Dn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"results",kind:"message",T:Gn,repeated:!0},{no:2,name:"git_height",kind:"scalar",T:13,opt:!0}]));class Gn extends A.Message{constructor(e){super(),this.commitHash="",this.score=0,this.diffChunks=[],this.changedFiles=[],A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Gn).fromBinary(e,t)}static fromJson(e,t){return(new Gn).fromJson(e,t)}static fromJsonString(e,t){return(new Gn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Gn,e,t)}}Gn.runtime=A.proto3,Gn.typeName="aiserver.v1.SearchPRHistoryResponse.PRSearchResult",Gn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"commit_hash",kind:"scalar",T:9},{no:2,name:"score",kind:"scalar",T:2},{no:3,name:"diff_chunks",kind:"message",T:Un,repeated:!0},{no:4,name:"title",kind:"scalar",T:9,opt:!0},{no:5,name:"summary",kind:"scalar",T:9,opt:!0},{no:6,name:"pr_number",kind:"scalar",T:13,opt:!0},{no:7,name:"author",kind:"scalar",T:9,opt:!0},{no:8,name:"date",kind:"scalar",T:9,opt:!0},{no:9,name:"changed_files",kind:"scalar",T:9,repeated:!0}]));class Hn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Hn).fromBinary(e,t)}static fromJson(e,t){return(new Hn).fromJson(e,t)}static fromJsonString(e,t){return(new Hn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Hn,e,t)}}Hn.runtime=A.proto3,Hn.typeName="aiserver.v1.RemoveRepoHistoryRequest",Hn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Kn extends A.Message{constructor(e){super(),this.status=O.UNSPECIFIED,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Kn).fromBinary(e,t)}static fromJson(e,t){return(new Kn).fromJson(e,t)}static fromJsonString(e,t){return(new Kn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Kn,e,t)}}Kn.runtime=A.proto3,Kn.typeName="aiserver.v1.RemoveRepoHistoryResponse",Kn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(O)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_FOUND=1]="NOT_FOUND",e[e.NOT_AUTHORIZED=2]="NOT_AUTHORIZED",e[e.PARTIAL_SUCCESS=3]="PARTIAL_SUCCESS",e[e.SUCCESS=4]="SUCCESS"}(O||(O={})),A.proto3.util.setEnumType(O,"aiserver.v1.RemoveRepoHistoryResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_NOT_FOUND"},{no:2,name:"STATUS_NOT_AUTHORIZED"},{no:3,name:"STATUS_PARTIAL_SUCCESS"},{no:4,name:"STATUS_SUCCESS"}]);class Wn extends A.Message{constructor(e){super(),A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Wn).fromBinary(e,t)}static fromJson(e,t){return(new Wn).fromJson(e,t)}static fromJsonString(e,t){return(new Wn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Wn,e,t)}}Wn.runtime=A.proto3,Wn.typeName="aiserver.v1.GetPRIndexingStatusRequest",Wn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"repository",kind:"message",T:wn}]));class Yn extends A.Message{constructor(e){super(),this.status=F.UNSPECIFIED,this.syncPercentage=0,A.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Yn).fromBinary(e,t)}static fromJson(e,t){return(new Yn).fromJson(e,t)}static fromJsonString(e,t){return(new Yn).fromJsonString(e,t)}static equals(e,t){return A.proto3.util.equals(Yn,e,t)}}Yn.runtime=A.proto3,Yn.typeName="aiserver.v1.GetPRIndexingStatusResponse",Yn.fields=A.proto3.util.newFieldList((()=>[{no:1,name:"status",kind:"enum",T:A.proto3.getEnumType(F)},{no:2,name:"sync_percentage",kind:"scalar",T:2},{no:3,name:"last_indexed_commit",kind:"scalar",T:9,opt:!0},{no:4,name:"last_indexed_generation",kind:"scalar",T:13,opt:!0},{no:5,name:"total_commits",kind:"scalar",T:13,opt:!0},{no:6,name:"indexing_rate",kind:"scalar",T:2,opt:!0},{no:7,name:"last_updated_timestamp",kind:"scalar",T:3,opt:!0},{no:8,name:"index_version",kind:"scalar",T:13,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.EMPTY=1]="EMPTY",e[e.SYNCING=2]="SYNCING",e[e.SYNCED=3]="SYNCED",e[e.PARTIAL=4]="PARTIAL"}(F||(F={})),A.proto3.util.setEnumType(F,"aiserver.v1.GetPRIndexingStatusResponse.Status",[{no:0,name:"STATUS_UNSPECIFIED"},{no:1,name:"STATUS_EMPTY"},{no:2,name:"STATUS_SYNCING"},{no:3,name:"STATUS_SYNCED"},{no:4,name:"STATUS_PARTIAL"}])},"../proto/dist/generated/aiserver/v1/utils_pb.js"(e,t,n){n.d(t,{Gm:()=>$,NG:()=>L,Nj:()=>o,ZH:()=>G,_u:()=>N,d7:()=>A});var r,s,o,i,a,l,u,m,c,d,p,f=n("@bufbuild/protobuf");!function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO",e[e.HINT=4]="HINT",e[e.AI=5]="AI"}(r||(r={})),f.proto3.util.setEnumType(r,"aiserver.v1.LintSeverity",[{no:0,name:"LINT_SEVERITY_UNSPECIFIED"},{no:1,name:"LINT_SEVERITY_ERROR"},{no:2,name:"LINT_SEVERITY_WARNING"},{no:3,name:"LINT_SEVERITY_INFO"},{no:4,name:"LINT_SEVERITY_HINT"},{no:5,name:"LINT_SEVERITY_AI"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.EDIT=1]="EDIT",e[e.GENERATE=2]="GENERATE",e[e.INLINE_LONG_COMPLETION=3]="INLINE_LONG_COMPLETION"}(s||(s={})),f.proto3.util.setEnumType(s,"aiserver.v1.FeatureType",[{no:0,name:"FEATURE_TYPE_UNSPECIFIED"},{no:1,name:"FEATURE_TYPE_EDIT"},{no:2,name:"FEATURE_TYPE_GENERATE"},{no:3,name:"FEATURE_TYPE_INLINE_LONG_COMPLETION"}]),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.VOYAGE_CODE_2=1]="VOYAGE_CODE_2",e[e.TEXT_EMBEDDINGS_LARGE_3=2]="TEXT_EMBEDDINGS_LARGE_3",e[e.QWEN_1_5B_CUSTOM=3]="QWEN_1_5B_CUSTOM",e[e.MOCK_CHUNKER_ERROR=4]="MOCK_CHUNKER_ERROR",e[e.QWEN_1_5B_0618_CUSTOM=5]="QWEN_1_5B_0618_CUSTOM",e[e.QWEN_1_5B_0618_FP8_MM_CUSTOM=6]="QWEN_1_5B_0618_FP8_MM_CUSTOM"}(o||(o={})),f.proto3.util.setEnumType(o,"aiserver.v1.EmbeddingModel",[{no:0,name:"EMBEDDING_MODEL_UNSPECIFIED"},{no:1,name:"EMBEDDING_MODEL_VOYAGE_CODE_2"},{no:2,name:"EMBEDDING_MODEL_TEXT_EMBEDDINGS_LARGE_3"},{no:3,name:"EMBEDDING_MODEL_QWEN_1_5B_CUSTOM"},{no:4,name:"EMBEDDING_MODEL_MOCK_CHUNKER_ERROR"},{no:5,name:"EMBEDDING_MODEL_QWEN_1_5B_0618_CUSTOM"},{no:6,name:"EMBEDDING_MODEL_QWEN_1_5B_0618_FP8_MM_CUSTOM"}]);class g extends f.Message{constructor(e){super(),this.line=0,this.column=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new g).fromBinary(e,t)}static fromJson(e,t){return(new g).fromJson(e,t)}static fromJsonString(e,t){return(new g).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(g,e,t)}}g.runtime=f.proto3,g.typeName="aiserver.v1.CursorPosition",g.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"line",kind:"scalar",T:5},{no:2,name:"column",kind:"scalar",T:5}]));class _ extends f.Message{constructor(e){super(),this.totalmem=0,this.freemem=0,this.loadavg=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _).fromBinary(e,t)}static fromJson(e,t){return(new _).fromJson(e,t)}static fromJsonString(e,t){return(new _).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(_,e,t)}}_.runtime=f.proto3,_.typeName="aiserver.v1.VscodeOSStatistics",_.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"totalmem",kind:"scalar",T:1},{no:2,name:"freemem",kind:"scalar",T:1},{no:3,name:"loadavg",kind:"scalar",T:1,repeated:!0}]));class h extends f.Message{constructor(e){super(),this.type="",this.release="",this.arch="",this.platform="",this.cpus=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new h).fromBinary(e,t)}static fromJson(e,t){return(new h).fromJson(e,t)}static fromJsonString(e,t){return(new h).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(h,e,t)}}h.runtime=f.proto3,h.typeName="aiserver.v1.VscodeOSProperties",h.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"release",kind:"scalar",T:9},{no:3,name:"arch",kind:"scalar",T:9},{no:4,name:"platform",kind:"scalar",T:9},{no:5,name:"cpus",kind:"message",T,repeated:!0}]));class T extends f.Message{constructor(e){super(),this.model="",this.speed=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new T).fromBinary(e,t)}static fromJson(e,t){return(new T).fromJson(e,t)}static fromJsonString(e,t){return(new T).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(T,e,t)}}T.runtime=f.proto3,T.typeName="aiserver.v1.VscodeCPUProperties",T.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model",kind:"scalar",T:9},{no:2,name:"speed",kind:"scalar",T:1}]));class y extends f.Message{constructor(e){super(),this.workspaceUris=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new y).fromBinary(e,t)}static fromJson(e,t){return(new y).fromJson(e,t)}static fromJsonString(e,t){return(new y).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(y,e,t)}}y.runtime=f.proto3,y.typeName="aiserver.v1.EnvironmentInfo",y.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"exthost_platform",kind:"scalar",T:9,opt:!0},{no:2,name:"exthost_arch",kind:"scalar",T:9,opt:!0},{no:3,name:"exthost_release",kind:"scalar",T:9,opt:!0},{no:4,name:"exthost_shell",kind:"scalar",T:9,opt:!0},{no:5,name:"local_timestamp",kind:"scalar",T:9,opt:!0},{no:6,name:"workspace_uris",kind:"scalar",T:9,repeated:!0},{no:7,name:"cursor_version",kind:"scalar",T:9,opt:!0},{no:8,name:"is_remote",kind:"scalar",T:8,opt:!0},{no:9,name:"local_os_type",kind:"scalar",T:9,opt:!0},{no:10,name:"home_directory",kind:"scalar",T:9,opt:!0},{no:11,name:"local_timezone",kind:"scalar",T:9,opt:!0}]));class S extends f.Message{constructor(e){super(),this.selectionStartLineNumber=0,this.selectionStartColumn=0,this.positionLineNumber=0,this.positionColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new S).fromBinary(e,t)}static fromJson(e,t){return(new S).fromJson(e,t)}static fromJsonString(e,t){return(new S).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(S,e,t)}}S.runtime=f.proto3,S.typeName="aiserver.v1.SelectionWithOrientation",S.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"selection_start_line_number",kind:"scalar",T:5},{no:2,name:"selection_start_column",kind:"scalar",T:5},{no:3,name:"position_line_number",kind:"scalar",T:5},{no:4,name:"position_column",kind:"scalar",T:5}]));class w extends f.Message{constructor(e){super(),this.cwd="",this.ref="",this.baseRef="",this.mergeBase=!1,this.targetPaths=[],this.maxUntrackedFiles=0,this.submoduleRecurseDepth=0,this.includeSpaceChanges=!1,this.committedOnly=!1,this.computePatchId=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new w).fromBinary(e,t)}static fromJson(e,t){return(new w).fromJson(e,t)}static fromJsonString(e,t){return(new w).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(w,e,t)}}w.runtime=f.proto3,w.typeName="aiserver.v1.GetDiffRequest",w.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"cwd",kind:"scalar",T:9},{no:2,name:"ref",kind:"scalar",T:9},{no:3,name:"base_ref",kind:"scalar",T:9},{no:4,name:"merge_base",kind:"scalar",T:8},{no:5,name:"target_paths",kind:"scalar",T:9,repeated:!0},{no:6,name:"unified_context_lines",kind:"scalar",T:5,opt:!0},{no:7,name:"max_untracked_files",kind:"scalar",T:5},{no:9,name:"submodule_recurse_depth",kind:"scalar",T:5},{no:10,name:"include_space_changes",kind:"scalar",T:8},{no:11,name:"committed_only",kind:"scalar",T:8},{no:12,name:"compute_patch_id",kind:"scalar",T:8},{no:13,name:"return_head_sha",kind:"scalar",T:8,opt:!0},{no:14,name:"max_response_bytes",kind:"scalar",T:5,opt:!0},{no:8,name:"output_format",kind:"enum",T:f.proto3.getEnumType(i),opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NAME_STATUS=1]="NAME_STATUS",e[e.NAME_STATUS_AND_NUMSTAT=2]="NAME_STATUS_AND_NUMSTAT",e[e.FILE_DIFFS=3]="FILE_DIFFS",e[e.DIFFS_WITH_BEFORE_AND_AFTER=4]="DIFFS_WITH_BEFORE_AND_AFTER"}(i||(i={})),f.proto3.util.setEnumType(i,"aiserver.v1.GetDiffRequest.OutputFormat",[{no:0,name:"OUTPUT_FORMAT_UNSPECIFIED"},{no:1,name:"OUTPUT_FORMAT_NAME_STATUS"},{no:2,name:"OUTPUT_FORMAT_NAME_STATUS_AND_NUMSTAT"},{no:3,name:"OUTPUT_FORMAT_FILE_DIFFS"},{no:4,name:"OUTPUT_FORMAT_DIFFS_WITH_BEFORE_AND_AFTER"}]);class k extends f.Message{constructor(e){super(),this.submoduleDiffs=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new k).fromBinary(e,t)}static fromJson(e,t){return(new k).fromJson(e,t)}static fromJsonString(e,t){return(new k).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(k,e,t)}}k.runtime=f.proto3,k.typeName="aiserver.v1.GetDiffResponse",k.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diff",kind:"message",T:b},{no:2,name:"submodule_diffs",kind:"message",T:J,repeated:!0},{no:3,name:"patch_id",kind:"scalar",T:9,opt:!0},{no:4,name:"head_sha",kind:"scalar",T:9,opt:!0},{no:5,name:"has_uncommitted_changes",kind:"scalar",T:8,opt:!0}]));class J extends f.Message{constructor(e){super(),this.relativePath="",this.errored=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new J).fromBinary(e,t)}static fromJson(e,t){return(new J).fromJson(e,t)}static fromJsonString(e,t){return(new J).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(J,e,t)}}J.runtime=f.proto3,J.typeName="aiserver.v1.GetDiffResponse.SubmoduleDiff",J.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_path",kind:"scalar",T:9},{no:2,name:"diff",kind:"message",T:b},{no:3,name:"errored",kind:"scalar",T:8}]));class v extends f.Message{constructor(e){super(),this.startLine=0,this.endLineInclusive=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new v).fromBinary(e,t)}static fromJson(e,t){return(new v).fromJson(e,t)}static fromJsonString(e,t){return(new v).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(v,e,t)}}v.runtime=f.proto3,v.typeName="aiserver.v1.SimplestRange",v.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line",kind:"scalar",T:5},{no:2,name:"end_line_inclusive",kind:"scalar",T:5}]));class E extends f.Message{constructor(e){super(),this.original=[],this.modified=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new E).fromBinary(e,t)}static fromJson(e,t){return(new E).fromJson(e,t)}static fromJsonString(e,t){return(new E).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(E,e,t)}}E.runtime=f.proto3,E.typeName="aiserver.v1.ComputeLinesDiffOriginalAndModified",E.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"original",kind:"scalar",T:9,repeated:!0},{no:2,name:"modified",kind:"scalar",T:9,repeated:!0}]));class b extends f.Message{constructor(e){super(),this.diffs=[],this.diffType=a.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new b).fromBinary(e,t)}static fromJson(e,t){return(new b).fromJson(e,t)}static fromJsonString(e,t){return(new b).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(b,e,t)}}b.runtime=f.proto3,b.typeName="aiserver.v1.GitDiff",b.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diffs",kind:"message",T:j,repeated:!0},{no:2,name:"diff_type",kind:"enum",T:f.proto3.getEnumType(a)}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DIFF_TO_HEAD=1]="DIFF_TO_HEAD",e[e.DIFF_FROM_BRANCH_TO_MAIN=2]="DIFF_FROM_BRANCH_TO_MAIN"}(a||(a={})),f.proto3.util.setEnumType(a,"aiserver.v1.GitDiff.DiffType",[{no:0,name:"DIFF_TYPE_UNSPECIFIED"},{no:1,name:"DIFF_TYPE_DIFF_TO_HEAD"},{no:2,name:"DIFF_TYPE_DIFF_FROM_BRANCH_TO_MAIN"}]);class j extends f.Message{constructor(e){super(),this.added=0,this.removed=0,this.from="",this.to="",this.chunks=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new j).fromBinary(e,t)}static fromJson(e,t){return(new j).fromJson(e,t)}static fromJsonString(e,t){return(new j).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(j,e,t)}}j.runtime=f.proto3,j.typeName="aiserver.v1.FileDiff",j.fields=f.proto3.util.newFieldList((()=>[{no:4,name:"added",kind:"scalar",T:5},{no:5,name:"removed",kind:"scalar",T:5},{no:1,name:"from",kind:"scalar",T:9},{no:2,name:"to",kind:"scalar",T:9},{no:3,name:"chunks",kind:"message",T:x,repeated:!0},{no:6,name:"before_file_contents",kind:"scalar",T:9,opt:!0},{no:7,name:"after_file_contents",kind:"scalar",T:9,opt:!0},{no:8,name:"is_generated",kind:"scalar",T:8,opt:!0}]));class x extends f.Message{constructor(e){super(),this.content="",this.lines=[],this.oldStart=0,this.oldLines=0,this.newStart=0,this.newLines=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new x).fromBinary(e,t)}static fromJson(e,t){return(new x).fromJson(e,t)}static fromJsonString(e,t){return(new x).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(x,e,t)}}x.runtime=f.proto3,x.typeName="aiserver.v1.FileDiff.Chunk",x.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"lines",kind:"scalar",T:9,repeated:!0},{no:3,name:"old_start",kind:"scalar",T:5},{no:4,name:"old_lines",kind:"scalar",T:5},{no:5,name:"new_start",kind:"scalar",T:5},{no:6,name:"new_lines",kind:"scalar",T:5}]));class N extends f.Message{constructor(e){super(),this.startLineNumber=0,this.startColumn=0,this.endLineNumberInclusive=0,this.endColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new N).fromBinary(e,t)}static fromJson(e,t){return(new N).fromJson(e,t)}static fromJsonString(e,t){return(new N).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(N,e,t)}}N.runtime=f.proto3,N.typeName="aiserver.v1.SimpleRange",N.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"start_column",kind:"scalar",T:5},{no:3,name:"end_line_number_inclusive",kind:"scalar",T:5},{no:4,name:"end_column",kind:"scalar",T:5}]));class P extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.chunkHash="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new P).fromBinary(e,t)}static fromJson(e,t){return(new P).fromJson(e,t)}static fromJsonString(e,t){return(new P).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(P,e,t)}}P.runtime=f.proto3,P.typeName="aiserver.v1.SimpleFileChunk",P.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:v},{no:3,name:"chunk_hash",kind:"scalar",T:9}]));class I extends f.Message{constructor(e){super(),this.remoteUrl="",this.commitId="",this.gitPatch="",this.unsavedFiles=[],this.unixTimestampMs=0,this.openEditors=[],this.fileDiffHistories=[],this.branchName="",this.branchNotes="",this.branchNotesRich="",this.globalNotes="",this.pastThoughts=[],this.baseBranchName="",this.baseBranchCommitId="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new I).fromBinary(e,t)}static fromJson(e,t){return(new I).fromJson(e,t)}static fromJsonString(e,t){return(new I).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(I,e,t)}}I.runtime=f.proto3,I.typeName="aiserver.v1.CmdKDebugInfo",I.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"remote_url",kind:"scalar",T:9},{no:2,name:"commit_id",kind:"scalar",T:9},{no:3,name:"git_patch",kind:"scalar",T:9},{no:4,name:"unsaved_files",kind:"message",T:B,repeated:!0},{no:5,name:"unix_timestamp_ms",kind:"scalar",T:1},{no:6,name:"open_editors",kind:"message",T:q,repeated:!0},{no:7,name:"file_diff_histories",kind:"message",T:R,repeated:!0},{no:8,name:"branch_name",kind:"scalar",T:9},{no:9,name:"branch_notes",kind:"scalar",T:9},{no:12,name:"branch_notes_rich",kind:"scalar",T:9},{no:10,name:"global_notes",kind:"scalar",T:9},{no:11,name:"past_thoughts",kind:"message",T:M,repeated:!0},{no:13,name:"base_branch_name",kind:"scalar",T:9},{no:14,name:"base_branch_commit_id",kind:"scalar",T:9}]));class B extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new B).fromBinary(e,t)}static fromJson(e,t){return(new B).fromJson(e,t)}static fromJsonString(e,t){return(new B).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(B,e,t)}}B.runtime=f.proto3,B.typeName="aiserver.v1.CmdKDebugInfo.UnsavedFiles",B.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9}]));class q extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.editorGroupIndex=0,this.editorGroupId=0,this.isActive=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new q).fromBinary(e,t)}static fromJson(e,t){return(new q).fromJson(e,t)}static fromJsonString(e,t){return(new q).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(q,e,t)}}q.runtime=f.proto3,q.typeName="aiserver.v1.CmdKDebugInfo.OpenEditor",q.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"editor_group_index",kind:"scalar",T:5},{no:3,name:"editor_group_id",kind:"scalar",T:5},{no:4,name:"is_active",kind:"scalar",T:8}]));class R extends f.Message{constructor(e){super(),this.fileName="",this.diffHistory=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new R).fromBinary(e,t)}static fromJson(e,t){return(new R).fromJson(e,t)}static fromJsonString(e,t){return(new R).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(R,e,t)}}R.runtime=f.proto3,R.typeName="aiserver.v1.CmdKDebugInfo.CppFileDiffHistory",R.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"file_name",kind:"scalar",T:9},{no:2,name:"diff_history",kind:"scalar",T:9,repeated:!0}]));class M extends f.Message{constructor(e){super(),this.text="",this.timeInUnixSeconds=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new M).fromBinary(e,t)}static fromJson(e,t){return(new M).fromJson(e,t)}static fromJsonString(e,t){return(new M).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(M,e,t)}}M.runtime=f.proto3,M.typeName="aiserver.v1.CmdKDebugInfo.PastThought",M.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"time_in_unix_seconds",kind:"scalar",T:1}]));class O extends f.Message{constructor(e){super(),this.startLineNumber=0,this.endLineNumberInclusive=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new O).fromBinary(e,t)}static fromJson(e,t){return(new O).fromJson(e,t)}static fromJsonString(e,t){return(new O).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(O,e,t)}}O.runtime=f.proto3,O.typeName="aiserver.v1.LineRange",O.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"end_line_number_inclusive",kind:"scalar",T:5}]));class F extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new F).fromBinary(e,t)}static fromJson(e,t){return(new F).fromJson(e,t)}static fromJsonString(e,t){return(new F).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(F,e,t)}}F.runtime=f.proto3,F.typeName="aiserver.v1.CursorRange",F.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_position",kind:"message",T:g},{no:2,name:"end_position",kind:"message",T:g}]));class A extends f.Message{constructor(e){super(),this.text="",this.lineNumber=0,this.isSignature=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new A).fromBinary(e,t)}static fromJson(e,t){return(new A).fromJson(e,t)}static fromJsonString(e,t){return(new A).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(A,e,t)}}A.runtime=f.proto3,A.typeName="aiserver.v1.DetailedLine",A.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9},{no:2,name:"line_number",kind:"scalar",T:2},{no:3,name:"is_signature",kind:"scalar",T:8}]));class L extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",this.detailedLines=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new L).fromBinary(e,t)}static fromJson(e,t){return(new L).fromJson(e,t)}static fromJsonString(e,t){return(new L).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(L,e,t)}}L.runtime=f.proto3,L.typeName="aiserver.v1.CodeBlock",L.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"file_contents",kind:"scalar",T:9,opt:!0},{no:9,name:"file_contents_length",kind:"scalar",T:5,opt:!0},{no:3,name:"range",kind:"message",T:F},{no:4,name:"contents",kind:"scalar",T:9},{no:5,name:"signatures",kind:"message",T:C},{no:6,name:"override_contents",kind:"scalar",T:9,opt:!0},{no:7,name:"original_contents",kind:"scalar",T:9,opt:!0},{no:8,name:"detailed_lines",kind:"message",T:A,repeated:!0},{no:10,name:"file_git_context",kind:"message",T:D}]));class C extends f.Message{constructor(e){super(),this.ranges=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new C).fromBinary(e,t)}static fromJson(e,t){return(new C).fromJson(e,t)}static fromJsonString(e,t){return(new C).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(C,e,t)}}C.runtime=f.proto3,C.typeName="aiserver.v1.CodeBlock.Signatures",C.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"ranges",kind:"message",T:F,repeated:!0}]));class U extends f.Message{constructor(e){super(),this.commit="",this.author="",this.date="",this.message="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new U).fromBinary(e,t)}static fromJson(e,t){return(new U).fromJson(e,t)}static fromJsonString(e,t){return(new U).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(U,e,t)}}U.runtime=f.proto3,U.typeName="aiserver.v1.GitCommit",U.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"commit",kind:"scalar",T:9},{no:2,name:"author",kind:"scalar",T:9},{no:3,name:"date",kind:"scalar",T:9},{no:4,name:"message",kind:"scalar",T:9}]));class D extends f.Message{constructor(e){super(),this.commits=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new D).fromBinary(e,t)}static fromJson(e,t){return(new D).fromJson(e,t)}static fromJsonString(e,t){return(new D).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(D,e,t)}}D.runtime=f.proto3,D.typeName="aiserver.v1.FileGit",D.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"commits",kind:"message",T:U,repeated:!0}]));class G extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new G).fromBinary(e,t)}static fromJson(e,t){return(new G).fromJson(e,t)}static fromJsonString(e,t){return(new G).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(G,e,t)}}G.runtime=f.proto3,G.typeName="aiserver.v1.File",G.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9},{no:3,name:"file_git_context",kind:"message",T:D}]));class H extends f.Message{constructor(e){super(),this.message="",this.severity=l.UNSPECIFIED,this.relatedInformation=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new H).fromBinary(e,t)}static fromJson(e,t){return(new H).fromJson(e,t)}static fromJsonString(e,t){return(new H).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(H,e,t)}}H.runtime=f.proto3,H.typeName="aiserver.v1.Diagnostic",H.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F},{no:3,name:"severity",kind:"enum",T:f.proto3.getEnumType(l)},{no:4,name:"related_information",kind:"message",T:K,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFORMATION=3]="INFORMATION",e[e.HINT=4]="HINT"}(l||(l={})),f.proto3.util.setEnumType(l,"aiserver.v1.Diagnostic.DiagnosticSeverity",[{no:0,name:"DIAGNOSTIC_SEVERITY_UNSPECIFIED"},{no:1,name:"DIAGNOSTIC_SEVERITY_ERROR"},{no:2,name:"DIAGNOSTIC_SEVERITY_WARNING"},{no:3,name:"DIAGNOSTIC_SEVERITY_INFORMATION"},{no:4,name:"DIAGNOSTIC_SEVERITY_HINT"}]);class K extends f.Message{constructor(e){super(),this.message="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new K).fromBinary(e,t)}static fromJson(e,t){return(new K).fromJson(e,t)}static fromJsonString(e,t){return(new K).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(K,e,t)}}K.runtime=f.proto3,K.typeName="aiserver.v1.Diagnostic.RelatedInformation",K.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F}]));class W extends f.Message{constructor(e){super(),this.message="",this.severity=r.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new W).fromBinary(e,t)}static fromJson(e,t){return(new W).fromJson(e,t)}static fromJsonString(e,t){return(new W).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(W,e,t)}}W.runtime=f.proto3,W.typeName="aiserver.v1.Lint",W.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:N},{no:3,name:"severity",kind:"enum",T:f.proto3.getEnumType(r)}]));class Y extends f.Message{constructor(e){super(),this.content="",this.score=0,this.relativePath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Y).fromBinary(e,t)}static fromJson(e,t){return(new Y).fromJson(e,t)}static fromJsonString(e,t){return(new Y).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Y,e,t)}}Y.runtime=f.proto3,Y.typeName="aiserver.v1.BM25Chunk",Y.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"content",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:v},{no:3,name:"score",kind:"scalar",T:5},{no:4,name:"relative_path",kind:"scalar",T:9}]));class z extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.contents="",this.relyOnFilesync=!1,this.cells=[],this.topChunks=[],this.contentsStartAtLine=0,this.dataframes=[],this.totalNumberOfLines=0,this.languageId="",this.diagnostics=[],this.cellStartLines=[],this.workspaceRootPath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new z).fromBinary(e,t)}static fromJson(e,t){return(new z).fromJson(e,t)}static fromJsonString(e,t){return(new z).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(z,e,t)}}z.runtime=f.proto3,z.typeName="aiserver.v1.CurrentFileInfo",z.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"contents",kind:"scalar",T:9},{no:18,name:"rely_on_filesync",kind:"scalar",T:8},{no:17,name:"sha_256_hash",kind:"scalar",T:9,opt:!0},{no:16,name:"cells",kind:"message",T:V,repeated:!0},{no:10,name:"top_chunks",kind:"message",T:Y,repeated:!0},{no:9,name:"contents_start_at_line",kind:"scalar",T:5},{no:3,name:"cursor_position",kind:"message",T:g},{no:4,name:"dataframes",kind:"message",T:ne,repeated:!0},{no:8,name:"total_number_of_lines",kind:"scalar",T:5},{no:5,name:"language_id",kind:"scalar",T:9},{no:6,name:"selection",kind:"message",T:F},{no:11,name:"alternative_version_id",kind:"scalar",T:5,opt:!0},{no:7,name:"diagnostics",kind:"message",T:H,repeated:!0},{no:14,name:"file_version",kind:"scalar",T:5,opt:!0},{no:15,name:"cell_start_lines",kind:"scalar",T:5,repeated:!0},{no:19,name:"workspace_root_path",kind:"scalar",T:9},{no:20,name:"line_ending",kind:"scalar",T:9,opt:!0}]));class V extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new V).fromBinary(e,t)}static fromJson(e,t){return(new V).fromJson(e,t)}static fromJsonString(e,t){return(new V).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(V,e,t)}}V.runtime=f.proto3,V.typeName="aiserver.v1.CurrentFileInfo.NotebookCell",V.fields=f.proto3.util.newFieldList((()=>[]));class Q extends f.Message{constructor(e){super(),this.apiKey="",this.baseUrl="",this.deployment="",this.useAzure=!1,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Q).fromBinary(e,t)}static fromJson(e,t){return(new Q).fromJson(e,t)}static fromJsonString(e,t){return(new Q).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Q,e,t)}}Q.runtime=f.proto3,Q.typeName="aiserver.v1.AzureState",Q.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"api_key",kind:"scalar",T:9},{no:2,name:"base_url",kind:"scalar",T:9},{no:3,name:"deployment",kind:"scalar",T:9},{no:4,name:"use_azure",kind:"scalar",T:8}]));class X extends f.Message{constructor(e){super(),this.accessKey="",this.secretKey="",this.region="",this.useBedrock=!1,this.sessionToken="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new X).fromBinary(e,t)}static fromJson(e,t){return(new X).fromJson(e,t)}static fromJsonString(e,t){return(new X).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(X,e,t)}}X.runtime=f.proto3,X.typeName="aiserver.v1.BedrockState",X.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"access_key",kind:"scalar",T:9},{no:2,name:"secret_key",kind:"scalar",T:9},{no:3,name:"region",kind:"scalar",T:9},{no:4,name:"use_bedrock",kind:"scalar",T:8},{no:5,name:"session_token",kind:"scalar",T:9}]));class $ extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new $).fromBinary(e,t)}static fromJson(e,t){return(new $).fromJson(e,t)}static fromJsonString(e,t){return(new $).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals($,e,t)}}$.runtime=f.proto3,$.typeName="aiserver.v1.ModelDetails",$.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9,opt:!0},{no:2,name:"api_key",kind:"scalar",T:9,opt:!0},{no:3,name:"enable_ghost_mode",kind:"scalar",T:8,opt:!0},{no:4,name:"azure_state",kind:"message",T:Q,opt:!0},{no:5,name:"enable_slow_pool",kind:"scalar",T:8,opt:!0},{no:6,name:"openai_api_base_url",kind:"scalar",T:9,opt:!0},{no:7,name:"bedrock_state",kind:"message",T:X,opt:!0},{no:8,name:"max_mode",kind:"scalar",T:8,opt:!0}]));class Z extends f.Message{constructor(e){super(),this.modelId="",this.parameters=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Z).fromBinary(e,t)}static fromJson(e,t){return(new Z).fromJson(e,t)}static fromJsonString(e,t){return(new Z).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Z,e,t)}}Z.runtime=f.proto3,Z.typeName="aiserver.v1.CloudAgentModelSelection",Z.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_id",kind:"scalar",T:9},{no:2,name:"parameters",kind:"message",T:ee,repeated:!0},{no:3,name:"max_mode",kind:"scalar",T:8,opt:!0}]));class ee extends f.Message{constructor(e){super(),this.id="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ee).fromBinary(e,t)}static fromJson(e,t){return(new ee).fromJson(e,t)}static fromJsonString(e,t){return(new ee).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ee,e,t)}}ee.runtime=f.proto3,ee.typeName="aiserver.v1.CloudAgentModelSelection.ParameterValue",ee.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class te extends f.Message{constructor(e){super(),this.modelName="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new te).fromBinary(e,t)}static fromJson(e,t){return(new te).fromJson(e,t)}static fromJsonString(e,t){return(new te).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(te,e,t)}}te.runtime=f.proto3,te.typeName="aiserver.v1.ModelInfo",te.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"model_name",kind:"scalar",T:9}]));class ne extends f.Message{constructor(e){super(),this.name="",this.shape="",this.dataDimensionality=0,this.columns=[],this.rowCount=0,this.indexColumn="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ne).fromBinary(e,t)}static fromJson(e,t){return(new ne).fromJson(e,t)}static fromJsonString(e,t){return(new ne).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ne,e,t)}}ne.runtime=f.proto3,ne.typeName="aiserver.v1.DataframeInfo",ne.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"shape",kind:"scalar",T:9},{no:3,name:"data_dimensionality",kind:"scalar",T:5},{no:6,name:"columns",kind:"message",T:re,repeated:!0},{no:7,name:"row_count",kind:"scalar",T:5},{no:8,name:"index_column",kind:"scalar",T:9}]));class re extends f.Message{constructor(e){super(),this.key="",this.type="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new re).fromBinary(e,t)}static fromJson(e,t){return(new re).fromJson(e,t)}static fromJsonString(e,t){return(new re).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(re,e,t)}}re.runtime=f.proto3,re.typeName="aiserver.v1.DataframeInfo.Column",re.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9}]));class se extends f.Message{constructor(e){super(),this.message="",this.relatedInformation=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new se).fromBinary(e,t)}static fromJson(e,t){return(new se).fromJson(e,t)}static fromJsonString(e,t){return(new se).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(se,e,t)}}se.runtime=f.proto3,se.typeName="aiserver.v1.LinterError",se.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"range",kind:"message",T:F},{no:3,name:"source",kind:"scalar",T:9,opt:!0},{no:4,name:"related_information",kind:"message",T:K,repeated:!0},{no:5,name:"severity",kind:"enum",T:f.proto3.getEnumType(l),opt:!0},{no:6,name:"is_stale",kind:"scalar",T:8,opt:!0}]));class oe extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.errors=[],this.fileContents="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new oe).fromBinary(e,t)}static fromJson(e,t){return(new oe).fromJson(e,t)}static fromJsonString(e,t){return(new oe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(oe,e,t)}}oe.runtime=f.proto3,oe.typeName="aiserver.v1.LinterErrors",oe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"errors",kind:"message",T:se,repeated:!0},{no:3,name:"file_contents",kind:"scalar",T:9}]));class ie extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.errors=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ie).fromBinary(e,t)}static fromJson(e,t){return(new ie).fromJson(e,t)}static fromJsonString(e,t){return(new ie).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ie,e,t)}}ie.runtime=f.proto3,ie.typeName="aiserver.v1.LinterErrorsWithoutFileContents",ie.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"errors",kind:"message",T:se,repeated:!0}]));class ae extends f.Message{constructor(e){super(),this.name="",this.description="",this.environments=[],this.disabledEnvironments=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ae).fromBinary(e,t)}static fromJson(e,t){return(new ae).fromJson(e,t)}static fromJsonString(e,t){return(new ae).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ae,e,t)}}ae.runtime=f.proto3,ae.typeName="aiserver.v1.CursorRule",ae.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"body",kind:"scalar",T:9,opt:!0},{no:4,name:"is_from_glob",kind:"scalar",T:8,opt:!0},{no:5,name:"always_apply",kind:"scalar",T:8,opt:!0},{no:6,name:"attach_to_background_agents",kind:"scalar",T:8,opt:!0},{no:7,name:"full_path",kind:"scalar",T:9,opt:!0},{no:8,name:"environments",kind:"scalar",T:9,repeated:!0},{no:9,name:"disabled_environments",kind:"scalar",T:9,repeated:!0},{no:10,name:"plugin",kind:"scalar",T:9,opt:!0},{no:11,name:"marketplace",kind:"scalar",T:9,opt:!0}]));class le extends f.Message{constructor(e){super(),this.context="",this.rules=[],this.mcpInstructions=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new le).fromBinary(e,t)}static fromJson(e,t){return(new le).fromJson(e,t)}static fromJsonString(e,t){return(new le).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(le,e,t)}}le.runtime=f.proto3,le.typeName="aiserver.v1.ExplicitContext",le.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"context",kind:"scalar",T:9},{no:2,name:"repo_context",kind:"scalar",T:9,opt:!0},{no:3,name:"rules",kind:"message",T:ae,repeated:!0},{no:4,name:"mode_specific_context",kind:"scalar",T:9,opt:!0},{no:5,name:"mcp_instructions",kind:"message",T:ue,repeated:!0}]));class ue extends f.Message{constructor(e){super(),this.serverName="",this.serverIdentifier="",this.instructions="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ue).fromBinary(e,t)}static fromJson(e,t){return(new ue).fromJson(e,t)}static fromJsonString(e,t){return(new ue).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ue,e,t)}}ue.runtime=f.proto3,ue.typeName="aiserver.v1.MCPInstructions",ue.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"server_name",kind:"scalar",T:9},{no:2,name:"server_identifier",kind:"scalar",T:9},{no:3,name:"instructions",kind:"scalar",T:9}]));class me extends f.Message{constructor(e){super(),this.messageType=u.UNSPECIFIED,this.content="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new me).fromBinary(e,t)}static fromJson(e,t){return(new me).fromJson(e,t)}static fromJsonString(e,t){return(new me).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(me,e,t)}}me.runtime=f.proto3,me.typeName="aiserver.v1.PureMessage",me.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message_type",kind:"enum",T:f.proto3.getEnumType(u)},{no:2,name:"content",kind:"scalar",T:9}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER",e[e.ASSISTANT=3]="ASSISTANT"}(u||(u={})),f.proto3.util.setEnumType(u,"aiserver.v1.PureMessage.MessageType",[{no:0,name:"MESSAGE_TYPE_UNSPECIFIED"},{no:1,name:"MESSAGE_TYPE_SYSTEM"},{no:2,name:"MESSAGE_TYPE_USER"},{no:3,name:"MESSAGE_TYPE_ASSISTANT"}]);class ce extends f.Message{constructor(e){super(),this.name="",this.detail="",this.kind=m.UNSPECIFIED,this.containerName="",this.children=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ce).fromBinary(e,t)}static fromJson(e,t){return(new ce).fromJson(e,t)}static fromJsonString(e,t){return(new ce).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ce,e,t)}}ce.runtime=f.proto3,ce.typeName="aiserver.v1.DocumentSymbol",ce.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"detail",kind:"scalar",T:9},{no:3,name:"kind",kind:"enum",T:f.proto3.getEnumType(m)},{no:5,name:"container_name",kind:"scalar",T:9},{no:6,name:"range",kind:"message",T:de},{no:7,name:"selection_range",kind:"message",T:de},{no:8,name:"children",kind:"message",T:ce,repeated:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.FILE=1]="FILE",e[e.MODULE=2]="MODULE",e[e.NAMESPACE=3]="NAMESPACE",e[e.PACKAGE=4]="PACKAGE",e[e.CLASS=5]="CLASS",e[e.METHOD=6]="METHOD",e[e.PROPERTY=7]="PROPERTY",e[e.FIELD=8]="FIELD",e[e.CONSTRUCTOR=9]="CONSTRUCTOR",e[e.ENUM=10]="ENUM",e[e.INTERFACE=11]="INTERFACE",e[e.FUNCTION=12]="FUNCTION",e[e.VARIABLE=13]="VARIABLE",e[e.CONSTANT=14]="CONSTANT",e[e.STRING=15]="STRING",e[e.NUMBER=16]="NUMBER",e[e.BOOLEAN=17]="BOOLEAN",e[e.ARRAY=18]="ARRAY",e[e.OBJECT=19]="OBJECT",e[e.KEY=20]="KEY",e[e.NULL=21]="NULL",e[e.ENUM_MEMBER=22]="ENUM_MEMBER",e[e.STRUCT=23]="STRUCT",e[e.EVENT=24]="EVENT",e[e.OPERATOR=25]="OPERATOR",e[e.TYPE_PARAMETER=26]="TYPE_PARAMETER"}(m||(m={})),f.proto3.util.setEnumType(m,"aiserver.v1.DocumentSymbol.SymbolKind",[{no:0,name:"SYMBOL_KIND_UNSPECIFIED"},{no:1,name:"SYMBOL_KIND_FILE"},{no:2,name:"SYMBOL_KIND_MODULE"},{no:3,name:"SYMBOL_KIND_NAMESPACE"},{no:4,name:"SYMBOL_KIND_PACKAGE"},{no:5,name:"SYMBOL_KIND_CLASS"},{no:6,name:"SYMBOL_KIND_METHOD"},{no:7,name:"SYMBOL_KIND_PROPERTY"},{no:8,name:"SYMBOL_KIND_FIELD"},{no:9,name:"SYMBOL_KIND_CONSTRUCTOR"},{no:10,name:"SYMBOL_KIND_ENUM"},{no:11,name:"SYMBOL_KIND_INTERFACE"},{no:12,name:"SYMBOL_KIND_FUNCTION"},{no:13,name:"SYMBOL_KIND_VARIABLE"},{no:14,name:"SYMBOL_KIND_CONSTANT"},{no:15,name:"SYMBOL_KIND_STRING"},{no:16,name:"SYMBOL_KIND_NUMBER"},{no:17,name:"SYMBOL_KIND_BOOLEAN"},{no:18,name:"SYMBOL_KIND_ARRAY"},{no:19,name:"SYMBOL_KIND_OBJECT"},{no:20,name:"SYMBOL_KIND_KEY"},{no:21,name:"SYMBOL_KIND_NULL"},{no:22,name:"SYMBOL_KIND_ENUM_MEMBER"},{no:23,name:"SYMBOL_KIND_STRUCT"},{no:24,name:"SYMBOL_KIND_EVENT"},{no:25,name:"SYMBOL_KIND_OPERATOR"},{no:26,name:"SYMBOL_KIND_TYPE_PARAMETER"}]);class de extends f.Message{constructor(e){super(),this.startLineNumber=0,this.startColumn=0,this.endLineNumber=0,this.endColumn=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new de).fromBinary(e,t)}static fromJson(e,t){return(new de).fromJson(e,t)}static fromJsonString(e,t){return(new de).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(de,e,t)}}de.runtime=f.proto3,de.typeName="aiserver.v1.DocumentSymbol.Range",de.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"start_line_number",kind:"scalar",T:5},{no:2,name:"start_column",kind:"scalar",T:5},{no:3,name:"end_line_number",kind:"scalar",T:5},{no:4,name:"end_column",kind:"scalar",T:5}]));class pe extends f.Message{constructor(e){super(),this.codeDetails="",this.markdownBlocks=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new pe).fromBinary(e,t)}static fromJson(e,t){return(new pe).fromJson(e,t)}static fromJsonString(e,t){return(new pe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(pe,e,t)}}pe.runtime=f.proto3,pe.typeName="aiserver.v1.HoverDetails",pe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"code_details",kind:"scalar",T:9},{no:2,name:"markdown_blocks",kind:"scalar",T:9,repeated:!0}]));class fe extends f.Message{constructor(e){super(),this.scheme="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new fe).fromBinary(e,t)}static fromJson(e,t){return(new fe).fromJson(e,t)}static fromJsonString(e,t){return(new fe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(fe,e,t)}}fe.runtime=f.proto3,fe.typeName="aiserver.v1.UriComponents",fe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"scheme",kind:"scalar",T:9},{no:2,name:"authority",kind:"scalar",T:9,opt:!0},{no:3,name:"path",kind:"scalar",T:9,opt:!0},{no:4,name:"query",kind:"scalar",T:9,opt:!0},{no:5,name:"fragment",kind:"scalar",T:9,opt:!0}]));class ge extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.textInSymbolRange="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ge).fromBinary(e,t)}static fromJson(e,t){return(new ge).fromJson(e,t)}static fromJsonString(e,t){return(new ge).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ge,e,t)}}ge.runtime=f.proto3,ge.typeName="aiserver.v1.DocumentSymbolWithText",ge.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"symbol",kind:"message",T:ce},{no:2,name:"relative_workspace_path",kind:"scalar",T:9},{no:3,name:"text_in_symbol_range",kind:"scalar",T:9},{no:4,name:"uri_components",kind:"message",T:fe}]));class _e extends f.Message{constructor(e){super(),this.error=c.UNSPECIFIED,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new _e).fromBinary(e,t)}static fromJson(e,t){return(new _e).fromJson(e,t)}static fromJsonString(e,t){return(new _e).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(_e,e,t)}}_e.runtime=f.proto3,_e.typeName="aiserver.v1.ErrorDetails",_e.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"error",kind:"enum",T:f.proto3.getEnumType(c)},{no:2,name:"details",kind:"message",T:he},{no:3,name:"is_expected",kind:"scalar",T:8,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BAD_API_KEY=1]="BAD_API_KEY",e[e.BAD_USER_API_KEY=42]="BAD_USER_API_KEY",e[e.NOT_LOGGED_IN=2]="NOT_LOGGED_IN",e[e.INVALID_AUTH_ID=3]="INVALID_AUTH_ID",e[e.NOT_HIGH_ENOUGH_PERMISSIONS=4]="NOT_HIGH_ENOUGH_PERMISSIONS",e[e.AGENT_REQUIRES_LOGIN=18]="AGENT_REQUIRES_LOGIN",e[e.BAD_MODEL_NAME=5]="BAD_MODEL_NAME",e[e.NOT_FOUND=39]="NOT_FOUND",e[e.DEPRECATED=40]="DEPRECATED",e[e.USER_NOT_FOUND=6]="USER_NOT_FOUND",e[e.FREE_USER_RATE_LIMIT_EXCEEDED=7]="FREE_USER_RATE_LIMIT_EXCEEDED",e[e.PRO_USER_RATE_LIMIT_EXCEEDED=8]="PRO_USER_RATE_LIMIT_EXCEEDED",e[e.FREE_USER_USAGE_LIMIT=9]="FREE_USER_USAGE_LIMIT",e[e.PRO_USER_USAGE_LIMIT=10]="PRO_USER_USAGE_LIMIT",e[e.RESOURCE_EXHAUSTED=41]="RESOURCE_EXHAUSTED",e[e.AUTH_TOKEN_NOT_FOUND=11]="AUTH_TOKEN_NOT_FOUND",e[e.AUTH_TOKEN_EXPIRED=12]="AUTH_TOKEN_EXPIRED",e[e.OPENAI=13]="OPENAI",e[e.OPENAI_RATE_LIMIT_EXCEEDED=14]="OPENAI_RATE_LIMIT_EXCEEDED",e[e.MAX_TOKENS=20]="MAX_TOKENS",e[e.PRO_USER_ONLY=23]="PRO_USER_ONLY",e[e.USER_ABORTED_REQUEST=21]="USER_ABORTED_REQUEST",e[e.TIMEOUT=25]="TIMEOUT",e[e.GENERIC_RATE_LIMIT_EXCEEDED=22]="GENERIC_RATE_LIMIT_EXCEEDED",e[e.GPT_4_VISION_PREVIEW_RATE_LIMIT=28]="GPT_4_VISION_PREVIEW_RATE_LIMIT",e[e.CUSTOM_MESSAGE=29]="CUSTOM_MESSAGE",e[e.OUTDATED_CLIENT=30]="OUTDATED_CLIENT",e[e.CLAUDE_IMAGE_TOO_LARGE=31]="CLAUDE_IMAGE_TOO_LARGE",e[e.FILE_NOT_FOUND=33]="FILE_NOT_FOUND",e[e.API_KEY_RATE_LIMIT=34]="API_KEY_RATE_LIMIT",e[e.DEBOUNCED=35]="DEBOUNCED",e[e.BAD_REQUEST=36]="BAD_REQUEST",e[e.REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED=37]="REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED",e[e.UNAUTHORIZED=38]="UNAUTHORIZED",e[e.CONVERSATION_TOO_LONG=43]="CONVERSATION_TOO_LONG",e[e.USAGE_PRICING_REQUIRED=44]="USAGE_PRICING_REQUIRED",e[e.USAGE_PRICING_REQUIRED_CHANGEABLE=45]="USAGE_PRICING_REQUIRED_CHANGEABLE",e[e.GITHUB_NO_USER_CREDENTIALS=46]="GITHUB_NO_USER_CREDENTIALS",e[e.GITHUB_USER_NO_ACCESS=47]="GITHUB_USER_NO_ACCESS",e[e.GITHUB_APP_NO_ACCESS=48]="GITHUB_APP_NO_ACCESS",e[e.GITHUB_MULTIPLE_OWNERS=49]="GITHUB_MULTIPLE_OWNERS",e[e.RATE_LIMITED=50]="RATE_LIMITED",e[e.RATE_LIMITED_CHANGEABLE=51]="RATE_LIMITED_CHANGEABLE",e[e.CUSTOM=52]="CUSTOM",e[e.HOOKS_BLOCKED=53]="HOOKS_BLOCKED",e[e.SUSPICIOUS_USAGE_BLOCKED=54]="SUSPICIOUS_USAGE_BLOCKED",e[e.EXTENSION_HOST_TIMEOUT=55]="EXTENSION_HOST_TIMEOUT",e[e.NETWORK_ERROR=56]="NETWORK_ERROR",e[e.PROVIDER_ERROR=57]="PROVIDER_ERROR",e[e.MODEL_BLOCKED=58]="MODEL_BLOCKED",e[e.INTERNAL=59]="INTERNAL",e[e.MAX_MODE_REQUIRED=60]="MAX_MODE_REQUIRED",e[e.MODEL_NO_LONGER_SUPPORTED=61]="MODEL_NO_LONGER_SUPPORTED",e[e.PRICING_WARNING=62]="PRICING_WARNING",e[e.SLOW_POOL=63]="SLOW_POOL",e[e.UNSUPPORTED_REGION=64]="UNSUPPORTED_REGION",e[e.ACCOUNT_CLOSED=65]="ACCOUNT_CLOSED"}(c||(c={})),f.proto3.util.setEnumType(c,"aiserver.v1.ErrorDetails.Error",[{no:0,name:"ERROR_UNSPECIFIED"},{no:1,name:"ERROR_BAD_API_KEY"},{no:42,name:"ERROR_BAD_USER_API_KEY"},{no:2,name:"ERROR_NOT_LOGGED_IN"},{no:3,name:"ERROR_INVALID_AUTH_ID"},{no:4,name:"ERROR_NOT_HIGH_ENOUGH_PERMISSIONS"},{no:18,name:"ERROR_AGENT_REQUIRES_LOGIN"},{no:5,name:"ERROR_BAD_MODEL_NAME"},{no:39,name:"ERROR_NOT_FOUND"},{no:40,name:"ERROR_DEPRECATED"},{no:6,name:"ERROR_USER_NOT_FOUND"},{no:7,name:"ERROR_FREE_USER_RATE_LIMIT_EXCEEDED"},{no:8,name:"ERROR_PRO_USER_RATE_LIMIT_EXCEEDED"},{no:9,name:"ERROR_FREE_USER_USAGE_LIMIT"},{no:10,name:"ERROR_PRO_USER_USAGE_LIMIT"},{no:41,name:"ERROR_RESOURCE_EXHAUSTED"},{no:11,name:"ERROR_AUTH_TOKEN_NOT_FOUND"},{no:12,name:"ERROR_AUTH_TOKEN_EXPIRED"},{no:13,name:"ERROR_OPENAI"},{no:14,name:"ERROR_OPENAI_RATE_LIMIT_EXCEEDED"},{no:20,name:"ERROR_MAX_TOKENS"},{no:23,name:"ERROR_PRO_USER_ONLY"},{no:21,name:"ERROR_USER_ABORTED_REQUEST"},{no:25,name:"ERROR_TIMEOUT"},{no:22,name:"ERROR_GENERIC_RATE_LIMIT_EXCEEDED"},{no:28,name:"ERROR_GPT_4_VISION_PREVIEW_RATE_LIMIT"},{no:29,name:"ERROR_CUSTOM_MESSAGE"},{no:30,name:"ERROR_OUTDATED_CLIENT"},{no:31,name:"ERROR_CLAUDE_IMAGE_TOO_LARGE"},{no:33,name:"ERROR_FILE_NOT_FOUND"},{no:34,name:"ERROR_API_KEY_RATE_LIMIT"},{no:35,name:"ERROR_DEBOUNCED"},{no:36,name:"ERROR_BAD_REQUEST"},{no:37,name:"ERROR_REPOSITORY_SERVICE_REPOSITORY_IS_NOT_INITIALIZED"},{no:38,name:"ERROR_UNAUTHORIZED"},{no:43,name:"ERROR_CONVERSATION_TOO_LONG"},{no:44,name:"ERROR_USAGE_PRICING_REQUIRED"},{no:45,name:"ERROR_USAGE_PRICING_REQUIRED_CHANGEABLE"},{no:46,name:"ERROR_GITHUB_NO_USER_CREDENTIALS"},{no:47,name:"ERROR_GITHUB_USER_NO_ACCESS"},{no:48,name:"ERROR_GITHUB_APP_NO_ACCESS"},{no:49,name:"ERROR_GITHUB_MULTIPLE_OWNERS"},{no:50,name:"ERROR_RATE_LIMITED"},{no:51,name:"ERROR_RATE_LIMITED_CHANGEABLE"},{no:52,name:"ERROR_CUSTOM"},{no:53,name:"ERROR_HOOKS_BLOCKED"},{no:54,name:"ERROR_SUSPICIOUS_USAGE_BLOCKED"},{no:55,name:"ERROR_EXTENSION_HOST_TIMEOUT"},{no:56,name:"ERROR_NETWORK_ERROR"},{no:57,name:"ERROR_PROVIDER_ERROR"},{no:58,name:"ERROR_MODEL_BLOCKED"},{no:59,name:"ERROR_INTERNAL"},{no:60,name:"ERROR_MAX_MODE_REQUIRED"},{no:61,name:"ERROR_MODEL_NO_LONGER_SUPPORTED"},{no:62,name:"ERROR_PRICING_WARNING"},{no:63,name:"ERROR_SLOW_POOL"},{no:64,name:"ERROR_UNSUPPORTED_REGION"},{no:65,name:"ERROR_ACCOUNT_CLOSED"}]);class he extends f.Message{constructor(e){super(),this.title="",this.detail="",this.buttons=[],this.additionalInfo={},this.planChoices=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new he).fromBinary(e,t)}static fromJson(e,t){return(new he).fromJson(e,t)}static fromJsonString(e,t){return(new he).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(he,e,t)}}he.runtime=f.proto3,he.typeName="aiserver.v1.CustomErrorDetails",he.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"detail",kind:"scalar",T:9},{no:3,name:"allow_command_links_potentially_unsafe_please_only_use_for_handwritten_trusted_markdown",kind:"scalar",T:8,opt:!0},{no:4,name:"is_retryable",kind:"scalar",T:8,opt:!0},{no:5,name:"show_request_id",kind:"scalar",T:8,opt:!0},{no:6,name:"should_show_immediate_error",kind:"scalar",T:8,opt:!0},{no:8,name:"buttons",kind:"message",T:Se,repeated:!0},{no:7,name:"additional_info",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:9,name:"plan_choices",kind:"message",T:ye,repeated:!0},{no:10,name:"analytics_metadata",kind:"message",T:Te,opt:!0}]));class Te extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Te).fromBinary(e,t)}static fromJson(e,t){return(new Te).fromJson(e,t)}static fromJsonString(e,t){return(new Te).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Te,e,t)}}Te.runtime=f.proto3,Te.typeName="aiserver.v1.ErrorAnalyticsMetadata",Te.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"action_required",kind:"scalar",T:9,opt:!0}]));class ye extends f.Message{constructor(e){super(),this.label="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ye).fromBinary(e,t)}static fromJson(e,t){return(new ye).fromJson(e,t)}static fromJsonString(e,t){return(new ye).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ye,e,t)}}ye.runtime=f.proto3,ye.typeName="aiserver.v1.PlanChoice",ye.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"sublabel",kind:"scalar",T:9,opt:!0},{no:3,name:"description",kind:"scalar",T:9,opt:!0},{no:4,name:"value",kind:"scalar",T:9}]));class Se extends f.Message{constructor(e){super(),this.label="",this.action={case:void 0},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Se).fromBinary(e,t)}static fromJson(e,t){return(new Se).fromJson(e,t)}static fromJsonString(e,t){return(new Se).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Se,e,t)}}Se.runtime=f.proto3,Se.typeName="aiserver.v1.ErrorButton",Se.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"upgrade",kind:"message",T:Ee,oneof:"action"},{no:3,name:"switch_model",kind:"message",T:be,oneof:"action"},{no:4,name:"configure_spend_limit",kind:"message",T:xe,oneof:"action"},{no:5,name:"url",kind:"message",T:Ne,oneof:"action"},{no:6,name:"upgrade_choice",kind:"message",T:ve,oneof:"action"},{no:7,name:"dashboard_action",kind:"message",T:Je,oneof:"action"},{no:8,name:"reload_window",kind:"message",T:ke,oneof:"action"},{no:9,name:"client_action",kind:"message",T:we,oneof:"action"}]));class we extends f.Message{constructor(e){super(),this.commandId="",this.args={},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new we).fromBinary(e,t)}static fromJson(e,t){return(new we).fromJson(e,t)}static fromJsonString(e,t){return(new we).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(we,e,t)}}we.runtime=f.proto3,we.typeName="aiserver.v1.ClientAction",we.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"command_id",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"scalar",T:9}}]));class ke extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ke).fromBinary(e,t)}static fromJson(e,t){return(new ke).fromJson(e,t)}static fromJsonString(e,t){return(new ke).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ke,e,t)}}ke.runtime=f.proto3,ke.typeName="aiserver.v1.ReloadWindowAction",ke.fields=f.proto3.util.newFieldList((()=>[]));class Je extends f.Message{constructor(e){super(),this.action="",this.args={},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Je).fromBinary(e,t)}static fromJson(e,t){return(new Je).fromJson(e,t)}static fromJsonString(e,t){return(new Je).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Je,e,t)}}Je.runtime=f.proto3,Je.typeName="aiserver.v1.DashboardAction",Je.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"action",kind:"scalar",T:9},{no:2,name:"args",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:3,name:"success_message",kind:"scalar",T:9,opt:!0}]));class ve extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ve).fromBinary(e,t)}static fromJson(e,t){return(new ve).fromJson(e,t)}static fromJsonString(e,t){return(new ve).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ve,e,t)}}ve.runtime=f.proto3,ve.typeName="aiserver.v1.UpgradeChoice",ve.fields=f.proto3.util.newFieldList((()=>[]));class Ee extends f.Message{constructor(e){super(),this.membershipToUpgradeTo="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ee).fromBinary(e,t)}static fromJson(e,t){return(new Ee).fromJson(e,t)}static fromJsonString(e,t){return(new Ee).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ee,e,t)}}Ee.runtime=f.proto3,Ee.typeName="aiserver.v1.UpgradeAction",Ee.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"membership_to_upgrade_to",kind:"scalar",T:9},{no:2,name:"try_immediate_upgrade",kind:"scalar",T:8,opt:!0},{no:3,name:"allow_trial",kind:"scalar",T:8,opt:!0}]));class be extends f.Message{constructor(e){super(),this.parameters=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new be).fromBinary(e,t)}static fromJson(e,t){return(new be).fromJson(e,t)}static fromJsonString(e,t){return(new be).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(be,e,t)}}be.runtime=f.proto3,be.typeName="aiserver.v1.SwitchModelAction",be.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"suggested_model",kind:"scalar",T:9,opt:!0},{no:2,name:"parameters",kind:"message",T:je,repeated:!0},{no:3,name:"max_mode",kind:"scalar",T:8,opt:!0}]));class je extends f.Message{constructor(e){super(),this.id="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new je).fromBinary(e,t)}static fromJson(e,t){return(new je).fromJson(e,t)}static fromJsonString(e,t){return(new je).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(je,e,t)}}je.runtime=f.proto3,je.typeName="aiserver.v1.SwitchModelAction.ModelParameterValue",je.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class xe extends f.Message{constructor(e){super(),this.confirmLabel="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new xe).fromBinary(e,t)}static fromJson(e,t){return(new xe).fromJson(e,t)}static fromJsonString(e,t){return(new xe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(xe,e,t)}}xe.runtime=f.proto3,xe.typeName="aiserver.v1.ConfigureSpendLimitAction",xe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"confirm_label",kind:"scalar",T:9}]));class Ne extends f.Message{constructor(e){super(),this.url="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ne).fromBinary(e,t)}static fromJson(e,t){return(new Ne).fromJson(e,t)}static fromJsonString(e,t){return(new Ne).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ne,e,t)}}Ne.runtime=f.proto3,Ne.typeName="aiserver.v1.UrlAction",Ne.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9}]));class Pe extends f.Message{constructor(e){super(),this.data=new Uint8Array(0),this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Pe).fromBinary(e,t)}static fromJson(e,t){return(new Pe).fromJson(e,t)}static fromJsonString(e,t){return(new Pe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Pe,e,t)}}Pe.runtime=f.proto3,Pe.typeName="aiserver.v1.ImageProto",Pe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"dimension",kind:"message",T:Ie},{no:3,name:"uuid",kind:"scalar",T:9},{no:4,name:"task_specific_description",kind:"scalar",T:9,opt:!0}]));class Ie extends f.Message{constructor(e){super(),this.width=0,this.height=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ie).fromBinary(e,t)}static fromJson(e,t){return(new Ie).fromJson(e,t)}static fromJsonString(e,t){return(new Ie).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ie,e,t)}}Ie.runtime=f.proto3,Ie.typeName="aiserver.v1.ImageProto.Dimension",Ie.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5}]));class Be extends f.Message{constructor(e){super(),this.markdown="",this.bubbleId="",this.sectionIndex=0,f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Be).fromBinary(e,t)}static fromJson(e,t){return(new Be).fromJson(e,t)}static fromJsonString(e,t){return(new Be).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Be,e,t)}}Be.runtime=f.proto3,Be.typeName="aiserver.v1.ChatQuote",Be.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"markdown",kind:"scalar",T:9},{no:2,name:"bubble_id",kind:"scalar",T:9},{no:3,name:"section_index",kind:"scalar",T:5}]));class qe extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new qe).fromBinary(e,t)}static fromJson(e,t){return(new qe).fromJson(e,t)}static fromJsonString(e,t){return(new qe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(qe,e,t)}}qe.runtime=f.proto3,qe.typeName="aiserver.v1.ChatExternalLink",qe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0}]));class Re extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Re).fromBinary(e,t)}static fromJson(e,t){return(new Re).fromJson(e,t)}static fromJsonString(e,t){return(new Re).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Re,e,t)}}Re.runtime=f.proto3,Re.typeName="aiserver.v1.ComposerExternalLink",Re.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9},{no:3,name:"pdf_content",kind:"scalar",T:9,opt:!0},{no:4,name:"is_pdf",kind:"scalar",T:8,opt:!0},{no:5,name:"filename",kind:"scalar",T:9,opt:!0}]));class Me extends f.Message{constructor(e){super(),this.url="",this.uuid="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Me).fromBinary(e,t)}static fromJson(e,t){return(new Me).fromJson(e,t)}static fromJsonString(e,t){return(new Me).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Me,e,t)}}Me.runtime=f.proto3,Me.typeName="aiserver.v1.CmdKExternalLink",Me.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]));class Oe extends f.Message{constructor(e){super(),this.note="",this.commitHash="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Oe).fromBinary(e,t)}static fromJson(e,t){return(new Oe).fromJson(e,t)}static fromJsonString(e,t){return(new Oe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Oe,e,t)}}Oe.runtime=f.proto3,Oe.typeName="aiserver.v1.CommitNote",Oe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"note",kind:"scalar",T:9},{no:2,name:"commit_hash",kind:"scalar",T:9}]));class Fe extends f.Message{constructor(e){super(),this.note="",this.commitHash="",this.embeddings=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Fe).fromBinary(e,t)}static fromJson(e,t){return(new Fe).fromJson(e,t)}static fromJsonString(e,t){return(new Fe).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Fe,e,t)}}Fe.runtime=f.proto3,Fe.typeName="aiserver.v1.CommitNoteWithEmbeddings",Fe.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"note",kind:"scalar",T:9},{no:2,name:"commit_hash",kind:"scalar",T:9},{no:3,name:"embeddings",kind:"scalar",T:1,repeated:!0}]));class Ae extends f.Message{constructor(e){super(),this.diff="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ae).fromBinary(e,t)}static fromJson(e,t){return(new Ae).fromJson(e,t)}static fromJsonString(e,t){return(new Ae).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ae,e,t)}}Ae.runtime=f.proto3,Ae.typeName="aiserver.v1.CommitDiffString",Ae.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"diff",kind:"scalar",T:9}]));class Le extends f.Message{constructor(e){super(),this.notes=[],this.commitHash="",this.repoUrl="",this.filesChangedRelativePath="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Le).fromBinary(e,t)}static fromJson(e,t){return(new Le).fromJson(e,t)}static fromJsonString(e,t){return(new Le).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Le,e,t)}}Le.runtime=f.proto3,Le.typeName="aiserver.v1.FullCommitNotes",Le.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"notes",kind:"message",T:Oe,repeated:!0},{no:2,name:"commit_hash",kind:"scalar",T:9},{no:3,name:"repo_url",kind:"scalar",T:9},{no:4,name:"files_changed_relative_path",kind:"scalar",T:9}]));class Ce extends f.Message{constructor(e){super(),this.key="",this.value="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ce).fromBinary(e,t)}static fromJson(e,t){return(new Ce).fromJson(e,t)}static fromJsonString(e,t){return(new Ce).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ce,e,t)}}Ce.runtime=f.proto3,Ce.typeName="aiserver.v1.CrossExtHostHeader",Ce.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));class Ue extends f.Message{constructor(e){super(),this.headers=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ue).fromBinary(e,t)}static fromJson(e,t){return(new Ue).fromJson(e,t)}static fromJsonString(e,t){return(new Ue).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ue,e,t)}}Ue.runtime=f.proto3,Ue.typeName="aiserver.v1.CrossExtHostHeaders",Ue.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"headers",kind:"message",T:Ce,repeated:!0}]));class De extends f.Message{constructor(e){super(),this.message=new Uint8Array(0),this.isError=!1,this.connectError="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new De).fromBinary(e,t)}static fromJson(e,t){return(new De).fromJson(e,t)}static fromJsonString(e,t){return(new De).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(De,e,t)}}De.runtime=f.proto3,De.typeName="aiserver.v1.SimpleUnaryCrossExtensionHostMessage",De.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:12},{no:2,name:"header",kind:"message",T:Ue},{no:3,name:"trailer",kind:"message",T:Ue},{no:4,name:"is_error",kind:"scalar",T:8},{no:5,name:"connect_error",kind:"scalar",T:9}]));class Ge extends f.Message{constructor(e){super(),this.relativeWorkspacePath="",this.startLineNumber=0,this.lines=[],this.languageIdentifier="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ge).fromBinary(e,t)}static fromJson(e,t){return(new Ge).fromJson(e,t)}static fromJsonString(e,t){return(new Ge).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ge,e,t)}}Ge.runtime=f.proto3,Ge.typeName="aiserver.v1.CodeChunk",Ge.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"relative_workspace_path",kind:"scalar",T:9},{no:2,name:"start_line_number",kind:"scalar",T:5},{no:3,name:"lines",kind:"scalar",T:9,repeated:!0},{no:4,name:"summarization_strategy",kind:"enum",T:f.proto3.getEnumType(p),opt:!0},{no:5,name:"language_identifier",kind:"scalar",T:9},{no:6,name:"intent",kind:"enum",T:f.proto3.getEnumType(d),opt:!0},{no:7,name:"is_final_version",kind:"scalar",T:8,opt:!0},{no:8,name:"is_first_version",kind:"scalar",T:8,opt:!0}])),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.COMPOSER_FILE=1]="COMPOSER_FILE",e[e.COMPRESSED_COMPOSER_FILE=2]="COMPRESSED_COMPOSER_FILE"}(d||(d={})),f.proto3.util.setEnumType(d,"aiserver.v1.CodeChunk.Intent",[{no:0,name:"INTENT_UNSPECIFIED"},{no:1,name:"INTENT_COMPOSER_FILE"},{no:2,name:"INTENT_COMPRESSED_COMPOSER_FILE"}]),function(e){e[e.NONE_UNSPECIFIED=0]="NONE_UNSPECIFIED",e[e.SUMMARIZED=1]="SUMMARIZED",e[e.EMBEDDED=2]="EMBEDDED"}(p||(p={})),f.proto3.util.setEnumType(p,"aiserver.v1.CodeChunk.SummarizationStrategy",[{no:0,name:"SUMMARIZATION_STRATEGY_NONE_UNSPECIFIED"},{no:1,name:"SUMMARIZATION_STRATEGY_SUMMARIZED"},{no:2,name:"SUMMARIZATION_STRATEGY_EMBEDDED"}]);class He extends f.Message{constructor(e){super(),f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new He).fromBinary(e,t)}static fromJson(e,t){return(new He).fromJson(e,t)}static fromJsonString(e,t){return(new He).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(He,e,t)}}He.runtime=f.proto3,He.typeName="aiserver.v1.RCPCallFrame",He.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"function_name",kind:"scalar",T:9,opt:!0},{no:2,name:"url",kind:"scalar",T:9,opt:!0},{no:3,name:"line_number",kind:"scalar",T:5,opt:!0},{no:4,name:"column_number",kind:"scalar",T:5,opt:!0}]));class Ke extends f.Message{constructor(e){super(),this.callFrames=[],f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ke).fromBinary(e,t)}static fromJson(e,t){return(new Ke).fromJson(e,t)}static fromJsonString(e,t){return(new Ke).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ke,e,t)}}Ke.runtime=f.proto3,Ke.typeName="aiserver.v1.RCPStackTrace",Ke.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"call_frames",kind:"message",T:He,repeated:!0},{no:2,name:"raw_stack_trace",kind:"scalar",T:9,opt:!0}]));class We extends f.Message{constructor(e){super(),this.message="",this.timestamp=0,this.level="",this.clientName="",this.sessionId="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new We).fromBinary(e,t)}static fromJson(e,t){return(new We).fromJson(e,t)}static fromJsonString(e,t){return(new We).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(We,e,t)}}We.runtime=f.proto3,We.typeName="aiserver.v1.RCPLogEntry",We.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"message",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:1},{no:3,name:"level",kind:"scalar",T:9},{no:4,name:"client_name",kind:"scalar",T:9},{no:5,name:"session_id",kind:"scalar",T:9},{no:6,name:"stack_trace",kind:"message",T:Ke,opt:!0},{no:7,name:"object_data_json",kind:"scalar",T:9,opt:!0}]));class Ye extends f.Message{constructor(e){super(),this.element="",this.xpath="",this.textContent="",this.extra="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ye).fromBinary(e,t)}static fromJson(e,t){return(new Ye).fromJson(e,t)}static fromJsonString(e,t){return(new Ye).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ye,e,t)}}Ye.runtime=f.proto3,Ye.typeName="aiserver.v1.RCPUIElementPicked",Ye.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"element",kind:"scalar",T:9},{no:2,name:"xpath",kind:"scalar",T:9},{no:3,name:"text_content",kind:"scalar",T:9},{no:4,name:"extra",kind:"scalar",T:9},{no:5,name:"component",kind:"scalar",T:9,opt:!0},{no:6,name:"component_props_json",kind:"scalar",T:9,opt:!0}]));class ze extends f.Message{constructor(e){super(),this.text="",f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new ze).fromBinary(e,t)}static fromJson(e,t){return(new ze).fromJson(e,t)}static fromJsonString(e,t){return(new ze).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(ze,e,t)}}ze.runtime=f.proto3,ze.typeName="aiserver.v1.RCPChatMessage",ze.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"text",kind:"scalar",T:9}]));class Ve extends f.Message{constructor(e){super(),this.message={case:void 0},f.proto3.util.initPartial(e,this)}static fromBinary(e,t){return(new Ve).fromBinary(e,t)}static fromJson(e,t){return(new Ve).fromJson(e,t)}static fromJsonString(e,t){return(new Ve).fromJsonString(e,t)}static equals(e,t){return f.proto3.util.equals(Ve,e,t)}}Ve.runtime=f.proto3,Ve.typeName="aiserver.v1.RCPMessage",Ve.fields=f.proto3.util.newFieldList((()=>[{no:1,name:"console",kind:"message",T:We,oneof:"message"},{no:2,name:"ui_element_picked",kind:"message",T:Ye,oneof:"message"},{no:3,name:"chat_message",kind:"message",T:ze,oneof:"message"}]))},"../utils/dist/disposable.js"(e,t,n){n.d(t,{j:()=>r});class r{}},"../utils/dist/promise-extras.js"(e,t,n){n.d(t,{PH:()=>s});var r=n("../../node_modules/.pnpm/rxjs@8.0.0-alpha.14/node_modules/rxjs/dist/cjs/index.js");function s(e,t,n){return s=this,o=void 0,a=function*(){const{max:s=4}=null!=n?n:{},o=(0,r.from)(e.map(((e,t)=>t))).pipe((0,r.map)((n=>(0,r.defer)((()=>(0,r.from)(t(e[n])).pipe((0,r.map)((e=>({idx:n,v:e})))))))),(0,r.mergeAll)(s),(0,r.reduce)(((e,t)=>(e[t.idx]=t.v,e)),[]));return(0,r.firstValueFrom)(o)},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(a.next(e))}catch(e){t(e)}}function r(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(n,r)}l((a=a.apply(s,o||[])).next())}));var s,o,i,a}Error}},g={};function _(e){var t=g[e];if(void 0!==t)return t.exports;var n=g[e]={exports:{}};return f[e].call(n.exports,n,n.exports,_),n.exports}_.m=f,a="function"==typeof Symbol,l=a?Symbol("webpack queues"):"__webpack_queues__",u=a?Symbol("webpack exports"):"__webpack_exports__",m=a?Symbol("webpack error"):"__webpack_error__",c=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},_.a=(e,t,n)=>{var r;n&&((r=[]).d=-1);var s,o,i,a=new Set,d=e.exports,p=new Promise(((e,t)=>{i=t,o=e}));p[u]=d,p[l]=e=>(r&&e(r),a.forEach(e),p.catch((e=>{}))),e.exports=p,t((e=>{var t;s=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[l])return e;if(e.then){var t=[];t.d=0,e.then((e=>{n[u]=e,c(t)}),(e=>{n[m]=e,c(t)}));var n={};return n[l]=e=>e(t),n}}var r={};return r[l]=e=>{},r[u]=e,r})))(e);var n=()=>s.map((e=>{if(e[m])throw e[m];return e[u]})),o=new Promise((e=>{(t=()=>e(n)).r=0;var o=e=>e!==r&&!a.has(e)&&(a.add(e),e&&!e.d&&(t.r++,e.push(t)));s.map((e=>e[l](o)))}));return t.r?o:n()}),(e=>(e?i(p[m]=e):o(d),c(r)))),r&&r.d<0&&(r.d=0)},_.d=(e,t)=>{for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.f={},_.e=e=>Promise.all(Object.keys(_.f).reduce(((t,n)=>(_.f[n](e,t),t)),[])),_.u=e=>e+".js",_.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),_.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d={279:0},p=e=>{var t,n,{__webpack_esm_ids__:r,__webpack_esm_modules__:s,__webpack_esm_runtime__:o}=e,i=0;for(t in s)_.o(s,t)&&(_.m[t]=s[t]);for(o&&o(_);i<r.length;i++)n=r[i],_.o(d,n)&&d[n]&&d[n][0](),d[r[i]]=0},_.f.j=(e,t)=>{var n=_.o(d,e)?d[e]:void 0;if(0!==n)if(n)t.push(n[1]);else{var r=import("./"+_.u(e)).then(p,(t=>{throw 0!==d[e]&&(d[e]=void 0),t}));r=Promise.race([r,new Promise((t=>n=d[e]=[t]))]),t.push(n[1]=r)}};var h=_("../agent-kv/dist/index.js"),T=_("../context/dist/core.js");function y(e){var t,n;return{agentId:e.agentId,cwd:e.workspaceRef,status:E(e.status),activeRunId:null!==(t=e.activeRunId)&&void 0!==t?t:null,latestCheckpoint:e.latestCheckpointRef?J(e.latestCheckpointRef):null,name:null!==(n=e.name)&&void 0!==n?n:null,createdAt:e.createdAt.getTime(),updatedAt:e.updatedAt.getTime(),sdkMetadata:e.metadata}}function S(e){var t,n,r,s,o,i,a,l,u,m,c,d,p,f;const g=null!==(i=null!==(s=null!==(n=null===(t=e.finishedAt)||void 0===t?void 0:t.getTime())&&void 0!==n?n:null===(r=e.cancelledAt)||void 0===r?void 0:r.getTime())&&void 0!==s?s:null===(o=e.expiredAt)||void 0===o?void 0:o.getTime())&&void 0!==i?i:null;return{runId:e.runId,requestId:null!==(a=e.requestId)&&void 0!==a?a:null,agentId:e.agentId,turnNumber:e.turnNumber,status:j(e.status),model:null!==(l=e.model)&&void 0!==l?l:null,result:null!==(u=e.result)&&void 0!==u?u:null,error:null!==(m=e.errorCode)&&void 0!==m?m:null,usageRef:null!==(c=e.usageRef)&&void 0!==c?c:null,usage:null!==(d=e.usage)&&void 0!==d?d:null,createdAt:e.createdAt.getTime(),updatedAt:e.updatedAt.getTime(),startedAt:null!==(f=null===(p=e.startedAt)||void 0===p?void 0:p.getTime())&&void 0!==f?f:null,endedAt:g,startCheckpointRef:e.startCheckpointRef?J(e.startCheckpointRef):null,latestCheckpointRef:e.latestCheckpointRef?J(e.latestCheckpointRef):null}}function w(e){var t,n,r;return{agentId:e.agentId,workspaceRef:e.cwd,status:b(e.status),activeRunId:null!==(t=e.activeRunId)&&void 0!==t?t:null,latestCheckpointRef:e.latestCheckpoint?v(e.latestCheckpoint):null,name:null!==(n=e.name)&&void 0!==n?n:null,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),metadata:null!==(r=e.sdkMetadata)&&void 0!==r?r:{}}}function k(e){var t,n,r,s,o,i;const a=function(e){switch(e){case"queued":return"QUEUED";case"running":return"RUNNING";case"finished":return"FINISHED";case"error":return"ERROR";case"cancelled":return"CANCELLED";case"expired":return"EXPIRED"}}(e.status),l=e.endedAt?new Date(e.endedAt):null;return{runId:e.runId,requestId:null!==(t=e.requestId)&&void 0!==t?t:null,agentId:e.agentId,turnNumber:e.turnNumber,status:a,model:null!==(n=e.model)&&void 0!==n?n:null,startCheckpointRef:e.startCheckpointRef?v(e.startCheckpointRef):null,latestCheckpointRef:e.latestCheckpointRef?v(e.latestCheckpointRef):null,errorCode:null!==(r=e.error)&&void 0!==r?r:null,result:null!==(s=e.result)&&void 0!==s?s:null,usageRef:null!==(o=e.usageRef)&&void 0!==o?o:null,usage:null!==(i=e.usage)&&void 0!==i?i:null,createdAt:new Date(e.createdAt),updatedAt:new Date(e.updatedAt),startedAt:e.startedAt?new Date(e.startedAt):null,finishedAt:"FINISHED"===a?l:null,cancelledAt:"CANCELLED"===a?l:null,expiredAt:"EXPIRED"===a?l:null}}function J(e){return{schemaVersion:1,rootBlobId:e.blobId}}function v(e){return{blobId:e.rootBlobId,storeKind:"local-agent-store"}}function E(e){switch(e){case"IDLE":return"idle";case"RUNNING":return"running";case"ERROR":return"error";case"ARCHIVED":return"archived"}}function b(e){switch(e){case"idle":return"IDLE";case"running":return"RUNNING";case"error":return"ERROR";case"archived":return"ARCHIVED"}}function j(e){switch(e){case"QUEUED":return"queued";case"CREATING":case"RUNNING":return"running";case"FINISHED":return"finished";case"ERROR":return"error";case"CANCELLED":return"cancelled";case"EXPIRED":return"expired"}}function x(e,t){var n,r,s,o;return!(((null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)||(null===(r=null==t?void 0:t.blobIds)||void 0===r?void 0:r.length))&&((null===(s=t.agentIds)||void 0===s?void 0:s.length)&&!t.agentIds.includes(e.agentId)||(null===(o=t.blobIds)||void 0===o?void 0:o.length)&&!t.blobIds.includes(e.blobId)))}function N(e,t){var n,r,s,o;return!(((null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)||(null===(r=null==t?void 0:t.runIds)||void 0===r?void 0:r.length))&&((null===(s=t.agentIds)||void 0===s?void 0:s.length)&&!t.agentIds.includes(e.agentId)||(null===(o=t.runIds)||void 0===o?void 0:o.length)&&!t.runIds.includes(e.runId)))}function P(e,t){return t.updatedAt!==e.updatedAt?t.updatedAt-e.updatedAt:t.agentId.localeCompare(e.agentId)}function I(e,t){return e.turnNumber!==t.turnNumber?e.turnNumber-t.turnNumber:e.runId.localeCompare(t.runId)}function B(e){return Buffer.from(JSON.stringify(e),"utf8").toString("base64url")}function q(e){try{const t=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));if("object"==typeof t&&null!==t&&!Array.isArray(t))return t}catch(e){}throw new Error("Invalid list cursor")}var R=_("node:crypto?8af2"),M=_("node:path");var O=function(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};function F(e){var t,n,r;return{runId:e.runId,seq:e.seq,offset:e.offset,eventType:e.eventType,payload:null!==(t=e.payload)&&void 0!==t?t:null,payloadRef:null!==(n=e.payloadRef)&&void 0!==n?n:null,idempotencyKey:null!==(r=e.idempotencyKey)&&void 0!==r?r:null,createdAt:e.createdAt.getTime()}}function A(e){return O(this,void 0,void 0,(function*(){return(yield e.listAllAgentRecords()).map((e=>e.agentId))}))}function L(e){const t=(0,T.q6)();return{get:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r}){const s=yield e.checkpointStore.getBlobStore(n),o=yield s.getBlob(t,(0,h.aD)(r));return o?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(o):null})),create:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r,data:s}){const o=yield e.checkpointStore.getBlobStore(n);if(yield o.getBlob(t,(0,h.aD)(r)))throw new Error(`Checkpoint blob ${r} already exists for agent ${n}`);yield o.setBlob(t,(0,h.aD)(r),s)})),update:n=>O(this,[n],void 0,(function*({agentId:n,blobId:r,data:s}){const o=yield e.checkpointStore.getBlobStore(n);if(!(yield o.getBlob(t,(0,h.aD)(r))))throw new Error(`Checkpoint blob ${r} not found for agent ${n}`);yield o.setBlob(t,(0,h.aD)(r),s)})),delete:t=>O(this,void 0,void 0,(function*(){const n=t.filter.agentIds&&t.filter.agentIds.length>0?t.filter.agentIds:yield A(e.runStore),r=t.filter.blobIds;for(const t of n)if(null==r?void 0:r.length){const n=yield e.checkpointStore.getBlobStore(t);for(const e of r)yield n.deleteBlob(e)}else yield e.checkpointStore.deleteAgent(t)})),list:t=>O(this,void 0,void 0,(function*(){const n=null==t?void 0:t.filter,r=(null==n?void 0:n.agentIds)&&n.agentIds.length>0?n.agentIds:yield A(e.runStore),s=[];for(const t of r){const r=yield e.checkpointStore.listCheckpointBlobIds(t);for(const e of r)x({agentId:t,blobId:e},n)&&s.push(e)}return function(e,t){var n;const r=[...e].sort(((e,t)=>e.localeCompare(t))),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;(null==t?void 0:t.cursor)&&(o=r.filter((e=>e>t.cursor)));const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i},o.length>s&&a?{nextCursor:a}:{})}(s,n)}))}}function C(e,t){return O(this,void 0,void 0,(function*(){return(yield e.runStore.listAllRunRecords([t])).map((e=>e.runId))}))}class U{static open(e){return O(this,void 0,void 0,(function*(){var t;const n=null!==(t=e.stateRoot)&&void 0!==t?t:function(e){const t=(0,R.createHash)("md5").update(e).digest("hex");return(0,M.join)(`${i()}/.cursor/projects/${e.replace(/[^a-zA-Z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}`,"sdk-agent-store",t)}(e.workspaceRef),{createDefaultLocalAgentStores:r}=yield _.e(400).then(_.bind(_,"../cursor-sdk-local-runtime/dist/run-store/default-local-agent-stores.js")),s=yield r({stateRoot:n,workspaceRef:e.workspaceRef}),o=s.store,a=s.eventStore,l=s.checkpointStore;return function(e,t,n){if("function"!=typeof e.upsertAgentRecord)throw new Error("SqliteLocalAgentStore requires SqliteAgentRunStore from local runtime");if("function"!=typeof n.appendRunEvent)throw new Error("SqliteLocalAgentStore requires SqliteRunEventStore from local runtime");if("function"!=typeof t.listCheckpointBlobIds)throw new Error("SqliteLocalAgentStore requires LocalAgentCheckpointStore from local runtime")}(o,l,a),new U({stateRoot:n,workspaceRef:e.workspaceRef,runStore:o,checkpointStore:l,eventStore:a})}))}constructor(e){this.stateRoot=e.stateRoot,this.workspaceRef=e.workspaceRef,this.deps={runStore:e.runStore,checkpointStore:e.checkpointStore,eventStore:e.eventStore},this.agents=function(e){return{get:t=>O(this,[t],void 0,(function*({agentId:t}){const n=yield e.runStore.getAgent(t);return n?y(n):null})),create:t=>O(this,[t],void 0,(function*({agent:t}){if(yield e.runStore.getAgent(t.agentId))throw new Error(`Agent ${t.agentId} already exists`);yield e.runStore.upsertAgentRecord(w(t));const n=yield e.runStore.getAgent(t.agentId);if(!n)throw new Error(`Failed to create agent ${t.agentId}`);return y(n)})),update:t=>O(this,[t],void 0,(function*({agent:t}){if(!(yield e.runStore.getAgent(t.agentId)))throw new Error(`Agent ${t.agentId} not found`);yield e.runStore.upsertAgentRecord(w(t));const n=yield e.runStore.getAgent(t.agentId);if(!n)throw new Error(`Failed to update agent ${t.agentId}`);return y(n)})),delete:t=>O(this,[t],void 0,(function*({filter:t}){const n=(yield e.runStore.listAllAgentRecords()).map(y).filter((e=>function(e,t){var n,r;return!(null===(n=null==t?void 0:t.agentIds)||void 0===n?void 0:n.length)&&void 0===(null==t?void 0:t.cwd)||!((null===(r=t.agentIds)||void 0===r?void 0:r.length)&&!t.agentIds.includes(e.agentId))&&(void 0===t.cwd||e.cwd===t.cwd)}(e,t)));if(0===n.length)throw new Error("No agents matched delete filter");for(const t of n){const n=yield C(e,t.agentId);for(const t of n)yield e.eventStore.deleteRunEvents({runId:t});yield e.checkpointStore.deleteAgent(t.agentId),yield e.runStore.deleteAgent(t.agentId)}})),list:t=>O(this,void 0,void 0,(function*(){return function(e,t){var n;const r=[...void 0===(null==t?void 0:t.cwd)?e:e.filter((e=>e.cwd===t.cwd))].sort(P),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;if(null==t?void 0:t.cursor){const e=function(e){const t=q(e);if("number"!=typeof t.updatedAt||"string"!=typeof t.agentId)throw new Error("Invalid agent list cursor");return{updatedAt:t.updatedAt,agentId:t.agentId}}(t.cursor);o=r.filter((t=>function(e,t){return e.updatedAt<t.updatedAt||!(e.updatedAt>t.updatedAt)&&e.agentId<t.agentId}(t,e)))}const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i.map((e=>structuredClone(e)))},o.length>s&&a?{nextCursor:B({updatedAt:a.updatedAt,agentId:a.agentId})}:{})}((yield e.runStore.listAllAgentRecords()).map(y),null==t?void 0:t.filter)}))}}(this.deps),this.checkpoints=L(this.deps),this.runs=function(e){return{get:t=>O(this,[t],void 0,(function*({agentId:t,runId:n}){const r=yield e.runStore.getRun(t,n);return r?S(r):null})),create:t=>O(this,[t],void 0,(function*({run:t}){if(yield e.runStore.getRun(t.agentId,t.runId))throw new Error(`Run ${t.runId} already exists for agent ${t.agentId}`);yield e.runStore.upsertRunRecord(k(t));const n=yield e.runStore.getRun(t.agentId,t.runId);if(!n)throw new Error(`Failed to create run ${t.runId} for agent ${t.agentId}`);return S(n)})),update:t=>O(this,[t],void 0,(function*({run:t}){if(!(yield e.runStore.getRun(t.agentId,t.runId)))throw new Error(`Run ${t.runId} not found for agent ${t.agentId}`);yield e.runStore.upsertRunRecord(k(t));const n=yield e.runStore.getRun(t.agentId,t.runId);if(!n)throw new Error(`Failed to update run ${t.runId} for agent ${t.agentId}`);return S(n)})),delete:t=>O(this,void 0,void 0,(function*(){const n=t.filter,r=(null==n?void 0:n.agentIds)&&n.agentIds.length>0?n.agentIds:void 0,s=(yield e.runStore.listAllRunRecords(r)).map(S).filter((e=>N(e,n)));if(0!==s.length){for(const t of s)yield e.eventStore.deleteRunEvents({runId:t.runId});yield e.runStore.deleteRunRecordsByKeys(s.map((e=>({agentId:e.agentId,runId:e.runId}))))}})),list:t=>O(this,void 0,void 0,(function*(){const n=null==t?void 0:t.filter;return function(e,t){var n;const r=[...e].sort(I),s=null!==(n=null==t?void 0:t.limit)&&void 0!==n?n:50;let o=r;if(null==t?void 0:t.cursor){const e=function(e){const t=q(e);if("number"!=typeof t.turnNumber||"string"!=typeof t.runId)throw new Error("Invalid run list cursor");return{turnNumber:t.turnNumber,runId:t.runId}}(t.cursor);o=r.filter((t=>function(e,t){return e.turnNumber>t.turnNumber||!(e.turnNumber<t.turnNumber)&&e.runId>t.runId}(t,e)))}const i=o.slice(0,s),a=i.at(-1);return Object.assign({items:i.map((e=>structuredClone(e)))},o.length>s&&a?{nextCursor:B({turnNumber:a.turnNumber,runId:a.runId})}:{})}((yield e.runStore.listAllRunRecords(null==n?void 0:n.agentIds)).map(S).filter((e=>N(e,n))),n)}))}}(this.deps),this.runEvents=function(e){return{append:t=>O(this,void 0,void 0,(function*(){return F(yield e.appendRunEvent({runId:t.runId,eventType:t.eventType,payload:t.payload,payloadRef:t.payloadRef,idempotencyKey:t.idempotencyKey}))})),list:t=>O(this,void 0,void 0,(function*(){var n;const r=yield e.listRunEvents({runId:t.runId,afterOffset:null!==(n=t.afterOffset)&&void 0!==n?n:void 0,limit:t.limit});return Object.assign({items:r.events.map(F)},void 0!==r.nextOffset?{nextOffset:r.nextOffset}:{})})),delete:t=>O(this,void 0,void 0,(function*(){var n;const r=null!==(n=t.filter.runIds)&&void 0!==n?n:[];for(const t of r)yield e.deleteRunEvents({runId:t})}))}}(e.eventStore)}dispose(){return O(this,void 0,void 0,(function*(){yield Promise.all([this.deps.runStore.dispose(),this.deps.eventStore.dispose(),this.deps.checkpointStore.dispose()])}))}}export{U as SqliteLocalAgentStore};