@dylanpiercey/work 0.0.65 → 0.0.67
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/bin/work.mjs +17 -1
- package/dist/{_CJOORMBO.js → _B9UH2f9c.js} +61 -37
- package/dist/_C8-SYmgW.js +2 -0
- package/dist/{_CSvmyeWI.js → _D78MdEM0.js} +1205 -999
- package/dist/{_Dp9_KYvx.js → _mSrLyFdO.js} +9 -1
- package/dist/index.mjs +1071 -830
- package/dist/public/assets/{_tyL67pnw.js → _3k9q7qTZ.js} +1 -1
- package/dist/public/assets/_3k9q7qTZ.js.br +0 -0
- package/dist/public/assets/{_CeiVaZaE2.js → _6Uv2mA8-2.js} +1 -1
- package/dist/public/assets/_6Uv2mA8-2.js.br +0 -0
- package/dist/public/assets/{_BdX2kLzM.js → _AMWZA0be.js} +1 -1
- package/dist/public/assets/_AMWZA0be.js.br +0 -0
- package/dist/public/assets/{_BlzJNKIq.js → _B1ZCEYOD.js} +1 -1
- package/dist/public/assets/_B1ZCEYOD.js.br +0 -0
- package/dist/public/assets/{_Dla_sQtT.js → _B1vmwnMa.js} +1 -1
- package/dist/public/assets/_B1vmwnMa.js.br +0 -0
- package/dist/public/assets/{_BThtwt0w.js → _B5iCC67h.js} +1 -1
- package/dist/public/assets/_B5iCC67h.js.br +0 -0
- package/dist/public/assets/{_DRy7E0y4.js → _BL7XgPZ_.js} +1 -1
- package/dist/public/assets/_BL7XgPZ_.js.br +0 -0
- package/dist/public/assets/{_DQnRz4N-2.js → _BSNS3UMH2.js} +1 -1
- package/dist/public/assets/_BSNS3UMH2.js.br +0 -0
- package/dist/public/assets/{_IQRs4Vxk2.js → _BV3Xd3ki2.js} +1 -1
- package/dist/public/assets/{_B0K8ONkz.js → _BW1UpUrT.js} +1 -1
- package/dist/public/assets/_BW1UpUrT.js.br +0 -0
- package/dist/public/assets/{_BoY3-Vy52.js → _BW81rf1H2.js} +1 -1
- package/dist/public/assets/_BW81rf1H2.js.br +0 -0
- package/dist/public/assets/{_BQQEle5V2.js → _BXCZuUQA2.js} +1 -1
- package/dist/public/assets/_BXCZuUQA2.js.br +0 -0
- package/dist/public/assets/{_BtQw2bmP.js → _B_cZqSdw.js} +1 -1
- package/dist/public/assets/_B_cZqSdw.js.br +0 -0
- package/dist/public/assets/{_DGSiyVF7.js → _BaoSUC_i.js} +1 -1
- package/dist/public/assets/_BaoSUC_i.js.br +0 -0
- package/dist/public/assets/{_DW89HP67.js → _BkgwhUlf.js} +1 -1
- package/dist/public/assets/_BkgwhUlf.js.br +0 -0
- package/dist/public/assets/{_DktisilP.js → _Bs3zDe42.js} +1 -1
- package/dist/public/assets/_Bs3zDe42.js.br +0 -0
- package/dist/public/assets/{_Dhz04q_D.js → _BtsudbJn.js} +1 -1
- package/dist/public/assets/_BtsudbJn.js.br +0 -0
- package/dist/public/assets/{_DIqr-isS2.js → _BwQNx6NX2.js} +1 -1
- package/dist/public/assets/_BwQNx6NX2.js.br +0 -0
- package/dist/public/assets/{_COmbCgXJ.js → _Bx58LnKm.js} +1 -1
- package/dist/public/assets/_Bx58LnKm.js.br +0 -0
- package/dist/public/assets/{_zBoBE4zG2.js → _BzP13oLI2.js} +1 -1
- package/dist/public/assets/_BzP13oLI2.js.br +0 -0
- package/dist/public/assets/{_C8nC95yB.js → _C13mV9Vy.js} +1 -1
- package/dist/public/assets/_C13mV9Vy.js.br +0 -0
- package/dist/public/assets/{_dGG0GxLJ.js → _C7_gIQ1W.js} +1 -1
- package/dist/public/assets/_C7_gIQ1W.js.br +0 -0
- package/dist/public/assets/{_DSl96WfX.js → _C8IzwQRq.js} +1 -1
- package/dist/public/assets/_C8IzwQRq.js.br +0 -0
- package/dist/public/assets/{_GAJYC2Mn.js → _C9ETD15k.js} +1 -1
- package/dist/public/assets/_C9ETD15k.js.br +0 -0
- package/dist/public/assets/{_BZ1m666c2.js → _CBo0xAjA2.js} +1 -1
- package/dist/public/assets/{_CITgMOC9.js → _CCbKzznD.js} +1 -1
- package/dist/public/assets/_CCbKzznD.js.br +0 -0
- package/dist/public/assets/{_DsedTKoi2.js → _CHxLUwRe2.js} +1 -1
- package/dist/public/assets/_CHxLUwRe2.js.br +0 -0
- package/dist/public/assets/{_CaI2OErv2.js → _CPi3B_vr2.js} +1 -1
- package/dist/public/assets/_CPi3B_vr2.js.br +0 -0
- package/dist/public/assets/{_DIPk3FlP.js → _CS_y_5bW.js} +1 -1
- package/dist/public/assets/_CS_y_5bW.js.br +0 -0
- package/dist/public/assets/{_CioERcnr2.js → _CYMzncSB2.js} +1 -1
- package/dist/public/assets/_CYMzncSB2.js.br +0 -0
- package/dist/public/assets/{_Dj5rhxkK2.js → _CZyTbXSO2.js} +1 -1
- package/dist/public/assets/_CZyTbXSO2.js.br +0 -0
- package/dist/public/assets/{_BUgZMYtw.js → _Cc8KMyAp.js} +1 -1
- package/dist/public/assets/_Cc8KMyAp.js.br +0 -0
- package/dist/public/assets/{_DvCKkq4p.js → _CcdwqB39.js} +1 -1
- package/dist/public/assets/_CcdwqB39.js.br +0 -0
- package/dist/public/assets/{_CaKapByl.js → _CduHXYfC.js} +45 -45
- package/dist/public/assets/_CduHXYfC.js.br +0 -0
- package/dist/public/assets/{_BboF69sq.js → _CgMtsYIH.js} +1 -1
- package/dist/public/assets/_CgMtsYIH.js.br +0 -0
- package/dist/public/assets/{_CrV-j-_J2.js → _CgdPOrhX2.js} +1 -1
- package/dist/public/assets/_CgdPOrhX2.js.br +0 -0
- package/dist/public/assets/{_Dk0TvYyB.js → _Chsu042s.js} +1 -1
- package/dist/public/assets/_Chsu042s.js.br +0 -0
- package/dist/public/assets/{_Ig-G3Vb-2.js → _CjxTlEOw2.js} +1 -1
- package/dist/public/assets/_CjxTlEOw2.js.br +0 -0
- package/dist/public/assets/{_DTg6G0mG2.js → _ClECf4L52.js} +1 -1
- package/dist/public/assets/_ClECf4L52.js.br +0 -0
- package/dist/public/assets/{_DmhJqFxg.js → _CnQdBazT.js} +1 -1
- package/dist/public/assets/_CnQdBazT.js.br +0 -0
- package/dist/public/assets/{_DVhX7A38.js → _CsVHdEro.js} +1 -1
- package/dist/public/assets/{_BCM54uP7.js → _CsdnwX6C.js} +1 -1
- package/dist/public/assets/_CsdnwX6C.js.br +0 -0
- package/dist/public/assets/{_B7r33ix3.js → _CsuFzJmI.js} +1 -1
- package/dist/public/assets/_CsuFzJmI.js.br +0 -0
- package/dist/public/assets/{_DdWJlopw.js → _CuUYX7O6.js} +1 -1
- package/dist/public/assets/_CuUYX7O6.js.br +0 -0
- package/dist/public/assets/{_bAkDCn_T2.js → _Cvm7LApl2.js} +1 -1
- package/dist/public/assets/_Cvm7LApl2.js.br +0 -0
- package/dist/public/assets/{_D4ERlOIt.js → _CzJu_xMs.js} +1 -1
- package/dist/public/assets/_CzJu_xMs.js.br +0 -0
- package/dist/public/assets/{_C4xR-bcw.js → _D3ardbW_.js} +1 -1
- package/dist/public/assets/_D3ardbW_.js.br +0 -0
- package/dist/public/assets/{_CIkG14ic.js → _D6UgA7_X.js} +1 -1
- package/dist/public/assets/_D6UgA7_X.js.br +0 -0
- package/dist/public/assets/{_CqwvvARM2.js → _D6hi7ua72.js} +1 -1
- package/dist/public/assets/_D6hi7ua72.js.br +0 -0
- package/dist/public/assets/{_CTuqiWc4.js → _D9eCCnFe.js} +1 -1
- package/dist/public/assets/_D9eCCnFe.js.br +0 -0
- package/dist/public/assets/{_DXx38Nka.js → _DHLcQgxi.js} +1 -1
- package/dist/public/assets/_DHLcQgxi.js.br +0 -0
- package/dist/public/assets/{_DHM4stpd.js → _DLfp1TG-.js} +1 -1
- package/dist/public/assets/_DLfp1TG-.js.br +0 -0
- package/dist/public/assets/{_C-9k1_iP.js → _DRbnn8C_.js} +1 -1
- package/dist/public/assets/_DRbnn8C_.js.br +0 -0
- package/dist/public/assets/{_DBsRrJl2.js → _DTD1tZCR.js} +1 -1
- package/dist/public/assets/_DTD1tZCR.js.br +0 -0
- package/dist/public/assets/{_Bp8I3szc.js → _DX5zvNmD.js} +1 -1
- package/dist/public/assets/_DX5zvNmD.js.br +0 -0
- package/dist/public/assets/{_BxbPiayr.js → _DbEBleKv.js} +1 -1
- package/dist/public/assets/_DbEBleKv.js.br +0 -0
- package/dist/public/assets/{_DobhJicG2.js → _DeKPlPsD2.js} +1 -1
- package/dist/public/assets/_DeKPlPsD2.js.br +0 -0
- package/dist/public/assets/{_DkrY5R_L.js → _DfBlfnwv.js} +1 -1
- package/dist/public/assets/_DfBlfnwv.js.br +0 -0
- package/dist/public/assets/{_CTT6B6-b.js → _DiAj-Esd.js} +1 -1
- package/dist/public/assets/_DiAj-Esd.js.br +0 -0
- package/dist/public/assets/{_DAEfR_pv2.js → _DlpIObWk2.js} +1 -1
- package/dist/public/assets/_DlpIObWk2.js.br +0 -0
- package/dist/public/assets/{_DMSaSonW.js → _Dlrc6R2N.js} +20 -20
- package/dist/public/assets/_Dlrc6R2N.js.br +0 -0
- package/dist/public/assets/{_DbucXXAA.js → _Ds1l_cNr.js} +1 -1
- package/dist/public/assets/_Ds1l_cNr.js.br +0 -0
- package/dist/public/assets/{_CerQ_0732.js → _Dzm4iymN2.js} +1 -1
- package/dist/public/assets/_Dzm4iymN2.js.br +0 -0
- package/dist/public/assets/{_BmiI8e9v.js → _NElrm0bu.js} +1 -1
- package/dist/public/assets/_NElrm0bu.js.br +0 -0
- package/dist/public/assets/{_DwFgGl5j.js → _QqRd5Qfx.js} +1 -1
- package/dist/public/assets/_QqRd5Qfx.js.br +0 -0
- package/dist/public/assets/{_COIRZlBz.js → _VuWoXkq_.js} +1 -1
- package/dist/public/assets/_VuWoXkq_.js.br +0 -0
- package/dist/public/assets/{_CqRLihbS.js → _W9tsjAUN.js} +1 -1
- package/dist/public/assets/_W9tsjAUN.js.br +0 -0
- package/dist/public/assets/{_Cs1TioRL.js → _g4l6Vz4T.js} +1 -1
- package/dist/public/assets/_g4l6Vz4T.js.br +0 -0
- package/dist/public/assets/{_C5wBIhjz.js → _iFcqMrGB.js} +1 -1
- package/dist/public/assets/_iFcqMrGB.js.br +0 -0
- package/dist/public/assets/{_CUyMzA_n2.js → _m3dEhGTX2.js} +1 -1
- package/dist/public/assets/_m3dEhGTX2.js.br +0 -0
- package/dist/public/assets/{_JJ2tpZIq2.js → _pfnxgR1W2.js} +1 -1
- package/dist/public/assets/_pfnxgR1W2.js.br +0 -0
- package/dist/public/assets/{_BEfV6dr52.js → _sNxRRogh2.js} +1 -1
- package/dist/public/assets/_sNxRRogh2.js.br +0 -0
- package/dist/public/assets/{_BH1orsGI.js → _uDnfyVmG.js} +1 -1
- package/dist/public/assets/_uDnfyVmG.js.br +0 -0
- package/dist/public/assets/{_CWbBPRed.js → _u_iVn6qP.js} +1 -1
- package/dist/public/assets/_u_iVn6qP.js.br +0 -0
- package/dist/public/assets/{_Bo6_Newo.js → _y4Ul_ohO.js} +1 -1
- package/dist/public/assets/_y4Ul_ohO.js.br +0 -0
- package/dist/public/assets/{_CZn9N_LK2.js → _ypxye8UD2.js} +1 -1
- package/dist/public/assets/_ypxye8UD2.js.br +0 -0
- package/dist/public/assets/app-page-DZhaOCYJ.css +1 -0
- package/dist/public/assets/app-page-DZhaOCYJ.css.br +0 -0
- package/dist/public/assets/diff-view-QQN-PSAx.css +1 -0
- package/dist/public/assets/diff-view-QQN-PSAx.css.br +0 -0
- package/dist/public/assets/new-Cia2P5u6.js +1 -0
- package/dist/public/assets/settings-Cia2P5u6.js +1 -0
- package/dist/public/assets/w-Cia2P5u6.js +1 -0
- package/dist/public/assets/w._-BwIlYQ_7.js +1 -0
- package/dist/public/assets/w._-Cia2P5u6.js +1 -0
- package/lib/review/markdown.d.mts +37 -0
- package/lib/review/markdown.mjs +117 -0
- package/package.json +1 -1
- package/dist/_CTJQVrRJ.js +0 -2
- package/dist/public/assets/_B0K8ONkz.js.br +0 -0
- package/dist/public/assets/_B7r33ix3.js.br +0 -0
- package/dist/public/assets/_BCM54uP7.js.br +0 -0
- package/dist/public/assets/_BEfV6dr52.js.br +0 -0
- package/dist/public/assets/_BH1orsGI.js.br +0 -0
- package/dist/public/assets/_BQQEle5V2.js.br +0 -0
- package/dist/public/assets/_BThtwt0w.js.br +0 -0
- package/dist/public/assets/_BUgZMYtw.js.br +0 -0
- package/dist/public/assets/_BboF69sq.js.br +0 -0
- package/dist/public/assets/_BdX2kLzM.js.br +0 -0
- package/dist/public/assets/_BlzJNKIq.js.br +0 -0
- package/dist/public/assets/_BmiI8e9v.js.br +0 -0
- package/dist/public/assets/_Bo6_Newo.js.br +0 -0
- package/dist/public/assets/_BoY3-Vy52.js.br +0 -0
- package/dist/public/assets/_Bp8I3szc.js.br +0 -0
- package/dist/public/assets/_BtQw2bmP.js.br +0 -0
- package/dist/public/assets/_BxbPiayr.js.br +0 -0
- package/dist/public/assets/_C-9k1_iP.js.br +0 -0
- package/dist/public/assets/_C4xR-bcw.js.br +0 -0
- package/dist/public/assets/_C5wBIhjz.js.br +0 -0
- package/dist/public/assets/_C8nC95yB.js.br +0 -0
- package/dist/public/assets/_CITgMOC9.js.br +0 -0
- package/dist/public/assets/_CIkG14ic.js.br +0 -0
- package/dist/public/assets/_COIRZlBz.js.br +0 -0
- package/dist/public/assets/_COmbCgXJ.js.br +0 -0
- package/dist/public/assets/_CTT6B6-b.js.br +0 -0
- package/dist/public/assets/_CTuqiWc4.js.br +0 -0
- package/dist/public/assets/_CUyMzA_n2.js.br +0 -0
- package/dist/public/assets/_CWbBPRed.js.br +0 -0
- package/dist/public/assets/_CZn9N_LK2.js.br +0 -0
- package/dist/public/assets/_CaI2OErv2.js.br +0 -0
- package/dist/public/assets/_CaKapByl.js.br +0 -0
- package/dist/public/assets/_CeiVaZaE2.js.br +0 -0
- package/dist/public/assets/_CerQ_0732.js.br +0 -0
- package/dist/public/assets/_CioERcnr2.js.br +0 -0
- package/dist/public/assets/_CqRLihbS.js.br +0 -0
- package/dist/public/assets/_CqwvvARM2.js.br +0 -0
- package/dist/public/assets/_CrV-j-_J2.js.br +0 -0
- package/dist/public/assets/_Cs1TioRL.js.br +0 -0
- package/dist/public/assets/_D4ERlOIt.js.br +0 -0
- package/dist/public/assets/_DAEfR_pv2.js.br +0 -0
- package/dist/public/assets/_DBsRrJl2.js.br +0 -0
- package/dist/public/assets/_DGSiyVF7.js.br +0 -0
- package/dist/public/assets/_DHM4stpd.js.br +0 -0
- package/dist/public/assets/_DIPk3FlP.js.br +0 -0
- package/dist/public/assets/_DIqr-isS2.js.br +0 -0
- package/dist/public/assets/_DMSaSonW.js.br +0 -0
- package/dist/public/assets/_DQnRz4N-2.js.br +0 -0
- package/dist/public/assets/_DRy7E0y4.js.br +0 -0
- package/dist/public/assets/_DSl96WfX.js.br +0 -0
- package/dist/public/assets/_DTg6G0mG2.js.br +0 -0
- package/dist/public/assets/_DW89HP67.js.br +0 -0
- package/dist/public/assets/_DXx38Nka.js.br +0 -0
- package/dist/public/assets/_DbucXXAA.js.br +0 -0
- package/dist/public/assets/_DdWJlopw.js.br +0 -0
- package/dist/public/assets/_Dhz04q_D.js.br +0 -0
- package/dist/public/assets/_Dj5rhxkK2.js.br +0 -0
- package/dist/public/assets/_Dk0TvYyB.js.br +0 -0
- package/dist/public/assets/_DkrY5R_L.js.br +0 -0
- package/dist/public/assets/_DktisilP.js.br +0 -0
- package/dist/public/assets/_Dla_sQtT.js.br +0 -0
- package/dist/public/assets/_DmhJqFxg.js.br +0 -0
- package/dist/public/assets/_DobhJicG2.js.br +0 -0
- package/dist/public/assets/_DsedTKoi2.js.br +0 -0
- package/dist/public/assets/_DvCKkq4p.js.br +0 -0
- package/dist/public/assets/_DwFgGl5j.js.br +0 -0
- package/dist/public/assets/_GAJYC2Mn.js.br +0 -0
- package/dist/public/assets/_Ig-G3Vb-2.js.br +0 -0
- package/dist/public/assets/_JJ2tpZIq2.js.br +0 -0
- package/dist/public/assets/_bAkDCn_T2.js.br +0 -0
- package/dist/public/assets/_dGG0GxLJ.js.br +0 -0
- package/dist/public/assets/_tyL67pnw.js.br +0 -0
- package/dist/public/assets/_zBoBE4zG2.js.br +0 -0
- package/dist/public/assets/app-page-BDcrPm2k.css +0 -1
- package/dist/public/assets/app-page-BDcrPm2k.css.br +0 -0
- package/dist/public/assets/diff-view-UombrS99.css +0 -1
- package/dist/public/assets/diff-view-UombrS99.css.br +0 -0
- package/dist/public/assets/new-CzSXygvC.js +0 -1
- package/dist/public/assets/settings-CzSXygvC.js +0 -1
- package/dist/public/assets/w-CzSXygvC.js +0 -1
- package/dist/public/assets/w._-CzSXygvC.js +0 -1
- package/dist/public/assets/w._-q-GIPDIo.js +0 -1
package/bin/work.mjs
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
// work workspace [id|name] one workspace: repos, PRs, sessions, procs (default: the current one)
|
|
11
11
|
// work repos [id|name] a workspace's repos with base branch and open PRs
|
|
12
12
|
// work procs [id|name] a workspace's running processes and ports
|
|
13
|
+
// work review [id|name] pending review comments as markdown (--json for rows)
|
|
13
14
|
// work version print the installed version
|
|
14
15
|
//
|
|
15
16
|
// The read commands ask the running server (same data as the UI) and take
|
|
@@ -23,6 +24,7 @@ import { fileURLToPath } from "node:url";
|
|
|
23
24
|
import { createRequire } from "node:module";
|
|
24
25
|
import { doctor, formatDoctor } from "../lib/setup/doctor.mjs";
|
|
25
26
|
import { installTool } from "../lib/setup/install.mjs";
|
|
27
|
+
import { commentMarkdown } from "../lib/review/markdown.mjs";
|
|
26
28
|
|
|
27
29
|
const pkgRoot = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
28
30
|
const pkg = JSON.parse(fs.readFileSync(path.join(pkgRoot, "package.json"), "utf8"));
|
|
@@ -76,6 +78,9 @@ switch (command) {
|
|
|
76
78
|
case "procs":
|
|
77
79
|
await procsCmd();
|
|
78
80
|
break;
|
|
81
|
+
case "review":
|
|
82
|
+
await reviewCmd();
|
|
83
|
+
break;
|
|
79
84
|
case "version":
|
|
80
85
|
case "--version":
|
|
81
86
|
case "-v":
|
|
@@ -83,7 +88,7 @@ switch (command) {
|
|
|
83
88
|
break;
|
|
84
89
|
default:
|
|
85
90
|
console.log(
|
|
86
|
-
`work ${pkg.version}\n\nusage: work <setup|doctor|start|update|usage|workspaces|workspace|repos|procs|version> [--json]`,
|
|
91
|
+
`work ${pkg.version}\n\nusage: work <setup|doctor|start|update|usage|workspaces|workspace|repos|procs|review|version> [--json]`,
|
|
87
92
|
);
|
|
88
93
|
}
|
|
89
94
|
|
|
@@ -263,6 +268,17 @@ async function procsCmd() {
|
|
|
263
268
|
for (const p of procs) console.log(`${pad(p.pid, 7)} ${p.cmd}${p.ports?.length ? " " + p.ports.map((x) => `:${x}`).join(" ") : ""}`);
|
|
264
269
|
}
|
|
265
270
|
|
|
271
|
+
/** Comments left on the review page but not yet sent: an agent can pull
|
|
272
|
+
* them itself instead of waiting for the reviewer to paste them into its
|
|
273
|
+
* terminal. Markdown is the same text the Send button produces. */
|
|
274
|
+
async function reviewCmd() {
|
|
275
|
+
const { ws } = await resolveWorkspace(positional[0]);
|
|
276
|
+
const { comments = [] } = await apiGet(`/api/workspaces/${ws.id}/review`);
|
|
277
|
+
if (jsonOut) return console.log(JSON.stringify(comments, null, 2));
|
|
278
|
+
if (!comments.length) return console.log("no pending review comments");
|
|
279
|
+
console.log(commentMarkdown(comments, null));
|
|
280
|
+
}
|
|
281
|
+
|
|
266
282
|
/** "4h" / "6d" — how long until an ISO timestamp. A reset already in the past
|
|
267
283
|
* means the window turned over and this row hasn't refreshed since, so there
|
|
268
284
|
* is no honest countdown to print. */
|
|
@@ -2028,18 +2028,44 @@ function repoLabel(fullName) {
|
|
|
2028
2028
|
return fullName;
|
|
2029
2029
|
}
|
|
2030
2030
|
var toastKind = {
|
|
2031
|
-
error: "
|
|
2032
|
-
warn: "
|
|
2033
|
-
info: "
|
|
2031
|
+
error: "_6",
|
|
2032
|
+
warn: "_7",
|
|
2033
|
+
info: "_8"
|
|
2034
2034
|
};
|
|
2035
2035
|
var toastTitle = {
|
|
2036
|
-
error: "
|
|
2037
|
-
warn: "
|
|
2038
|
-
info: "
|
|
2036
|
+
error: "_9",
|
|
2037
|
+
warn: "__",
|
|
2038
|
+
info: "_ba"
|
|
2039
2039
|
};
|
|
2040
2040
|
//#endregion
|
|
2041
|
+
//#region src/tags/icons/icon-base.marko
|
|
2042
|
+
var icon_base_default = _template("D", (input) => {
|
|
2043
|
+
const $scope0_reason = _scope_reason();
|
|
2044
|
+
const $scope0_id = _scope_id();
|
|
2045
|
+
const size = input.size ?? 15;
|
|
2046
|
+
_html(`<svg${_attr_class(["_h", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path${_attr("d", input.d)}></path>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</svg>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
2047
|
+
_serialize_if($scope0_reason, 1) && writeScope($scope0_id, {});
|
|
2048
|
+
});
|
|
2049
|
+
//#endregion
|
|
2050
|
+
//#region src/tags/icons/icon-xmark.marko
|
|
2051
|
+
var icon_xmark_default = _template("W", (input) => {
|
|
2052
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2053
|
+
const $scope0_id = _scope_id();
|
|
2054
|
+
_set_serialize_reason({
|
|
2055
|
+
0: $sg__input_size__OR__input_class,
|
|
2056
|
+
1: $sg__input_size__OR__input_class
|
|
2057
|
+
});
|
|
2058
|
+
const $childScope = _peek_scope_id();
|
|
2059
|
+
icon_base_default({
|
|
2060
|
+
d: "M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",
|
|
2061
|
+
size: input.size,
|
|
2062
|
+
class: input.class
|
|
2063
|
+
});
|
|
2064
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2065
|
+
});
|
|
2066
|
+
//#endregion
|
|
2041
2067
|
//#region src/tags/toast.marko
|
|
2042
|
-
var toast_default = _template("
|
|
2068
|
+
var toast_default = _template("y", (input) => {
|
|
2043
2069
|
const $scope0_reason = _scope_reason(), $sg__input_title = _serialize_guard($scope0_reason, 7), $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 5), $sg__input_content = _serialize_guard($scope0_reason, 8), $sg__input_action = _serialize_guard($scope0_reason, 9), $sg__input_action__OR__input_onDismiss = _serialize_guard($scope0_reason, 3), $sg__input_onDismiss = _serialize_guard($scope0_reason, 11), $si__input_content = _serialize_if($scope0_reason, 8), $si__input_action__OR__input_onDismiss = _serialize_if($scope0_reason, 3), $si__input_action_content = _serialize_if($scope0_reason, 10);
|
|
2044
2070
|
const $scope0_id = _scope_id();
|
|
2045
2071
|
const $input_action_content__closures = /* @__PURE__ */ new Set();
|
|
@@ -2047,18 +2073,18 @@ var toast_default = _template("x", (input) => {
|
|
|
2047
2073
|
const kind = inputKind || "error";
|
|
2048
2074
|
const placement = inputPlacement || "float";
|
|
2049
2075
|
const placementClass = {
|
|
2050
|
-
float: "
|
|
2051
|
-
inline: "
|
|
2076
|
+
float: "_4",
|
|
2077
|
+
inline: "_5"
|
|
2052
2078
|
}[placement];
|
|
2053
2079
|
_html(`<div${_attr_class([
|
|
2054
|
-
"
|
|
2080
|
+
"_3",
|
|
2055
2081
|
toastKind[kind],
|
|
2056
2082
|
placementClass,
|
|
2057
2083
|
inputClass
|
|
2058
2084
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
2059
2085
|
class: 1,
|
|
2060
2086
|
role: 1
|
|
2061
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
2087
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bb")}>`);
|
|
2062
2088
|
_if(() => {
|
|
2063
2089
|
if (title) {
|
|
2064
2090
|
const $scope1_id = _scope_id();
|
|
@@ -2070,7 +2096,7 @@ var toast_default = _template("x", (input) => {
|
|
|
2070
2096
|
_if(() => {
|
|
2071
2097
|
if (content) {
|
|
2072
2098
|
const $scope2_id = _scope_id();
|
|
2073
|
-
_html(`<div${_attr_class("
|
|
2099
|
+
_html(`<div${_attr_class("_bc")}>`);
|
|
2074
2100
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
2075
2101
|
_html("</div>");
|
|
2076
2102
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2081,7 +2107,7 @@ var toast_default = _template("x", (input) => {
|
|
|
2081
2107
|
_if(() => {
|
|
2082
2108
|
if (action || onDismiss) {
|
|
2083
2109
|
const $scope3_id = _scope_id();
|
|
2084
|
-
_html(`<div${_attr_class("
|
|
2110
|
+
_html(`<div${_attr_class("_bd")}>`);
|
|
2085
2111
|
_if(() => {
|
|
2086
2112
|
if (action) {
|
|
2087
2113
|
const $scope4_id = _scope_id();
|
|
@@ -2093,8 +2119,10 @@ var toast_default = _template("x", (input) => {
|
|
|
2093
2119
|
_if(() => {
|
|
2094
2120
|
if (onDismiss) {
|
|
2095
2121
|
const $scope5_id = _scope_id();
|
|
2096
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
2097
|
-
|
|
2122
|
+
_html(`<button${_attr_class([iconBtnRow, "_be"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
2123
|
+
icon_xmark_default({ size: 14 });
|
|
2124
|
+
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
2125
|
+
_script($scope5_id, "y0");
|
|
2098
2126
|
writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2099
2127
|
return 0;
|
|
2100
2128
|
}
|
|
@@ -2105,8 +2133,8 @@ var toast_default = _template("x", (input) => {
|
|
|
2105
2133
|
}
|
|
2106
2134
|
}, $scope0_id, "e", $sg__input_action__OR__input_onDismiss, $sg__input_action__OR__input_onDismiss, $sg__input_title__OR__input_content__OR__input_action__OR__input_onDismiss, 0, 1);
|
|
2107
2135
|
_html(`</div>${_el_resume($scope0_id, "a")}`);
|
|
2108
|
-
_script($scope0_id, "
|
|
2109
|
-
_script($scope0_id, "
|
|
2136
|
+
_script($scope0_id, "y1");
|
|
2137
|
+
_script($scope0_id, "y2");
|
|
2110
2138
|
writeScope($scope0_id, {
|
|
2111
2139
|
j: _serialize_if($scope0_reason, 7) && title,
|
|
2112
2140
|
k: _serialize_if($scope0_reason, 0) && inputClass,
|
|
@@ -2121,21 +2149,12 @@ var toast_default = _template("x", (input) => {
|
|
|
2121
2149
|
});
|
|
2122
2150
|
_resume_branch($scope0_id);
|
|
2123
2151
|
});
|
|
2124
|
-
var sectionCount = "
|
|
2125
|
-
var row = "
|
|
2152
|
+
var sectionCount = "_br _F _G";
|
|
2153
|
+
var row = "_bC _bu";
|
|
2126
2154
|
var iconBtn = "_X _g";
|
|
2127
2155
|
//#endregion
|
|
2128
|
-
//#region src/tags/icons/icon-base.marko
|
|
2129
|
-
var icon_base_default = _template("C", (input) => {
|
|
2130
|
-
const $scope0_reason = _scope_reason();
|
|
2131
|
-
const $scope0_id = _scope_id();
|
|
2132
|
-
const size = input.size ?? 15;
|
|
2133
|
-
_html(`<svg${_attr_class(["_h", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path${_attr("d", input.d)}></path>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</svg>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
2134
|
-
_serialize_if($scope0_reason, 1) && writeScope($scope0_id, {});
|
|
2135
|
-
});
|
|
2136
|
-
//#endregion
|
|
2137
2156
|
//#region src/tags/icons/icon-refresh.marko
|
|
2138
|
-
var icon_refresh_default = _template("
|
|
2157
|
+
var icon_refresh_default = _template("P", (input) => {
|
|
2139
2158
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2140
2159
|
const $scope0_id = _scope_id();
|
|
2141
2160
|
_set_serialize_reason({
|
|
@@ -2152,7 +2171,7 @@ var icon_refresh_default = _template("O", (input) => {
|
|
|
2152
2171
|
});
|
|
2153
2172
|
//#endregion
|
|
2154
2173
|
//#region src/tags/icons/icon-back.marko
|
|
2155
|
-
var icon_back_default = _template("
|
|
2174
|
+
var icon_back_default = _template("C", (input) => {
|
|
2156
2175
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2157
2176
|
const $scope0_id = _scope_id();
|
|
2158
2177
|
_set_serialize_reason({
|
|
@@ -2169,7 +2188,7 @@ var icon_back_default = _template("B", (input) => {
|
|
|
2169
2188
|
});
|
|
2170
2189
|
//#endregion
|
|
2171
2190
|
//#region src/tags/icons/icon-search.marko
|
|
2172
|
-
var icon_search_default = _template("
|
|
2191
|
+
var icon_search_default = _template("Q", (input) => {
|
|
2173
2192
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2174
2193
|
const $scope0_id = _scope_id();
|
|
2175
2194
|
_set_serialize_reason({
|
|
@@ -2266,12 +2285,17 @@ function setWorkspaceTab(workspaceId, sessionId) {
|
|
|
2266
2285
|
function diffTreeOpen() {
|
|
2267
2286
|
return get("diff-tree") !== "0";
|
|
2268
2287
|
}
|
|
2269
|
-
function
|
|
2270
|
-
|
|
2288
|
+
function diffScope() {
|
|
2289
|
+
const v = get("diff-scope");
|
|
2290
|
+
if (v === "working" || v === "dirty") return v;
|
|
2291
|
+
return get("diff-uncommitted") === "1" ? "working" : "committed";
|
|
2292
|
+
}
|
|
2293
|
+
function setDiffScope(scope) {
|
|
2294
|
+
set("diff-scope", scope);
|
|
2271
2295
|
}
|
|
2272
2296
|
//#endregion
|
|
2273
2297
|
//#region src/tags/icons/icon-sidebar.marko
|
|
2274
|
-
var icon_sidebar_default = _template("
|
|
2298
|
+
var icon_sidebar_default = _template("T", (input) => {
|
|
2275
2299
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2276
2300
|
const $scope0_id = _scope_id();
|
|
2277
2301
|
_set_serialize_reason({
|
|
@@ -2286,7 +2310,7 @@ var icon_sidebar_default = _template("S", (input) => {
|
|
|
2286
2310
|
});
|
|
2287
2311
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2288
2312
|
});
|
|
2289
|
-
var findInput = "
|
|
2290
|
-
var findIconBtn = "
|
|
2313
|
+
var findInput = "_eJ _i";
|
|
2314
|
+
var findIconBtn = "_eM _g";
|
|
2291
2315
|
//#endregion
|
|
2292
|
-
export {
|
|
2316
|
+
export { _flush_head as $, metaTrunc as A, _attr_select_value as B, setPrimaryHost as C, _try as Ct, iconBtnRow as D, writeScope as Dt, iconBtnLg as E, withPageAssets as Et, _attr_class as F, _content as G, _attrs as H, _attr_details_or_dialog_open as I, _el as J, _content_resume as K, _attr_input_value as L, tone as M, $global as N, iconBtnXs as O, _attr as P, _existing_scope as Q, _attr_option_value as R, repoWebUrl as S, _trailers as St, btnSm as T, attrTag as Tt, _attrs_partial as U, _attr_style as V, _await as W, _el_resume as X, _el_read_error as Y, _escape as Z, sectionCount as _, _show_end as _t, diffTreeOpen as a, _if as at, icon_base_default as b, _template as bt, sideNavOpen as c, _resume_branch as ct, rankRepos as d, _scope_with_id as dt, _for_of as et, icon_search_default as f, _script as ft, row as g, _set_serialize_reason as gt, iconBtn as h, _serialize_if as ht, diffScope as i, _id as it, phase as j, inputLg as k, workspaceTab as l, _scope_id as lt, icon_refresh_default as m, _serialize_guard as mt, findInput as n, _hoist_read_error as nt, setDiffScope as o, _peek_scope_id as ot, icon_back_default as p, _sep as pt, _dynamic_tag as q, icon_sidebar_default as r, _html as rt, setWorkspaceTab as s, _resume as st, findIconBtn as t, _hoist as tt, fuzzy as u, _scope_reason as ut, toast_default as v, _show_start as vt, btnLg as w, _var as wt, repoLabel as x, _to_text as xt, icon_xmark_default as y, _subscribe as yt, _attr_or as z };
|