@dylanpiercey/work 0.0.70 → 0.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_DgDsZuoQ.js → _BfXE8Kjn.js} +191 -9
- package/dist/_DLxkSyzt.js +2 -0
- package/dist/{_B-dzDH9Z.js → _DXDmuFjC.js} +44 -44
- package/dist/{_AOPS87VY.js → _Dq5wZ9y2.js} +2 -2
- package/dist/index.mjs +331 -233
- package/dist/public/assets/{_BM3WaJrl2.js → _-G0Dx3t52.js} +1 -1
- package/dist/public/assets/_-G0Dx3t52.js.br +0 -0
- package/dist/public/assets/{_Ce5PUr__2.js → _B-xEEN4l2.js} +1 -1
- package/dist/public/assets/{_D1ZMPYoI2.js → _B0-ns0BU2.js} +1 -1
- package/dist/public/assets/_B0-ns0BU2.js.br +0 -0
- package/dist/public/assets/{_MFSKg2Wj.js → _B5x1OTTu.js} +1 -1
- package/dist/public/assets/_B5x1OTTu.js.br +0 -0
- package/dist/public/assets/{_DP-0321c.js → _B61wm226.js} +1 -1
- package/dist/public/assets/_B61wm226.js.br +0 -0
- package/dist/public/assets/{_vW-7Ai-v.js → _B7OMjNs8.js} +1 -1
- package/dist/public/assets/_B7OMjNs8.js.br +0 -0
- package/dist/public/assets/{_DRzPr12K.js → _B7vLPjLl.js} +1 -1
- package/dist/public/assets/_B7vLPjLl.js.br +0 -0
- package/dist/public/assets/{_ChzC-M8b.js → _B7vYPsWj.js} +1 -1
- package/dist/public/assets/_B7vYPsWj.js.br +0 -0
- package/dist/public/assets/{_B7R_FSi52.js → _BBWg58GJ2.js} +1 -1
- package/dist/public/assets/_BBWg58GJ2.js.br +0 -0
- package/dist/public/assets/{_CP9QfGt02.js → _BE8lov_p2.js} +1 -1
- package/dist/public/assets/_BE8lov_p2.js.br +0 -0
- package/dist/public/assets/{_astyk4W8.js → _BGhBZpWT.js} +1 -1
- package/dist/public/assets/_BGhBZpWT.js.br +0 -0
- package/dist/public/assets/{_sRXHGNUn.js → _BKTem58K.js} +1 -1
- package/dist/public/assets/_BKTem58K.js.br +0 -0
- package/dist/public/assets/{_B_hrJVb02.js → _BLZtgkbJ2.js} +1 -1
- package/dist/public/assets/_BLZtgkbJ2.js.br +0 -0
- package/dist/public/assets/{_Ve3NFPam2.js → _BOQrg7gU2.js} +1 -1
- package/dist/public/assets/_BOQrg7gU2.js.br +0 -0
- package/dist/public/assets/{_C178aaRj.js → _BRzgmRS2.js} +1 -1
- package/dist/public/assets/_BRzgmRS2.js.br +0 -0
- package/dist/public/assets/{_CCwzIksI.js → _BSSf-PYx.js} +1 -1
- package/dist/public/assets/_BSSf-PYx.js.br +0 -0
- package/dist/public/assets/{_2jwfRZNX2.js → _BTXq-nPh2.js} +1 -1
- package/dist/public/assets/_BTXq-nPh2.js.br +0 -0
- package/dist/public/assets/{_Cnkj8G8x.js → _BUs7NMrG.js} +1 -1
- package/dist/public/assets/_BUs7NMrG.js.br +0 -0
- package/dist/public/assets/{_CieMd70P.js → _BXzRffYj.js} +1 -1
- package/dist/public/assets/_BXzRffYj.js.br +0 -0
- package/dist/public/assets/{_DK9AWQX8.js → _B_OOMZsL.js} +1 -1
- package/dist/public/assets/_B_OOMZsL.js.br +0 -0
- package/dist/public/assets/{_DFXWJj8u.js → _BdVRHt6-.js} +1 -1
- package/dist/public/assets/_BdVRHt6-.js.br +0 -0
- package/dist/public/assets/{_CZSK2PpM2.js → _Bj5u_Vnk2.js} +1 -1
- package/dist/public/assets/_Bj5u_Vnk2.js.br +0 -0
- package/dist/public/assets/{_vJB03LvX2.js → _BkrDGdOx2.js} +1 -1
- package/dist/public/assets/_BkrDGdOx2.js.br +0 -0
- package/dist/public/assets/{_DsxkxJ9M.js → _Bohi4mUp.js} +1 -1
- package/dist/public/assets/_Bohi4mUp.js.br +0 -0
- package/dist/public/assets/{_DgW7RRes2.js → _BpJS3XpY2.js} +1 -1
- package/dist/public/assets/_BpJS3XpY2.js.br +0 -0
- package/dist/public/assets/_BqE48K5c.js +85 -0
- package/dist/public/assets/_BqE48K5c.js.br +0 -0
- package/dist/public/assets/{_BVOP1Gxw2.js → _C-uc9hBA2.js} +1 -1
- package/dist/public/assets/_C-uc9hBA2.js.br +0 -0
- package/dist/public/assets/{_CF4WUrOg2.js → _C41DPP-z2.js} +1 -1
- package/dist/public/assets/_C41DPP-z2.js.br +0 -0
- package/dist/public/assets/{_DoD7JLuh2.js → _C5VLAw4k2.js} +1 -1
- package/dist/public/assets/_C5VLAw4k2.js.br +0 -0
- package/dist/public/assets/{_D5nI5TU0.js → _C82GEkZ4.js} +1 -1
- package/dist/public/assets/_C82GEkZ4.js.br +0 -0
- package/dist/public/assets/{_BriDrk1l.js → _CH2m75uw.js} +1 -1
- package/dist/public/assets/_CH2m75uw.js.br +0 -0
- package/dist/public/assets/{_C8xwneiR.js → _CNClKCWp.js} +1 -1
- package/dist/public/assets/_CNClKCWp.js.br +0 -0
- package/dist/public/assets/{_DsU-Nm-J.js → _COZ91m9B.js} +1 -1
- package/dist/public/assets/_COZ91m9B.js.br +0 -0
- package/dist/public/assets/{_DSW7pXqz.js → _CTQouXRe.js} +1 -1
- package/dist/public/assets/_CTQouXRe.js.br +0 -0
- package/dist/public/assets/{_uCHmU2W8.js → _CV60RHGa.js} +1 -1
- package/dist/public/assets/_CV60RHGa.js.br +0 -0
- package/dist/public/assets/{_BUuMdUVD.js → _CWUF1FpI.js} +1 -1
- package/dist/public/assets/_CWUF1FpI.js.br +0 -0
- package/dist/public/assets/{_B1dK1Qzq2.js → _CYgKydU62.js} +1 -1
- package/dist/public/assets/_CYgKydU62.js.br +0 -0
- package/dist/public/assets/{_DkIPVGH_2.js → _CfjckiVM2.js} +1 -1
- package/dist/public/assets/_CfjckiVM2.js.br +0 -0
- package/dist/public/assets/{_SYogbY_o.js → _ChkNS16f.js} +1 -1
- package/dist/public/assets/_ChkNS16f.js.br +0 -0
- package/dist/public/assets/{_D70dHsK5.js → _CifL_Zbh.js} +1 -1
- package/dist/public/assets/_CifL_Zbh.js.br +0 -0
- package/dist/public/assets/{_NUfAwX-92.js → _CivjiEX92.js} +1 -1
- package/dist/public/assets/_CivjiEX92.js.br +0 -0
- package/dist/public/assets/{_DIIVUEO6.js → _Clv6arvL.js} +1 -1
- package/dist/public/assets/_Clv6arvL.js.br +0 -0
- package/dist/public/assets/{_DwMRIbNQ2.js → _CnIE6_qB2.js} +1 -1
- package/dist/public/assets/_CnIE6_qB2.js.br +0 -0
- package/dist/public/assets/{_BhaVokkI.js → _Csmr2y3G.js} +1 -1
- package/dist/public/assets/_Csmr2y3G.js.br +0 -0
- package/dist/public/assets/{_BnGCBcwF2.js → _CuFX3MHy2.js} +1 -1
- package/dist/public/assets/{_CN37KCcd.js → _D-SthL18.js} +1 -1
- package/dist/public/assets/{_DeFFMAX_.js → _D1XJzdSj.js} +1 -1
- package/dist/public/assets/_D1XJzdSj.js.br +0 -0
- package/dist/public/assets/{_Dph0mXCv.js → _D5nVZek7.js} +1 -1
- package/dist/public/assets/_D5nVZek7.js.br +0 -0
- package/dist/public/assets/{_CphuLRQC.js → _DAi07M7i.js} +1 -1
- package/dist/public/assets/_DAi07M7i.js.br +10 -0
- package/dist/public/assets/{_dfXi0jTI.js → _DFAhtXzm.js} +1 -1
- package/dist/public/assets/_DFAhtXzm.js.br +0 -0
- package/dist/public/assets/{_DJSAaBeq.js → _DHelzj06.js} +1 -1
- package/dist/public/assets/_DHelzj06.js.br +0 -0
- package/dist/public/assets/{_C09f6XJ4.js → _DPL2ZCgQ.js} +1 -1
- package/dist/public/assets/_DPL2ZCgQ.js.br +5 -0
- package/dist/public/assets/{_B41uLDvj.js → _DX2Uab-U.js} +1 -1
- package/dist/public/assets/_DX2Uab-U.js.br +0 -0
- package/dist/public/assets/{_CDrCRgYz2.js → _Dixad7y-2.js} +1 -1
- package/dist/public/assets/_Dixad7y-2.js.br +0 -0
- package/dist/public/assets/{_Dg2DUGem2.js → _DjVNZ4eK2.js} +1 -1
- package/dist/public/assets/_DjVNZ4eK2.js.br +0 -0
- package/dist/public/assets/{_IoBnaDj6.js → _DmLXUxIk.js} +1 -1
- package/dist/public/assets/_DmLXUxIk.js.br +0 -0
- package/dist/public/assets/{_De1DhN-1.js → _DpCy3kYU.js} +5 -5
- package/dist/public/assets/_DpCy3kYU.js.br +0 -0
- package/dist/public/assets/{_CZAtZHwK.js → _DpENgSEx.js} +1 -1
- package/dist/public/assets/_DpENgSEx.js.br +0 -0
- package/dist/public/assets/{_Dig0hTtr.js → _Drt_09zp.js} +1 -1
- package/dist/public/assets/_Drt_09zp.js.br +0 -0
- package/dist/public/assets/{_CxfSIWfr.js → _DshD8Ycc.js} +1 -1
- package/dist/public/assets/_DshD8Ycc.js.br +0 -0
- package/dist/public/assets/{_BpwxxOzh.js → _DvcpKhXL.js} +1 -1
- package/dist/public/assets/_DvcpKhXL.js.br +0 -0
- package/dist/public/assets/{_CcaAXEPy.js → _Dx6kLICJ.js} +1 -1
- package/dist/public/assets/_Dx6kLICJ.js.br +0 -0
- package/dist/public/assets/{_BqzmoFMM.js → _KFiFSJT8.js} +1 -1
- package/dist/public/assets/_KFiFSJT8.js.br +0 -0
- package/dist/public/assets/{_C5McqdVq.js → _LdAm0jkh.js} +1 -1
- package/dist/public/assets/_LdAm0jkh.js.br +0 -0
- package/dist/public/assets/{_DQjgTNLT2.js → _QPczAdMm2.js} +1 -1
- package/dist/public/assets/_QPczAdMm2.js.br +0 -0
- package/dist/public/assets/{_yaHB4Z8B.js → _RF9fz9Iu.js} +1 -1
- package/dist/public/assets/_RF9fz9Iu.js.br +0 -0
- package/dist/public/assets/{_BsZkEJaX.js → _UxrF5q9P.js} +1 -1
- package/dist/public/assets/_UxrF5q9P.js.br +0 -0
- package/dist/public/assets/{_CE_OuXoU.js → _Wxr28jKW.js} +1 -1
- package/dist/public/assets/_Wxr28jKW.js.br +0 -0
- package/dist/public/assets/{_eH0Yg3S22.js → _Y-mhaywp2.js} +1 -1
- package/dist/public/assets/_Y-mhaywp2.js.br +0 -0
- package/dist/public/assets/{_DBKHnCnH.js → _c9sBllWt.js} +1 -1
- package/dist/public/assets/_c9sBllWt.js.br +0 -0
- package/dist/public/assets/{_okxblAux.js → _ckRann09.js} +1 -1
- package/dist/public/assets/_ckRann09.js.br +0 -0
- package/dist/public/assets/{_DThR70Xq.js → _f4WTM4Kz.js} +1 -1
- package/dist/public/assets/_f4WTM4Kz.js.br +0 -0
- package/dist/public/assets/{_CX7KVAVC2.js → _sUX0JPgf2.js} +1 -1
- package/dist/public/assets/_sUX0JPgf2.js.br +0 -0
- package/dist/public/assets/{_4Srbdaf8.js → _snCcB5_5.js} +1 -1
- package/dist/public/assets/_snCcB5_5.js.br +0 -0
- package/dist/public/assets/{_BRtDdwZC.js → _vWJVVrmZ.js} +1 -1
- package/dist/public/assets/_vWJVVrmZ.js.br +0 -0
- package/dist/public/assets/{_DhRqr_Rq.js → _wgItEK0c.js} +1 -1
- package/dist/public/assets/_wgItEK0c.js.br +0 -0
- package/dist/public/assets/{app-page-B-QPv6NA.css → app-page-CAw2YLYv.css} +1 -1
- package/dist/public/assets/app-page-CAw2YLYv.css.br +0 -0
- package/dist/public/assets/{diff-view-DM1slFkP.css → diff-view-DCB49VYM.css} +1 -1
- package/dist/public/assets/diff-view-DCB49VYM.css.br +0 -0
- package/dist/public/assets/new-C9qRFMyu.js +1 -0
- package/dist/public/assets/settings-C9qRFMyu.js +1 -0
- package/dist/public/assets/w-C9qRFMyu.js +1 -0
- package/dist/public/assets/w._-C9qRFMyu.js +1 -0
- package/dist/public/assets/w._-phpTDxP7.js +1 -0
- package/package.json +1 -1
- package/dist/_xZfpJdQE.js +0 -2
- package/dist/public/assets/_2jwfRZNX2.js.br +0 -0
- package/dist/public/assets/_4Srbdaf8.js.br +0 -0
- package/dist/public/assets/_B1dK1Qzq2.js.br +0 -0
- package/dist/public/assets/_B41uLDvj.js.br +0 -0
- package/dist/public/assets/_B7R_FSi52.js.br +0 -0
- package/dist/public/assets/_BM3WaJrl2.js.br +0 -0
- package/dist/public/assets/_BRtDdwZC.js.br +0 -0
- package/dist/public/assets/_BUuMdUVD.js.br +0 -0
- package/dist/public/assets/_BVOP1Gxw2.js.br +0 -0
- package/dist/public/assets/_B_hrJVb02.js.br +0 -0
- package/dist/public/assets/_BhaVokkI.js.br +0 -0
- package/dist/public/assets/_BpwxxOzh.js.br +0 -0
- package/dist/public/assets/_BqzmoFMM.js.br +0 -0
- package/dist/public/assets/_BriDrk1l.js.br +0 -0
- package/dist/public/assets/_BsZkEJaX.js.br +0 -0
- package/dist/public/assets/_C09f6XJ4.js.br +0 -0
- package/dist/public/assets/_C178aaRj.js.br +0 -0
- package/dist/public/assets/_C5McqdVq.js.br +0 -0
- package/dist/public/assets/_C8xwneiR.js.br +0 -0
- package/dist/public/assets/_CCwzIksI.js.br +0 -0
- package/dist/public/assets/_CDrCRgYz2.js.br +0 -0
- package/dist/public/assets/_CE_OuXoU.js.br +0 -0
- package/dist/public/assets/_CF4WUrOg2.js.br +0 -0
- package/dist/public/assets/_CP9QfGt02.js.br +0 -0
- package/dist/public/assets/_CX7KVAVC2.js.br +0 -0
- package/dist/public/assets/_CZAtZHwK.js.br +0 -0
- package/dist/public/assets/_CZSK2PpM2.js.br +0 -0
- package/dist/public/assets/_CcaAXEPy.js.br +0 -0
- package/dist/public/assets/_ChzC-M8b.js.br +0 -0
- package/dist/public/assets/_CieMd70P.js.br +0 -0
- package/dist/public/assets/_CktwGNoV.js +0 -85
- package/dist/public/assets/_CktwGNoV.js.br +0 -0
- package/dist/public/assets/_Cnkj8G8x.js.br +0 -0
- package/dist/public/assets/_CphuLRQC.js.br +0 -0
- package/dist/public/assets/_CxfSIWfr.js.br +0 -0
- package/dist/public/assets/_D1ZMPYoI2.js.br +0 -0
- package/dist/public/assets/_D5nI5TU0.js.br +0 -0
- package/dist/public/assets/_D70dHsK5.js.br +0 -0
- package/dist/public/assets/_DBKHnCnH.js.br +0 -0
- package/dist/public/assets/_DFXWJj8u.js.br +0 -0
- package/dist/public/assets/_DIIVUEO6.js.br +0 -0
- package/dist/public/assets/_DJSAaBeq.js.br +0 -0
- package/dist/public/assets/_DK9AWQX8.js.br +0 -0
- package/dist/public/assets/_DP-0321c.js.br +0 -0
- package/dist/public/assets/_DQjgTNLT2.js.br +0 -0
- package/dist/public/assets/_DRzPr12K.js.br +0 -0
- package/dist/public/assets/_DSW7pXqz.js.br +0 -0
- package/dist/public/assets/_DThR70Xq.js.br +0 -0
- package/dist/public/assets/_De1DhN-1.js.br +0 -0
- package/dist/public/assets/_DeFFMAX_.js.br +0 -0
- package/dist/public/assets/_Dg2DUGem2.js.br +0 -0
- package/dist/public/assets/_DgW7RRes2.js.br +0 -0
- package/dist/public/assets/_DhRqr_Rq.js.br +0 -0
- package/dist/public/assets/_Dig0hTtr.js.br +0 -0
- package/dist/public/assets/_DkIPVGH_2.js.br +0 -0
- package/dist/public/assets/_DoD7JLuh2.js.br +0 -0
- package/dist/public/assets/_Dph0mXCv.js.br +0 -0
- package/dist/public/assets/_DsU-Nm-J.js.br +0 -0
- package/dist/public/assets/_DsxkxJ9M.js.br +0 -0
- package/dist/public/assets/_DwMRIbNQ2.js.br +0 -0
- package/dist/public/assets/_IoBnaDj6.js.br +0 -0
- package/dist/public/assets/_MFSKg2Wj.js.br +0 -0
- package/dist/public/assets/_NUfAwX-92.js.br +0 -0
- package/dist/public/assets/_SYogbY_o.js.br +0 -0
- package/dist/public/assets/_Ve3NFPam2.js.br +0 -0
- package/dist/public/assets/_astyk4W8.js.br +0 -0
- package/dist/public/assets/_dfXi0jTI.js.br +0 -0
- package/dist/public/assets/_eH0Yg3S22.js.br +0 -0
- package/dist/public/assets/_okxblAux.js.br +0 -0
- package/dist/public/assets/_sRXHGNUn.js.br +0 -0
- package/dist/public/assets/_uCHmU2W8.js.br +0 -0
- package/dist/public/assets/_vJB03LvX2.js.br +0 -0
- package/dist/public/assets/_vW-7Ai-v.js.br +0 -0
- package/dist/public/assets/_yaHB4Z8B.js.br +0 -0
- package/dist/public/assets/app-page-B-QPv6NA.css.br +0 -0
- package/dist/public/assets/diff-view-DM1slFkP.css.br +0 -0
- package/dist/public/assets/new-CxcQDhex.js +0 -1
- package/dist/public/assets/settings-CxcQDhex.js +0 -1
- package/dist/public/assets/w-CxcQDhex.js +0 -1
- package/dist/public/assets/w._-CuOk-xxd.js +0 -1
- package/dist/public/assets/w._-CxcQDhex.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./
|
|
2
|
+
import { $ as all, A as saveSubscription, B as preferredAgent, C as setAgentPhase, D as summaryFromTranscript, E as summaryFromHookPayload, F as agentChoices, G as ghKnownHosts, H as setPref, I as allPrefs, J as which, K as miseVersions, L as disabledAgents, M as subscribe, N as subscriberCount, O as deleteSubscription, P as subscriberJoins, Q as toolById, R as enabledAgents, S as reasonFromHookPayload, T as setSessionViewers, U as setSetting, V as setDisabledAgents, W as doctor, X as TOOLS, Y as DEFAULT_GITHUB_HOST, Z as agentById, _ as tmuxName, a as ensureTmuxServer, at as git, b as clearAgentPhase, c as killWorkspaceSessions, ct as config, d as newSessionArgs, et as db, g as sessionStates, h as sendToSession, i as disposeSessions, it as gh, j as publish, k as pushPublicKey, l as listSessions, m as renameSession, n as clearTmuxStarted, nt as workspacePath, o as getSession, ot as run, p as panePids, q as setupPath, r as createSession, rt as TMUX_SOCKET, s as killSession, st as tmux, t as cleanEnv, tt as get, u as markTmuxStarted, v as tmuxWasStarted, w as setScrapedPhase, x as ignoreHookPayload, y as reportsWorking, z as getSetting } from "./_BfXE8Kjn.js";
|
|
3
|
+
import { $ as _flush_head, A as metaTrunc, B as _attr_select_value, C as setPrimaryHost, Ct as _try, D as iconBtnRow, Dt as writeScope, Et as withPageAssets, F as _attr_class, G as _content, H as _attrs, K as _content_resume, L as _attr_input_value, M as tone, N as $global, O as iconBtnXs, P as _attr, Q as _existing_scope, R as _attr_option_value, S as repoWebUrl$1, St as _trailers, T as btnSm, Tt as attrTag, U as _attrs_partial, V as _attr_style, W as _await, X as _el_resume, Y as _el_read_error, Z as _escape, _ as sectionCount$1, _t as _show_end, at as _if, b as icon_base_default, bt as _template, c as sideNavOpen, ct as _resume_branch, d as rankRepos, dt as _scope_with_id, et as _for_of, f as icon_search_default, ft as _script, g as row, gt as _set_serialize_reason, h as iconBtn$2, ht as _serialize_if, it as _id, j as phase, k as inputLg, l as workspaceTab, lt as _scope_id, m as icon_refresh_default, mt as _serialize_guard, n as findInput, nt as _hoist_read_error, ot as _peek_scope_id, p as icon_back_default, pt as _sep, q as _dynamic_tag, r as icon_sidebar_default, rt as _html, s as setWorkspaceTab, st as _resume, t as findIconBtn, tt as _hoist, ut as _scope_reason, v as toast_default, vt as _show_start, w as btnLg, wt as _var, x as repoLabel, xt as _to_text, y as icon_xmark_default, yt as _subscribe, z as _attr_or } from "./_Dq5wZ9y2.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3505,7 +3505,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3505
3505
|
const $childScope = _peek_scope_id();
|
|
3506
3506
|
modal_view_default({
|
|
3507
3507
|
label: input.label,
|
|
3508
|
-
class: "
|
|
3508
|
+
class: "_cq",
|
|
3509
3509
|
open: input.open,
|
|
3510
3510
|
openChange: input.openChange,
|
|
3511
3511
|
"aria-labelledby": titleId,
|
|
@@ -3528,7 +3528,7 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
3528
3528
|
content: _content("p6", () => {
|
|
3529
3529
|
_scope_reason();
|
|
3530
3530
|
const $scope2_id = _scope_id();
|
|
3531
|
-
_html(`<h2${_attr_class("
|
|
3531
|
+
_html(`<h2${_attr_class("_cr")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
3532
3532
|
value = _new_value;
|
|
3533
3533
|
}, "p0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
3534
3534
|
_script($scope2_id, "p4");
|
|
@@ -4501,8 +4501,8 @@ var curBase = "_bN _Q _P";
|
|
|
4501
4501
|
var archived = "_bR _bp";
|
|
4502
4502
|
var archivedHint = "_bS _P";
|
|
4503
4503
|
var archivedCard = "_bT _bu";
|
|
4504
|
-
var resultBranch = "
|
|
4505
|
-
var branchInput = "
|
|
4504
|
+
var resultBranch = "_cy _W _g";
|
|
4505
|
+
var branchInput = "_cD _S _R";
|
|
4506
4506
|
//#endregion
|
|
4507
4507
|
//#region src/tags/repo-picker.marko
|
|
4508
4508
|
var api$5;
|
|
@@ -4552,7 +4552,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4552
4552
|
input.onError?.(String(err.message || err));
|
|
4553
4553
|
}
|
|
4554
4554
|
}, "q5", $scope0_id);
|
|
4555
|
-
_html(`<div${_attr_class("
|
|
4555
|
+
_html(`<div${_attr_class("_cs")}><label${_attr_class("_T")}>`);
|
|
4556
4556
|
icon_search_default({
|
|
4557
4557
|
size: 14,
|
|
4558
4558
|
class: "_U"
|
|
@@ -4572,19 +4572,19 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4572
4572
|
_if(() => {
|
|
4573
4573
|
if (results.length) {
|
|
4574
4574
|
const $scope2_id = _scope_id();
|
|
4575
|
-
_html(`<ul${_attr_class("
|
|
4575
|
+
_html(`<ul${_attr_class("_ct")}>`);
|
|
4576
4576
|
_for_of(results, (repo, i) => {
|
|
4577
4577
|
const $scope3_id = _scope_id();
|
|
4578
|
-
_html(`<li><div${_attr_class(["
|
|
4578
|
+
_html(`<li><div${_attr_class(["_cv", { ["_cu"]: i === highlight }])}><button${_attr_class("_cw")}>`);
|
|
4579
4579
|
icon_plus_default({
|
|
4580
4580
|
size: 12,
|
|
4581
|
-
class: "
|
|
4581
|
+
class: "_cB"
|
|
4582
4582
|
});
|
|
4583
|
-
_html(`<span${_attr_class("
|
|
4583
|
+
_html(`<span${_attr_class("_cC")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope3_id, "e")}</span></button>${_el_resume($scope3_id, "b")}<button${_attr_class([resultBranch, { ["_cx"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>⎇</button>${_el_resume($scope3_id, "f")}</div>${_el_resume($scope3_id, "a")}`);
|
|
4584
4584
|
_if(() => {
|
|
4585
4585
|
if (branchesFor === repo.nameWithOwner) {
|
|
4586
4586
|
const $scope4_id = _scope_id();
|
|
4587
|
-
_html(`<div${_attr_class("
|
|
4587
|
+
_html(`<div${_attr_class("_cz")}>`);
|
|
4588
4588
|
_if(() => {
|
|
4589
4589
|
if (!branches) {
|
|
4590
4590
|
const $scope9_id = _scope_id();
|
|
@@ -4605,10 +4605,10 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
4605
4605
|
}
|
|
4606
4606
|
}, $scope5_id, "a", 1, 1, 1, 0, 1);
|
|
4607
4607
|
const shown = (branchFilter ? branches.filter((b) => b.toLowerCase().includes(branchFilter.toLowerCase())) : branches).slice(0, 12);
|
|
4608
|
-
_html(`<ul${_attr_class("
|
|
4608
|
+
_html(`<ul${_attr_class("_cA")}>`);
|
|
4609
4609
|
_for_of(shown, (branch) => {
|
|
4610
4610
|
const $scope7_id = _scope_id();
|
|
4611
|
-
_html(`<li><button${_attr_class(["
|
|
4611
|
+
_html(`<li><button${_attr_class(["_cw", "_cE"])}><span${_attr_class(["_cC", "_u"])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
4612
4612
|
_script($scope7_id, "q7");
|
|
4613
4613
|
writeScope($scope7_id, { e: branch });
|
|
4614
4614
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -5041,8 +5041,8 @@ function activeAgent(session) {
|
|
|
5041
5041
|
const command = session.state?.command?.trim();
|
|
5042
5042
|
return command && agentFromCommand(command) || session.agent;
|
|
5043
5043
|
}
|
|
5044
|
-
var iconBtn$1 = "
|
|
5045
|
-
var navToggle = "
|
|
5044
|
+
var iconBtn$1 = "_dd _g";
|
|
5045
|
+
var navToggle = "_di _g";
|
|
5046
5046
|
_template("F", (input) => {
|
|
5047
5047
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
5048
5048
|
const $scope0_id = _scope_id();
|
|
@@ -5090,7 +5090,18 @@ var rowIcon = "_ga _W _g";
|
|
|
5090
5090
|
var close = "_gb _W _g _Z";
|
|
5091
5091
|
//#endregion
|
|
5092
5092
|
//#region src/styles/session-pop.css.ts
|
|
5093
|
-
var sessionPop = "
|
|
5093
|
+
var sessionPop = "_fY _1";
|
|
5094
|
+
//#endregion
|
|
5095
|
+
//#region src/client/usage.ts
|
|
5096
|
+
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
5097
|
+
* when the provider reports per account, else the family's (`codex`). */
|
|
5098
|
+
function usageFor(agentId, usage) {
|
|
5099
|
+
const rows = usage?.agents || [];
|
|
5100
|
+
const exact = rows.find((r) => r.agent === agentId);
|
|
5101
|
+
if (exact) return exact;
|
|
5102
|
+
const family = agentFamily(agentId);
|
|
5103
|
+
return rows.find((r) => r.agent === family) ?? null;
|
|
5104
|
+
}
|
|
5094
5105
|
//#endregion
|
|
5095
5106
|
//#region src/tags/icons/icon-diff.marko
|
|
5096
5107
|
var icon_diff_default = _template("I", (input) => {
|
|
@@ -5126,6 +5137,49 @@ var icon_manage_default = _template("O", (input) => {
|
|
|
5126
5137
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5127
5138
|
});
|
|
5128
5139
|
//#endregion
|
|
5140
|
+
//#region src/tags/usage-pcts.marko
|
|
5141
|
+
function pctText(pct) {
|
|
5142
|
+
const rounded = Math.round(pct);
|
|
5143
|
+
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
5144
|
+
}
|
|
5145
|
+
var usage_pcts_default = _template("A", (input) => {
|
|
5146
|
+
const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_agent__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_agent__OR__input_class = _serialize_if($scope0_reason, 0);
|
|
5147
|
+
const $scope0_id = _scope_id();
|
|
5148
|
+
const agent = input.agent;
|
|
5149
|
+
const windows = agent.windows || [];
|
|
5150
|
+
_if(() => {
|
|
5151
|
+
if (windows.length) {
|
|
5152
|
+
const $scope1_id = _scope_id();
|
|
5153
|
+
_html(`<span${_attr_class([
|
|
5154
|
+
"_eF",
|
|
5155
|
+
input.class,
|
|
5156
|
+
{ ["_eG"]: agent.stale_seconds != null }
|
|
5157
|
+
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
5158
|
+
_for_of(windows, (win$1, i) => {
|
|
5159
|
+
const $scope2_id = _scope_id();
|
|
5160
|
+
_if(() => {
|
|
5161
|
+
if (i) {
|
|
5162
|
+
const $scope3_id = _scope_id();
|
|
5163
|
+
_html(`<span${_attr_class("_eK")} aria-hidden=true>·</span>`);
|
|
5164
|
+
$si__input_agent && writeScope($scope3_id, {});
|
|
5165
|
+
return 0;
|
|
5166
|
+
}
|
|
5167
|
+
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5168
|
+
_html(`<span${_attr_class("_eH")}><span${_attr_class("_eI")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eJ", win$1.used_percent >= 90 ? "_cY" : win$1.used_percent >= 70 ? "_cX" : win$1.used_percent >= 40 ? "_cW" : "_cV"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
5169
|
+
$si__input_agent && writeScope($scope2_id, {});
|
|
5170
|
+
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
5171
|
+
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
5172
|
+
return 0;
|
|
5173
|
+
}
|
|
5174
|
+
}, $scope0_id, "a", $sg__input_agent__OR__input_class, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
5175
|
+
$si__input_agent__OR__input_class && writeScope($scope0_id, {
|
|
5176
|
+
e: $si__input_agent && input.class,
|
|
5177
|
+
h: agent?.stale_seconds,
|
|
5178
|
+
i: $si__input_agent && agent?.note,
|
|
5179
|
+
j: $si__input_agent && windows
|
|
5180
|
+
});
|
|
5181
|
+
});
|
|
5182
|
+
//#endregion
|
|
5129
5183
|
//#region src/tags/icons/icon-edit.marko
|
|
5130
5184
|
var icon_edit_default = _template("K", (input) => {
|
|
5131
5185
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
@@ -5142,12 +5196,12 @@ var icon_edit_default = _template("K", (input) => {
|
|
|
5142
5196
|
});
|
|
5143
5197
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5144
5198
|
});
|
|
5145
|
-
var prChip = "
|
|
5146
|
-
var portChip = "
|
|
5199
|
+
var prChip = "_gy _p _gx";
|
|
5200
|
+
var portChip = "_gz _p _gx";
|
|
5147
5201
|
var prState = {
|
|
5148
|
-
open: "
|
|
5149
|
-
merged: "
|
|
5150
|
-
closed: "
|
|
5202
|
+
open: "_gD",
|
|
5203
|
+
merged: "_gE",
|
|
5204
|
+
closed: "_gF"
|
|
5151
5205
|
};
|
|
5152
5206
|
//#endregion
|
|
5153
5207
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -5195,7 +5249,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5195
5249
|
const name = repo.full_name.split("/").at(-1);
|
|
5196
5250
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
5197
5251
|
}, "t2", $scope1_id);
|
|
5198
|
-
_html(`<div${_attr_class("
|
|
5252
|
+
_html(`<div${_attr_class("_gw")}>`);
|
|
5199
5253
|
_for_of(repos, (repo) => {
|
|
5200
5254
|
const $scope2_id = _scope_id();
|
|
5201
5255
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -5211,11 +5265,11 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5211
5265
|
[prState.merged]: pr.state === "MERGED",
|
|
5212
5266
|
[prState.closed]: pr.state === "CLOSED"
|
|
5213
5267
|
}
|
|
5214
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
5268
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_gA", { ["_gH"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
5215
5269
|
_if(() => {
|
|
5216
5270
|
if (open) {
|
|
5217
5271
|
const $scope4_id = _scope_id();
|
|
5218
|
-
_html(`<a${_attr_class(["
|
|
5272
|
+
_html(`<a${_attr_class(["_gA", "_gB"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
5219
5273
|
icon_diff_default({ size: 12 });
|
|
5220
5274
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
5221
5275
|
_serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
|
|
@@ -5223,9 +5277,9 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5223
5277
|
} else {
|
|
5224
5278
|
const $scope6_id = _scope_id();
|
|
5225
5279
|
_html(`<button type=button${_attr_class([
|
|
5226
|
-
"
|
|
5227
|
-
"
|
|
5228
|
-
"
|
|
5280
|
+
"_gA",
|
|
5281
|
+
"_gB",
|
|
5282
|
+
"_gC"
|
|
5229
5283
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
5230
5284
|
icon_xmark_default({ size: 12 });
|
|
5231
5285
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -5250,10 +5304,10 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5250
5304
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
5251
5305
|
_for_of(ports, (p) => {
|
|
5252
5306
|
const $scope5_id = _scope_id();
|
|
5253
|
-
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
5254
|
-
"
|
|
5255
|
-
"
|
|
5256
|
-
"
|
|
5307
|
+
_html(`<span${_attr_class(["_p", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_gA", "_gG"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
5308
|
+
"_gA",
|
|
5309
|
+
"_gB",
|
|
5310
|
+
"_gC",
|
|
5257
5311
|
{ ["_n"]: armedPid === p.pid }
|
|
5258
5312
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
5259
5313
|
icon_xmark_default({ size: 12 });
|
|
@@ -5292,7 +5346,7 @@ var side_nav_chips_default = _template("t", (input) => {
|
|
|
5292
5346
|
//#endregion
|
|
5293
5347
|
//#region src/tags/side-nav-item.marko
|
|
5294
5348
|
var side_nav_item_default = _template("u", (input) => {
|
|
5295
|
-
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason,
|
|
5349
|
+
const $scope0_reason = _scope_reason(), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_sessions = _serialize_guard($scope0_reason, 24), $si__input_sessions = _serialize_if($scope0_reason, 24), $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_if($scope0_reason, 10), $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_current = _serialize_if($scope0_reason, 21), $sg__input_page = _serialize_guard($scope0_reason, 22), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 2), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_rail = _serialize_guard($scope0_reason, 23), $si__input_rail = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 26), $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 13), $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 9), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 12), $si__input_rail__OR__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 4), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_page = _serialize_if($scope0_reason, 22), $si__input_railPop = _serialize_if($scope0_reason, 28);
|
|
5296
5350
|
const $scope0_id = _scope_id();
|
|
5297
5351
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
5298
5352
|
const $input_index__closures = /* @__PURE__ */ new Set();
|
|
@@ -5302,14 +5356,16 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5302
5356
|
const $input_onNewSession__closures = /* @__PURE__ */ new Set();
|
|
5303
5357
|
const $input_onReview__closures = /* @__PURE__ */ new Set();
|
|
5304
5358
|
const $input_managing__closures = /* @__PURE__ */ new Set();
|
|
5359
|
+
const $openPlan__closures = /* @__PURE__ */ new Set();
|
|
5305
5360
|
const $renameValue__closures = /* @__PURE__ */ new Set();
|
|
5306
5361
|
const $armedKill__closures = /* @__PURE__ */ new Set();
|
|
5362
|
+
const $openSess_id__closures = /* @__PURE__ */ new Set();
|
|
5307
5363
|
const $input_currentTab__closures = /* @__PURE__ */ new Set();
|
|
5308
5364
|
const $renamingId__closures = /* @__PURE__ */ new Set();
|
|
5309
|
-
const $
|
|
5365
|
+
const $input_page__closures = /* @__PURE__ */ new Set();
|
|
5310
5366
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
5367
|
+
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
5311
5368
|
const $input_railPop__closures = /* @__PURE__ */ new Set();
|
|
5312
|
-
const $input_page__closures = /* @__PURE__ */ new Set();
|
|
5313
5369
|
let armedKill = null;
|
|
5314
5370
|
const armBox = { timer: 0 };
|
|
5315
5371
|
const arm = _resume((id) => {
|
|
@@ -5326,6 +5382,14 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5326
5382
|
renamingId = null;
|
|
5327
5383
|
input.onRenameSession?.(s, renameValue.trim());
|
|
5328
5384
|
}, "u2", $scope0_id);
|
|
5385
|
+
let usage = null;
|
|
5386
|
+
const openSess = (() => {
|
|
5387
|
+
if (!input.current || input.page || input.rail) return null;
|
|
5388
|
+
const list = input.sessions || [];
|
|
5389
|
+
const s = list.find((x) => x.id === input.currentTab) ?? (list.length === 1 ? list[0] : null);
|
|
5390
|
+
return s && s.agent !== "shell" ? s : null;
|
|
5391
|
+
})();
|
|
5392
|
+
const openPlan = openSess ? usageFor(openSess.agent, usage) : null;
|
|
5329
5393
|
const ws$1 = input.workspaces.find((w) => w.id === input.workspaceId);
|
|
5330
5394
|
_if(() => {
|
|
5331
5395
|
if (ws$1) {
|
|
@@ -5335,12 +5399,12 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5335
5399
|
_if(() => {
|
|
5336
5400
|
if (input.rail) {
|
|
5337
5401
|
const $scope2_id = _scope_id();
|
|
5338
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_f0"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason,
|
|
5402
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_f0"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
5339
5403
|
"_w",
|
|
5340
5404
|
phase[dot],
|
|
5341
5405
|
"_f3"
|
|
5342
|
-
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason,
|
|
5343
|
-
_serialize_if($scope0_reason,
|
|
5406
|
+
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
5407
|
+
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
5344
5408
|
return 0;
|
|
5345
5409
|
} else {
|
|
5346
5410
|
const $scope3_id = _scope_id();
|
|
@@ -5354,11 +5418,11 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5354
5418
|
}])}><div${_attr_class("_f7")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_f8")}><span${_attr_class([
|
|
5355
5419
|
"_w",
|
|
5356
5420
|
phase[dot],
|
|
5357
|
-
"
|
|
5421
|
+
"_gl"
|
|
5358
5422
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
5359
5423
|
_if(() => {
|
|
5360
5424
|
if (sessions$1.length === 1) {
|
|
5361
|
-
const $
|
|
5425
|
+
const $scope14_id = _scope_id();
|
|
5362
5426
|
_set_serialize_reason({
|
|
5363
5427
|
1: $sg__input_sessions,
|
|
5364
5428
|
2: $sg__input_sessions
|
|
@@ -5369,28 +5433,28 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5369
5433
|
size: 12,
|
|
5370
5434
|
class: "_gc"
|
|
5371
5435
|
});
|
|
5372
|
-
$si__input_sessions && writeScope($
|
|
5436
|
+
$si__input_sessions && writeScope($scope14_id, {
|
|
5373
5437
|
_: _scope_with_id($scope3_id),
|
|
5374
5438
|
a: _existing_scope($childScope)
|
|
5375
5439
|
});
|
|
5376
5440
|
return 0;
|
|
5377
5441
|
}
|
|
5378
|
-
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions
|
|
5442
|
+
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
5379
5443
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
5380
5444
|
_html(`<span${_attr_class("_gd")}><span${_attr_class("_ge")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
5381
5445
|
_if(() => {
|
|
5382
5446
|
if (input.page && metaText) {
|
|
5383
|
-
const $
|
|
5384
|
-
_html(`<span${_attr_class("
|
|
5385
|
-
$
|
|
5447
|
+
const $scope16_id = _scope_id();
|
|
5448
|
+
_html(`<span${_attr_class("_gj")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
5449
|
+
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
5386
5450
|
return 0;
|
|
5387
5451
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
5388
|
-
const $
|
|
5389
|
-
_html(`<span${_attr_class("_gf")}>${_escape(sessions$1[0].title)}${_el_resume($
|
|
5390
|
-
$
|
|
5452
|
+
const $scope15_id = _scope_id();
|
|
5453
|
+
_html(`<span${_attr_class("_gf")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
5454
|
+
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
5391
5455
|
return 1;
|
|
5392
5456
|
}
|
|
5393
|
-
}, $scope3_id, "i", $
|
|
5457
|
+
}, $scope3_id, "i", $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status, 1, 0, 1);
|
|
5394
5458
|
_html("</span>");
|
|
5395
5459
|
_if(() => {
|
|
5396
5460
|
if (input.page) {
|
|
@@ -5399,15 +5463,15 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5399
5463
|
"_F",
|
|
5400
5464
|
"_O",
|
|
5401
5465
|
"_H",
|
|
5402
|
-
"
|
|
5403
|
-
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason,
|
|
5404
|
-
$
|
|
5466
|
+
"_gk"
|
|
5467
|
+
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
5468
|
+
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
5405
5469
|
_: _scope_with_id($scope3_id),
|
|
5406
|
-
|
|
5470
|
+
Cac: $si__input_current && 2
|
|
5407
5471
|
}));
|
|
5408
5472
|
return 0;
|
|
5409
5473
|
}
|
|
5410
|
-
}, $scope3_id, "j", $sg__input_page, $sg__input_page,
|
|
5474
|
+
}, $scope3_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5411
5475
|
_html(`</a>${_el_resume($scope3_id, "c", $sg__input_workspaces__OR__input_workspaceId)}`);
|
|
5412
5476
|
_if(() => {
|
|
5413
5477
|
if (!input.page) {
|
|
@@ -5426,7 +5490,7 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5426
5490
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
5427
5491
|
_for_of([], (agent) => {
|
|
5428
5492
|
const $scope7_id = _scope_id();
|
|
5429
|
-
_html(`<button${_attr_class("
|
|
5493
|
+
_html(`<button${_attr_class("_fZ")}>`);
|
|
5430
5494
|
_set_serialize_reason(12);
|
|
5431
5495
|
const $childScope2 = _peek_scope_id();
|
|
5432
5496
|
icon_agent_default({
|
|
@@ -5450,28 +5514,44 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5450
5514
|
}, $scope5_id, "b", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onNewSession__OR__input_onReview);
|
|
5451
5515
|
_if(() => {
|
|
5452
5516
|
if (input.onReview) {
|
|
5453
|
-
const $
|
|
5517
|
+
const $scope13_id = _scope_id();
|
|
5454
5518
|
_html(`<a${_attr("href", `/w/${ws$1.id}/review`)}${_attr_class(rowIcon)} title="Review changes">`);
|
|
5455
5519
|
icon_diff_default({ size: 12 });
|
|
5456
|
-
_html(`</a>${_el_resume($
|
|
5457
|
-
_serialize_if($scope0_reason,
|
|
5520
|
+
_html(`</a>${_el_resume($scope13_id, "a", $sg__input_workspaces__OR__input_workspaceId)}`);
|
|
5521
|
+
_serialize_if($scope0_reason, 14) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, writeScope($scope13_id, {
|
|
5458
5522
|
_: _scope_with_id($scope5_id),
|
|
5459
|
-
|
|
5523
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 4
|
|
5460
5524
|
}));
|
|
5461
5525
|
return 0;
|
|
5462
5526
|
}
|
|
5463
5527
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
5464
5528
|
_html(`<a${_attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_f1"]: input.managing }])} title="Manage workspace"${input.managing ? " aria-current=page" : ""}>`);
|
|
5465
5529
|
icon_manage_default({ size: 12 });
|
|
5466
|
-
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason,
|
|
5530
|
+
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
5467
5531
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
5468
5532
|
_: _scope_with_id($scope3_id),
|
|
5469
|
-
|
|
5533
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 2
|
|
5470
5534
|
})))));
|
|
5471
5535
|
return 0;
|
|
5472
5536
|
}
|
|
5473
|
-
}, $scope3_id, "k", $sg__input_page, $sg__input_page,
|
|
5474
|
-
_html(`</div><div${_attr_class("
|
|
5537
|
+
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
5538
|
+
_html(`</div><div${_attr_class("_gq")}>`);
|
|
5539
|
+
_if(() => {
|
|
5540
|
+
if (sessions$1.length === 1 && openPlan) {
|
|
5541
|
+
const $scope11_id = _scope_id();
|
|
5542
|
+
_set_serialize_reason(1);
|
|
5543
|
+
const $childScope3 = _peek_scope_id();
|
|
5544
|
+
usage_pcts_default({
|
|
5545
|
+
agent: openPlan,
|
|
5546
|
+
class: "_gg"
|
|
5547
|
+
});
|
|
5548
|
+
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
5549
|
+
a: _existing_scope($childScope3),
|
|
5550
|
+
Cat: 2
|
|
5551
|
+
}));
|
|
5552
|
+
return 0;
|
|
5553
|
+
}
|
|
5554
|
+
}, $scope3_id, "m");
|
|
5475
5555
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
5476
5556
|
const $scope8_id = _scope_id();
|
|
5477
5557
|
_html(`<div${_attr_class(["_f_", { ["_f0"]: s.id === input.currentTab }])}>`);
|
|
@@ -5481,47 +5561,65 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5481
5561
|
_html(`<span${_attr_class([
|
|
5482
5562
|
"_w",
|
|
5483
5563
|
phase[sessionPhase(s.state)],
|
|
5484
|
-
"
|
|
5564
|
+
"_go"
|
|
5485
5565
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
5486
5566
|
_set_serialize_reason({
|
|
5487
5567
|
1: $sg__input_sessions,
|
|
5488
5568
|
2: $sg__input_sessions
|
|
5489
5569
|
});
|
|
5490
|
-
const $
|
|
5570
|
+
const $childScope4 = _peek_scope_id();
|
|
5491
5571
|
icon_agent_default({
|
|
5492
5572
|
agent: activeAgent(s),
|
|
5493
5573
|
size: 13,
|
|
5494
|
-
class: "
|
|
5574
|
+
class: "_gs"
|
|
5495
5575
|
});
|
|
5496
5576
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
5497
5577
|
renameValue = _new_renameValue;
|
|
5498
|
-
}, "u0", $scope10_id))}${_attr_class(["_R", "
|
|
5578
|
+
}, "u0", $scope10_id))}${_attr_class(["_R", "_gp"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
5499
5579
|
_script($scope10_id, "u5");
|
|
5500
|
-
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($
|
|
5580
|
+
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
5501
5581
|
return 0;
|
|
5502
5582
|
} else {
|
|
5503
5583
|
const $scope9_id = _scope_id();
|
|
5504
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
5584
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gr")}><span${_attr_class(["_w", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
5505
5585
|
_set_serialize_reason({
|
|
5506
5586
|
1: $sg__input_sessions,
|
|
5507
5587
|
2: $sg__input_sessions
|
|
5508
5588
|
});
|
|
5509
|
-
const $
|
|
5589
|
+
const $childScope5 = _peek_scope_id();
|
|
5510
5590
|
icon_agent_default({
|
|
5511
5591
|
agent: activeAgent(s),
|
|
5512
5592
|
size: 13,
|
|
5513
|
-
class: "
|
|
5593
|
+
class: "_gs"
|
|
5514
5594
|
});
|
|
5515
|
-
_html(`<span${_attr_class("
|
|
5595
|
+
_html(`<span${_attr_class("_gh")}><span${_attr_class("_gm")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "f", $sg__input_sessions)}</span>`);
|
|
5596
|
+
_if(() => {
|
|
5597
|
+
if (openPlan && s.id === openSess?.id) {
|
|
5598
|
+
const $scope12_id = _scope_id();
|
|
5599
|
+
_set_serialize_reason(1);
|
|
5600
|
+
const $childScope6 = _peek_scope_id();
|
|
5601
|
+
usage_pcts_default({
|
|
5602
|
+
agent: openPlan,
|
|
5603
|
+
class: "_gi"
|
|
5604
|
+
});
|
|
5605
|
+
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
5606
|
+
a: _existing_scope($childScope6),
|
|
5607
|
+
Cat: 3
|
|
5608
|
+
}));
|
|
5609
|
+
return 0;
|
|
5610
|
+
}
|
|
5611
|
+
}, $scope9_id, "g");
|
|
5612
|
+
_html(`</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gn")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
5516
5613
|
icon_edit_default({ size: 12 });
|
|
5517
|
-
_html(`</button>${_el_resume($scope9_id, "
|
|
5614
|
+
_html(`</button>${_el_resume($scope9_id, "i")}<button${_attr_class([close, { ["_n"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
5518
5615
|
icon_xmark_default({ size: 12 });
|
|
5519
|
-
_html(`</button>${_el_resume($scope9_id, "
|
|
5616
|
+
_html(`</button>${_el_resume($scope9_id, "k")}</div>`);
|
|
5520
5617
|
_script($scope9_id, "u6");
|
|
5521
|
-
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
5522
|
-
c: $si__input_sessions && _existing_scope($
|
|
5523
|
-
|
|
5524
|
-
|
|
5618
|
+
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
5619
|
+
c: $si__input_sessions && _existing_scope($childScope5),
|
|
5620
|
+
Cat: 1,
|
|
5621
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 3
|
|
5622
|
+
})))));
|
|
5525
5623
|
return 1;
|
|
5526
5624
|
}
|
|
5527
5625
|
}, $scope8_id, "a", 1, 1, 1, "</div>");
|
|
@@ -5533,37 +5631,37 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5533
5631
|
i: s?.agent,
|
|
5534
5632
|
_: _scope_with_id($scope3_id)
|
|
5535
5633
|
})));
|
|
5536
|
-
}, "id", $scope3_id, "
|
|
5634
|
+
}, "id", $scope3_id, "n", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
5537
5635
|
_set_serialize_reason({
|
|
5538
5636
|
0: $sg__input_workspaceId__OR__input_status,
|
|
5539
5637
|
1: $sg__input_workspaceId__OR__input_status,
|
|
5540
5638
|
2: $sg__input_workspaceId__OR__input_status,
|
|
5541
|
-
3: _serialize_guard($scope0_reason,
|
|
5639
|
+
3: _serialize_guard($scope0_reason, 26),
|
|
5542
5640
|
4: $sg__input_workspaceId__OR__input_status,
|
|
5543
5641
|
5: $sg__input_workspaceId__OR__input_status
|
|
5544
5642
|
});
|
|
5545
|
-
const $
|
|
5643
|
+
const $childScope7 = _peek_scope_id();
|
|
5546
5644
|
side_nav_chips_default({
|
|
5547
5645
|
workspaceId: input.workspaceId,
|
|
5548
5646
|
status: st
|
|
5549
5647
|
});
|
|
5550
5648
|
_html(`</div></section>${_el_resume($scope3_id, "a")}`);
|
|
5551
5649
|
_script($scope3_id, "u7");
|
|
5552
|
-
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5650
|
+
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
5651
|
+
q: sessions$1.length,
|
|
5652
|
+
s: $si__input_sessions && sessions$1[0],
|
|
5653
|
+
t: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && sessions$1[0]?.title,
|
|
5654
|
+
u: $si__input_sessions && phaseLabel,
|
|
5655
|
+
w: $si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && metaText,
|
|
5558
5656
|
_: _scope_with_id($scope1_id),
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
}))))))));
|
|
5657
|
+
o: _serialize_if($scope0_reason, 1) && _existing_scope($childScope7),
|
|
5658
|
+
Cac: $si__input_current && 1,
|
|
5659
|
+
Cau: $si__input_workspaces__OR__input_workspaceId && 1,
|
|
5660
|
+
Cav: $si__input_workspaces__OR__input_workspaceId && 1
|
|
5661
|
+
})))))))));
|
|
5564
5662
|
return 1;
|
|
5565
5663
|
}
|
|
5566
|
-
}, $scope1_id, "a", _serialize_guard($scope0_reason,
|
|
5664
|
+
}, $scope1_id, "a", _serialize_guard($scope0_reason, 5), $sg__input_rail, $sg__input_rail, 0, 1);
|
|
5567
5665
|
writeScope($scope1_id, {
|
|
5568
5666
|
b: $si__input_rail && st,
|
|
5569
5667
|
c: $si__input_rail && dot,
|
|
@@ -5571,49 +5669,56 @@ var side_nav_item_default = _template("u", (input) => {
|
|
|
5571
5669
|
});
|
|
5572
5670
|
return 0;
|
|
5573
5671
|
}
|
|
5574
|
-
}, $scope0_id, "a", _serialize_guard($scope0_reason,
|
|
5672
|
+
}, $scope0_id, "a", _serialize_guard($scope0_reason, 11), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
5673
|
+
_script($scope0_id, "u8");
|
|
5575
5674
|
writeScope($scope0_id, {
|
|
5576
5675
|
d: input.onRenameSession,
|
|
5577
|
-
e: $
|
|
5578
|
-
f: _serialize_if($scope0_reason,
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
k: $
|
|
5583
|
-
l: $
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
a4:
|
|
5600
|
-
a5:
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5676
|
+
e: _serialize_if($scope0_reason, 19) && input.current,
|
|
5677
|
+
f: _serialize_if($scope0_reason, 20) && input.page,
|
|
5678
|
+
g: _serialize_if($scope0_reason, 17) && input.rail,
|
|
5679
|
+
h: _serialize_if($scope0_reason, 16) && input.sessions,
|
|
5680
|
+
i: _serialize_if($scope0_reason, 15) && input.currentTab,
|
|
5681
|
+
k: $si__input_workspaceId && input.workspaces,
|
|
5682
|
+
l: _serialize_if($scope0_reason, 11) && input.workspaceId,
|
|
5683
|
+
n: $si__input_workspaces__OR__input_workspaceId && input.status,
|
|
5684
|
+
o: $si__input_rail__OR__input_workspaces__OR__input_workspaceId && input.index,
|
|
5685
|
+
p: $si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.railPop,
|
|
5686
|
+
q: input.onSelect,
|
|
5687
|
+
r: input.onNewSession,
|
|
5688
|
+
s: input.agents,
|
|
5689
|
+
t: $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.onReview,
|
|
5690
|
+
u: $si__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && input.managing,
|
|
5691
|
+
v: input.onCloseSession,
|
|
5692
|
+
w: armedKill,
|
|
5693
|
+
y: armBox.timer,
|
|
5694
|
+
z: arm,
|
|
5695
|
+
a0: renamingId,
|
|
5696
|
+
a1: renameValue,
|
|
5697
|
+
a3: commitRename,
|
|
5698
|
+
a4: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && usage,
|
|
5699
|
+
a5: openSess,
|
|
5700
|
+
a7: openSess?.id,
|
|
5701
|
+
a8: openPlan,
|
|
5702
|
+
aa: ws$1?.id,
|
|
5703
|
+
ab: $si__input_rail__OR__input_workspaces__OR__input_workspaceId && ws$1?.name,
|
|
5704
|
+
ac: $si__input_current && $input_current__closures,
|
|
5705
|
+
aj: $si__input_index && $input_index__closures,
|
|
5706
|
+
au: $si__input_workspaces__OR__input_workspaceId && $ws_id__closures,
|
|
5707
|
+
av: $si__input_workspaces__OR__input_workspaceId && $ws_name__closures,
|
|
5708
|
+
am: $si__input_agents && $input_agents__closures,
|
|
5709
|
+
al: $si__input_onNewSession && $input_onNewSession__closures,
|
|
5710
|
+
an: $si__input_onReview && $input_onReview__closures,
|
|
5711
|
+
ao: $si__input_managing && $input_managing__closures,
|
|
5712
|
+
at: $openPlan__closures,
|
|
5713
|
+
ar: $renameValue__closures,
|
|
5714
|
+
ap: $armedKill__closures,
|
|
5715
|
+
as: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures,
|
|
5716
|
+
ag: $si__input_currentTab && $input_currentTab__closures,
|
|
5717
|
+
aq: $renamingId__closures,
|
|
5718
|
+
ad: $si__input_page && $input_page__closures,
|
|
5719
|
+
af: $si__input_sessions && $input_sessions__closures,
|
|
5720
|
+
ah: $si__input_workspaceId && $input_workspaceId__closures,
|
|
5721
|
+
ak: $si__input_railPop && $input_railPop__closures
|
|
5617
5722
|
});
|
|
5618
5723
|
_resume_branch($scope0_id);
|
|
5619
5724
|
});
|
|
@@ -5699,25 +5804,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5699
5804
|
const isPage = view === "nav";
|
|
5700
5805
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
5701
5806
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
5702
|
-
_html(`<aside${_attr_class(["
|
|
5703
|
-
["
|
|
5704
|
-
["
|
|
5807
|
+
_html(`<aside${_attr_class(["_dh", {
|
|
5808
|
+
["_df"]: !navOpen,
|
|
5809
|
+
["_dg"]: isPage
|
|
5705
5810
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
5706
5811
|
_if(() => {
|
|
5707
5812
|
if (isPage) {
|
|
5708
5813
|
const $scope1_id = _scope_id();
|
|
5709
|
-
_html(`<header${_attr_class("
|
|
5814
|
+
_html(`<header${_attr_class("_dk")}><h1${_attr_class("_dl")}>Workspaces</h1><div${_attr_class("_dm")}>`);
|
|
5710
5815
|
_if(() => {}, $scope1_id, "d", 1, 1, 1, 0, 1);
|
|
5711
5816
|
_html(`<a href=/settings${_attr_class([
|
|
5712
5817
|
iconBtn$1,
|
|
5713
|
-
"
|
|
5714
|
-
{ ["
|
|
5818
|
+
"_dn",
|
|
5819
|
+
{ ["_dc"]: view === "settings" }
|
|
5715
5820
|
])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5716
5821
|
icon_settings_default({ size: 16 });
|
|
5717
5822
|
_if(() => {
|
|
5718
5823
|
if (input.setupReady === false) {
|
|
5719
5824
|
const $scope10_id = _scope_id();
|
|
5720
|
-
_html(`<span${_attr_class(["_w", "
|
|
5825
|
+
_html(`<span${_attr_class(["_w", "_de"])} title="Machine setup incomplete"></span>`);
|
|
5721
5826
|
$si__input_setupReady && writeScope($scope10_id, {});
|
|
5722
5827
|
return 0;
|
|
5723
5828
|
}
|
|
@@ -5727,13 +5832,13 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5727
5832
|
return 0;
|
|
5728
5833
|
}
|
|
5729
5834
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5730
|
-
_html(`<div${_attr_class("
|
|
5835
|
+
_html(`<div${_attr_class("_dq")}>`);
|
|
5731
5836
|
_for_of(listIds, (wsId) => {
|
|
5732
5837
|
const $scope2_id = _scope_id();
|
|
5733
5838
|
_if(() => {
|
|
5734
5839
|
if (isPage && wsId === ws.id) {
|
|
5735
5840
|
const $scope11_id = _scope_id();
|
|
5736
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5841
|
+
_html(`<h2${_attr_class(["_bE", "_do"])}>Current</h2>`);
|
|
5737
5842
|
writeScope($scope11_id, {});
|
|
5738
5843
|
return 0;
|
|
5739
5844
|
}
|
|
@@ -5741,7 +5846,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5741
5846
|
_if(() => {
|
|
5742
5847
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
5743
5848
|
const $scope12_id = _scope_id();
|
|
5744
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
5849
|
+
_html(`<h2${_attr_class(["_bE", "_do"])}>Other workspaces</h2>`);
|
|
5745
5850
|
writeScope($scope12_id, {});
|
|
5746
5851
|
return 0;
|
|
5747
5852
|
}
|
|
@@ -5766,14 +5871,17 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5766
5871
|
16: 1,
|
|
5767
5872
|
17: 1,
|
|
5768
5873
|
18: 1,
|
|
5874
|
+
19: 1,
|
|
5769
5875
|
20: 1,
|
|
5876
|
+
21: 1,
|
|
5770
5877
|
22: 1,
|
|
5771
5878
|
24: 1,
|
|
5772
5879
|
25: 1,
|
|
5773
|
-
26:
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5880
|
+
26: 1,
|
|
5881
|
+
29: 1,
|
|
5882
|
+
30: $sg__input_agents,
|
|
5883
|
+
31: 1,
|
|
5884
|
+
32: 1
|
|
5777
5885
|
});
|
|
5778
5886
|
const $childScope = _peek_scope_id();
|
|
5779
5887
|
side_nav_item_default({
|
|
@@ -5825,7 +5933,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5825
5933
|
railHover = null;
|
|
5826
5934
|
}, 150);
|
|
5827
5935
|
}, "v6", $scope3_id);
|
|
5828
|
-
_html(`<div${_attr_class("
|
|
5936
|
+
_html(`<div${_attr_class("_dr")}>`);
|
|
5829
5937
|
_for_of(itemIds, (wsId, i) => {
|
|
5830
5938
|
const $scope4_id = _scope_id();
|
|
5831
5939
|
_html("<span>");
|
|
@@ -5834,22 +5942,25 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5834
5942
|
1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5835
5943
|
3: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5836
5944
|
4: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5837
|
-
5: $
|
|
5945
|
+
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5838
5946
|
6: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5839
5947
|
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5840
|
-
8: $
|
|
5841
|
-
9: $
|
|
5842
|
-
10: $
|
|
5843
|
-
11: $
|
|
5844
|
-
12: $
|
|
5948
|
+
8: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5949
|
+
9: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5950
|
+
10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5951
|
+
11: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5952
|
+
12: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5845
5953
|
13: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5846
5954
|
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5847
5955
|
15: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5848
|
-
16: $
|
|
5849
|
-
17: $
|
|
5850
|
-
18: $
|
|
5851
|
-
|
|
5852
|
-
|
|
5956
|
+
16: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5957
|
+
17: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5958
|
+
18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5959
|
+
19: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5960
|
+
20: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
5961
|
+
21: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5962
|
+
26: $sg__input_workspace__OR__input_allWorkspaces,
|
|
5963
|
+
27: $sg__input_workspace__OR__input_allWorkspaces
|
|
5853
5964
|
});
|
|
5854
5965
|
const $childScope2 = _peek_scope_id();
|
|
5855
5966
|
side_nav_item_default({
|
|
@@ -5876,7 +5987,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5876
5987
|
if (railHover) {
|
|
5877
5988
|
const $scope5_id = _scope_id();
|
|
5878
5989
|
const hoverId = railHover.id;
|
|
5879
|
-
_html(`<div${_attr_class(["_1", "
|
|
5990
|
+
_html(`<div${_attr_class(["_1", "_du"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
5880
5991
|
_set_serialize_reason({
|
|
5881
5992
|
0: 1,
|
|
5882
5993
|
1: 1,
|
|
@@ -5897,13 +6008,16 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5897
6008
|
16: 1,
|
|
5898
6009
|
17: 1,
|
|
5899
6010
|
18: 1,
|
|
6011
|
+
19: 1,
|
|
5900
6012
|
20: 1,
|
|
5901
|
-
|
|
6013
|
+
21: 1,
|
|
6014
|
+
24: 1,
|
|
5902
6015
|
25: 1,
|
|
5903
|
-
26:
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
6016
|
+
26: 1,
|
|
6017
|
+
29: 1,
|
|
6018
|
+
30: $sg__input_agents,
|
|
6019
|
+
31: 1,
|
|
6020
|
+
32: 1
|
|
5907
6021
|
});
|
|
5908
6022
|
const $childScope3 = _peek_scope_id();
|
|
5909
6023
|
side_nav_item_default({
|
|
@@ -5961,7 +6075,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5961
6075
|
return 0;
|
|
5962
6076
|
}
|
|
5963
6077
|
}, $scope0_id, "d");
|
|
5964
|
-
_html(`<div${_attr_class("
|
|
6078
|
+
_html(`<div${_attr_class("_ds")}>`);
|
|
5965
6079
|
_if(() => {
|
|
5966
6080
|
if (isPage) {
|
|
5967
6081
|
const $scope7_id = _scope_id();
|
|
@@ -5969,7 +6083,7 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5969
6083
|
"_l",
|
|
5970
6084
|
"_m",
|
|
5971
6085
|
btnLg,
|
|
5972
|
-
"
|
|
6086
|
+
"_dp"
|
|
5973
6087
|
])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
5974
6088
|
icon_folder_plus_default({ size: 16 });
|
|
5975
6089
|
_html(` New workspace</a>${_el_resume($scope7_id, "a")}`);
|
|
@@ -5991,19 +6105,19 @@ var side_nav_default = _template("v", (input) => {
|
|
|
5991
6105
|
return 1;
|
|
5992
6106
|
}
|
|
5993
6107
|
}, $scope6_id, "a", 1, 1, 1, "</button>", 1);
|
|
5994
|
-
_html(`<div${_attr_class(["_v", "
|
|
6108
|
+
_html(`<div${_attr_class(["_v", "_dt"])}></div>`);
|
|
5995
6109
|
_if(() => {}, $scope6_id, "c", 1, 1, 1, 0, 1);
|
|
5996
|
-
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["
|
|
6110
|
+
_html(`<a href=/settings${_attr_class([iconBtn$1, { ["_dc"]: view === "settings" }])} title=Settings${view === "settings" ? " aria-current=page" : ""}>`);
|
|
5997
6111
|
icon_settings_default({ size: 15 });
|
|
5998
6112
|
_if(() => {
|
|
5999
6113
|
if (input.setupReady === false) {
|
|
6000
6114
|
const $scope15_id = _scope_id();
|
|
6001
|
-
_html(`<span${_attr_class(["_w", "
|
|
6115
|
+
_html(`<span${_attr_class(["_w", "_de"])} title="Machine setup incomplete"></span>`);
|
|
6002
6116
|
$si__input_setupReady && writeScope($scope15_id, {});
|
|
6003
6117
|
return 0;
|
|
6004
6118
|
}
|
|
6005
6119
|
}, $scope6_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
6006
|
-
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["
|
|
6120
|
+
_html(`</a>${_el_resume($scope6_id, "d")}<a href=/new${_attr_class([iconBtn$1, { ["_dc"]: view === "new" }])} title="New workspace"${view === "new" ? " aria-current=page" : ""}>`);
|
|
6007
6121
|
icon_folder_plus_default({ size: 16 });
|
|
6008
6122
|
_html(`</a>${_el_resume($scope6_id, "g")}`);
|
|
6009
6123
|
_script($scope6_id, "v15");
|
|
@@ -6065,10 +6179,10 @@ var side_nav_default = _template("v", (input) => {
|
|
|
6065
6179
|
});
|
|
6066
6180
|
var iconBtn = "_X _g";
|
|
6067
6181
|
var sectionCount = "_br _F _G";
|
|
6068
|
-
var content = "
|
|
6069
|
-
var pageMeta = "
|
|
6070
|
-
var pathMeta = "
|
|
6071
|
-
var dangerHint = "
|
|
6182
|
+
var content = "_c2 _bh";
|
|
6183
|
+
var pageMeta = "_c3 _bm";
|
|
6184
|
+
var pathMeta = "_c6 _u";
|
|
6185
|
+
var dangerHint = "_db _P";
|
|
6072
6186
|
//#endregion
|
|
6073
6187
|
//#region src/tags/manage-workspace.marko
|
|
6074
6188
|
var api$2;
|
|
@@ -6179,7 +6293,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6179
6293
|
meta: attrTag({ content: _content_resume("l11", () => {
|
|
6180
6294
|
_scope_reason();
|
|
6181
6295
|
const $scope8_id = _scope_id();
|
|
6182
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
6296
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_c4")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
6183
6297
|
_if(() => {
|
|
6184
6298
|
if (ws.status !== "active") {
|
|
6185
6299
|
const $scope11_id = _scope_id();
|
|
@@ -6188,7 +6302,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6188
6302
|
return 0;
|
|
6189
6303
|
}
|
|
6190
6304
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
6191
|
-
_html(`<span${_attr_class("
|
|
6305
|
+
_html(`<span${_attr_class("_c5")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
6192
6306
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
6193
6307
|
_resume_branch($scope8_id);
|
|
6194
6308
|
}, $scope0_id) })
|
|
@@ -6231,7 +6345,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6231
6345
|
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bs")}>`);
|
|
6232
6346
|
_for_of(ws.repos, (row) => {
|
|
6233
6347
|
const $scope1_id = _scope_id();
|
|
6234
|
-
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "
|
|
6348
|
+
_html(`<li${_attr_class("_bu")}><div${_attr_class("_bv")}><span${_attr_class(["_bw", "_u"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bx")}><a${_attr_class(["_by", "_c8"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
6235
6349
|
_if(() => {
|
|
6236
6350
|
if (row.base_branch !== row.default_branch) {
|
|
6237
6351
|
const $scope12_id = _scope_id();
|
|
@@ -6295,7 +6409,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6295
6409
|
return 0;
|
|
6296
6410
|
}
|
|
6297
6411
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
6298
|
-
_html(`<div${_attr_class("
|
|
6412
|
+
_html(`<div${_attr_class("_c7")}>`);
|
|
6299
6413
|
const $childScope3 = _peek_scope_id();
|
|
6300
6414
|
let refreshCatalog = repo_picker_default({
|
|
6301
6415
|
exclude: inWorkspace,
|
|
@@ -6325,7 +6439,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6325
6439
|
_html(`<span${_attr_class("_bx")}>`);
|
|
6326
6440
|
_for_of(p.ports, (port) => {
|
|
6327
6441
|
const $scope19_id = _scope_id();
|
|
6328
|
-
_html(`<button${_attr_class(["_p", "
|
|
6442
|
+
_html(`<button${_attr_class(["_p", "_c9"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
6329
6443
|
_script($scope19_id, "l15");
|
|
6330
6444
|
writeScope($scope19_id, { d: port });
|
|
6331
6445
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -6347,7 +6461,7 @@ var manage_workspace_default = _template("l", (input) => {
|
|
|
6347
6461
|
return 0;
|
|
6348
6462
|
}
|
|
6349
6463
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
6350
|
-
_html(`<section${_attr_class(["_bp", "
|
|
6464
|
+
_html(`<section${_attr_class(["_bp", "_c_"])}><div${_attr_class("_bq")}><h2${_attr_class("_bE")}>Workspace</h2></div><div${_attr_class("_da")}>`);
|
|
6351
6465
|
_if(() => {
|
|
6352
6466
|
if (ws.status === "active") {
|
|
6353
6467
|
const $scope4_id = _scope_id();
|
|
@@ -6448,15 +6562,15 @@ var term_find_default = _template("w", (input) => {
|
|
|
6448
6562
|
const canStep = hasQuery && open;
|
|
6449
6563
|
const keybar = input.placement === "keybar";
|
|
6450
6564
|
_html(`<div${_attr_class([
|
|
6451
|
-
"
|
|
6452
|
-
keybar ? "
|
|
6453
|
-
!open && "
|
|
6454
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
6565
|
+
"_eV",
|
|
6566
|
+
keybar ? "_eX" : "_eW",
|
|
6567
|
+
!open && "_eZ"
|
|
6568
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eQ", keybar ? "_eY" : "_eS"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
6455
6569
|
if (!open) return;
|
|
6456
6570
|
query = v;
|
|
6457
6571
|
live.query = v;
|
|
6458
6572
|
run(0);
|
|
6459
|
-
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
6573
|
+
}, "w0", $scope0_id))}${_attr_class([findInput, keybar && "_e0"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_e1"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_e1"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class([findIconBtn, keybar && "_e1"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
6460
6574
|
icon_xmark_default({ size: 14 });
|
|
6461
6575
|
_html(`</button>${_el_resume($scope0_id, "f")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
6462
6576
|
_script($scope0_id, "w4");
|
|
@@ -6499,49 +6613,6 @@ _template("W", (input) => {
|
|
|
6499
6613
|
});
|
|
6500
6614
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6501
6615
|
});
|
|
6502
|
-
//#endregion
|
|
6503
|
-
//#region src/tags/usage-pcts.marko
|
|
6504
|
-
function pctText(pct) {
|
|
6505
|
-
const rounded = Math.round(pct);
|
|
6506
|
-
return rounded !== pct && (rounded === 100 || rounded === 0) ? `${pct.toFixed(1)}%` : `${rounded}%`;
|
|
6507
|
-
}
|
|
6508
|
-
_template("A", (input) => {
|
|
6509
|
-
const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_agent__OR__input_class = _serialize_guard($scope0_reason, 0), $si__input_agent__OR__input_class = _serialize_if($scope0_reason, 0);
|
|
6510
|
-
const $scope0_id = _scope_id();
|
|
6511
|
-
const agent = input.agent;
|
|
6512
|
-
const windows = agent.windows || [];
|
|
6513
|
-
_if(() => {
|
|
6514
|
-
if (windows.length) {
|
|
6515
|
-
const $scope1_id = _scope_id();
|
|
6516
|
-
_html(`<span${_attr_class([
|
|
6517
|
-
"_eF",
|
|
6518
|
-
input.class,
|
|
6519
|
-
{ ["_eG"]: agent.stale_seconds != null }
|
|
6520
|
-
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6521
|
-
_for_of(windows, (win$1, i) => {
|
|
6522
|
-
const $scope2_id = _scope_id();
|
|
6523
|
-
_if(() => {
|
|
6524
|
-
if (i) {
|
|
6525
|
-
const $scope3_id = _scope_id();
|
|
6526
|
-
_html(`<span${_attr_class("_eK")} aria-hidden=true>·</span>`);
|
|
6527
|
-
$si__input_agent && writeScope($scope3_id, {});
|
|
6528
|
-
return 0;
|
|
6529
|
-
}
|
|
6530
|
-
}, $scope2_id, "a", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6531
|
-
_html(`<span${_attr_class("_eH")}><span${_attr_class("_eI")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_eJ", win$1.used_percent >= 90 ? "_cY" : win$1.used_percent >= 70 ? "_cX" : win$1.used_percent >= 40 ? "_cW" : "_cV"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6532
|
-
$si__input_agent && writeScope($scope2_id, {});
|
|
6533
|
-
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>");
|
|
6534
|
-
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
6535
|
-
return 0;
|
|
6536
|
-
}
|
|
6537
|
-
}, $scope0_id, "a", $sg__input_agent__OR__input_class, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6538
|
-
$si__input_agent__OR__input_class && writeScope($scope0_id, {
|
|
6539
|
-
e: $si__input_agent && input.class,
|
|
6540
|
-
h: agent?.stale_seconds,
|
|
6541
|
-
i: $si__input_agent && agent?.note,
|
|
6542
|
-
j: $si__input_agent && windows
|
|
6543
|
-
});
|
|
6544
|
-
});
|
|
6545
6616
|
_template("J", (input) => {
|
|
6546
6617
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6547
6618
|
const $scope0_id = _scope_id();
|
|
@@ -6920,7 +6991,7 @@ var work_view_default = _template("B", (input) => {
|
|
|
6920
6991
|
let DiffView = null;
|
|
6921
6992
|
const loadDiffView = _resume(() => {
|
|
6922
6993
|
if (DiffView) return;
|
|
6923
|
-
import("./
|
|
6994
|
+
import("./_DXDmuFjC.js").then((m) => {
|
|
6924
6995
|
DiffView = m.default;
|
|
6925
6996
|
});
|
|
6926
6997
|
}, "B6", $scope0_id);
|
|
@@ -8878,7 +8949,7 @@ var postHandler$13 = normalizeHandler(Run.POST({ search: (value) => parse(Query$
|
|
|
8878
8949
|
if (q.session && q.state) {
|
|
8879
8950
|
const payload = await ctx.request.json().catch(() => void 0);
|
|
8880
8951
|
if (q.state === "idle") clearAgentPhase(q.session);
|
|
8881
|
-
else setAgentPhase(q.session, q.state, reasonFromHookPayload(payload, q.reason), summaryFromHookPayload(payload));
|
|
8952
|
+
else if (!ignoreHookPayload(payload)) setAgentPhase(q.session, q.state, reasonFromHookPayload(payload, q.reason), summaryFromHookPayload(payload) ?? (q.reason === "done" ? summaryFromTranscript(payload) : void 0));
|
|
8882
8953
|
return Response.json({ ok: true });
|
|
8883
8954
|
}
|
|
8884
8955
|
const body = parse(AgentState, await ctx.request.json());
|
|
@@ -9574,6 +9645,9 @@ var REAUTH = {
|
|
|
9574
9645
|
/** Never signed in (or the CLI's credentials went missing) — not an outage.
|
|
9575
9646
|
* Distinct from a failed request: nothing was ever sent, so blaming the
|
|
9576
9647
|
* network would send you debugging the wrong thing. */
|
|
9648
|
+
/** Row note for a CLI signed in with an API key: metered by the bill, not
|
|
9649
|
+
* by plan windows, so the empty meters are the whole story. */
|
|
9650
|
+
var API_KEY_NOTE = "API key — pay per use, no plan limits";
|
|
9577
9651
|
function noAuthReason(key) {
|
|
9578
9652
|
const hint = REAUTH[key];
|
|
9579
9653
|
return hint ? `not signed in (run \`${hint}\`)` : "no credentials on disk";
|
|
@@ -9726,7 +9800,20 @@ function parseRow$4(account, data, source) {
|
|
|
9726
9800
|
if (five == null && seven == null && fable == null) row.note = credentialNote(account);
|
|
9727
9801
|
return row;
|
|
9728
9802
|
}
|
|
9803
|
+
/** No OAuth session but an API key in play (helper, an approved key, or
|
|
9804
|
+
* the env): pay-as-you-go, nothing to meter. */
|
|
9805
|
+
function apiKeyMode$1(account) {
|
|
9806
|
+
if (str(obj(credentials(account)?.claudeAiOauth).accessToken)) return false;
|
|
9807
|
+
const settings = readJson(path.join(account.dir, "settings.json"));
|
|
9808
|
+
const approved = obj(readJson(account.meta)?.customApiKeyResponses).approved;
|
|
9809
|
+
return !!str(settings?.apiKeyHelper) || Array.isArray(approved) && approved.length > 0 || !!process.env.ANTHROPIC_API_KEY;
|
|
9810
|
+
}
|
|
9729
9811
|
async function claudeRow(account) {
|
|
9812
|
+
if (apiKeyMode$1(account)) return {
|
|
9813
|
+
...blankRow(account.label, "api-key"),
|
|
9814
|
+
plan: "API key",
|
|
9815
|
+
note: API_KEY_NOTE
|
|
9816
|
+
};
|
|
9730
9817
|
const loaded = await loadPayload(`claude${account.suffix}`, () => fetchUsage$3(account));
|
|
9731
9818
|
const fallback = loaded.payload ? null : claudeJsonFallback(account);
|
|
9732
9819
|
return markStale(parseRow$4(account, loaded.payload ?? fallback, fallback ? "claude.json" : loaded.source), account.label, tokenExpired(account), loaded.reason);
|
|
@@ -9774,7 +9861,18 @@ function parseRow$3(payload, source) {
|
|
|
9774
9861
|
source
|
|
9775
9862
|
};
|
|
9776
9863
|
}
|
|
9864
|
+
/** Signed in with an API key rather than a ChatGPT plan: pay-as-you-go,
|
|
9865
|
+
* no rate-limit windows to draw. */
|
|
9866
|
+
function apiKeyMode() {
|
|
9867
|
+
const auth = readJson(AUTH$2);
|
|
9868
|
+
return !!auth && (str(auth.auth_mode) === "apikey" || !obj(auth.tokens).access_token && !!auth.OPENAI_API_KEY);
|
|
9869
|
+
}
|
|
9777
9870
|
async function codexRow() {
|
|
9871
|
+
if (apiKeyMode()) return {
|
|
9872
|
+
...blankRow("codex", "api-key"),
|
|
9873
|
+
plan: "API key",
|
|
9874
|
+
note: API_KEY_NOTE
|
|
9875
|
+
};
|
|
9778
9876
|
const { payload, source, reason } = await loadPayload("codex", fetchUsage$2);
|
|
9779
9877
|
const missingAuth = fs.existsSync(AUTH$2) ? void 0 : noAuthReason("codex");
|
|
9780
9878
|
return markStale(payload ? parseRow$3(payload, source) : {
|
|
@@ -15736,4 +15834,4 @@ server.listen(port, () => {
|
|
|
15736
15834
|
//#endregion
|
|
15737
15835
|
export {};
|
|
15738
15836
|
|
|
15739
|
-
;var __MARKO_MANIFEST__={"
|
|
15837
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-CAw2YLYv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CAw2YLYv.css\"",">"],"defer":[2,"/assets/settings-C9qRFMyu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C9qRFMyu.js\"","></script>",2,"modulepreload#/assets/_BqE48K5c.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqE48K5c.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-CAw2YLYv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CAw2YLYv.css\"",">"],"defer":[2,"/assets/w-C9qRFMyu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C9qRFMyu.js\"","></script>",2,"modulepreload#/assets/_BqE48K5c.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqE48K5c.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-CAw2YLYv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CAw2YLYv.css\"",">"],"defer":[2,"/assets/w._-C9qRFMyu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C9qRFMyu.js\"","></script>",2,"modulepreload#/assets/_BqE48K5c.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqE48K5c.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-CAw2YLYv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CAw2YLYv.css\"",">"],"defer":[2,"/assets/new-C9qRFMyu.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C9qRFMyu.js\"","></script>",2,"modulepreload#/assets/_BqE48K5c.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqE48K5c.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-CAw2YLYv.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CAw2YLYv.css\"",">"],"defer":[2,"/assets/w._-phpTDxP7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-phpTDxP7.js\"","></script>",2,"modulepreload#/assets/_BqE48K5c.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BqE48K5c.js\"",">"]}};
|