@fabiofiorita/porcelain 0.78.0 → 0.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/server/src/bootstrap/watch-host.mjs +115 -0
  4. package/server/src/cli/main.mjs +8100 -6816
  5. package/web/dist/assets/_-BshWuX2r.js +1 -0
  6. package/web/dist/assets/_layerId-B2Mhwdgd.js +1 -0
  7. package/web/dist/assets/_paired-BsiX749W.js +1 -0
  8. package/web/dist/assets/{_paired-BQ0y29Xb.js → _paired-ByXCZfON.js} +1 -1
  9. package/web/dist/assets/_paired-Qv7e73Az.js +1 -0
  10. package/web/dist/assets/_paired-RaEpohFx.js +1 -0
  11. package/web/dist/assets/_projectId-K3HYfGmC.js +1 -0
  12. package/web/dist/assets/_reviewId-BgaLSHh-.js +1 -0
  13. package/web/dist/assets/{_revision-BMXAJq_Z.js → _revision-CEkztxVf.js} +1 -1
  14. package/web/dist/assets/_section-eV0dGQ8T.js +1 -0
  15. package/web/dist/assets/_worktreeId-BsiX749W.js +1 -0
  16. package/web/dist/assets/_worktreeId-C634iX0I.js +1 -0
  17. package/web/dist/assets/_worktreeId-Dp2IijNU.js +1 -0
  18. package/web/dist/assets/_worktreeId-RaEpohFx.js +1 -0
  19. package/web/dist/assets/access-CgdAbsDB.js +19 -0
  20. package/web/dist/assets/connected-workspace-73Vq_-Pm.js +1 -0
  21. package/web/dist/assets/desktop-actions-DbUXvsow.js +1 -0
  22. package/web/dist/assets/{edit-file-Bcu9LCmp.js → edit-file-NoqbTKtz.js} +20 -20
  23. package/web/dist/assets/{file-editor-B_jE48tv.js → file-editor-BcKWP6Pq.js} +2 -2
  24. package/web/dist/assets/index-CEW83Kj-.css +2 -0
  25. package/web/dist/assets/index-iGH92IrA.js +10 -0
  26. package/web/dist/assets/{lazyRouteComponent-C0NLdQ95.js → lazyRouteComponent-DGmhBXYn.js} +1 -1
  27. package/web/dist/assets/pair-Cs-YnRFF.js +1 -0
  28. package/web/dist/assets/pair-RaEpohFx.js +1 -0
  29. package/web/dist/assets/review-route-C2awZrL6.js +1 -0
  30. package/web/dist/assets/reviews-BkUaPv4P.js +1413 -0
  31. package/web/dist/assets/reviews-DLioOiRN.css +1 -0
  32. package/web/dist/assets/useMatch-DNkNC5QD.js +1 -0
  33. package/web/dist/assets/useRouterState-7m7hAzAG.js +1 -0
  34. package/web/dist/assets/workspace-error-DZyPmDw9.js +1 -0
  35. package/web/dist/assets/{workspace-pending-DgQgV-cu.js → workspace-pending-D8mUCjic.js} +1 -1
  36. package/web/dist/index.html +9 -8
  37. package/web/dist/assets/_-CSJHpFdT.js +0 -1
  38. package/web/dist/assets/_layerId-DODyO-4v.js +0 -1
  39. package/web/dist/assets/_paired-Bse7nsmg.js +0 -1
  40. package/web/dist/assets/_paired-CmZDjtRz.js +0 -1
  41. package/web/dist/assets/_paired-CrNFab02.js +0 -1
  42. package/web/dist/assets/_reviewId-CBVBAvNp.js +0 -1
  43. package/web/dist/assets/_section-DdvA8EEA.js +0 -1
  44. package/web/dist/assets/_worktreeId-B27bXYEK.js +0 -1
  45. package/web/dist/assets/_worktreeId-Bse7nsmg.js +0 -1
  46. package/web/dist/assets/_worktreeId-C8Q6GcvL.js +0 -1
  47. package/web/dist/assets/_worktreeId-CmZDjtRz.js +0 -1
  48. package/web/dist/assets/access-E2mYEqnl.js +0 -19
  49. package/web/dist/assets/connected-workspace-8ch85vkt.js +0 -1
  50. package/web/dist/assets/desktop-actions-BPv0J8RL.js +0 -1
  51. package/web/dist/assets/index-BHlOFndd.js +0 -10
  52. package/web/dist/assets/index-Bg-CecA5.css +0 -2
  53. package/web/dist/assets/pair-Bse7nsmg.js +0 -1
  54. package/web/dist/assets/pair-CbpILDh2.js +0 -1
  55. package/web/dist/assets/review-route-CZyVDwAY.js +0 -1
  56. package/web/dist/assets/reviews-DCiXZMLG.js +0 -1404
  57. package/web/dist/assets/useMatch-CPSFM0JI.js +0 -1
  58. package/web/dist/assets/useRouterState-DtsAJKLm.js +0 -1
  59. package/web/dist/assets/workspace-error-DIuDMViV.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Bc as t,Jc as n,Mc as r,Oc as i,Tc as a,Xc as o,el as s,gc as c,jc as l,nl as u,yc as d}from"./access-E2mYEqnl.js";import{t as f}from"./root-DLTE-HSj.js";import{t as p}from"./useMatch-CPSFM0JI.js";function m(e){e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`&&n(e.href)&&(e.reloadDocument=!0);let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let r=new Response(null,{status:e.statusCode,headers:t});if(r.options=e,e.throw)throw r;return r}function h(e){return e instanceof Response&&!!e.options}var g=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let n=this.options,a=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=f:this.parentRoute||t();let o=a?f:n?.path;o&&o!==`/`&&(o=l(o));let s=n?.id||o,c=a?f:i([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);o===`__root__`&&(o=`/`),c!==`__root__`&&(c=i([`/`,c]));let u=c===`__root__`?`/`:i([this.parentRoute.fullPath,o]);this._path=o,this._id=c,this._fullPath=u,this._to=r(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>m({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},_=class extends g{constructor(e){super(e)}};function v(e){return p({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return p({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return p({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return p({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function S(e){return p({...e,select:t=>e.select?e.select(t.context):t.context})}var C=e(u(),1),w=a(),T=class extends g{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>d({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(c,{ref:t,from:this.fullPath,...e}))}};function E(e){return new T(e)}function D(){return e=>k(e)}var O=class extends _{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>d({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(c,{ref:t,from:this.fullPath,...e}))}};function k(e){return new O(e)}function A(e){return e=>{let t=E(e);return t.isRoot=!1,t}}function j(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,c.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),c=function(e){if(i){if(o(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(s)s(a());else throw a()}return C.createElement(r,e)};return c.preload=a,c}export{m as a,h as i,A as n,D as r,j as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Ec as t,Mc as n,Nc as r,Vc as i,Yc as a,Zc as o,_c as s,bc as c,kc as l,rl as u,tl as d}from"./access-CgdAbsDB.js";import{t as f}from"./root-DLTE-HSj.js";import{t as p}from"./useMatch-DNkNC5QD.js";function m(e){e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`&&a(e.href)&&(e.reloadDocument=!0);let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function h(e){return e instanceof Response&&!!e.options}var g=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,a=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=f:this.parentRoute||i();let o=a?f:t?.path;o&&o!==`/`&&(o=n(o));let s=t?.id||o,c=a?f:l([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);o===`__root__`&&(o=`/`),c!==`__root__`&&(c=l([`/`,c]));let u=c===`__root__`?`/`:l([this.parentRoute.fullPath,o]);this._path=o,this._id=c,this._fullPath=u,this._to=r(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>m({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},_=class extends g{constructor(e){super(e)}};function v(e){return p({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function y(e){let{select:t,...n}=e;return p({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function b(e){return p({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function x(e){return p({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function S(e){return p({...e,select:t=>e.select?e.select(t.context):t.context})}var C=e(u(),1),w=t(),T=class extends g{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function E(e){return new T(e)}function D(){return e=>k(e)}var O=class extends _{constructor(e){super(e),this.useMatch=e=>p({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>b({...e,from:this.id}),this.useLoaderDeps=e=>y({...e,from:this.id}),this.useLoaderData=e=>v({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function k(e){return new O(e)}function A(e){return e=>{let t=E(e);return t.isRoot=!1,t}}function j(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,s.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),s=function(e){if(i){if(o(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(d)d(a());else throw a()}return C.createElement(r,e)};return s.preload=a,s}export{m as a,h as i,A as n,D as r,j as t};
@@ -0,0 +1 @@
1
+ import{Cc as e,Cn as t,Ec as n,hn as r,mc as i,sc as a,vn as o}from"./access-CgdAbsDB.js";import{l as s}from"./index-iGH92IrA.js";var c=i(),l=n();function u(){let n=(0,c.c)(6),i=s.useLoaderData(),u;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={select:d},n[0]=u):u=n[0];let f=s.useMatch(u),p=e(),m;n[1]===p?m=n[2]:(m=t(()=>{p.invalidate()}),n[1]=p,n[2]=m),a(m);let h=f?void 0:i?.reason,g;return n[3]!==f||n[4]!==h?(g=(0,l.jsx)(o,{children:(0,l.jsx)(r,{pending:f,reason:h})}),n[3]=f,n[4]=h,n[5]=g):g=n[5],g}function d(e){return e.isFetching===`loader`}export{u as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./workspace-error-DZyPmDw9.js";var t=e;export{t as errorComponent};
@@ -0,0 +1 @@
1
+ import{Bo as e,Dn as t,Ec as n,H as r,Lo as i,Ro as a,V as o,bc as s,g as c,is as l,mc as u,wn as d}from"./access-CgdAbsDB.js";import{i as f,r as p,x as m}from"./reviews-BkUaPv4P.js";import{Jr as h,R as g,Zr as _}from"./edit-file-NoqbTKtz.js";import{t as v}from"./connected-workspace-73Vq_-Pm.js";var y=u(),b=n();function x(n){let u=(0,y.c)(36),{reviewId:x,revision:S,decision:C,environment:w,entry:T,side:E}=n,D=t(),O;if(u[0]!==w||u[1]!==D){let e;u[3]===w?e=u[4]:(e=e=>e.remote.environmentId===w,u[3]=w,u[4]=e),O=D.find(e),u[0]=w,u[1]=D,u[2]=O}else O=u[2];let k=O,A=d(k?.connection),j=s(),M;u[5]===j?M=u[6]:(M=()=>{j({to:`/`,search:{}})},u[5]=j,u[6]=M);let N=M;if(w&&!k){let e;return u[7]!==N||u[8]!==j?(e=(0,b.jsx)(v,{children:e=>(0,b.jsx)(o,{navigation:(0,b.jsx)(c,{ref:e.attach,"aria-label":`Toggle Sidebar`}),title:`Review`,children:(0,b.jsxs)(r,{title:`Computer not paired`,description:`This review's remote computer is not paired here.`,children:[(0,b.jsx)(l,{variant:`outline`,onClick:()=>void j({to:`/settings/$section`,params:{section:`computers`}}),children:`Computer settings`}),(0,b.jsx)(l,{variant:`ghost`,onClick:N,children:`Back to workspace`})]})})}),u[7]=N,u[8]=j,u[9]=e):e=u[9],e}let P=S===void 0?void 0:Number(S);if(P!==void 0&&(!Number.isSafeInteger(P)||P<1)){let e;return u[10]!==N||u[11]!==A||u[12]!==w||u[13]!==j||u[14]!==x||u[15]!==S?(e=(0,b.jsx)(v,{children:e=>(0,b.jsx)(p,{navigation:(0,b.jsx)(c,{ref:e.attach,"aria-label":`Toggle Sidebar`}),reviewId:x,revision:S,context:A,onBack:N,onRevision:()=>void j({to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,decision:void 0}})})}),u[10]=N,u[11]=A,u[12]=w,u[13]=j,u[14]=x,u[15]=S,u[16]=e):e=u[16],e}let F;u[17]!==w||u[18]!==x?(F={reviewId:x,environment:w},u[17]=w,u[18]=x,u[19]=F):F=u[19];let I;u[20]===k?I=u[21]:(I=k?{remote:k}:{},u[20]=k,u[21]=I);let L;u[22]!==N||u[23]!==A||u[24]!==C||u[25]!==T||u[26]!==w||u[27]!==j||u[28]!==P||u[29]!==x||u[30]!==E?(L=t=>(0,b.jsx)(f,{navigation:(0,b.jsxs)(i,{children:[(0,b.jsx)(e,{render:(0,b.jsx)(c,{ref:t.attach,"aria-label":`Toggle Sidebar`,"aria-keyshortcuts":_()===`mac`?`Meta+B`:`Control+B`})}),(0,b.jsxs)(a,{children:[`Toggle Sidebar`,` `,(0,b.jsx)(m,{children:h(g.toggleNavigator)})]})]}),reviewId:x,documentNavigation:{search:{entry:T,side:E},onSearch:(e,t)=>{j({to:`.`,search:t=>({...t,...e}),...t})}},revision:P,decision:C,context:A,onBack:N,onRevision:e=>{j(e===void 0?{to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,decision:void 0}}:{to:`/reviews/$reviewId/$revision`,params:{reviewId:x,revision:String(e)},search:{environment:w,decision:void 0}})},onStop:e=>{j(P===void 0?{to:`/reviews/$reviewId`,params:{reviewId:x},search:{environment:w,entry:void 0,side:E,decision:e}}:e===void 0?{to:`/reviews/$reviewId/$revision`,params:{reviewId:x,revision:String(P)},search:{environment:w,entry:void 0,side:E,decision:void 0}}:{to:`/reviews/$reviewId/$revision/decisions/$layerId`,params:{reviewId:x,revision:String(P),layerId:e},search:{environment:w,entry:void 0,side:E,decision:void 0}})}}),u[22]=N,u[23]=A,u[24]=C,u[25]=T,u[26]=w,u[27]=j,u[28]=P,u[29]=x,u[30]=E,u[31]=L):L=u[31];let R;return u[32]!==F||u[33]!==I||u[34]!==L?(R=(0,b.jsx)(v,{openReview:F,...I,children:L}),u[32]=F,u[33]=I,u[34]=L,u[35]=R):R=u[35],R}export{x as t};