@intent-hq/web 2.372.2 → 2.372.3
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/{BZQZwdGm.js → -il6if-X.js} +1 -1
- package/web/app/immutable/chunks/{DSIsc1Ss.js → 0PFbquWg.js} +1 -1
- package/web/app/immutable/chunks/{D9-KwDth.js → 2gbKHQXV.js} +1 -1
- package/web/app/immutable/chunks/{B6l-Kttu.js → 3vi-OgRR.js} +1 -1
- package/web/app/immutable/chunks/{B0kpU9fA.js → 4WFBPbig.js} +2 -2
- package/web/app/immutable/chunks/{vE2E6sS8.js → 64KJqioX.js} +1 -1
- package/web/app/immutable/chunks/{CrL6DZCQ.js → 8vt0w0gB.js} +1 -1
- package/web/app/immutable/chunks/{CL1PbmdJ.js → AzvtNQGc.js} +1 -1
- package/web/app/immutable/chunks/{lFTk8wpi.js → B3agx6Zv.js} +1 -1
- package/web/app/immutable/chunks/{BpWCMu3u.js → B430oCRo.js} +1 -1
- package/web/app/immutable/chunks/{BIn5egRU.js → B4N2SW_I.js} +1 -1
- package/web/app/immutable/chunks/{Dkvzw9dt.js → B6OWzTDz.js} +1 -1
- package/web/app/immutable/chunks/{CjYF1At4.js → B77zwvv7.js} +1 -1
- package/web/app/immutable/chunks/{DC0oh9YH.js → B8GoKZxM.js} +1 -1
- package/web/app/immutable/chunks/{Di4F3rxF.js → B93aSOB6.js} +1 -1
- package/web/app/immutable/chunks/{BrFkQr4z.js → BAcZGd3g.js} +1 -1
- package/web/app/immutable/chunks/{O-dTT9_6.js → BDMD6FdT.js} +1 -1
- package/web/app/immutable/chunks/{CrBBYf3_.js → BFAXN_U2.js} +1 -1
- package/web/app/immutable/chunks/{ulO2uazy.js → BIZcpPtH.js} +1 -1
- package/web/app/immutable/chunks/{ftVcR4tQ.js → BMjTWq66.js} +1 -1
- package/web/app/immutable/chunks/{BQNpzQlP.js → BQ0lhaiw.js} +1 -1
- package/web/app/immutable/chunks/{EwMtkE4R.js → BR-e1Dqz.js} +4 -4
- package/web/app/immutable/chunks/{Ixhw1ROs.js → BSXFgzj_.js} +1 -1
- package/web/app/immutable/chunks/{CnzZSXm6.js → BbbO1mVP.js} +1 -1
- package/web/app/immutable/chunks/{CajUAX8N.js → BiWBSez2.js} +2 -2
- package/web/app/immutable/chunks/{DY06SZsl.js → BjLzmoKu.js} +1 -1
- package/web/app/immutable/chunks/{ZJOyleCJ.js → BjmThgx9.js} +3 -3
- package/web/app/immutable/chunks/{BIkmNkpw.js → BlPpu_gv.js} +1 -1
- package/web/app/immutable/chunks/{BTcBtO7l.js → Bmgc_Vmk.js} +1 -1
- package/web/app/immutable/chunks/{D-usBtmP.js → BpXYSrHL.js} +4 -4
- package/web/app/immutable/chunks/{vlM04DTZ.js → BuHIOAsb.js} +1 -1
- package/web/app/immutable/chunks/{OusZ11tk.js → Buf2XX2m.js} +1 -1
- package/web/app/immutable/chunks/{BuQN2T0g.js → Byc-Gwn1.js} +2 -2
- package/web/app/immutable/chunks/{uA3ZM6fH.js → C2f0QCtk.js} +1 -1
- package/web/app/immutable/chunks/{C79sRXBG.js → C4tXJNlU.js} +1 -1
- package/web/app/immutable/chunks/{CQy8trug.js → C5Ddrquv.js} +1 -1
- package/web/app/immutable/chunks/{DsnmJyUD.js → C8F76z1j.js} +1 -1
- package/web/app/immutable/chunks/{B2NZzPt-.js → C8GDR5mq.js} +1 -1
- package/web/app/immutable/chunks/{DHpb0iQY.js → CBP_r2rZ.js} +1 -1
- package/web/app/immutable/chunks/{BOD8_Ffh.js → CCr3GhwT.js} +1 -1
- package/web/app/immutable/chunks/{A-qdlPO9.js → CEIGYgmC.js} +1 -1
- package/web/app/immutable/chunks/{Z4Jzxw8B.js → CLkKOQIb.js} +1 -1
- package/web/app/immutable/chunks/{CBHdapAk.js → CMR4RacT.js} +1 -1
- package/web/app/immutable/chunks/{B9STQthu.js → CMd9xe_v.js} +1 -1
- package/web/app/immutable/chunks/{DdJj628K.js → CNW9Rwes.js} +1 -1
- package/web/app/immutable/chunks/{Ds6NYQhM.js → CNc8h__d.js} +1 -1
- package/web/app/immutable/chunks/{CYyfRGPT.js → CP03b_lt.js} +1 -1
- package/web/app/immutable/chunks/{BTi_uPkP.js → CSUG4tUd.js} +2 -2
- package/web/app/immutable/chunks/{D82C3bhe.js → CVA75Jzf.js} +1 -1
- package/web/app/immutable/chunks/{CtZeiR9i.js → CXXobfG5.js} +1 -1
- package/web/app/immutable/chunks/{BApUcPKR.js → C_MA8w30.js} +1 -1
- package/web/app/immutable/chunks/{wDPUZWBZ.js → CbGkMYMi.js} +1 -1
- package/web/app/immutable/chunks/{xs1C7KnJ.js → CgyKOUjB.js} +1 -1
- package/web/app/immutable/chunks/{f50N8hQo.js → Ciyw1cDk.js} +1 -1
- package/web/app/immutable/chunks/{LbiCax8N.js → CjmicwNO.js} +1 -1
- package/web/app/immutable/chunks/Ck2JBj0W.js +3 -0
- package/web/app/immutable/chunks/{Dge5ZGj2.js → CmfLCgYN.js} +1 -1
- package/web/app/immutable/chunks/{2XoFwLeT.js → CuNdhmq6.js} +1 -1
- package/web/app/immutable/chunks/{CMAV3UUk.js → Cu_kcmjo.js} +1 -1
- package/web/app/immutable/chunks/{B0lZCUS6.js → CvO597Pq.js} +1 -1
- package/web/app/immutable/chunks/{CPj4SFCC.js → CwLBVHwC.js} +1 -1
- package/web/app/immutable/chunks/{CZDluI6H.js → CygNkso5.js} +1 -1
- package/web/app/immutable/chunks/{CtKyfVB_.js → D-5xnKgT.js} +1 -1
- package/web/app/immutable/chunks/{RwJyhbRN.js → D0WHOKE3.js} +1 -1
- package/web/app/immutable/chunks/{CIJY2gxU.js → D4HebHoD.js} +1 -1
- package/web/app/immutable/chunks/{BbobBw8S.js → D4_8WlAX.js} +1 -1
- package/web/app/immutable/chunks/{CR5ZxoLH.js → D4p9bnGO.js} +1 -1
- package/web/app/immutable/chunks/{BDThAQjj.js → D73rJM26.js} +1 -1
- package/web/app/immutable/chunks/{Df3mQZLv.js → D7X_WaSL.js} +3 -3
- package/web/app/immutable/chunks/{DE_K0DMt.js → D9E1Sed-.js} +3 -3
- package/web/app/immutable/chunks/{DCzChru-.js → D9ZsyNyz.js} +1 -1
- package/web/app/immutable/chunks/{2YKrLT6f.js → DAAshoKb.js} +1 -1
- package/web/app/immutable/chunks/{BesmUwoU.js → DL1rChoc.js} +1 -1
- package/web/app/immutable/chunks/{Oweeyv1v.js → DL9oF9R-.js} +1 -1
- package/web/app/immutable/chunks/{BehvUfjM.js → DO0YQnSr.js} +1 -1
- package/web/app/immutable/chunks/{BpSBXUuJ.js → DQITwHBm.js} +2 -2
- package/web/app/immutable/chunks/{DOOplL0N.js → DSam4kPq.js} +2 -2
- package/web/app/immutable/chunks/{BPW7kjsh.js → DSviIBB2.js} +1 -1
- package/web/app/immutable/chunks/{m11ohSMf.js → DTl-epgW.js} +1 -1
- package/web/app/immutable/chunks/{B418rdhJ.js → DUnf3IJM.js} +1 -1
- package/web/app/immutable/chunks/{5Z6V3HtS.js → DVkhmNxg.js} +3 -3
- package/web/app/immutable/chunks/{BWDjljS8.js → DXT_tHZV.js} +3 -3
- package/web/app/immutable/chunks/{BPwzpRKZ.js → DXq51U5Z.js} +1 -1
- package/web/app/immutable/chunks/{1mJrE3jk.js → DZnf3Vcd.js} +1 -1
- package/web/app/immutable/chunks/{B9Y57c7j.js → D_yMjDjB.js} +6 -6
- package/web/app/immutable/chunks/{CKK0Gz-a.js → DdfA1Cl6.js} +2 -2
- package/web/app/immutable/chunks/{DFQ6yCR1.js → DfvdR1t7.js} +13 -13
- package/web/app/immutable/chunks/{D1wNvwqn.js → Di8laZBj.js} +1 -1
- package/web/app/immutable/chunks/{CwB9Am9z.js → DjHgMTjl.js} +3 -3
- package/web/app/immutable/chunks/{BoefNJ5Q.js → DlekFIEJ.js} +1 -1
- package/web/app/immutable/chunks/{NPKMdhKA.js → DmNlyOFF.js} +2 -2
- package/web/app/immutable/chunks/{9DRLCqFH.js → DoGlKPs8.js} +1 -1
- package/web/app/immutable/chunks/{CNsgRr0G.js → DoKriIRg.js} +1 -1
- package/web/app/immutable/chunks/{CsleiD5D.js → DoUa1hTg.js} +1 -1
- package/web/app/immutable/chunks/{oaGKgX0i.js → DpqgMZNx.js} +1 -1
- package/web/app/immutable/chunks/{Bpb7JDWq.js → Dqso2iIq.js} +1 -1
- package/web/app/immutable/chunks/{DLmLA9DN.js → Dr_KWcsf.js} +1 -1
- package/web/app/immutable/chunks/{B89v0U4a.js → DsATs4Yw.js} +3 -3
- package/web/app/immutable/chunks/{OfToEAub.js → DtPlbqlO.js} +1 -1
- package/web/app/immutable/chunks/{C-y2Lv4J.js → DumB3eQv.js} +1 -1
- package/web/app/immutable/chunks/{R-aBLidW.js → DyOuvQsx.js} +3 -3
- package/web/app/immutable/chunks/{DCO02E6M.js → Dyda26aD.js} +1 -1
- package/web/app/immutable/chunks/{yLWVsiXj.js → Dz9187FZ.js} +1 -1
- package/web/app/immutable/chunks/{lCSqh71Z.js → DzXo18RQ.js} +1 -1
- package/web/app/immutable/chunks/{fth1noPu.js → FHdlPR2E.js} +1 -1
- package/web/app/immutable/chunks/{BEWjMMmw.js → QJaPD5ja.js} +3 -3
- package/web/app/immutable/chunks/{Cv2q5gkL.js → Smn45KEu.js} +1 -1
- package/web/app/immutable/chunks/{ahq3r4Wz.js → TWY-IEJw.js} +1 -1
- package/web/app/immutable/chunks/{DqfSttpc.js → a_hFrVUs.js} +1 -1
- package/web/app/immutable/chunks/{Bxb8LI6C.js → eHy-2vQk.js} +1 -1
- package/web/app/immutable/chunks/{Qh1eK2X9.js → eWtOjdwZ.js} +1 -1
- package/web/app/immutable/chunks/{zROLTv2m.js → ezsQjlt6.js} +1 -1
- package/web/app/immutable/chunks/{vQ3XSTvm.js → kRDyYnu-.js} +1 -1
- package/web/app/immutable/chunks/{BHtMcien.js → lMYobXp7.js} +1 -1
- package/web/app/immutable/chunks/{55NQjm3t.js → m5FEmsd9.js} +1 -1
- package/web/app/immutable/chunks/{DQewNXDh.js → n1Mub_w4.js} +1 -1
- package/web/app/immutable/chunks/{DsFpAZo7.js → pO_uIUtS.js} +2 -2
- package/web/app/immutable/chunks/{CQR1o7um.js → paBp5EDQ.js} +2 -2
- package/web/app/immutable/chunks/{eGqXrC9g.js → rUAQGuY9.js} +1 -1
- package/web/app/immutable/chunks/{DadrYnVI.js → s5eSUTR7.js} +1 -1
- package/web/app/immutable/chunks/{DyaBo2y6.js → sppurVVE.js} +1 -1
- package/web/app/immutable/chunks/{B5PU_SZw.js → tDXv5z_U.js} +1 -1
- package/web/app/immutable/chunks/{CAG8YIXN.js → uMNoDmQ2.js} +1 -1
- package/web/app/immutable/chunks/{D0xQDzbV.js → xCNFDAsL.js} +1 -1
- package/web/app/immutable/chunks/{CRBVaIXN.js → yc-ZA4uZ.js} +1 -1
- package/web/app/immutable/entry/{app.-hRXZvoO.js → app.DDy_f4Vr.js} +2 -2
- package/web/app/immutable/entry/start.CtWgyCM1.js +1 -0
- package/web/app/immutable/nodes/{0.Bf92A2SS.js → 0.BIgrj7tk.js} +1 -1
- package/web/app/immutable/nodes/{1.BWS1uOkH.js → 1.BS4qG73n.js} +1 -1
- package/web/app/immutable/nodes/{10.xvB45P-Z.js → 10.CoUmfWJP.js} +4 -4
- package/web/app/immutable/nodes/{11.CWt_UL31.js → 11.Cp19-DaX.js} +1 -1
- package/web/app/immutable/nodes/{15.BFkam5BT.js → 15._NKX_puo.js} +1 -1
- package/web/app/immutable/nodes/{19.DASGyMmu.js → 19.CrIpgdrd.js} +2 -2
- package/web/app/immutable/nodes/{2.BLp65UB0.js → 2.B-ARMoF4.js} +4 -4
- package/web/app/immutable/nodes/{3.sLYNU_z5.js → 3.CeiKZ0d6.js} +1 -1
- package/web/app/immutable/nodes/{4.CYsqPvqR.js → 4.-s0Jfvde.js} +1 -1
- package/web/app/immutable/nodes/{5.BDPUNvGt.js → 5.BIDxYMYJ.js} +1 -1
- package/web/app/immutable/nodes/{6.Cmp_rej6.js → 6.3fDeScAq.js} +1 -1
- package/web/app/immutable/nodes/{7.BeJ_Zasr.js → 7.DydkXABx.js} +1 -1
- package/web/app/immutable/nodes/{8.CTerGGp8.js → 8.DyQruTiJ.js} +1 -1
- package/web/app/immutable/nodes/{9.D8TUAlXi.js → 9.D0w1njvH.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/Qqd9dQHZ.js +0 -3
- package/web/app/immutable/entry/start.C3r7ji-v.js +0 -1
package/web/app/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1795366514400"}
|
package/web/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
7
|
<meta
|
|
8
8
|
http-equiv="Content-Security-Policy"
|
|
9
|
-
content="default-src 'self'; script-src 'self' 'sha256-DevCUtwcg+doT7IQEAqhhISk4A5D4zhQnoDp9S8iJM0=' 'sha256-bKjEYuryRSPMtxgc+wq/MSpZnfwXdxKH8X4X1bzY5pQ=' 'sha256-2SbiJTQTD3LKMsLk4fseCFivcYGgwzAZd7gIOUxAxb4=' 'sha256-
|
|
9
|
+
content="default-src 'self'; script-src 'self' 'sha256-DevCUtwcg+doT7IQEAqhhISk4A5D4zhQnoDp9S8iJM0=' 'sha256-bKjEYuryRSPMtxgc+wq/MSpZnfwXdxKH8X4X1bzY5pQ=' 'sha256-2SbiJTQTD3LKMsLk4fseCFivcYGgwzAZd7gIOUxAxb4=' 'sha256-wOte3fV7rFrDGVS1wQEVypUNtnvr9Hot1zbBYFQBPmg='; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: workspace-asset: workspace-file:; font-src 'self' data:; media-src 'self' data: blob: https: workspace-asset: workspace-file:; connect-src 'self' blob: https: wss: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:* workspace-file: workspace-asset:; worker-src 'self' blob: data:;"
|
|
10
10
|
/>
|
|
11
11
|
<title>Intent</title>
|
|
12
12
|
<!-- Runtime web configuration is a same-origin deployment asset, never a Vite-bundled secret. -->
|
|
@@ -176,17 +176,17 @@
|
|
|
176
176
|
import('/@vite/client').catch(() => {});
|
|
177
177
|
}
|
|
178
178
|
</script>
|
|
179
|
-
<link href="/app/immutable/entry/start.
|
|
180
|
-
<link href="/app/immutable/chunks/
|
|
179
|
+
<link href="/app/immutable/entry/start.CtWgyCM1.js" rel="modulepreload">
|
|
180
|
+
<link href="/app/immutable/chunks/D_yMjDjB.js" rel="modulepreload">
|
|
181
181
|
<link href="/app/immutable/chunks/CJxGDkBm.js" rel="modulepreload">
|
|
182
|
-
<link href="/app/immutable/entry/app
|
|
182
|
+
<link href="/app/immutable/entry/app.DDy_f4Vr.js" rel="modulepreload">
|
|
183
183
|
<link href="/app/immutable/chunks/ClpAEjbe.js" rel="modulepreload">
|
|
184
184
|
<link href="/app/immutable/chunks/BdWqymET.js" rel="modulepreload">
|
|
185
185
|
<link href="/app/immutable/chunks/D-N7efrx.js" rel="modulepreload">
|
|
186
186
|
<link href="/app/immutable/chunks/wmcYjLAa.js" rel="modulepreload">
|
|
187
187
|
<link href="/app/immutable/chunks/DSqSJXGX.js" rel="modulepreload">
|
|
188
188
|
<link href="/app/immutable/chunks/NtFyWdpR.js" rel="modulepreload">
|
|
189
|
-
<link href="/app/immutable/nodes/0.
|
|
189
|
+
<link href="/app/immutable/nodes/0.BIgrj7tk.js" rel="modulepreload">
|
|
190
190
|
<link href="/app/immutable/chunks/WSVFXKpL.js" rel="modulepreload">
|
|
191
191
|
<link href="/app/immutable/chunks/Xh71Wbuh.js" rel="modulepreload">
|
|
192
192
|
<link href="/app/immutable/chunks/BIv0yV05.js" rel="modulepreload">
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
<link href="/app/immutable/chunks/CMiilI_P.js" rel="modulepreload">
|
|
203
203
|
<link href="/app/immutable/chunks/B_QPRXJ5.js" rel="modulepreload">
|
|
204
204
|
<link href="/app/immutable/chunks/CTV49dzf.js" rel="modulepreload">
|
|
205
|
-
<link href="/app/immutable/chunks/
|
|
205
|
+
<link href="/app/immutable/chunks/pO_uIUtS.js" rel="modulepreload">
|
|
206
206
|
<link href="/app/immutable/chunks/DKwAaLwd.js" rel="modulepreload">
|
|
207
207
|
|
|
208
208
|
<link href="/app/immutable/assets/spinner.D_TRo5Hy.css" rel="stylesheet">
|
|
@@ -251,15 +251,15 @@
|
|
|
251
251
|
<div style="display: contents" id="app">
|
|
252
252
|
<script>
|
|
253
253
|
{
|
|
254
|
-
|
|
254
|
+
__sveltekit_1j6w0mw = {
|
|
255
255
|
base: ""
|
|
256
256
|
};
|
|
257
257
|
|
|
258
258
|
const element = document.currentScript.parentElement;
|
|
259
259
|
|
|
260
260
|
Promise.all([
|
|
261
|
-
import("/app/immutable/entry/start.
|
|
262
|
-
import("/app/immutable/entry/app
|
|
261
|
+
import("/app/immutable/entry/start.CtWgyCM1.js"),
|
|
262
|
+
import("/app/immutable/entry/app.DDy_f4Vr.js")
|
|
263
263
|
]).then(([kit, app]) => {
|
|
264
264
|
kit.start(app, element);
|
|
265
265
|
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{fU as x,Jq as o,nW as B,mm as F,md as q,ty as K}from"./CpP1PKzF.js";import{H as G,n as j,O as V,e4 as Y,cR as M,dE as w,dP as N,d_ as E,cM as $,aM as J}from"./D9Ykl3eH.js";import{selectCurrentWorkspaceTabId as z,selectWorkspaceTabsHydrated as Q}from"./DujUyPvo.js";import{t as X}from"./C5TH9nNS.js";function Z(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function Ae(e){const t=e.filter(Z).map(s=>({agent:s,activity:k(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>x(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function ee(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function te(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?(r.role==="user"?G(r):j(r)).trim():"";return!t||ee(t)?c||L:c||t}const se="chief-of-staff",re=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function ve(e){const t=e?.trim();return t?`${T}
|
|
2
|
-
|
|
3
|
-
${t}`:T}const oe=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?B(s.hooks):[]}),ne=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),ye=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=K(t,s);return e.agentSubscriptionUI.entries[r]??q}),ae=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ce=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ie=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),We=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Te=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function le(e){return[...new Set(e.filter(Boolean))]}const Me=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of le(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!V(Y(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Ne=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ee=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=ie.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Le=o.createSelector(e=>{const t=z.select(e);if(!t||!Q.select(e))return[];const s=new Set;for(const r of X.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),P="pinned",de=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Oe(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>de)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function pe(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function D(e){return e.metadata?.specialist===se&&e.metadata?.chiefPromptVersion===re}function H(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:te(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:H(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Pe=o.createSelector(e=>e.sidebarNav.panelItem),Re=o.createSelector(e=>e.sidebarNav.onboardingActive),_e=o.createSelector(e=>e.sidebarNav.showCreateModal),De=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),He=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),U=o.createSelector(e=>M.select(e)?.capabilities.workspaceLabels===1),Ue=o.createSelector((e,t)=>w.select(e,t)?.label??null),xe=o.createSelector(e=>pe(N.select(e).map(t=>t.label))),ue=["id","label"],Be=o.createSelector((e,t)=>U.select(e)&&E.select(e,t,ue)!==null),ge=o.createSelector(e=>M.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),fe=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Fe=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),he=["id","autoArchiveDisabled"],qe=o.createSelector((e,t)=>{if(!ge.select(e)||!fe.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:E.select(e,t,he)!==null}),Ke=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>U.select(e)?N.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),je=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),Ve=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),Ye=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),$e=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Je=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),ze=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=ne.select(e,p)==="ready"?oe.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=$.select(e,p)==="ready"?J.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ae.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ce.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Qe=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),Se=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),me=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Xe=o.createSelector(e=>[...Se.select(e),...me.select(e)]),Ze=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),et=o.createSelector(e=>{const t=b(e).filter(s=>H(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Re as A,Pe as B,re as C,L as D,Ge as E,me as F,et as G,O as H,_e as I,Qe as J,Ne as K,Ee as L,We as M,Te as N,Fe as O,P,Ye as Q,$e as R,Ue as S,xe as T,Ve as U,Oe as V,de as W,se as a,p as b,ve as c,Z as d,Me as e,Ce as f,ae as g,Xe as h,R as i,ze as j,oe as k,ne as l,qe as m,Be as n,Je as o,Se as p,He as q,Ae as r,ye as s,De as t,Ze as u,ie as v,Le as w,U as x,Ke as y,je as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,s as r}from"../chunks/B9Y57c7j.js";export{o as load_css,r as start};
|