@agents-shire/cli-win32-x64 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/drizzle/0000_oval_zodiak.sql +46 -0
- package/drizzle/0001_familiar_captain_america.sql +5 -0
- package/drizzle/meta/0000_snapshot.json +350 -0
- package/drizzle/meta/0001_snapshot.json +385 -0
- package/drizzle/meta/_journal.json +20 -0
- package/frontend/chunk-0bse45gk.js +2 -0
- package/frontend/chunk-0kgchkzc.js +2 -0
- package/frontend/chunk-0sevb013.js +2 -0
- package/frontend/chunk-1dh4a5cx.js +2 -0
- package/frontend/chunk-1s0wttpq.js +2 -0
- package/frontend/chunk-22exkank.js +2 -0
- package/frontend/chunk-2e1s65yj.js +2 -0
- package/frontend/chunk-3nr0jqvn.js +1 -0
- package/frontend/chunk-4w7jtd73.js +1 -0
- package/frontend/chunk-54cwnag0.js +2 -0
- package/frontend/chunk-88e95fy7.js +1 -0
- package/frontend/chunk-a192rsyd.js +2 -0
- package/frontend/chunk-acmptvxv.js +2 -0
- package/frontend/chunk-bhn3xax8.js +30 -0
- package/frontend/chunk-crwk8d1a.js +1 -0
- package/frontend/chunk-dcv8hszn.js +2 -0
- package/frontend/chunk-fhmact7z.js +2 -0
- package/frontend/chunk-g1t3cgxq.js +2 -0
- package/frontend/chunk-gx71yw3f.js +12 -0
- package/frontend/chunk-jt8zx64v.js +2 -0
- package/frontend/chunk-k1p6pt0y.js +2 -0
- package/frontend/chunk-n7r5yhva.js +2 -0
- package/frontend/chunk-qf8bwpw7.js +1 -0
- package/frontend/chunk-qsqdrxhf.js +28 -0
- package/frontend/chunk-r19vjw47.js +2 -0
- package/frontend/chunk-sc5hwhz8.js +42 -0
- package/frontend/chunk-sqjb0n8w.js +3 -0
- package/frontend/chunk-t3xdmmp4.js +1 -0
- package/frontend/chunk-zagd9kjc.js +2 -0
- package/frontend/index.html +16 -0
- package/frontend/main.js +214 -0
- package/package.json +19 -0
- package/shire.exe +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{la as n,oa as u0,qa as b,ra as T0,ua as y}from"/chunk-n7r5yhva.js";import{Aa as A,Ea as N,Fa as P1,Na as G0,Sa as i}from"/chunk-bhn3xax8.js";var C=A(N(),1);var P0=A(N(),1);function w0($,Z=globalThis?.document){let J=y($);P0.useEffect(()=>{let W=(L)=>{if(L.key==="Escape")J(L)};return Z.addEventListener("keydown",W,{capture:!0}),()=>Z.removeEventListener("keydown",W,{capture:!0})},[J,Z])}var X0=A(G0(),1),z1="DismissableLayer",q0="dismissableLayer.update",B1="dismissableLayer.pointerDownOutside",H1="dismissableLayer.focusOutside",x0,S0=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),K1=C.forwardRef(($,Z)=>{let{disableOutsidePointerEvents:J=!1,onEscapeKeyDown:W,onPointerDownOutside:L,onFocusOutside:X,onInteractOutside:Y,onDismiss:q,...O}=$,Q=C.useContext(S0),[z,j]=C.useState(null),H=z?.ownerDocument??globalThis?.document,[,R]=C.useState({}),w=i(Z,(B)=>j(B)),G=Array.from(Q.layers),[K]=[...Q.layersWithOutsidePointerEventsDisabled].slice(-1),U=G.indexOf(K),E=z?G.indexOf(z):-1,M=Q.layersWithOutsidePointerEventsDisabled.size>0,D=E>=U,I=E1((B)=>{let S=B.target,g=[...Q.branches].some((c)=>c.contains(S));if(!D||g)return;if(L?.(B),Y?.(B),!B.defaultPrevented)q?.()},H),F=V1((B)=>{let S=B.target;if([...Q.branches].some((c)=>c.contains(S)))return;if(X?.(B),Y?.(B),!B.defaultPrevented)q?.()},H);return w0((B)=>{if(E!==Q.layers.size-1)return;if(W?.(B),!B.defaultPrevented&&q)B.preventDefault(),q()},H),C.useEffect(()=>{if(!z)return;if(J){if(Q.layersWithOutsidePointerEventsDisabled.size===0)x0=H.body.style.pointerEvents,H.body.style.pointerEvents="none";Q.layersWithOutsidePointerEventsDisabled.add(z)}return Q.layers.add(z),N0(),()=>{if(J&&Q.layersWithOutsidePointerEventsDisabled.size===1)H.body.style.pointerEvents=x0}},[z,H,J,Q]),C.useEffect(()=>{return()=>{if(!z)return;Q.layers.delete(z),Q.layersWithOutsidePointerEventsDisabled.delete(z),N0()}},[z,Q]),C.useEffect(()=>{let B=()=>R({});return document.addEventListener(q0,B),()=>document.removeEventListener(q0,B)},[]),X0.jsx(b.div,{...O,ref:w,style:{pointerEvents:M?D?"auto":"none":void 0,...$.style},onFocusCapture:n($.onFocusCapture,F.onFocusCapture),onBlurCapture:n($.onBlurCapture,F.onBlurCapture),onPointerDownCapture:n($.onPointerDownCapture,I.onPointerDownCapture)})});K1.displayName=z1;var j1="DismissableLayerBranch",U1=C.forwardRef(($,Z)=>{let J=C.useContext(S0),W=C.useRef(null),L=i(Z,W);return C.useEffect(()=>{let X=W.current;if(X)return J.branches.add(X),()=>{J.branches.delete(X)}},[J.branches]),X0.jsx(b.div,{...$,ref:L})});U1.displayName=j1;function E1($,Z=globalThis?.document){let J=y($),W=C.useRef(!1),L=C.useRef(()=>{});return C.useEffect(()=>{let X=(q)=>{if(q.target&&!W.current){let Q=function(){y0(B1,J,z,{discrete:!0})};var O=Q;let z={originalEvent:q};if(q.pointerType==="touch")Z.removeEventListener("click",L.current),L.current=Q,Z.addEventListener("click",L.current,{once:!0});else Q()}else Z.removeEventListener("click",L.current);W.current=!1},Y=window.setTimeout(()=>{Z.addEventListener("pointerdown",X)},0);return()=>{window.clearTimeout(Y),Z.removeEventListener("pointerdown",X),Z.removeEventListener("click",L.current)}},[Z,J]),{onPointerDownCapture:()=>W.current=!0}}function V1($,Z=globalThis?.document){let J=y($),W=C.useRef(!1);return C.useEffect(()=>{let L=(X)=>{if(X.target&&!W.current)y0(H1,J,{originalEvent:X},{discrete:!1})};return Z.addEventListener("focusin",L),()=>Z.removeEventListener("focusin",L)},[Z,J]),{onFocusCapture:()=>W.current=!0,onBlurCapture:()=>W.current=!1}}function N0(){let $=new CustomEvent(q0);document.dispatchEvent($)}function y0($,Z,J,{discrete:W}){let L=J.originalEvent.target,X=new CustomEvent($,{bubbles:!1,cancelable:!0,detail:J});if(Z)L.addEventListener($,Z,{once:!0});if(W)T0(L,X);else L.dispatchEvent(X)}var b0=A(N(),1),Y0=0;function Y4(){b0.useEffect(()=>{let $=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",$[0]??h0()),document.body.insertAdjacentElement("beforeend",$[1]??h0()),Y0++,()=>{if(Y0===1)document.querySelectorAll("[data-radix-focus-guard]").forEach((Z)=>Z.remove());Y0--}},[])}function h0(){let $=document.createElement("span");return $.setAttribute("data-radix-focus-guard",""),$.tabIndex=0,$.style.outline="none",$.style.opacity="0",$.style.position="fixed",$.style.pointerEvents="none",$}var T=A(N(),1);var m0=A(G0(),1),Q0="focusScope.autoFocusOnMount",z0="focusScope.autoFocusOnUnmount",f0={bubbles:!1,cancelable:!0},R1="FocusScope",C1=T.forwardRef(($,Z)=>{let{loop:J=!1,trapped:W=!1,onMountAutoFocus:L,onUnmountAutoFocus:X,...Y}=$,[q,O]=T.useState(null),Q=y(L),z=y(X),j=T.useRef(null),H=i(Z,(G)=>O(G)),R=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(W){let E=function(F){if(R.paused||!q)return;let B=F.target;if(q.contains(B))j.current=B;else h(j.current,{select:!0})},M=function(F){if(R.paused||!q)return;let B=F.relatedTarget;if(B===null)return;if(!q.contains(B))h(j.current,{select:!0})},D=function(F){if(document.activeElement!==document.body)return;for(let S of F)if(S.removedNodes.length>0)h(q)};var G=E,K=M,U=D;document.addEventListener("focusin",E),document.addEventListener("focusout",M);let I=new MutationObserver(D);if(q)I.observe(q,{childList:!0,subtree:!0});return()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",M),I.disconnect()}}},[W,q,R.paused]),T.useEffect(()=>{if(q){_0.add(R);let G=document.activeElement;if(!q.contains(G)){let U=new CustomEvent(Q0,f0);if(q.addEventListener(Q0,Q),q.dispatchEvent(U),!U.defaultPrevented){if(M1(A1(v0(q)),{select:!0}),document.activeElement===G)h(q)}}return()=>{q.removeEventListener(Q0,Q),setTimeout(()=>{let U=new CustomEvent(z0,f0);if(q.addEventListener(z0,z),q.dispatchEvent(U),!U.defaultPrevented)h(G??document.body,{select:!0});q.removeEventListener(z0,z),_0.remove(R)},0)}}},[q,Q,z,R]);let w=T.useCallback((G)=>{if(!J&&!W)return;if(R.paused)return;let K=G.key==="Tab"&&!G.altKey&&!G.ctrlKey&&!G.metaKey,U=document.activeElement;if(K&&U){let E=G.currentTarget,[M,D]=I1(E);if(!(M&&D)){if(U===E)G.preventDefault()}else if(!G.shiftKey&&U===D){if(G.preventDefault(),J)h(M,{select:!0})}else if(G.shiftKey&&U===M){if(G.preventDefault(),J)h(D,{select:!0})}}},[J,W,R.paused]);return m0.jsx(b.div,{tabIndex:-1,...Y,ref:H,onKeyDown:w})});C1.displayName=R1;function M1($,{select:Z=!1}={}){let J=document.activeElement;for(let W of $)if(h(W,{select:Z}),document.activeElement!==J)return}function I1($){let Z=v0($),J=k0(Z,$),W=k0(Z.reverse(),$);return[J,W]}function v0($){let Z=[],J=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:(W)=>{let L=W.tagName==="INPUT"&&W.type==="hidden";if(W.disabled||W.hidden||L)return NodeFilter.FILTER_SKIP;return W.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(J.nextNode())Z.push(J.currentNode);return Z}function k0($,Z){for(let J of $)if(!D1(J,{upTo:Z}))return J}function D1($,{upTo:Z}){if(getComputedStyle($).visibility==="hidden")return!0;while($){if(Z!==void 0&&$===Z)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1}function O1($){return $ instanceof HTMLInputElement&&"select"in $}function h($,{select:Z=!1}={}){if($&&$.focus){let J=document.activeElement;if($.focus({preventScroll:!0}),$!==J&&O1($)&&Z)$.select()}}var _0=F1();function F1(){let $=[];return{add(Z){let J=$[0];if(Z!==J)J?.pause();$=g0($,Z),$.unshift(Z)},remove(Z){$=g0($,Z),$[0]?.resume()}}}function g0($,Z){let J=[...$],W=J.indexOf(Z);if(W!==-1)J.splice(W,1);return J}function A1($){return $.filter((Z)=>Z.tagName!=="A")}var a=A(N(),1),p0=A(P1(),1);var d0=A(G0(),1),w1="Portal",x1=a.forwardRef(($,Z)=>{let{container:J,...W}=$,[L,X]=a.useState(!1);u0(()=>X(!0),[]);let Y=J||L&&globalThis?.document?.body;return Y?p0.default.createPortal(d0.jsx(b.div,{...W,ref:Z}),Y):null});x1.displayName=w1;var N1=function($){if(typeof document>"u")return null;var Z=Array.isArray($)?$[0]:$;return Z.ownerDocument.body},m=new WeakMap,o=new WeakMap,t={},B0=0,c0=function($){return $&&($.host||c0($.parentNode))},T1=function($,Z){return Z.map(function(J){if($.contains(J))return J;var W=c0(J);if(W&&$.contains(W))return W;return console.error("aria-hidden",J,"in not contained inside",$,". Doing nothing"),null}).filter(function(J){return Boolean(J)})},S1=function($,Z,J,W){var L=T1(Z,Array.isArray($)?$:[$]);if(!t[J])t[J]=new WeakMap;var X=t[J],Y=[],q=new Set,O=new Set(L),Q=function(j){if(!j||q.has(j))return;q.add(j),Q(j.parentNode)};L.forEach(Q);var z=function(j){if(!j||O.has(j))return;Array.prototype.forEach.call(j.children,function(H){if(q.has(H))z(H);else try{var R=H.getAttribute(W),w=R!==null&&R!=="false",G=(m.get(H)||0)+1,K=(X.get(H)||0)+1;if(m.set(H,G),X.set(H,K),Y.push(H),G===1&&w)o.set(H,!0);if(K===1)H.setAttribute(J,"true");if(!w)H.setAttribute(W,"true")}catch(U){console.error("aria-hidden: cannot operate on ",H,U)}})};return z(Z),q.clear(),B0++,function(){if(Y.forEach(function(j){var H=m.get(j)-1,R=X.get(j)-1;if(m.set(j,H),X.set(j,R),!H){if(!o.has(j))j.removeAttribute(W);o.delete(j)}if(!R)j.removeAttribute(J)}),B0--,!B0)m=new WeakMap,m=new WeakMap,o=new WeakMap,t={}}},V4=function($,Z,J){if(J===void 0)J="data-aria-hidden";var W=Array.from(Array.isArray($)?$:[$]),L=Z||N1($);if(!L)return function(){return null};return W.push.apply(W,Array.from(L.querySelectorAll("[aria-live], script"))),S1(W,L,J,"aria-hidden")};var x=function(){return x=Object.assign||function(Z){for(var J,W=1,L=arguments.length;W<L;W++){J=arguments[W];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},x.apply(this,arguments)};function e($,Z){var J={};for(var W in $)if(Object.prototype.hasOwnProperty.call($,W)&&Z.indexOf(W)<0)J[W]=$[W];if($!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var L=0,W=Object.getOwnPropertySymbols($);L<W.length;L++)if(Z.indexOf(W[L])<0&&Object.prototype.propertyIsEnumerable.call($,W[L]))J[W[L]]=$[W[L]]}return J}function i0($,Z,J){if(J||arguments.length===2){for(var W=0,L=Z.length,X;W<L;W++)if(X||!(W in Z)){if(!X)X=Array.prototype.slice.call(Z,0,W);X[W]=Z[W]}}return $.concat(X||Array.prototype.slice.call(Z))}var L0=A(N(),1);var P=A(N(),1);var f="right-scroll-bar-position",k="width-before-scroll-bar",H0="with-scroll-bars-hidden",K0="--removed-body-scroll-bar-size";var Z0=A(N(),1);function $0($,Z){if(typeof $==="function")$(Z);else if($)$.current=Z;return $}var l0=A(N(),1);function s0($,Z){var J=l0.useState(function(){return{value:$,callback:Z,facade:{get current(){return J.value},set current(W){var L=J.value;if(L!==W)J.value=W,J.callback(W,L)}}}})[0];return J.callback=Z,J.facade}var y1=typeof window<"u"?Z0.useLayoutEffect:Z0.useEffect,r0=new WeakMap;function j0($,Z){var J=s0(Z||null,function(W){return $.forEach(function(L){return $0(L,W)})});return y1(function(){var W=r0.get(J);if(W){var L=new Set(W),X=new Set($),Y=J.current;L.forEach(function(q){if(!X.has(q))$0(q,null)}),X.forEach(function(q){if(!L.has(q))$0(q,Y)})}r0.set(J,$)},[$]),J}function h1($){return $}function b1($,Z){if(Z===void 0)Z=h1;var J=[],W=!1,L={read:function(){if(W)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");if(J.length)return J[J.length-1];return $},useMedium:function(X){var Y=Z(X,W);return J.push(Y),function(){J=J.filter(function(q){return q!==Y})}},assignSyncMedium:function(X){W=!0;while(J.length){var Y=J;J=[],Y.forEach(X)}J={push:function(q){return X(q)},filter:function(){return J}}},assignMedium:function(X){W=!0;var Y=[];if(J.length){var q=J;J=[],q.forEach(X),Y=J}var O=function(){var z=Y;Y=[],z.forEach(X)},Q=function(){return Promise.resolve().then(O)};Q(),J={push:function(z){Y.push(z),Q()},filter:function(z){return Y=Y.filter(z),J}}}};return L}function U0($){if($===void 0)$={};var Z=b1(null);return Z.options=x({async:!0,ssr:!1},$),Z}var n0=A(N(),1),a0=function($){var Z=$.sideCar,J=e($,["sideCar"]);if(!Z)throw Error("Sidecar: please provide `sideCar` property to import the right car");var W=Z.read();if(!W)throw Error("Sidecar medium not found");return n0.createElement(W,x({},J))};a0.isSideCarExport=!0;function E0($,Z){return $.useMedium(Z),a0}var J0=U0();var V0=function(){return},l=P.forwardRef(function($,Z){var J=P.useRef(null),W=P.useState({onScrollCapture:V0,onWheelCapture:V0,onTouchMoveCapture:V0}),L=W[0],X=W[1],Y=$.forwardProps,q=$.children,O=$.className,Q=$.removeScrollBar,z=$.enabled,j=$.shards,H=$.sideCar,R=$.noRelative,w=$.noIsolation,G=$.inert,K=$.allowPinchZoom,U=$.as,E=U===void 0?"div":U,M=$.gapMode,D=e($,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=H,F=j0([J,Z]),B=x(x({},D),L);return P.createElement(P.Fragment,null,z&&P.createElement(I,{sideCar:J0,removeScrollBar:Q,shards:j,noRelative:R,noIsolation:w,inert:G,setCallbacks:X,allowPinchZoom:!!K,lockRef:J,gapMode:M}),Y?P.cloneElement(P.Children.only(q),x(x({},B),{ref:F})):P.createElement(E,x({},B,{className:O,ref:F}),q))});l.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};l.classNames={fullWidth:k,zeroRight:f};var V=A(N(),1);var u=A(N(),1);var e0=A(N(),1);var o0;var t0=function(){if(o0)return o0;if(typeof __webpack_nonce__<"u")return __webpack_nonce__;return};function f1(){if(!document)return null;var $=document.createElement("style");$.type="text/css";var Z=t0();if(Z)$.setAttribute("nonce",Z);return $}function k1($,Z){if($.styleSheet)$.styleSheet.cssText=Z;else $.appendChild(document.createTextNode(Z))}function _1($){var Z=document.head||document.getElementsByTagName("head")[0];Z.appendChild($)}var R0=function(){var $=0,Z=null;return{add:function(J){if($==0){if(Z=f1())k1(Z,J),_1(Z)}$++},remove:function(){if($--,!$&&Z)Z.parentNode&&Z.parentNode.removeChild(Z),Z=null}}};var C0=function(){var $=R0();return function(Z,J){e0.useEffect(function(){return $.add(Z),function(){$.remove()}},[Z&&J])}};var s=function(){var $=C0(),Z=function(J){var{styles:W,dynamic:L}=J;return $(W,L),null};return Z};var g1={left:0,top:0,right:0,gap:0},M0=function($){return parseInt($||"",10)||0},m1=function($){var Z=window.getComputedStyle(document.body),J=Z[$==="padding"?"paddingLeft":"marginLeft"],W=Z[$==="padding"?"paddingTop":"marginTop"],L=Z[$==="padding"?"paddingRight":"marginRight"];return[M0(J),M0(W),M0(L)]},I0=function($){if($===void 0)$="margin";if(typeof window>"u")return g1;var Z=m1($),J=document.documentElement.clientWidth,W=window.innerWidth;return{left:Z[0],top:Z[1],right:Z[2],gap:Math.max(0,W-J+Z[2]-Z[0])}};var v1=s(),v="data-scroll-locked",u1=function($,Z,J,W){var{left:L,top:X,right:Y,gap:q}=$;if(J===void 0)J="margin";return`
|
|
2
|
+
.`.concat(H0,` {
|
|
3
|
+
overflow: hidden `).concat(W,`;
|
|
4
|
+
padding-right: `).concat(q,"px ").concat(W,`;
|
|
5
|
+
}
|
|
6
|
+
body[`).concat(v,`] {
|
|
7
|
+
overflow: hidden `).concat(W,`;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
`).concat([Z&&"position: relative ".concat(W,";"),J==="margin"&&`
|
|
10
|
+
padding-left: `.concat(L,`px;
|
|
11
|
+
padding-top: `).concat(X,`px;
|
|
12
|
+
padding-right: `).concat(Y,`px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: `).concat(q,"px ").concat(W,`;
|
|
16
|
+
`),J==="padding"&&"padding-right: ".concat(q,"px ").concat(W,";")].filter(Boolean).join(""),`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.`).concat(f,` {
|
|
20
|
+
right: `).concat(q,"px ").concat(W,`;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.`).concat(k,` {
|
|
24
|
+
margin-right: `).concat(q,"px ").concat(W,`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(f," .").concat(f,` {
|
|
28
|
+
right: 0 `).concat(W,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(k," .").concat(k,` {
|
|
32
|
+
margin-right: 0 `).concat(W,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[`).concat(v,`] {
|
|
36
|
+
`).concat(K0,": ").concat(q,`px;
|
|
37
|
+
}
|
|
38
|
+
`)},$1=function(){var $=parseInt(document.body.getAttribute(v)||"0",10);return isFinite($)?$:0},p1=function(){u.useEffect(function(){return document.body.setAttribute(v,($1()+1).toString()),function(){var $=$1()-1;if($<=0)document.body.removeAttribute(v);else document.body.setAttribute(v,$.toString())}},[])},D0=function($){var{noRelative:Z,noImportant:J,gapMode:W}=$,L=W===void 0?"margin":W;p1();var X=u.useMemo(function(){return I0(L)},[L]);return u.createElement(v1,{styles:u1(X,!Z,L,!J?"!important":"")})};var O0=!1;if(typeof window<"u")try{p=Object.defineProperty({},"passive",{get:function(){return O0=!0,!0}}),window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch($){O0=!1}var p,_=O0?{passive:!1}:!1;var d1=function($){return $.tagName==="TEXTAREA"},Z1=function($,Z){if(!($ instanceof Element))return!1;var J=window.getComputedStyle($);return J[Z]!=="hidden"&&!(J.overflowY===J.overflowX&&!d1($)&&J[Z]==="visible")},c1=function($){return Z1($,"overflowY")},i1=function($){return Z1($,"overflowX")},F0=function($,Z){var J=Z.ownerDocument,W=Z;do{if(typeof ShadowRoot<"u"&&W instanceof ShadowRoot)W=W.host;var L=J1($,W);if(L){var X=W1($,W),Y=X[1],q=X[2];if(Y>q)return!0}W=W.parentNode}while(W&&W!==J.body);return!1},l1=function($){var{scrollTop:Z,scrollHeight:J,clientHeight:W}=$;return[Z,J,W]},s1=function($){var{scrollLeft:Z,scrollWidth:J,clientWidth:W}=$;return[Z,J,W]},J1=function($,Z){return $==="v"?c1(Z):i1(Z)},W1=function($,Z){return $==="v"?l1(Z):s1(Z)},r1=function($,Z){return $==="h"&&Z==="rtl"?-1:1},L1=function($,Z,J,W,L){var X=r1($,window.getComputedStyle(Z).direction),Y=X*W,q=J.target,O=Z.contains(q),Q=!1,z=Y>0,j=0,H=0;do{if(!q)break;var R=W1($,q),w=R[0],G=R[1],K=R[2],U=G-K-X*w;if(w||U){if(J1($,q))j+=U,H+=w}var E=q.parentNode;q=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!O&&q!==document.body||O&&(Z.contains(q)||Z===q));if(z&&(L&&Math.abs(j)<1||!L&&Y>j))Q=!0;else if(!z&&(L&&Math.abs(H)<1||!L&&-Y>H))Q=!0;return Q};var W0=function($){return"changedTouches"in $?[$.changedTouches[0].clientX,$.changedTouches[0].clientY]:[0,0]},q1=function($){return[$.deltaX,$.deltaY]},G1=function($){return $&&"current"in $?$.current:$},n1=function($,Z){return $[0]===Z[0]&&$[1]===Z[1]},a1=function($){return`
|
|
39
|
+
.block-interactivity-`.concat($,` {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-`).concat($,` {pointer-events: all;}
|
|
41
|
+
`)},o1=0,d=[];function X1($){var Z=V.useRef([]),J=V.useRef([0,0]),W=V.useRef(),L=V.useState(o1++)[0],X=V.useState(s)[0],Y=V.useRef($);V.useEffect(function(){Y.current=$},[$]),V.useEffect(function(){if($.inert){document.body.classList.add("block-interactivity-".concat(L));var G=i0([$.lockRef.current],($.shards||[]).map(G1),!0).filter(Boolean);return G.forEach(function(K){return K.classList.add("allow-interactivity-".concat(L))}),function(){document.body.classList.remove("block-interactivity-".concat(L)),G.forEach(function(K){return K.classList.remove("allow-interactivity-".concat(L))})}}return},[$.inert,$.lockRef.current,$.shards]);var q=V.useCallback(function(G,K){if("touches"in G&&G.touches.length===2||G.type==="wheel"&&G.ctrlKey)return!Y.current.allowPinchZoom;var U=W0(G),E=J.current,M="deltaX"in G?G.deltaX:E[0]-U[0],D="deltaY"in G?G.deltaY:E[1]-U[1],I,F=G.target,B=Math.abs(M)>Math.abs(D)?"h":"v";if("touches"in G&&B==="h"&&F.type==="range")return!1;var S=window.getSelection(),g=S&&S.anchorNode,c=g?g===F||g.contains(F):!1;if(c)return!1;var r=F0(B,F);if(!r)return!0;if(r)I=B;else I=B==="v"?"h":"v",r=F0(B,F);if(!r)return!1;if(!W.current&&"changedTouches"in G&&(M||D))W.current=I;if(!I)return!0;var A0=W.current||I;return L1(A0,K,G,A0==="h"?M:D,!0)},[]),O=V.useCallback(function(G){var K=G;if(!d.length||d[d.length-1]!==X)return;var U="deltaY"in K?q1(K):W0(K),E=Z.current.filter(function(I){return I.name===K.type&&(I.target===K.target||K.target===I.shadowParent)&&n1(I.delta,U)})[0];if(E&&E.should){if(K.cancelable)K.preventDefault();return}if(!E){var M=(Y.current.shards||[]).map(G1).filter(Boolean).filter(function(I){return I.contains(K.target)}),D=M.length>0?q(K,M[0]):!Y.current.noIsolation;if(D){if(K.cancelable)K.preventDefault()}}},[]),Q=V.useCallback(function(G,K,U,E){var M={name:G,delta:K,target:U,should:E,shadowParent:t1(U)};Z.current.push(M),setTimeout(function(){Z.current=Z.current.filter(function(D){return D!==M})},1)},[]),z=V.useCallback(function(G){J.current=W0(G),W.current=void 0},[]),j=V.useCallback(function(G){Q(G.type,q1(G),G.target,q(G,$.lockRef.current))},[]),H=V.useCallback(function(G){Q(G.type,W0(G),G.target,q(G,$.lockRef.current))},[]);V.useEffect(function(){return d.push(X),$.setCallbacks({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:H}),document.addEventListener("wheel",O,_),document.addEventListener("touchmove",O,_),document.addEventListener("touchstart",z,_),function(){d=d.filter(function(G){return G!==X}),document.removeEventListener("wheel",O,_),document.removeEventListener("touchmove",O,_),document.removeEventListener("touchstart",z,_)}},[]);var{removeScrollBar:R,inert:w}=$;return V.createElement(V.Fragment,null,w?V.createElement(X,{styles:a1(L)}):null,R?V.createElement(D0,{noRelative:$.noRelative,gapMode:$.gapMode}):null)}function t1($){var Z=null;while($!==null){if($ instanceof ShadowRoot)Z=$.host,$=$.host;$=$.parentNode}return Z}var Y1=E0(J0,X1);var Q1=L0.forwardRef(function($,Z){return L0.createElement(l,x({},$,{ref:Z,sideCar:Y1}))});Q1.classNames=l.classNames;var e1=Q1;
|
|
42
|
+
export{K1 as ea,Y4 as fa,C1 as ga,x1 as ha,V4 as ia,e1 as ja};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{H as I}from"/chunk-a192rsyd.js";import{K as u}from"/chunk-1s0wttpq.js";import{ka as B}from"/chunk-0bse45gk.js";import{xa as A}from"/chunk-zagd9kjc.js";import{za as R}from"/chunk-0sevb013.js";import{$b as z,Aa as n,Cb as P,Db as S,Ea as _,Gb as C,Kb as k,Qa as l,Xa as m,_b as w,bb as L}from"/chunk-bhn3xax8.js";var a=n(_(),1);var e=n(l(),1);function g(){let{projectId:c,projectName:o}=C(),{data:T,isLoading:U}=w(c),f=k(c??""),v=z(c??""),r=T?.content??"",h=f.isPending,N=v.isPending,[t,y]=a.useState(o),[d,b]=a.useState(r),$=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,i=t.length>=1&&t.length<=63&&$.test(t),s=t!==o,J=d!==r;a.useEffect(()=>{y(o)},[o]),a.useEffect(()=>{b(r)},[r]);let M=()=>{f.mutate(t)},O=()=>{v.mutate(d)};if(!c)return e.jsxDEV(S,{},void 0,!1,void 0,this);return e.jsxDEV(A,{children:e.jsxDEV("div",{className:"space-y-6",children:[e.jsxDEV("div",{className:"flex items-center gap-3",children:[e.jsxDEV(m,{variant:"ghost",size:"icon","aria-label":"Back",onClick:()=>R(`/projects/${o}`),children:e.jsxDEV(L,{className:"h-5 w-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),e.jsxDEV("div",{children:[e.jsxDEV("h1",{className:"text-2xl font-bold",children:"Project Details"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-sm text-muted-foreground",children:"Manage project name and documentation."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(u,{htmlFor:"project-name",children:"Project Name"},void 0,!1,void 0,this),e.jsxDEV("div",{className:"flex gap-2",children:[e.jsxDEV(B,{id:"project-name",value:t,onChange:(p)=>y(p.target.value),placeholder:"project-name",className:"max-w-sm","aria-describedby":s&&!i&&t.length>0?"project-name-error":void 0,"aria-invalid":s&&!i&&t.length>0},void 0,!1,void 0,this),e.jsxDEV(m,{onClick:M,disabled:!s||!i||h,children:h?"Renaming...":"Rename"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s&&!i&&t.length>0&&e.jsxDEV("p",{id:"project-name-error",className:"text-xs text-destructive",children:"Invalid name. Use lowercase letters, numbers, and hyphens (1-63 chars)."},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Lowercase letters, numbers, and hyphens only. Renaming will change the project URL."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U?e.jsxDEV("div",{className:"flex items-center justify-center py-8",children:e.jsxDEV(P,{size:"md",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this):e.jsxDEV("div",{className:"space-y-2",children:[e.jsxDEV(u,{htmlFor:"project-doc",children:"PROJECT.md"},void 0,!1,void 0,this),e.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"Shared project context visible to all agents. Agents check this before starting and after completing tasks."},void 0,!1,void 0,this),e.jsxDEV(I,{id:"project-doc",value:d,onChange:(p)=>b(p.target.value),className:"min-h-[400px] font-mono text-sm",placeholder:`# Project
|
|
2
|
+
|
|
3
|
+
Describe your project here...`},void 0,!1,void 0,this),e.jsxDEV("div",{className:"flex justify-end",children:e.jsxDEV(m,{onClick:O,disabled:!J||N,children:N?"Saving...":"Save Document"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var F=n(l(),1);function q(){return F.jsxDEV(g,{},void 0,!1,void 0,this)}export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as X,r as Y,s as P,t as B}from"/chunk-g1t3cgxq.js";import"/chunk-0kgchkzc.js";import{I as O}from"/chunk-acmptvxv.js";import{K as w}from"/chunk-1s0wttpq.js";import"/chunk-n7r5yhva.js";import{xa as W}from"/chunk-zagd9kjc.js";import{za as K}from"/chunk-0sevb013.js";import{Aa as u,Cb as $,Db as H,Ea as S,Gb as J,Oa as z,Qa as m,Wb as U,Xa as v,bb as G,fb as R,mb as _,pb as I,qb as L,xb as q}from"/chunk-bhn3xax8.js";var Z=u(S(),1);var Q=u(S(),1);var p=u(m(),1);function d(l){let i=l==="dark"||l==="system"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",i)}var g=[{value:"light",label:"Light",icon:p.jsxDEV(q,{className:"h-5 w-5"},void 0,!1,void 0,this)},{value:"dark",label:"Dark",icon:p.jsxDEV(L,{className:"h-5 w-5"},void 0,!1,void 0,this)},{value:"system",label:"System",icon:p.jsxDEV(I,{className:"h-5 w-5"},void 0,!1,void 0,this)}];function A(){let[l,i]=Q.useState(()=>{let e=localStorage.getItem("theme");return e==="light"||e==="dark"||e==="system"?e:"system"}),r=(e)=>{localStorage.setItem("theme",e),i(e),d(e)};return p.jsxDEV("div",{className:"space-y-3",children:[p.jsxDEV(w,{children:"Theme"},void 0,!1,void 0,this),p.jsxDEV("div",{className:"flex gap-3",children:g.map((e)=>p.jsxDEV(v,{variant:l===e.value?"default":"outline",className:"flex flex-col items-center gap-2 h-auto py-4 px-6",onClick:()=>r(e.value),"data-active":l===e.value,"aria-label":e.label,children:[e.icon,p.jsxDEV("span",{className:"text-sm",children:e.label},void 0,!1,void 0,this)]},e.value,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var f=u(S(),1);var a=u(m(),1);function n({messages:l,hasMore:i,loadingMore:r,onLoadMore:e}){let[b,T]=f.useState(new Set),h=f.useRef(null),N=(t)=>{T((o)=>{let y=new Set(o);if(y.has(t))y.delete(t);else y.add(t);return y})},k=f.useCallback(()=>{let t=h.current;if(!t||!i||r)return;if(t.scrollHeight-t.scrollTop-t.clientHeight<100&&l.length>0)e()},[i,r,l.length,e]);if(f.useEffect(()=>{let t=h.current;if(!t||!i||r||l.length===0)return;if(t.scrollHeight<=t.clientHeight)e()},[i,r,l.length,e]),l.length===0)return a.jsxDEV("div",{className:"text-center text-muted-foreground py-12",children:"No inter-agent messages yet. Messages between agents will appear here."},void 0,!1,void 0,this);return a.jsxDEV("div",{ref:h,onScroll:k,className:"space-y-2 overflow-y-auto max-h-[calc(100vh-16rem)]",children:[l.map((t)=>{let o=b.has(t.id),y=t.text.length>200,s=y&&!o?t.text.slice(0,200)+"...":t.text;return a.jsxDEV("div",{className:"border rounded-lg p-3 space-y-1",children:[a.jsxDEV("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[a.jsxDEV("span",{children:t.trigger==="scheduled_task"?a.jsxDEV(a.Fragment,{children:[a.jsxDEV(R,{className:"inline h-3 w-3 mr-1"},void 0,!1,void 0,this),a.jsxDEV("span",{className:"font-medium text-foreground",children:t.taskLabel??"Scheduled task"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):t.role==="system"||!t.fromAgent&&!t.toAgent?a.jsxDEV(a.Fragment,{children:[a.jsxDEV(_,{className:"inline h-3 w-3 mr-1"},void 0,!1,void 0,this),a.jsxDEV("span",{className:"font-medium text-foreground",children:"System"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):a.jsxDEV(a.Fragment,{children:[a.jsxDEV("span",{className:"font-medium text-foreground",children:t.fromAgent},void 0,!1,void 0,this)," → ",a.jsxDEV("span",{className:"font-medium text-foreground",children:t.toAgent},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),a.jsxDEV("time",{children:new Date(t.ts).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a.jsxDEV("p",{className:"text-sm whitespace-pre-wrap",children:s},void 0,!1,void 0,this),y&&a.jsxDEV(v,{variant:"link",size:"sm","aria-expanded":o,className:"h-auto p-0 text-xs text-muted-foreground hover:text-foreground",onClick:()=>N(t.id),children:o?"Show less":"Show more"},void 0,!1,void 0,this)]},t.id,!0,void 0,this)}),r&&a.jsxDEV("div",{className:"flex justify-center py-2",children:a.jsxDEV($,{size:"md",className:"text-muted-foreground"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var c=u(m(),1);function C(){let l=z(),{projectId:i,projectName:r}=J(),{data:e,fetchNextPage:b,hasNextPage:T,isFetchingNextPage:h}=U(i);O(i?`project:${i}:schedules`:null,()=>{l.invalidateQueries({queryKey:["activity",i]})});let N=Z.useMemo(()=>e?.pages?.flatMap((t)=>t.messages)??[],[e]),k=T??!1;if(!i)return c.jsxDEV(H,{},void 0,!1,void 0,this);return c.jsxDEV(W,{children:c.jsxDEV("div",{className:"space-y-6",children:[c.jsxDEV("div",{className:"flex items-center gap-3",children:[c.jsxDEV(v,{variant:"ghost",size:"icon","aria-label":"Back",onClick:()=>K(`/projects/${r}`),children:c.jsxDEV(G,{className:"h-5 w-5"},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV("h1",{className:"text-2xl font-bold",children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV(X,{defaultValue:"activity",children:[c.jsxDEV(Y,{children:[c.jsxDEV(P,{value:"activity",children:"Activity Log"},void 0,!1,void 0,this),c.jsxDEV(P,{value:"appearance",children:"Appearance"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV(B,{value:"activity",className:"pt-4",children:c.jsxDEV(n,{messages:N,hasMore:k,loadingMore:h,onLoadMore:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(B,{value:"appearance",className:"space-y-4 pt-4",children:c.jsxDEV(A,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var F=u(m(),1);function M(){return F.jsxDEV(C,{},void 0,!1,void 0,this)}export{M as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Aa as a,Qa as m}from"/chunk-bhn3xax8.js";var e=a(m(),1);function t({children:r}){return e.jsxDEV("main",{className:"pt-[max(2rem,env(safe-area-inset-top))] pb-[max(2rem,env(safe-area-inset-bottom))] pl-[max(1rem,env(safe-area-inset-left))] pr-[max(1rem,env(safe-area-inset-right))] sm:pl-[max(1.5rem,env(safe-area-inset-left))] sm:pr-[max(1.5rem,env(safe-area-inset-right))] lg:pl-[max(2rem,env(safe-area-inset-left))] lg:pr-[max(2rem,env(safe-area-inset-right))]",children:e.jsxDEV("div",{className:"mx-auto max-w-5xl",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)}
|
|
2
|
+
export{t as xa};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
|
+
<title>Shire</title>
|
|
7
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
8
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
9
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap" rel="stylesheet" />
|
|
10
|
+
<link rel="stylesheet" href="/app.css" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="bg-background text-foreground antialiased">
|
|
13
|
+
<div id="root"></div>
|
|
14
|
+
<script type="module" src="/D:\a\shire\shire\dist\frontend\main.js"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|