@intent-hq/web 2.392.0 → 2.392.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CB8FMdnB.js → 0TbppU-W.js} +2 -2
- package/web/app/immutable/chunks/{D7rh8Clb.js → 3rqOYBi3.js} +1 -1
- package/web/app/immutable/chunks/{B_DmwFyf.js → 50HYkjWD.js} +3 -3
- package/web/app/immutable/chunks/{B77w2td3.js → 7zxUzaYz.js} +1 -1
- package/web/app/immutable/chunks/{CV86ty5-.js → 9AKr1UyY.js} +1 -1
- package/web/app/immutable/chunks/{IhhtpC0N.js → AlO3r9jV.js} +1 -1
- package/web/app/immutable/chunks/{BybDBA-a.js → B0oQ37UY.js} +1 -1
- package/web/app/immutable/chunks/{B_GvRk21.js → B2frqTj8.js} +1 -1
- package/web/app/immutable/chunks/{mE5-Vs-0.js → B6wkNYPs.js} +1 -1
- package/web/app/immutable/chunks/{B4OBYHli.js → B97l6Xkk.js} +1 -1
- package/web/app/immutable/chunks/{DnNE_pmq.js → B9NjB9vD.js} +1 -1
- package/web/app/immutable/chunks/{C6DQmPVB.js → B9ZgGXDm.js} +1 -1
- package/web/app/immutable/chunks/{DpDGJXfb.js → BB5TUToP.js} +2 -2
- package/web/app/immutable/chunks/{lE7gD_tn.js → BDRM-DVo.js} +1 -1
- package/web/app/immutable/chunks/{Bg5K6Ci3.js → BE3g5vcj.js} +1 -1
- package/web/app/immutable/chunks/{BxCgCRwx.js → BJEFEyAm.js} +1 -1
- package/web/app/immutable/chunks/BPFSAjsd.js +411 -0
- package/web/app/immutable/chunks/{1NvRJVY9.js → BS9LmSp_.js} +1 -1
- package/web/app/immutable/chunks/{Bk3dX2Ob.js → BSMi55yC.js} +1 -1
- package/web/app/immutable/chunks/{qqJggbSF.js → BSpgPPjp.js} +1 -1
- package/web/app/immutable/chunks/{Dv2WcD53.js → BTE0066U.js} +1 -1
- package/web/app/immutable/chunks/{BnGY4PVn.js → BUF0WvAS.js} +1 -1
- package/web/app/immutable/chunks/{CDD7ui9Z.js → BUPWY1pO.js} +1 -1
- package/web/app/immutable/chunks/{CQPid4Qr.js → BVBh582U.js} +1 -1
- package/web/app/immutable/chunks/{Bdh-SKNo.js → BdlwjSpf.js} +1 -1
- package/web/app/immutable/chunks/{B_4oJZFT.js → Bhul7r_Y.js} +1 -1
- package/web/app/immutable/chunks/{DQ3EU1b-.js → BlVpCoL1.js} +1 -1
- package/web/app/immutable/chunks/{DQYwt0RJ.js → Bp6DusVC.js} +1 -1
- package/web/app/immutable/chunks/{k5fprFtz.js → BuM8LV7z.js} +1 -1
- package/web/app/immutable/chunks/{D8CQQUv8.js → BvByaKKp.js} +1 -1
- package/web/app/immutable/chunks/{BJRZEnHw.js → BvvIG-FE.js} +1 -1
- package/web/app/immutable/chunks/{D5A4PJDt.js → BwFe8eI9.js} +1 -1
- package/web/app/immutable/chunks/{DITs7RNY.js → Bwa2n5jC.js} +1 -1
- package/web/app/immutable/chunks/{BnbmXiW4.js → ByvcSsIj.js} +1 -1
- package/web/app/immutable/chunks/{vpLnaArD.js → C13CRqsS.js} +1 -1
- package/web/app/immutable/chunks/{BK5l06W2.js → C6Af0QaF.js} +1 -1
- package/web/app/immutable/chunks/{udmuNwTR.js → C7MFACZg.js} +1 -1
- package/web/app/immutable/chunks/{pUywXnJP.js → C9DStJW1.js} +1 -1
- package/web/app/immutable/chunks/{uPtH8pRz.js → C9iwh4F-.js} +1 -1
- package/web/app/immutable/chunks/{B6SGYvow.js → CA5vNvRD.js} +3 -3
- package/web/app/immutable/chunks/{CcijsN8m.js → CBQrOO2t.js} +1 -1
- package/web/app/immutable/chunks/{CSbEYhAV.js → CCyGGl6b.js} +1 -1
- package/web/app/immutable/chunks/{BCwKGJpG.js → CDcxODgf.js} +1 -1
- package/web/app/immutable/chunks/{Bj58rFtD.js → CEqrck_t.js} +1 -1
- package/web/app/immutable/chunks/{Ca1iiPGq.js → CGJ5yTzR.js} +3 -3
- package/web/app/immutable/chunks/{BPd-Q6x4.js → CJItvMq2.js} +1 -1
- package/web/app/immutable/chunks/{Qvf67TfJ.js → CLX81MHV.js} +1 -1
- package/web/app/immutable/chunks/{DzNzbnYA.js → CPNOsHfj.js} +1 -1
- package/web/app/immutable/chunks/{BjPpzZjk.js → CPav-V5t.js} +2 -2
- package/web/app/immutable/chunks/{Cv6grH4l.js → CPmXQBUf.js} +1 -1
- package/web/app/immutable/chunks/{CtcGxSOx.js → CQClkuxa.js} +1 -1
- package/web/app/immutable/chunks/{BbK9qDRy.js → CRFyRwf-.js} +1 -1
- package/web/app/immutable/chunks/{_IIJlCYC.js → CRIoGx5T.js} +1 -1
- package/web/app/immutable/chunks/{D_-4DIK6.js → CSzXeH2S.js} +1 -1
- package/web/app/immutable/chunks/{kSTrWIIB.js → CUiYYsIq.js} +1 -1
- package/web/app/immutable/chunks/{C3AR_gNB.js → CUmvnJK5.js} +1 -1
- package/web/app/immutable/chunks/{AVUhaNFO.js → CWS5g6aA.js} +1 -1
- package/web/app/immutable/chunks/{7590d3_e.js → CY56l_5k.js} +1 -1
- package/web/app/immutable/chunks/{BRPh2Gky.js → CcBmcC9f.js} +2 -2
- package/web/app/immutable/chunks/{CykElrvo.js → CcMCIG6E.js} +2 -2
- package/web/app/immutable/chunks/{BqF1bVQC.js → CccfsETL.js} +2 -2
- package/web/app/immutable/chunks/{Boky5e4-.js → CdLJ0-dH.js} +1 -1
- package/web/app/immutable/chunks/{DwJUGAx4.js → Cdw7QKyr.js} +3 -3
- package/web/app/immutable/chunks/{DqQWmhFJ.js → CeHL-3WK.js} +1 -1
- package/web/app/immutable/chunks/{ggRB4LMK.js → CewZlXwy.js} +1 -1
- package/web/app/immutable/chunks/{Fiwts6D3.js → CiNmS1jZ.js} +1 -1
- package/web/app/immutable/chunks/{B-mEBo1a.js → CngTEvgU.js} +1 -1
- package/web/app/immutable/chunks/{R2QRct6h.js → CorT7tdR.js} +1 -1
- package/web/app/immutable/chunks/{Bs5b-3jJ.js → Cp4SiU7R.js} +1 -1
- package/web/app/immutable/chunks/{C3cVfkio.js → CpT48V2z.js} +1 -1
- package/web/app/immutable/chunks/{C8TRSNUb.js → Ct0fN4Lt.js} +1 -1
- package/web/app/immutable/chunks/{8ljmIEEj.js → CtzbB_EQ.js} +1 -1
- package/web/app/immutable/chunks/{B76dt5zP.js → CzK_7_Jd.js} +1 -1
- package/web/app/immutable/chunks/{C0JQvbI4.js → D-j7vD5Z.js} +1 -1
- package/web/app/immutable/chunks/{CtBzyNOX.js → D0DIeAXH.js} +1 -1
- package/web/app/immutable/chunks/{CVZzx9IJ.js → D6EyZ2rd.js} +1 -1
- package/web/app/immutable/chunks/{DwwEvwlj.js → D8MIwtpL.js} +1 -1
- package/web/app/immutable/chunks/{CUtsQ_at.js → DA3tGWzX.js} +1 -1
- package/web/app/immutable/chunks/{D7VoSTzK.js → DDDvNwR-.js} +1 -1
- package/web/app/immutable/chunks/{IHdKCjQM.js → DEsM7h8K.js} +2 -2
- package/web/app/immutable/chunks/{BZnji9hP.js → DFNKkiho.js} +4 -4
- package/web/app/immutable/chunks/{B469nFvV.js → DIME5LWK.js} +2 -2
- package/web/app/immutable/chunks/{BkxevPaB.js → DIxibpTv.js} +1 -1
- package/web/app/immutable/chunks/{CXTQXSCs.js → DL__HI6l.js} +1 -1
- package/web/app/immutable/chunks/{mpTxy2jJ.js → DNup87JQ.js} +1 -1
- package/web/app/immutable/chunks/{BNNeufNk.js → DQe_5JbW.js} +1 -1
- package/web/app/immutable/chunks/{BLUGgUG-.js → DTNrtzyx.js} +1 -1
- package/web/app/immutable/chunks/{C-BJXKy-.js → DTbyG794.js} +1 -1
- package/web/app/immutable/chunks/{B8RXlIBH.js → DTco_120.js} +1 -1
- package/web/app/immutable/chunks/{C7q_UkFQ.js → DUcJILSg.js} +1 -1
- package/web/app/immutable/chunks/{CxuKWK-9.js → DY9w61PC.js} +6 -6
- package/web/app/immutable/chunks/{wRT2cc73.js → DYzxLuOL.js} +1 -1
- package/web/app/immutable/chunks/{BhxHPYvf.js → D_R1vNH8.js} +1 -1
- package/web/app/immutable/chunks/{CyHB14hJ.js → D_YMc8vN.js} +1 -1
- package/web/app/immutable/chunks/{wtJmZfcy.js → DaTkisKB.js} +1 -1
- package/web/app/immutable/chunks/{CDjbPb5H.js → DaTwSOqs.js} +1 -1
- package/web/app/immutable/chunks/{D42wJcQ3.js → DbB491_u.js} +1 -1
- package/web/app/immutable/chunks/{BjEG_fCJ.js → DdU2snxg.js} +1 -1
- package/web/app/immutable/chunks/{BFVncOQi.js → DdYVblGk.js} +1 -1
- package/web/app/immutable/chunks/DejjV5ft.js +1 -0
- package/web/app/immutable/chunks/{DtuubiMf.js → Dgvdn_ax.js} +1 -1
- package/web/app/immutable/chunks/{Cb6ALa0V.js → Dhs7RSq9.js} +1 -1
- package/web/app/immutable/chunks/{BzKqzACd.js → DivmpPFQ.js} +1 -1
- package/web/app/immutable/chunks/{Xk1ND_1x.js → DlnCrS3y.js} +1 -1
- package/web/app/immutable/chunks/{i2kR60wc.js → DmtYsVlu.js} +2 -2
- package/web/app/immutable/chunks/{B8pX1T5t.js → DotCIVLI.js} +1 -1
- package/web/app/immutable/chunks/{CkTAy7fl.js → Dp0kLnIL.js} +1 -1
- package/web/app/immutable/chunks/{BnJ52enz.js → DqCgFTqN.js} +1 -1
- package/web/app/immutable/chunks/{DPbxpEc3.js → DuFY1gwd.js} +4 -4
- package/web/app/immutable/chunks/{BmyNM7bS.js → DvdITStP.js} +1 -1
- package/web/app/immutable/chunks/{B9-jkWWp.js → Dvzvnzzu.js} +1 -1
- package/web/app/immutable/chunks/{ynQC8xZQ.js → DznISJQO.js} +1 -1
- package/web/app/immutable/chunks/{BN9pl0_x.js → FS0kRzLP.js} +1 -1
- package/web/app/immutable/chunks/{w3KJAO4V.js → H8hIaDaV.js} +1 -1
- package/web/app/immutable/chunks/{7BHYBi88.js → KPBWxwIA.js} +1 -1
- package/web/app/immutable/chunks/{CPUJ3EYc.js → KRACSBb9.js} +1 -1
- package/web/app/immutable/chunks/{DbSflHPQ.js → KvfW-q1N.js} +1 -1
- package/web/app/immutable/chunks/{vezRCn6E.js → MFTfhUYi.js} +1 -1
- package/web/app/immutable/chunks/{CkyxPppw.js → OuI4JmWC.js} +1 -1
- package/web/app/immutable/chunks/{Cx8Rw_sH.js → PejVYY2W.js} +3 -3
- package/web/app/immutable/chunks/{m8Q2Rt7R.js → QKQvZF-2.js} +2 -2
- package/web/app/immutable/chunks/{BKxcGjV6.js → R3fZBk-k.js} +1 -1
- package/web/app/immutable/chunks/{CGO_zr9m.js → RqSv1iWX.js} +1 -1
- package/web/app/immutable/chunks/{zFu37m6L.js → WWq3hijy.js} +1 -1
- package/web/app/immutable/chunks/{CDUMf4mn.js → Xr-aTNRN.js} +1 -1
- package/web/app/immutable/chunks/{BCL-o_Md.js → ZIePA90q.js} +3 -3
- package/web/app/immutable/chunks/{xK5y1U34.js → a3O-Ns1M.js} +1 -1
- package/web/app/immutable/chunks/{DfyDNbbj.js → aoX2v33V.js} +4 -4
- package/web/app/immutable/chunks/{Z_lXVxA_.js → b7gnFN68.js} +1 -1
- package/web/app/immutable/chunks/{D3m2Y1N8.js → ciQFmiC4.js} +1 -1
- package/web/app/immutable/chunks/{DsDbrkJf.js → f0WUpIfB.js} +1 -1
- package/web/app/immutable/chunks/{CIqC9ucK.js → gX9ZnDRD.js} +1 -1
- package/web/app/immutable/chunks/{CqPoxrPz.js → gXHlCg5O.js} +1 -1
- package/web/app/immutable/chunks/{D7z6HEeo.js → i2Q0D3-m.js} +1 -1
- package/web/app/immutable/chunks/{y83c7yRZ.js → oM2TfoNE.js} +1 -1
- package/web/app/immutable/chunks/{BirGv2ci.js → pQalwNsE.js} +1 -1
- package/web/app/immutable/chunks/{qLTVpfPn.js → r4dmBxo_.js} +1 -1
- package/web/app/immutable/chunks/{DJSAkzw5.js → rmHQzJ1a.js} +1 -1
- package/web/app/immutable/chunks/{DYrrsQ1p.js → vJJtTADX.js} +1 -1
- package/web/app/immutable/chunks/{C-e2e9PC.js → vq6mxGLA.js} +1 -1
- package/web/app/immutable/chunks/{DT_a2Oi3.js → x9IQ_8UO.js} +1 -1
- package/web/app/immutable/chunks/{DeLdUBWT.js → z2uEgbos.js} +1 -1
- package/web/app/immutable/entry/{app.aDjWpyk7.js → app.Dh0FLLBd.js} +2 -2
- package/web/app/immutable/entry/start.IMZH36aM.js +1 -0
- package/web/app/immutable/nodes/{0.D_e7AeTl.js → 0.BlcS-Hyh.js} +1 -1
- package/web/app/immutable/nodes/{1.DA21OvwY.js → 1.BMTchPFq.js} +1 -1
- package/web/app/immutable/nodes/{10.CSASJEbg.js → 10.CfDNhRgU.js} +1 -1
- package/web/app/immutable/nodes/{11.DW2JfBsq.js → 11.CxSRkGHD.js} +1 -1
- package/web/app/immutable/nodes/{15.DrH3We44.js → 15.DCpm4k7K.js} +1 -1
- package/web/app/immutable/nodes/{19.DyUaZQFK.js → 19.C2T81__z.js} +2 -2
- package/web/app/immutable/nodes/{2.CTOsyef2.js → 2.1iJIAnw5.js} +1 -1
- package/web/app/immutable/nodes/{20.BPfqGZ4o.js → 20.BHRuLw4-.js} +1 -1
- package/web/app/immutable/nodes/{3.xcZps6DB.js → 3.BDDby9Gq.js} +1 -1
- package/web/app/immutable/nodes/{4.DaJkDmFI.js → 4.utfN0vdd.js} +1 -1
- package/web/app/immutable/nodes/{5.7rTxN-4O.js → 5.Z6w8za6J.js} +1 -1
- package/web/app/immutable/nodes/{6.tsWwri9c.js → 6.w_k_ibWb.js} +1 -1
- package/web/app/immutable/nodes/{7.CDTojphP.js → 7.I-q-I1bs.js} +1 -1
- package/web/app/immutable/nodes/{8.BO5ffLDm.js → 8.BgjULPKU.js} +1 -1
- package/web/app/immutable/nodes/{9.D0POivb2.js → 9.DOkmR0cl.js} +2 -2
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/C4AJzMws.js +0 -411
- package/web/app/immutable/chunks/DrCYFWYk.js +0 -1
- package/web/app/immutable/entry/start.1qdHg029.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Jk as j,JH as r,so as me,n_ as m,C6 as Se,nZ as g,m as F,rW as K,C7 as q,i as ye,nM as $,A as be}from"./D0qhIm1r.js";import{k as ve}from"./uXuxG9cN.js";import{selectCurrentWorkspaceTabId as he}from"./_IjN0Lbt.js";import{s as Ce}from"./CH7HNVC2.js";import{cR as Ee,cf as w,cd as Me,cc as Ie,co as ke,bJ as Ae,t as we,cJ as P,O as Pe,e9 as _e,dT as Q,aJ as Oe,cA as Re}from"./cD292w1o.js";import{K as _,L as Te}from"./
|
|
1
|
+
import{Jk as j,JH as r,so as me,n_ as m,C6 as Se,nZ as g,m as F,rW as K,C7 as q,i as ye,nM as $,A as be}from"./D0qhIm1r.js";import{k as ve}from"./uXuxG9cN.js";import{selectCurrentWorkspaceTabId as he}from"./_IjN0Lbt.js";import{s as Ce}from"./CH7HNVC2.js";import{cR as Ee,cf as w,cd as Me,cc as Ie,co as ke,bJ as Ae,t as we,cJ as P,O as Pe,e9 as _e,dT as Q,aJ as Oe,cA as Re}from"./cD292w1o.js";import{K as _,L as Te}from"./DejjV5ft.js";import{P as Le,c as Ne}from"./B5aYN90J.js";import{bm as R}from"./Fcr7AvC-.js";import{l as Be}from"./C7b3vXLD.js";function He(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const c=e.lastIndexOf("/"),s=c>=0?e.slice(c+1):"",a=o.has(s)?e.slice(0,c):e;return t===null?a:`${a}/${t}`}const xe={major:5,minor:2};function De(e){const{major:t,minor:n}=xe;return ve(e,t,n)}function E(e,t,n){const o=j(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function C(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const c=t(e.slice(0,o.index)),s=o[1].toLowerCase();return c?`${c} (${s.charAt(0).toUpperCase()}${s.slice(1)})`:void 0}function We(e,t){return JSON.stringify([t||null,e])}const je=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),Bt=r.createSelector((e,t,n)=>je.select(e,n)[t]),Ht=r.createSelector(e=>e.providerModels?.clearEpoch??0),xt=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),Fe=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[We(o,n),{providerId:o,workspaceId:n}])))),Dt=r.createSelector(e=>Object.keys(Fe.select(e)).sort()),Ke=r.createSelector((e,t,n)=>me(e.providerModels?.learnedNames??{},t,n)),Wt=r.createSelector(e=>e.providerModels.learnedNames),jt=r.createSelector(e=>e.model),Ft=r.createSelector(e=>{const t=Ee.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=_.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Me.select(e):null])});function U(e,t){return t??_.select(e)}const O=r.createSelector((e,t)=>{const n=U(e,t),o=e.model.availableModelsProviderId===n?m(e.model.availableModels):[],c=Ie.select(e),s=ke.select(e)?c?.defaultProviderId===n?c.defaultModelId:null:e.model.providerModels[n];return s||(Te.select(e).includes(n)?Se(o):"")}),qe=r.createSelector((e,t)=>O.select(e,t)!==""),Kt=r.createSelector(e=>_.select(e)!==""||qe.select(e)),$e=r.createSelector(e=>e.model.availableModels),qt=r.createSelector(e=>m($e.select(e))),$t=r.createSelector(e=>e.model.availableModelsProviderId),J=r.createSelector((e,t)=>{const n=U(e,t);return e.model.loadingState[n]??null}),Qt=r.createSelector((e,t)=>J.select(e,t)?.status==="loading"),Ut=r.createSelector((e,t)=>{const n=J.select(e,t);return n?.status!=="error"?null:n.error??null}),Jt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Gt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Yt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),zt=r.createSelector(e=>e.model.providerModels),Vt=r.createSelector(e=>e.model.defaultReasoningEffort),Xt=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Zt=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Qe=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=e.model?.availableModels;if(!o&&l&&(!s||s===e.model.availableModelsProviderId)){const d=g(l,n)??g(l,a);if(d)return d}const i=o?e.providerModels?.byWorkspaceId?.[o]?.[s]:e.providerModels?.byProviderId?.[s];return i?.models.find(d=>d.value===n)??i?.models.find(d=>E(d.value,s,c)===a)}),en=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=d=>Qe.select(e,s,d,o)?.label,i=d=>Ke.select(e,s,d);return C(n,l)??(a!==n?C(a,l):void 0)??i(n)??C(a,i)}),Ue=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=M(t);return g(n,o)?.effortLevels});function M(e){const t=j(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Je=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const c=Ue.select(e,n);if(c)return c}if(t){const c=M(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>M(a.value)===c)?.effortLevels}}}),Ge=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,c=o?.find(b=>b.path==="model.defaultProvider")?.value,s=o?typeof c=="string"?c:"":Ae.select(e),a=we(n,s),l=P.select(e,a??s,n.workspaceId),i=o?.find(b=>b.path==="model.providerDefaults")?.value,d=i&&typeof i=="object"?i[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":O.select(e,l));return Je.select(e,l,v,n.workspaceId)}),G="application/vnd.intent.question+json";function Ye(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function ze(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(Ye)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function tn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===G}function Ve(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==G||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return ze(o)?o:null}catch{return null}}const Xe="attachmentId",Ze=/^tar-[0-9a-f]{12}$/;function Y(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function z(e){const t=Y(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Xe];return typeof o=="string"&&Ze.test(o)?o:null}catch{return null}}function I(e){return Array.isArray(e)?`[${e.map(I).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${I(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function et(e){const t=Y(e);if(!t)return null;if(t.mimeType===Le)try{const o=JSON.parse(t.text);if(Ne(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${I(o.payload)}`}catch{}const n=z(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function T(e){return z(e)!==null}function tt(e){const t=new Map,n=[];for(const o of e){const c=et(o);if(c===null){n.push(o);continue}const s=t.get(c);if(s===void 0){t.set(c,n.length),n.push(o);continue}T(o)&&!T(n[s])&&(n[s]=o)}return n}function V(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function nt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?R.chat_questionWizard_imagesAttached_label_one():R.chat_questionWizard_imagesAttached_label_many({count:Be(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function ot(e){return e.map(t=>`Q: ${t.question.question}
|
|
2
2
|
A: ${nt(t)}`).join(`
|
|
3
3
|
|
|
4
4
|
`)}const X="question_answers";function rt(e){return{type:X,answeredQuestionsMessageId:e}}function nn(e,t){const n=e.flatMap(o=>o.skipped?[]:o.imageBlocks??[]);return{text:ot(e),messageMetadata:rt(t),...n.length>0?{imageBlocks:n}:{}}}function L(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==X)return null;const n=t.answeredQuestionsMessageId;return typeof n=="string"&&n.length>0?n:null}function N(e){const t=L(e),n=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const o=e.mergedMessageMetadata;if(Array.isArray(o))for(const c of o){const s=L(c);s&&!n.includes(s)&&n.push(s)}}return n}function Z(e){if(!e)return[];const t=N(e.metadata);if(t.length)return t;const n=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(n.flatMap(o=>o.type==="text"?N(o.messageMetadata):[]))]}function ee(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function B(e){return tt(e.contentBlocks??[]).map(Ve).filter(t=>t!==null)}function te(e,t){return e.some(n=>n.role==="user"&&Z(n).includes(t))}function H(e,t){return e.some(n=>Z({metadata:n.messageMetadata}).includes(t))}function st(e,t,n=!1,o,c=[]){if(n||e.length===0)return null;const s=ee(o);if(s.kind==="cleared")return null;if(s.kind==="set"){const a=e.find(i=>i.id===s.messageId);if(!a||a.role!=="assistant"||a.isStreaming||te(e,s.messageId)||H(c,s.messageId))return null;const l=B(a);return l.length>0?{messageId:a.id,questions:l}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const l=e[a];if(l.role==="system")continue;if(l.role!=="assistant"||l.isStreaming||H(c,l.id))return null;const i=B(l);return i.length>0?{messageId:l.id,questions:i}:null}return null}function ct(e){const t=st(e.messages??[],Pe(_e(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||V(e.metadata,t.messageId)?null:t}function at(e){if(ct(e)!==null)return!0;const t=ee(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const n=e.messages??[];return n.some(o=>o.id===t.messageId)||te(n,t.messageId)?!1:!V(e.metadata,t.messageId)}const ne=0,k=1,lt=2,f=4,oe=6,it=[2,3,4,5,0,1],dt=16777215,re=689407,se=3199320,ce=16766474,ae=16752394,A=16726832,le=6607615,ut=12540658,y=.9,ft=.5,ie=.25,pt=.25,gt={unassigned:{c:0,b:0,e:ne,s:0},idle:{c:dt,b:.12,e:k,s:0},running:{c:re,b:.6,e:f,s:ft},unread:{c:le,b:.4,e:f,s:ie},complete:{c:se,b:.5,e:k,s:0},attention:{c:ce,b:.8,e:f,s:y},blocked:{c:ae,b:.75,e:f,s:y},failed:{c:A,b:.7,e:f,s:y}},mt={e:ne,b:0,s:0,m:0,c:0},x=.35,St=.75,D=4;function yt(e){const n=(Math.min(Math.max(e,1),D)-1)/(D-1);return x+n*(St-x)}const bt={dark:mt,complete:{e:k,b:.25,s:0,m:0,c:se},unread:{e:f,b:.4,s:ie,m:0,c:le},question:{e:f,b:.8,s:y,m:0,c:ce},blocked:{e:f,b:.8,s:y,m:0,c:ae},failed:{e:f,b:.8,s:y,m:0,c:A},recording:{e:f,b:.8,s:y,m:0,c:A},disconnected:{e:lt,b:.2,s:pt,m:0,c:ut}};function on(e){const t=[];for(let n=0;n<oe;n+=1){const o=e[n]??"unassigned";t.push({id:it[n],...gt[o]})}return t.sort((n,o)=>n.id-o.id),t}function rn(e){const t=e.kind==="running"?{e:f,b:.5,s:yt(e.runningCount),m:0,c:re}:bt[e.kind];return{keys:{...t},ambient:{...t}}}function de(e){return $(e)?.kind==="blocker"}function ue(e){return $(e)?.kind==="discussion"||at(e)}function fe(e){return e.status===ye.Error}function W(e,t){const n=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],o=e.agentSessions?.byAgentId??{},c=[];for(const s of n){const a=o[String(s)];a&&c.push(a)}return c}const vt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function pe(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function ge(e){return e.displayStatus!==void 0&&vt.has(e.displayStatus)}function ht(e,t){return t.some(fe)?"failed":t.some(de)?"blocked":t.some(ue)?"attention":pe(e)?"running":e.attention==="unread"?"unread":ge(e)?"complete":"idle"}function Ct(e){if(e.daemonHealth?.health==="down")return{keys:new Array(oe).fill("unassigned"),ambient:{kind:"disconnected"}};const t=m(e.workspace.workspaces).filter(u=>u.id!==F&&K(u)),n=new Map;for(const u of t)n.set(u.id,u);const c=q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(u=>{const S=u===null?void 0:n.get(u);return S?ht(S,W(e,S.id)):"unassigned"});let s=!1,a=!1,l=!1,i=0,d=!1,v=!1;const b=new Set(e.tabState.workspaceStacks.flat());for(const u of t){if(!b.has(u.id))continue;const S=W(e,u.id);S.some(fe)&&(s=!0),S.some(de)&&(a=!0),S.some(ue)&&(l=!0),pe(u)&&(i+=1),u.attention==="unread"&&(d=!0),ge(u)&&(v=!0)}let p;return e.hardwareConsole.pttRecording===!0?p={kind:"recording"}:s?p={kind:"failed"}:a?p={kind:"blocked"}:l?p={kind:"question"}:d?p={kind:"unread"}:i>0?p={kind:"running",runningCount:i}:v?p={kind:"complete"}:p={kind:"dark"},{keys:c,ambient:p}}const sn=r.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),cn=r.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const n=o=>be.filter((c,s)=>t.actionMappingByModel[o][s]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":n("creator-micro-2"),"codex-micro":n("codex-micro")}})}),an=r.createSelector(e=>e.hardwareConsole.enabled),ln=r.createSelector(e=>e.hardwareConsole.encoderBehavior),dn=r.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),un=r.createSelector(e=>e.hardwareConsole.isConsoleOwner),fn=r.createSelector(e=>e.hardwareConsole.promptPickerLimit),pn=r.createSelector(e=>e.hardwareConsole.actionMappingByModel),gn=r.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),mn=r.createSelector(e=>e.hardwareConsole.keyPins),Sn=r.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),yn=r.createSelector(e=>e.hardwareConsole.promptUsage),Et=r.createSelector(e=>{const t=Q.select(e).filter(K);return q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),bn=r.createSelector((e,t)=>{const n=e.hardwareConsole.keyPins.indexOf(t);return n===-1?null:n}),vn=r.createSelector((e,t)=>{const n=Et.select(e).indexOf(t);return n===-1?null:n}),hn=r.createSelector(e=>e.hardwareConsole.radialPrompt),Cn=r.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),En=r.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:Q.select(e).find(n=>n.id===t)?.title??null}),Mn=r.createSelector(e=>e.hardwareConsole.actionHudLabel),In=r.createSelector(e=>e.hardwareConsole.pttRecording),kn=r.createSelector(e=>e.hardwareConsole.pttRecording&&e.hardwareConsole.pttRecordingSource==="key"),An=r.createSelector(e=>e.hardwareConsole.pttRecordingStartedAt),wn=r.createSelector(e=>e.hardwareConsole.pttInputLevels),Pn=r.createSelector(e=>e.hardwareConsole.voiceTranscribing),_n=r.createSelector(e=>Ct(e)),Mt=r.createSelector((e,t,n)=>{const o=e.agentSessions.byAgentId[n];if(!o||o.workspaceId!==t)return null;const c=Ge.select(e,n);if(!c?.length)return null;const s=Oe.select(e,n),a=o.model??O.select(e,s),l=e.daemonHealth.stats?.protocolVersion,i=De(l)?He(a,null,c):a;return{key:JSON.stringify([t,n,s,i,c]),workspaceId:t,agentId:n,levels:c}}),It=r.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const n=he.select(e);if(!n||n===F||Re.select(e,n))return null;const o=Ce.select(e,n);return o?.type!=="agent"||!o.agentId||o.workspaceId&&o.workspaceId!==n?null:Mt.select(e,n,o.agentId)}),On=r.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||It.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),kt=[],Rn=r.createSelector((e,t)=>g(e.connections.workflows,t)),Tn=r.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Ln=r.createSelector(e=>e.connections.selfPublication),Nn=r.createSelector(e=>e.connections.selfPublicationBusy),Bn=r.createSelector((e,t)=>({guest:g(e.guestSessions.sessions,t),connection:g(e.connections.connections,t)})),Hn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly)),xn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node")),Dn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&!t.isLocal)),Wn=r.createSelector(e=>e.connections.hasReceivedList);r.createSelector((e,t)=>g(e.connections.connections,t)?.status??"not-open");const jn=r.createSelector(e=>e.connections.windowBackendId),Fn=r.createSelector(e=>{const{connections:t,windowBackendId:n}=e.connections;return g(t,n)??null}),Kn=r.createSelector(e=>e.connections.pinnedVersion),qn=r.createSelector(e=>e.connections.connectedIds);r.createSelector(e=>e.connections.status);const $n=r.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);r.createSelector((e,t)=>e.connections.openingIds.includes(t));r.createSelector(e=>e.connections.error);const Qn=r.createSelector(e=>e.connections.certMismatch),Un=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.connections.certWarnings))t[n]=m(o);return t}),Jn=r.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?m(t):kt}),Gn=r.createSelector(e=>{const{authRejected:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),Yn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),zn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n,protocolMismatchModalDismissed:o}=e.connections;return!t||t.id!==n||o?null:t}),Vn=r.createSelector(e=>e.connections.keychainSync),Xn=r.createSelector(e=>e.connections.browserHost?.manageConnections===!0),Zn=r.createSelector(e=>e.connections.browserHost?.backendBound===!1),eo=r.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),h=new Map;function to(e){return h.has(e)}function no(e){return h.get(e)}function oo(e){h.set(e.agentId,e)}function ro(e){h.delete(e)}export{mn as $,oe as A,Jt as B,qt as C,$t as D,xn as E,Un as F,qn as G,Qn as H,Bn as I,Rn as J,Hn as K,Wn as L,Fn as M,Jn as N,jn as O,Vt as P,Mt as Q,On as R,It as S,Cn as T,En as U,pn as V,gn as W,an as X,ln as Y,dn as Z,Sn as _,Ct as a,Et as a0,yn as a1,hn as a2,_n as a3,Kt as a4,Xn as a5,eo as a6,$n as a7,un as a8,Qt as a9,In as aA,An as aB,Dn as aC,O as aD,Ln as aE,Nn as aF,sn as aG,Pn as aH,cn as aI,bn as aJ,vn as aK,at as aL,ct as aM,oo as aN,De as aO,Tn as aa,Vn as ab,Ke as ac,Wt as ad,Ut as ae,Ft as af,Qe as ag,en as ah,Ue as ai,Zt as aj,Xt as ak,jt as al,Zn as am,Dt as an,Fe as ao,Kn as ap,fn as aq,zn as ar,Je as as,zt as at,Bt as au,je as av,Ht as aw,xt as ax,wn as ay,kn as az,nn as b,He as c,rn as d,on as e,ee as f,tt as g,st as h,Z as i,no as j,Ve as k,to as l,V as m,tn as n,te as o,H as p,E as q,We as r,ro as s,C as t,Mn as u,Gn as v,Yn as w,Ge as x,Gt as y,Yt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i,aW as l,aw as d,P as o}from"./
|
|
1
|
+
import{b as i,aW as l,aw as d,P as o}from"./DFNKkiho.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,x as e,y as f,h as g,f as h};
|