@tdk-landscape/tdk-cli-core 1.3.156 → 1.3.157

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
3
- import{$ as E1,$a as J1,A as l1,Aa as N1,Ab as lD,B as r1,Ba as b1,Bb as rD,C as li,Ca as T1,Cb as sD,D as km,Da as ji,Db as eB,E as s1,Ea as w1,Eb as cD,F as c1,Fa as x1,Fb as uD,G as Wr,Ga as U1,Gb as fD,H as u1,Ha as $r,Hb as dD,I as gg,Ia as Cg,J as ri,Ja as M1,K as f1,Ka as _1,Kb as gD,L as Dl,La as O1,Lb as pD,M as pg,Ma as H1,N as d1,Na as G1,O as g1,Oa as k1,P as p1,Pa as zi,Q as ku,Qa as zu,R as Xo,Ra as L1,S as dn,Sa as j1,T as an,Ta as VC,U as Va,Ua as rr,V as Tn,Va as Ju,W as jC,Wa as jy,X as Co,Xa as Fu,Y as zC,Ya as XC,Z as Un,Za as zy,_ as m1,_a as z1,a as S,aa as Lm,ab as F1,b as OC,ba as mg,bb as K1,c as Li,ca as h1,cb as Y1,d as Hu,da as jm,db as q1,e as Gu,ea as Lu,eb as V1,f as Gm,fa as ju,fb as X1,g as n1,ga as JC,gb as Z1,h as a1,ha as FC,hb as P1,i as nc,ia as Ly,ib as W1,j as dg,ja as C1,jb as ZC,k as Sl,ka as Eg,kb as PC,l as Hy,la as Zo,lb as es,m as HC,ma as Po,mb as WC,n as vl,na as We,nb as $C,o as o1,oa as B1,ob as $1,p as GC,pa as I1,pb as zm,q as ac,qa as y1,qb as Jy,r as A1,ra as Q1,rb as eD,s as Gy,sa as KC,sb as tD,t as oc,ta as hg,tb as Fy,u as Cn,ua as S1,ub as Ky,v as lr,va as YC,vb as nD,w as kC,wa as qC,wb as aD,x as ky,xa as v1,xb as oD,y as LC,ya as D1,yb as AD,z as i1,za as R1,zb as iD}from"./chunk-I3NXJOZC.js";import{a as $v,c as e1,d as t1}from"./chunk-42IVF3YT.js";import{a as Oy,b as Ha,c as Pw,d as lt}from"./chunk-6EA4DGCY.js";var VR=Ha(dB=>{"use strict";var fM=Symbol.for("react.transitional.element"),dM=Symbol.for("react.fragment");function qR(n,A,l){var c=null;if(l!==void 0&&(c=""+l),A.key!==void 0&&(c=""+A.key),"key"in A){l={};for(var u in A)u!=="key"&&(l[u]=A[u])}else l=A;return A=l.ref,{$$typeof:fM,type:n,key:c,ref:A!==void 0?A:null,props:l}}dB.Fragment=dM;dB.jsx=qR;dB.jsxs=qR});var l2=Ha(vt=>{"use strict";var hQ=Symbol.for("react.transitional.element"),gM=Symbol.for("react.portal"),pM=Symbol.for("react.fragment"),mM=Symbol.for("react.strict_mode"),EM=Symbol.for("react.profiler"),hM=Symbol.for("react.consumer"),CM=Symbol.for("react.context"),BM=Symbol.for("react.forward_ref"),IM=Symbol.for("react.suspense"),yM=Symbol.for("react.memo"),$R=Symbol.for("react.lazy"),QM=Symbol.for("react.activity"),SM=Symbol.for("react.view_transition"),XR=Symbol.iterator;function vM(n){return n===null||typeof n!="object"?null:(n=XR&&n[XR]||n["@@iterator"],typeof n=="function"?n:null)}var e2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t2=Object.assign,n2={};function Ng(n,A,l){this.props=n,this.context=A,this.refs=n2,this.updater=l||e2}Ng.prototype.isReactComponent={};Ng.prototype.setState=function(n,A){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,A,"setState")};Ng.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function a2(){}a2.prototype=Ng.prototype;function CQ(n,A,l){this.props=n,this.context=A,this.refs=n2,this.updater=l||e2}var BQ=CQ.prototype=new a2;BQ.constructor=CQ;t2(BQ,Ng.prototype);BQ.isPureReactComponent=!0;var ZR=Array.isArray;function EQ(){}var Jn={H:null,A:null,T:null,S:null},o2=Object.prototype.hasOwnProperty;function IQ(n,A,l){var c=l.ref;return{$$typeof:hQ,type:n,key:A,ref:c!==void 0?c:null,props:l}}function DM(n,A){return IQ(n.type,A,n.props)}function yQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===hQ}function RM(n){var A={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(l){return A[l]})}var PR=/\/+/g;function mQ(n,A){return typeof n=="object"&&n!==null&&n.key!=null?RM(""+n.key):A.toString(36)}function NM(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(EQ,EQ):(n.status="pending",n.then(function(A){n.status==="pending"&&(n.status="fulfilled",n.value=A)},function(A){n.status==="pending"&&(n.status="rejected",n.reason=A)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function Rg(n,A,l,c,u){var p=typeof n;(p==="undefined"||p==="boolean")&&(n=null);var E=!1;if(n===null)E=!0;else switch(p){case"bigint":case"string":case"number":E=!0;break;case"object":switch(n.$$typeof){case hQ:case gM:E=!0;break;case $R:return E=n._init,Rg(E(n._payload),A,l,c,u)}}if(E)return u=u(n),E=c===""?"."+mQ(n,0):c,ZR(u)?(l="",E!=null&&(l=E.replace(PR,"$&/")+"/"),Rg(u,A,l,"",function(v){return v})):u!=null&&(yQ(u)&&(u=DM(u,l+(u.key==null||n&&n.key===u.key?"":(""+u.key).replace(PR,"$&/")+"/")+E)),A.push(u)),1;E=0;var B=c===""?".":c+":";if(ZR(n))for(var I=0;I<n.length;I++)c=n[I],p=B+mQ(c,I),E+=Rg(c,A,l,p,u);else if(I=vM(n),typeof I=="function")for(n=I.call(n),I=0;!(c=n.next()).done;)c=c.value,p=B+mQ(c,I++),E+=Rg(c,A,l,p,u);else if(p==="object"){if(typeof n.then=="function")return Rg(NM(n),A,l,c,u);throw A=String(n),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return E}function gB(n,A,l){if(n==null)return n;var c=[],u=0;return Rg(n,c,"","",function(p){return A.call(l,p,u++)}),c}function bM(n){if(n._status===-1){var A=n._result,l=A();l.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c,l.status===void 0&&(l.status="fulfilled",l.value=c))},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c,l.status===void 0&&(l.status="rejected",l.reason=c))}),n._status===-1&&(n._status=0,n._result=l)}if(n._status===1)return n._result.default;throw n._result}var WR=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function A2(n){var A=Jn.T,l={};l.types=A!==null?A.types:null,Jn.T=l;try{var c=n(),u=Jn.S;u!==null&&u(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(EQ,WR)}catch(p){WR(p)}finally{A!==null&&l.types!==null&&(A.types=l.types),Jn.T=A}}function i2(n){var A=Jn.T;if(A!==null){var l=A.types;l===null?A.types=[n]:l.indexOf(n)===-1&&l.push(n)}else A2(i2.bind(null,n))}var TM={map:gB,forEach:function(n,A,l){gB(n,function(){A.apply(this,arguments)},l)},count:function(n){var A=0;return gB(n,function(){A++}),A},toArray:function(n){return gB(n,function(A){return A})||[]},only:function(n){if(!yQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};vt.Activity=QM;vt.Children=TM;vt.Component=Ng;vt.Fragment=pM;vt.Profiler=EM;vt.PureComponent=CQ;vt.StrictMode=mM;vt.Suspense=IM;vt.ViewTransition=SM;vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Jn;vt.__COMPILER_RUNTIME={__proto__:null,c:function(n){return Jn.H.useMemoCache(n)}};vt.addTransitionType=i2;vt.cache=function(n){return function(){return n.apply(null,arguments)}};vt.cacheSignal=function(){return null};vt.cloneElement=function(n,A,l){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var c=t2({},n.props),u=n.key;if(A!=null)for(p in A.key!==void 0&&(u=""+A.key),A)!o2.call(A,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&A.ref===void 0||(c[p]=A[p]);var p=arguments.length-2;if(p===1)c.children=l;else if(1<p){for(var E=Array(p),B=0;B<p;B++)E[B]=arguments[B+2];c.children=E}return IQ(n.type,u,c)};vt.createContext=function(n){return n={$$typeof:CM,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:hM,_context:n},n};vt.createElement=function(n,A,l){var c,u={},p=null;if(A!=null)for(c in A.key!==void 0&&(p=""+A.key),A)o2.call(A,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(u[c]=A[c]);var E=arguments.length-2;if(E===1)u.children=l;else if(1<E){for(var B=Array(E),I=0;I<E;I++)B[I]=arguments[I+2];u.children=B}if(n&&n.defaultProps)for(c in E=n.defaultProps,E)u[c]===void 0&&(u[c]=E[c]);return IQ(n,p,u)};vt.createRef=function(){return{current:null}};vt.forwardRef=function(n){return{$$typeof:BM,render:n}};vt.isValidElement=yQ;vt.lazy=function(n){return{$$typeof:$R,_payload:{_status:-1,_result:n},_init:bM}};vt.memo=function(n,A){return{$$typeof:yM,type:n,compare:A===void 0?null:A}};vt.startTransition=A2;vt.unstable_useCacheRefresh=function(){return Jn.H.useCacheRefresh()};vt.use=function(n){return Jn.H.use(n)};vt.useActionState=function(n,A,l){return Jn.H.useActionState(n,A,l)};vt.useCallback=function(n,A){return Jn.H.useCallback(n,A)};vt.useContext=function(n){return Jn.H.useContext(n)};vt.useDebugValue=function(){};vt.useDeferredValue=function(n,A){return Jn.H.useDeferredValue(n,A)};vt.useEffect=function(n,A){return Jn.H.useEffect(n,A)};vt.useEffectEvent=function(n){return Jn.H.useEffectEvent(n)};vt.useId=function(){return Jn.H.useId()};vt.useImperativeHandle=function(n,A,l){return Jn.H.useImperativeHandle(n,A,l)};vt.useInsertionEffect=function(n,A){return Jn.H.useInsertionEffect(n,A)};vt.useLayoutEffect=function(n,A){return Jn.H.useLayoutEffect(n,A)};vt.useMemo=function(n,A){return Jn.H.useMemo(n,A)};vt.useOptimistic=function(n,A){return Jn.H.useOptimistic(n,A)};vt.useReducer=function(n,A,l){return Jn.H.useReducer(n,A,l)};vt.useRef=function(n){return Jn.H.useRef(n)};vt.useState=function(n){return Jn.H.useState(n)};vt.useSyncExternalStore=function(n,A,l){return Jn.H.useSyncExternalStore(n,A,l)};vt.useTransition=function(){return Jn.H.useTransition()};vt.version="19.3.0"});var r2=Ha((Ct,pB)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function n(y,M){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})}function A(y){return y===null||typeof y!="object"?null:(y=Pn&&y[Pn]||y["@@iterator"],typeof y=="function"?y:null)}function l(y,M){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var de=y+"."+M;Qt[de]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,y),Qt[de]=!0)}function c(y,M,de){this.props=y,this.context=M,this.refs=$t,this.updater=de||zt}function u(){}function p(y,M,de){this.props=y,this.context=M,this.refs=$t,this.updater=de||zt}function E(){}function B(y){return""+y}function I(y){try{B(y);var M=!1}catch{M=!0}if(M){M=console;var de=M.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return de.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),B(y)}}function v(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Wn?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case It:return"Fragment";case je:return"Profiler";case ne:return"StrictMode";case yt:return"Suspense";case we:return"SuspenseList";case Ot:return"Activity";case In:return"ViewTransition"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case Bt:return"Portal";case Le:return y.displayName||"Context";case ue:return(y._context.displayName||"Context")+".Consumer";case ft:var M=y.render;return y=y.displayName,y||(y=M.displayName||M.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case Me:return M=y.displayName||null,M!==null?M:v(y.type)||"Memo";case Pe:M=y._payload,y=y._init;try{return v(y(M))}catch{}}return null}function w(y){if(y===It)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var M=v(y);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function U(){var y=Xe.A;return y===null?null:y.getOwner()}function b(){return Error("react-stack-top-frame")}function T(y){if(Pt.call(y,"key")){var M=Object.getOwnPropertyDescriptor(y,"key").get;if(M&&M.isReactWarning)return!1}return y.key!==void 0}function J(y,M){function de(){_n||(_n=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}de.isReactWarning=!0,Object.defineProperty(y,"key",{get:de,configurable:!0})}function L(){var y=v(this.type);return Ta[y]||(Ta[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,M,de,se,ce,ot){var Ue=de.ref;return y={$$typeof:He,type:y,key:M,props:de,_owner:se},(Ue!==void 0?Ue:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:L}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ot}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function ae(y,M){return M=_(y.type,M,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(M._store.validated=y._store.validated),M}function Ce(y){Re(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?Re(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Re(y){return typeof y=="object"&&y!==null&&y.$$typeof===He}function ye(y){var M={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(de){return M[de]})}function Je(y,M){return typeof y=="object"&&y!==null&&y.key!=null?(I(y.key),ye(""+y.key)):M.toString(36)}function Ge(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(E,E):(y.status="pending",y.then(function(M){y.status==="pending"&&(y.status="fulfilled",y.value=M)},function(M){y.status==="pending"&&(y.status="rejected",y.reason=M)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function Ne(y,M,de,se,ce){var ot=typeof y;(ot==="undefined"||ot==="boolean")&&(y=null);var Ue=!1;if(y===null)Ue=!0;else switch(ot){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(y.$$typeof){case He:case Bt:Ue=!0;break;case Pe:return Ue=y._init,Ne(Ue(y._payload),M,de,se,ce)}}if(Ue){Ue=y,ce=ce(Ue);var Ze=se===""?"."+Je(Ue,0):se;return ca(ce)?(de="",Ze!=null&&(de=Ze.replace(yo,"$&/")+"/"),Ne(ce,M,de,"",function(ya){return ya})):ce!=null&&(Re(ce)&&(ce.key!=null&&(Ue&&Ue.key===ce.key||I(ce.key)),de=ae(ce,de+(ce.key==null||Ue&&Ue.key===ce.key?"":(""+ce.key).replace(yo,"$&/")+"/")+Ze),se!==""&&Ue!=null&&Re(Ue)&&Ue.key==null&&Ue._store&&!Ue._store.validated&&(de._store.validated=2),ce=de),M.push(ce)),1}if(Ue=0,Ze=se===""?".":se+":",ca(y))for(var Tt=0;Tt<y.length;Tt++)se=y[Tt],ot=Ze+Je(se,Tt),Ue+=Ne(se,M,de,ot,ce);else if(Tt=A(y),typeof Tt=="function")for(Tt===y.entries&&(Yt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Yt=!0),y=Tt.call(y),Tt=0;!(se=y.next()).done;)se=se.value,ot=Ze+Je(se,Tt++),Ue+=Ne(se,M,de,ot,ce);else if(ot==="object"){if(typeof y.then=="function")return Ne(Ge(y),M,de,se,ce);throw M=String(y),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function Fe(y,M,de){if(y==null)return y;var se=[],ce=0;return Ne(y,se,"","",function(ot){return M.call(de,ot,ce++)}),se}function Se(y){if(y._status===-1){var M=null,de=null,se=y._ioInfo;se!=null&&(se.start=se.end=performance.now(),se.value=new Promise(function(Ue,Ze){M=Ue,de=Ze})),se=y._result;var ce=se();if(ce.then(function(Ue){if(y._status===0||y._status===-1){y._status=1,y._result=Ue;var Ze=y._ioInfo;if(Ze!=null){Ze.end=performance.now();var Tt=Ue?.default;M(Tt),Ze.value.status="fulfilled",Ze.value.value=Tt}ce.status===void 0&&(ce.status="fulfilled",ce.value=Ue)}},function(Ue){if(y._status===0||y._status===-1){y._status=2,y._result=Ue;var Ze=y._ioInfo;Ze!=null&&(Ze.end=performance.now(),Ze.value.then(E,E),de(Ue),Ze.value.status="rejected",Ze.value.reason=Ue),ce.status===void 0&&(ce.status="rejected",ce.reason=Ue)}}),se=y._ioInfo,se!=null){var ot=ce.displayName;typeof ot=="string"&&(se.name=ot)}y._status===-1&&(y._status=0,y._result=ce)}if(y._status===1)return se=y._result,se===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
+ import{$ as E1,$a as J1,A as l1,Aa as N1,Ab as lD,B as r1,Ba as b1,Bb as rD,C as li,Ca as T1,Cb as sD,D as km,Da as ji,Db as eB,E as s1,Ea as w1,Eb as cD,F as c1,Fa as x1,Fb as uD,G as Wr,Ga as U1,Gb as fD,H as u1,Ha as $r,Hb as dD,I as gg,Ia as Cg,J as ri,Ja as M1,K as f1,Ka as _1,Kb as gD,L as Dl,La as O1,Lb as pD,M as pg,Ma as H1,N as d1,Na as G1,O as g1,Oa as k1,P as p1,Pa as zi,Q as ku,Qa as zu,R as Xo,Ra as L1,S as dn,Sa as j1,T as an,Ta as VC,U as Va,Ua as rr,V as Tn,Va as Ju,W as jC,Wa as jy,X as Co,Xa as Fu,Y as zC,Ya as XC,Z as Un,Za as zy,_ as m1,_a as z1,a as S,aa as Lm,ab as F1,b as OC,ba as mg,bb as K1,c as Li,ca as h1,cb as Y1,d as Hu,da as jm,db as q1,e as Gu,ea as Lu,eb as V1,f as Gm,fa as ju,fb as X1,g as n1,ga as JC,gb as Z1,h as a1,ha as FC,hb as P1,i as nc,ia as Ly,ib as W1,j as dg,ja as C1,jb as ZC,k as Sl,ka as Eg,kb as PC,l as Hy,la as Zo,lb as es,m as HC,ma as Po,mb as WC,n as vl,na as We,nb as $C,o as o1,oa as B1,ob as $1,p as GC,pa as I1,pb as zm,q as ac,qa as y1,qb as Jy,r as A1,ra as Q1,rb as eD,s as Gy,sa as KC,sb as tD,t as oc,ta as hg,tb as Fy,u as Cn,ua as S1,ub as Ky,v as lr,va as YC,vb as nD,w as kC,wa as qC,wb as aD,x as ky,xa as v1,xb as oD,y as LC,ya as D1,yb as AD,z as i1,za as R1,zb as iD}from"./chunk-O2SVXNG5.js";import{a as $v,c as e1,d as t1}from"./chunk-42IVF3YT.js";import{a as Oy,b as Ha,c as Pw,d as lt}from"./chunk-6EA4DGCY.js";var VR=Ha(dB=>{"use strict";var fM=Symbol.for("react.transitional.element"),dM=Symbol.for("react.fragment");function qR(n,A,l){var c=null;if(l!==void 0&&(c=""+l),A.key!==void 0&&(c=""+A.key),"key"in A){l={};for(var u in A)u!=="key"&&(l[u]=A[u])}else l=A;return A=l.ref,{$$typeof:fM,type:n,key:c,ref:A!==void 0?A:null,props:l}}dB.Fragment=dM;dB.jsx=qR;dB.jsxs=qR});var l2=Ha(vt=>{"use strict";var hQ=Symbol.for("react.transitional.element"),gM=Symbol.for("react.portal"),pM=Symbol.for("react.fragment"),mM=Symbol.for("react.strict_mode"),EM=Symbol.for("react.profiler"),hM=Symbol.for("react.consumer"),CM=Symbol.for("react.context"),BM=Symbol.for("react.forward_ref"),IM=Symbol.for("react.suspense"),yM=Symbol.for("react.memo"),$R=Symbol.for("react.lazy"),QM=Symbol.for("react.activity"),SM=Symbol.for("react.view_transition"),XR=Symbol.iterator;function vM(n){return n===null||typeof n!="object"?null:(n=XR&&n[XR]||n["@@iterator"],typeof n=="function"?n:null)}var e2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},t2=Object.assign,n2={};function Ng(n,A,l){this.props=n,this.context=A,this.refs=n2,this.updater=l||e2}Ng.prototype.isReactComponent={};Ng.prototype.setState=function(n,A){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,A,"setState")};Ng.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function a2(){}a2.prototype=Ng.prototype;function CQ(n,A,l){this.props=n,this.context=A,this.refs=n2,this.updater=l||e2}var BQ=CQ.prototype=new a2;BQ.constructor=CQ;t2(BQ,Ng.prototype);BQ.isPureReactComponent=!0;var ZR=Array.isArray;function EQ(){}var Jn={H:null,A:null,T:null,S:null},o2=Object.prototype.hasOwnProperty;function IQ(n,A,l){var c=l.ref;return{$$typeof:hQ,type:n,key:A,ref:c!==void 0?c:null,props:l}}function DM(n,A){return IQ(n.type,A,n.props)}function yQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===hQ}function RM(n){var A={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(l){return A[l]})}var PR=/\/+/g;function mQ(n,A){return typeof n=="object"&&n!==null&&n.key!=null?RM(""+n.key):A.toString(36)}function NM(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(EQ,EQ):(n.status="pending",n.then(function(A){n.status==="pending"&&(n.status="fulfilled",n.value=A)},function(A){n.status==="pending"&&(n.status="rejected",n.reason=A)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function Rg(n,A,l,c,u){var p=typeof n;(p==="undefined"||p==="boolean")&&(n=null);var E=!1;if(n===null)E=!0;else switch(p){case"bigint":case"string":case"number":E=!0;break;case"object":switch(n.$$typeof){case hQ:case gM:E=!0;break;case $R:return E=n._init,Rg(E(n._payload),A,l,c,u)}}if(E)return u=u(n),E=c===""?"."+mQ(n,0):c,ZR(u)?(l="",E!=null&&(l=E.replace(PR,"$&/")+"/"),Rg(u,A,l,"",function(v){return v})):u!=null&&(yQ(u)&&(u=DM(u,l+(u.key==null||n&&n.key===u.key?"":(""+u.key).replace(PR,"$&/")+"/")+E)),A.push(u)),1;E=0;var B=c===""?".":c+":";if(ZR(n))for(var I=0;I<n.length;I++)c=n[I],p=B+mQ(c,I),E+=Rg(c,A,l,p,u);else if(I=vM(n),typeof I=="function")for(n=I.call(n),I=0;!(c=n.next()).done;)c=c.value,p=B+mQ(c,I++),E+=Rg(c,A,l,p,u);else if(p==="object"){if(typeof n.then=="function")return Rg(NM(n),A,l,c,u);throw A=String(n),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return E}function gB(n,A,l){if(n==null)return n;var c=[],u=0;return Rg(n,c,"","",function(p){return A.call(l,p,u++)}),c}function bM(n){if(n._status===-1){var A=n._result,l=A();l.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c,l.status===void 0&&(l.status="fulfilled",l.value=c))},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c,l.status===void 0&&(l.status="rejected",l.reason=c))}),n._status===-1&&(n._status=0,n._result=l)}if(n._status===1)return n._result.default;throw n._result}var WR=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function A2(n){var A=Jn.T,l={};l.types=A!==null?A.types:null,Jn.T=l;try{var c=n(),u=Jn.S;u!==null&&u(l,c),typeof c=="object"&&c!==null&&typeof c.then=="function"&&c.then(EQ,WR)}catch(p){WR(p)}finally{A!==null&&l.types!==null&&(A.types=l.types),Jn.T=A}}function i2(n){var A=Jn.T;if(A!==null){var l=A.types;l===null?A.types=[n]:l.indexOf(n)===-1&&l.push(n)}else A2(i2.bind(null,n))}var TM={map:gB,forEach:function(n,A,l){gB(n,function(){A.apply(this,arguments)},l)},count:function(n){var A=0;return gB(n,function(){A++}),A},toArray:function(n){return gB(n,function(A){return A})||[]},only:function(n){if(!yQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};vt.Activity=QM;vt.Children=TM;vt.Component=Ng;vt.Fragment=pM;vt.Profiler=EM;vt.PureComponent=CQ;vt.StrictMode=mM;vt.Suspense=IM;vt.ViewTransition=SM;vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Jn;vt.__COMPILER_RUNTIME={__proto__:null,c:function(n){return Jn.H.useMemoCache(n)}};vt.addTransitionType=i2;vt.cache=function(n){return function(){return n.apply(null,arguments)}};vt.cacheSignal=function(){return null};vt.cloneElement=function(n,A,l){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var c=t2({},n.props),u=n.key;if(A!=null)for(p in A.key!==void 0&&(u=""+A.key),A)!o2.call(A,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&A.ref===void 0||(c[p]=A[p]);var p=arguments.length-2;if(p===1)c.children=l;else if(1<p){for(var E=Array(p),B=0;B<p;B++)E[B]=arguments[B+2];c.children=E}return IQ(n.type,u,c)};vt.createContext=function(n){return n={$$typeof:CM,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:hM,_context:n},n};vt.createElement=function(n,A,l){var c,u={},p=null;if(A!=null)for(c in A.key!==void 0&&(p=""+A.key),A)o2.call(A,c)&&c!=="key"&&c!=="__self"&&c!=="__source"&&(u[c]=A[c]);var E=arguments.length-2;if(E===1)u.children=l;else if(1<E){for(var B=Array(E),I=0;I<E;I++)B[I]=arguments[I+2];u.children=B}if(n&&n.defaultProps)for(c in E=n.defaultProps,E)u[c]===void 0&&(u[c]=E[c]);return IQ(n,p,u)};vt.createRef=function(){return{current:null}};vt.forwardRef=function(n){return{$$typeof:BM,render:n}};vt.isValidElement=yQ;vt.lazy=function(n){return{$$typeof:$R,_payload:{_status:-1,_result:n},_init:bM}};vt.memo=function(n,A){return{$$typeof:yM,type:n,compare:A===void 0?null:A}};vt.startTransition=A2;vt.unstable_useCacheRefresh=function(){return Jn.H.useCacheRefresh()};vt.use=function(n){return Jn.H.use(n)};vt.useActionState=function(n,A,l){return Jn.H.useActionState(n,A,l)};vt.useCallback=function(n,A){return Jn.H.useCallback(n,A)};vt.useContext=function(n){return Jn.H.useContext(n)};vt.useDebugValue=function(){};vt.useDeferredValue=function(n,A){return Jn.H.useDeferredValue(n,A)};vt.useEffect=function(n,A){return Jn.H.useEffect(n,A)};vt.useEffectEvent=function(n){return Jn.H.useEffectEvent(n)};vt.useId=function(){return Jn.H.useId()};vt.useImperativeHandle=function(n,A,l){return Jn.H.useImperativeHandle(n,A,l)};vt.useInsertionEffect=function(n,A){return Jn.H.useInsertionEffect(n,A)};vt.useLayoutEffect=function(n,A){return Jn.H.useLayoutEffect(n,A)};vt.useMemo=function(n,A){return Jn.H.useMemo(n,A)};vt.useOptimistic=function(n,A){return Jn.H.useOptimistic(n,A)};vt.useReducer=function(n,A,l){return Jn.H.useReducer(n,A,l)};vt.useRef=function(n){return Jn.H.useRef(n)};vt.useState=function(n){return Jn.H.useState(n)};vt.useSyncExternalStore=function(n,A,l){return Jn.H.useSyncExternalStore(n,A,l)};vt.useTransition=function(){return Jn.H.useTransition()};vt.version="19.3.0"});var r2=Ha((Ct,pB)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function n(y,M){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",M[0],M[1])}})}function A(y){return y===null||typeof y!="object"?null:(y=Pn&&y[Pn]||y["@@iterator"],typeof y=="function"?y:null)}function l(y,M){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var de=y+"."+M;Qt[de]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",M,y),Qt[de]=!0)}function c(y,M,de){this.props=y,this.context=M,this.refs=$t,this.updater=de||zt}function u(){}function p(y,M,de){this.props=y,this.context=M,this.refs=$t,this.updater=de||zt}function E(){}function B(y){return""+y}function I(y){try{B(y);var M=!1}catch{M=!0}if(M){M=console;var de=M.error,se=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return de.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",se),B(y)}}function v(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Wn?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case It:return"Fragment";case je:return"Profiler";case ne:return"StrictMode";case yt:return"Suspense";case we:return"SuspenseList";case Ot:return"Activity";case In:return"ViewTransition"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case Bt:return"Portal";case Le:return y.displayName||"Context";case ue:return(y._context.displayName||"Context")+".Consumer";case ft:var M=y.render;return y=y.displayName,y||(y=M.displayName||M.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case Me:return M=y.displayName||null,M!==null?M:v(y.type)||"Memo";case Pe:M=y._payload,y=y._init;try{return v(y(M))}catch{}}return null}function w(y){if(y===It)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var M=v(y);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function U(){var y=Xe.A;return y===null?null:y.getOwner()}function b(){return Error("react-stack-top-frame")}function T(y){if(Pt.call(y,"key")){var M=Object.getOwnPropertyDescriptor(y,"key").get;if(M&&M.isReactWarning)return!1}return y.key!==void 0}function J(y,M){function de(){_n||(_n=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",M))}de.isReactWarning=!0,Object.defineProperty(y,"key",{get:de,configurable:!0})}function L(){var y=v(this.type);return Ta[y]||(Ta[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,M,de,se,ce,ot){var Ue=de.ref;return y={$$typeof:He,type:y,key:M,props:de,_owner:se},(Ue!==void 0?Ue:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:L}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ot}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function ae(y,M){return M=_(y.type,M,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(M._store.validated=y._store.validated),M}function Ce(y){Re(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?Re(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Re(y){return typeof y=="object"&&y!==null&&y.$$typeof===He}function ye(y){var M={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(de){return M[de]})}function Je(y,M){return typeof y=="object"&&y!==null&&y.key!=null?(I(y.key),ye(""+y.key)):M.toString(36)}function Ge(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(E,E):(y.status="pending",y.then(function(M){y.status==="pending"&&(y.status="fulfilled",y.value=M)},function(M){y.status==="pending"&&(y.status="rejected",y.reason=M)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function Ne(y,M,de,se,ce){var ot=typeof y;(ot==="undefined"||ot==="boolean")&&(y=null);var Ue=!1;if(y===null)Ue=!0;else switch(ot){case"bigint":case"string":case"number":Ue=!0;break;case"object":switch(y.$$typeof){case He:case Bt:Ue=!0;break;case Pe:return Ue=y._init,Ne(Ue(y._payload),M,de,se,ce)}}if(Ue){Ue=y,ce=ce(Ue);var Ze=se===""?"."+Je(Ue,0):se;return ca(ce)?(de="",Ze!=null&&(de=Ze.replace(yo,"$&/")+"/"),Ne(ce,M,de,"",function(ya){return ya})):ce!=null&&(Re(ce)&&(ce.key!=null&&(Ue&&Ue.key===ce.key||I(ce.key)),de=ae(ce,de+(ce.key==null||Ue&&Ue.key===ce.key?"":(""+ce.key).replace(yo,"$&/")+"/")+Ze),se!==""&&Ue!=null&&Re(Ue)&&Ue.key==null&&Ue._store&&!Ue._store.validated&&(de._store.validated=2),ce=de),M.push(ce)),1}if(Ue=0,Ze=se===""?".":se+":",ca(y))for(var Tt=0;Tt<y.length;Tt++)se=y[Tt],ot=Ze+Je(se,Tt),Ue+=Ne(se,M,de,ot,ce);else if(Tt=A(y),typeof Tt=="function")for(Tt===y.entries&&(Yt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Yt=!0),y=Tt.call(y),Tt=0;!(se=y.next()).done;)se=se.value,ot=Ze+Je(se,Tt++),Ue+=Ne(se,M,de,ot,ce);else if(ot==="object"){if(typeof y.then=="function")return Ne(Ge(y),M,de,se,ce);throw M=String(y),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return Ue}function Fe(y,M,de){if(y==null)return y;var se=[],ce=0;return Ne(y,se,"","",function(ot){return M.call(de,ot,ce++)}),se}function Se(y){if(y._status===-1){var M=null,de=null,se=y._ioInfo;se!=null&&(se.start=se.end=performance.now(),se.value=new Promise(function(Ue,Ze){M=Ue,de=Ze})),se=y._result;var ce=se();if(ce.then(function(Ue){if(y._status===0||y._status===-1){y._status=1,y._result=Ue;var Ze=y._ioInfo;if(Ze!=null){Ze.end=performance.now();var Tt=Ue?.default;M(Tt),Ze.value.status="fulfilled",Ze.value.value=Tt}ce.status===void 0&&(ce.status="fulfilled",ce.value=Ue)}},function(Ue){if(y._status===0||y._status===-1){y._status=2,y._result=Ue;var Ze=y._ioInfo;Ze!=null&&(Ze.end=performance.now(),Ze.value.then(E,E),de(Ue),Ze.value.status="rejected",Ze.value.reason=Ue),ce.status===void 0&&(ce.status="rejected",ce.reason=Ue)}}),se=y._ioInfo,se!=null){var ot=ce.displayName;typeof ot=="string"&&(se.name=ot)}y._status===-1&&(y._status=0,y._result=ce)}if(y._status===1)return se=y._result,se===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
4
4
 
5
5
  Your code should look like:
6
6
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -560,7 +560,7 @@ Available templates:`));for(let[p,E]of Object.entries(lB))console.log(` ${S.cya
560
560
  `,0),We(`Source: ${l.bundledPath?"bundled TDK example":l.repo}`,0),We(`Destination: ${u}
561
561
  `,0);try{if(l.bundledPath){let p=rB(hU(CU(new URL("../dist/commands/project.js",import.meta.url).href)),"../../../");gU(rB(p,l.bundledPath),u,{recursive:!0});let E=EU(u).replace(/-/g,"_");for(let B of["services/platform/messaging/docker-compose.yml","services/shop/orders-api/service.json","services/shop/orders-api/src/index.ts","services/shop/orders-worker/service.json","services/shop/orders-worker/src/index.ts"]){let I=Dg(u,B),v=eQ(I,"utf-8");mU(I,v.replaceAll("tdk_example",E))}}else dU("git",["clone",l.repo,u],{stdio:"inherit"})}catch{Co(l.bundledPath?"Bundled example copy failed. Reinstall the TDK CLI package and try again.":"git clone failed. Check you have git installed and network access.")}console.log(S.green(`
562
562
  \u2705 Cloned "${n}" into ${c}/`)),We(`
563
- Next steps:`,0),We(`1. cd ${c}`),We("2. tdk doctor # check Docker/Tilt are ready"),We("3. tdk up # start the stack")}var qm={version:"1.0",project:{name:"",version:"1.0.0"},phases:{pre_alpha:{name:"Pre-Alpha",description:"Core infrastructure and MVP services",enabledStacks:yU()},alpha:{name:"Alpha",description:"Essential business services",enabledStacks:[]},beta:{name:"Beta",description:"Extended features",enabledStacks:[]},out_of_scope:{name:"Out of Scope",description:"Future releases",enabledStacks:[]}},optional_infra:{monitoring:!1,elk:!1,debezium:!1,golden_image:!0,verdaccio:!1},discovery:{paths:["services/*/*"]},overrides:{}},aR=new BU("project").description("Initialize or validate project-level master configuration").argument("[template]",`Clone a starter example instead of a blank project (${Object.keys(lB).join(", ")})`).option("--path <dir>","Directory to clone the template into (default: the template's repo name)").option("--check","Check if master configs exist and are in sync").option("--force","Overwrite existing configuration (dangerous)").option("--yes","Non-interactive mode (use defaults)").option("--config-file <path>","Load project config from existing JSON file").action(async(n,A)=>{let{assertMachineReadyOrExit:l}=await import("./cold-preflight-A2DOE5ZP.js");if(await l(),n){await Tn(async()=>QU(n,A.path));return}await Tn(async()=>{let c=Cn();c||(c=tR(),Po(`\u{1F680} Initializing new TDK project...
563
+ Next steps:`,0),We(`1. cd ${c}`),We("2. tdk doctor # check Docker/Tilt are ready"),We("3. tdk up # start the stack")}var qm={version:"1.0",project:{name:"",version:"1.0.0"},phases:{pre_alpha:{name:"Pre-Alpha",description:"Core infrastructure and MVP services",enabledStacks:yU()},alpha:{name:"Alpha",description:"Essential business services",enabledStacks:[]},beta:{name:"Beta",description:"Extended features",enabledStacks:[]},out_of_scope:{name:"Out of Scope",description:"Future releases",enabledStacks:[]}},optional_infra:{monitoring:!1,elk:!1,debezium:!1,golden_image:!0,verdaccio:!1},discovery:{paths:["services/*/*"]},overrides:{}},aR=new BU("project").description("Initialize or validate project-level master configuration").argument("[template]",`Clone a starter example instead of a blank project (${Object.keys(lB).join(", ")})`).option("--path <dir>","Directory to clone the template into (default: the template's repo name)").option("--check","Check if master configs exist and are in sync").option("--force","Overwrite existing configuration (dangerous)").option("--yes","Non-interactive mode (use defaults)").option("--config-file <path>","Load project config from existing JSON file").action(async(n,A)=>{let{assertMachineReadyOrExit:l}=await import("./cold-preflight-OQUN7OFG.js");if(await l(),n){await Tn(async()=>QU(n,A.path));return}await Tn(async()=>{let c=Cn();c||(c=tR(),Po(`\u{1F680} Initializing new TDK project...
564
564
  `),We(`Location: ${c}
565
565
  `,0));let u=Dg(c,".tdk"),p=Dg(u,nc);if(A.check){let T=Sl.every(L=>Ac(Dg(c,".tdk",".tdk-out",L))),J=Ac(p);if(T&&J){let L=zi(c);Zo("Project configuration is valid"),We(`Project: ${L.project.name}`,3),We(`Phases: ${Object.keys(L.phases).join(", ")}`,3),process.exit(0)}else{if(console.log(S.yellow("\u26A0\uFE0F Project configuration incomplete:")),J||We(".tdk/project.json (not found)",3),!T)for(let L of Sl.filter(_=>!Ac(Dg(c,".tdk/.tdk-out",_))))We(`.tdk/.tdk-out/${L} (not found)`,3);We("Run `tdk project` to create them."),process.exit(1)}}ju("Project Configuration"),We(`Project root: ${c}
566
566
  `,0),Ac(u)||(A1(u),Zo("Created: .tdk/ directory"));let E=Ac(p);if(E&&!A.force){Zo(".tdk/project.json exists");let T=JSON.parse(eQ(p,"utf-8")),J=zi(c),L=tQ(c),_=nQ(J,L);if((_.length>0||!T.phases)&&ac(p,J),_.length>0&&We(`Auto-enabled discovered service stacks: ${_.join(", ")}`,0),Po(`
@@ -1369,7 +1369,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
1369
1369
  `)}`,B="Upgrade tdk to a version that supports these files. Changing schemaVersion by hand is not a fix";A.onInvalid?.(`${E}
1370
1370
  Fix: ${B}`),console.error(S.red(`\u2717 ${E}`)),console.error(S.gray(` Fix: ${B}`)),l(1)}import{execFileSync as c4}from"node:child_process";import{realpathSync as u4}from"node:fs";import{resolve as f4}from"node:path";var d4=(n,A)=>c4(n,A,{encoding:"utf-8",stdio:"pipe",timeout:5e3,windowsHide:!0});function aw(n,A=process.platform,l=d4){if(A==="win32")return null;try{let c=l("lsof",["-nP",`-iTCP:${n}`,"-sTCP:LISTEN","-t"]).split(/\r?\n/).map(u=>u.trim()).filter(Boolean);for(let u of c){let p=l("ps",["-p",u,"-o","command="]).trim(),[E]=K1(`${u} ${p}`);if(E)return E}}catch{}return null}function nw(n){try{return u4(n)}catch{return f4(n)}}function ow(n,A){return n!==null&&nw(n.root)!==nw(A)}import{execFileSync as g4}from"node:child_process";var Aw=(n,A)=>g4(n,A,{encoding:"utf-8",stdio:"pipe",windowsHide:!0});function p4(n,A=process.platform,l=Aw){if(!Number.isInteger(n)||n<1||n>65535)return[];if(A==="win32"){let u=`$port=${n}; Get-NetTCPConnection -LocalPort $port -State Listen -ErrorAction SilentlyContinue | ForEach-Object { $p=Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue; if ($p -and $p.ProcessName -eq 'tilt') { $_.OwningProcess } } | Sort-Object -Unique`;try{return l("powershell.exe",["-NoProfile","-Command",u]).split(/\s+/).map(Number).filter(p=>Number.isInteger(p)&&p>0)}catch{throw new Error(`Unable to inspect Tilt listeners on port ${n} with PowerShell.`)}}let c;try{c=l("lsof",["-nP","-t",`-iTCP:${n}`,"-sTCP:LISTEN"]).split(/\s+/).map(Number).filter(u=>Number.isInteger(u)&&u>0)}catch(u){let p=u,E=p.stderr?.toString().trim();if(p?.status===1&&!E)return[];throw new Error(`Unable to inspect listeners on port ${n}. Install lsof or resolve the lsof error before using --force.`,{cause:p})}return c.filter(u=>{try{return l("ps",["-p",String(u),"-o","comm="]).trim().split(/[\\/]/).at(-1)==="tilt"}catch(p){throw new Error(`Unable to identify the process listening on port ${n}.`,{cause:p})}})}function SI(n,A=process.platform,l=Aw){let c=p4(n,A,l);for(let u of c)A==="win32"?l("taskkill.exe",["/PID",String(u),"/F"]):l("kill",["-TERM",String(u)]);return c}function iw(n,A){let l=new Set(A.map(c=>c.name));return n.filter(c=>!l.has(c))}function lw(n,A){let l=new Map(A.map(p=>[p.name,p])),c=new Set,u=p=>{if(!(c.has(p)||!l.has(p))){c.add(p);for(let E of l.get(p)?.config?.dependsOn??[])u(E)}};for(let p of n)u(p);return{selected:A.filter(p=>c.has(p.name)),dependencies:A.map(p=>p.name).filter(p=>c.has(p)&&!n.includes(p))}}function sw(n,A=[]){return["TDK is up.",`Tilt UI: http://localhost:${n}`,"App URLs:",...A.length>0?A.slice(0,5).map(l=>` ${l}`):[" run: tdk networks"],"Stop: tdk down"]}function C4(n,A){return n!=="win32"||A==="1"?null:"Landscape startup needs Ubuntu on WSL2. Native Windows is inspect-only."}async function B4(n=V1(),A=I4){return n.kind==="webcontainer"?Y1:X1(n.kind)&&!await A()?q1:null}async function I4(){let{execFile:n}=await import("node:child_process");return new Promise(A=>{n("docker",["ps"],{timeout:1e4},l=>A(!l))})}var y4=2;function Q4(n){let A;try{({handEdited:A}=VC(n))}catch(l){if(l instanceof k1)return null;throw l}return A.length===0?null:["Generated files were edited by hand and no longer match service.json:",...A.map(l=>` ${l}`),"Run `tdk config regenerate` to discard the edits, or bypass with `tdk up --ignore-drift`."]}function S4(n,A,l=process.exit){if(A.ignoreDrift){console.warn(S.yellow("Warning: --ignore-drift set; generated files were not checked."));return}let c=Q4(n);if(c){A.onDrift?.(c.join(`
1371
1371
  `));for(let u of c)console.error(S.red(u));l(y4)}}function v4(n,A,l=lr(),c=process.exit){if(A.ignoreVersion){console.warn(S.yellow("Warning: --ignore-version set; minTdkVersion was not checked."));return}let u=fD(n,l);u.status==="none"||u.status==="ok"||(A.onFail?.(`${u.message}
1372
- ${u.fix}`),console.error(S.red(u.message)),console.error(S.red(u.fix)),c(1))}function D4(n,A=3e4){return new Promise(l=>{let c=Date.now()+A,u=()=>{let p=E4({host:"127.0.0.1",port:n}),E=!1,B=I=>{E||(E=!0,p.destroy(),I||Date.now()>=c?l(I):setTimeout(u,250))};p.once("connect",()=>B(!0)),p.once("error",()=>B(!1))};u()})}var cw=new h4("up").description("Start all services (optionally filtered by stack)").alias("deploy").argument("[stack-name]","Name of the stack to start (optional - runs all if omitted)").option("-v, --verbose","Enable verbose output",!1).option("-q, --quiet","Suppress non-essential output",!1).option("--dry-run","Show what would be started without starting",!1).option("-f, --force","Kill existing Tilt process before starting",!1).option("--ignore-drift","Start even if generated files differ from service.json",!1).option("--ignore-version","Start even if this tdk is older than minTdkVersion in .tdk/project.json",!1).option("--only <services...>","Start only these services plus what the Tiltfile enables for them (their dependsOn services and shared infrastructure). With a stack, names must belong to that stack; dependencies may cross stacks").option("--json","Print one JSON object on stdout when the stack is ready or the command fails; implies --quiet",!1).action(async(n,A)=>{let l=A.json?iB("UP_FAILED","tdk up"):void 0;A.json&&(A.quiet=!0);let c=pQ(process.env.TILT_PORT);c.ok||(l?.({ok:!1},[{code:"INVALID_TILT_PORT",message:c.message}]),Co(c.message));let u=c.port,p=Cn();p&&v4(p,{ignoreVersion:A.ignoreVersion,onFail:w=>l?.({ok:!1},[{code:"TDK_VERSION_TOO_OLD",message:w}])});let E=A.dryRun?null:await B4();E&&(l?.({ok:!1},[{code:"HOST_UNSUPPORTED",message:E}]),Co(E));let B=C4(process.platform,process.env.TDK_ALLOW_NATIVE_WINDOWS);B&&Co(B);let I=Cn();if(I&&tw(I,{onInvalid:w=>l?.({ok:!1},[{code:"INVALID_SCHEMA_VERSION",message:w}])}),!A.dryRun){let{assertMachineReadyOrExit:w}=await import("./cold-preflight-A2DOE5ZP.js");await w()}let v=async()=>{let w=A.dryRun?Va():Cn(),U=w??process.cwd(),b=w1(),T,J=[];if((!A.only||n)&&(T=$r(b),J=T.map(ue=>ue.name)),A.only){if(n&&!Cg(n)){let ft=an.stackNotFound(n,J);l?.({ok:!1},[oB(ft).error]),ft.exit()}let ue=n?b.filter(ft=>ft.stack===n):b,Le=iw(A.only,ue);if(Le.length>0){let ft=ue.map(we=>we.name),yt=an.unknownServices(Le,ft);l?.({ok:!1},[{code:"UNKNOWN_SERVICE",message:yt.message,...yt.suggestions.length>0?{suggestions:yt.suggestions}:{}}]),yt.exit()}}w&&S4(w,{ignoreDrift:A.ignoreDrift,onDrift:ue=>l?.({ok:!1},[{code:"DRIFT_DETECTED",message:ue}])}),w&&uD(w,{onInvalid:ue=>l?.({ok:!1},[{code:"INVALID_SERVICE_CONFIG",message:ue}])}),w&&!l&&!A.quiet&&cD(w);let L=await eB(U,{inspectDocker:!A.dryRun});if(!A.dryRun){if(w){let ft=zm(U);ft.length>0&&!A.quiet&&console.log(S.gray(`Added ${ft.join(", ")} to .env (generated; existing values unchanged)`))}w&&!m4(rw(U,".tdk",".tdk-out","Tiltfile"))&&(A.quiet||console.log(S.gray("No generated Tiltfile yet; generating .tdk/.tdk-out/ ...")),await zu(U,{quiet:A.quiet}));let ue=j1(U);ue.length>0&&A.verbose&&!A.quiet&&console.log(S.gray(`Refreshed runtime assets: ${ue.join(", ")}`));let Le=nR(U);Le.length>0&&!A.quiet&&console.log(S.gray(`Added ${Le.join(", ")} to the pre_alpha phase in .tdk/project.json`))}let _,ae,Ce=[];if(n){if(_=b.filter(ue=>ue.stack===n),_.length===0){let ue=an.stackNotFound(n,J);l?.({ok:!1},[oB(ue).error]),ue.exit()}Ce=_.map(ue=>ue.name),ae=`stack "${n}"`}else{_=b;let ue=T??$r(b);ae=`all stacks (${Un(ue.length,"stack")}, ${Un(_.length,"service")})`}let Re=[];if(A.only){let ue=lw(A.only,ji());_=ue.selected,Re=ue.dependencies,Ce=_.map(Le=>Le.name),ae=`${Un(A.only.length,"requested service")}${Re.length>0?` plus ${Re.join(", ")}`:""}`}A.verbose&&!A.quiet&&console.log(S.gray(`Found ${Un(_.length,"service")} in ${ae}`));let ye=_.map(ue=>ue.name);if(!A.quiet){console.log(S.blue(`${A.dryRun?"Would start":"Starting"} ${Un(ye.length,"service")} from ${ae}...`));for(let we of ye)console.log(S.gray(` - ${we}`));let{appBase:ue,apiBase:Le}=kC(L.ingressHttp),ft=_.filter(we=>we.config?.appType==="frontend"),yt=_.filter(we=>oc(we.config?.appType));if(ft.length>0){console.log(S.blue(`
1372
+ ${u.fix}`),console.error(S.red(u.message)),console.error(S.red(u.fix)),c(1))}function D4(n,A=3e4){return new Promise(l=>{let c=Date.now()+A,u=()=>{let p=E4({host:"127.0.0.1",port:n}),E=!1,B=I=>{E||(E=!0,p.destroy(),I||Date.now()>=c?l(I):setTimeout(u,250))};p.once("connect",()=>B(!0)),p.once("error",()=>B(!1))};u()})}var cw=new h4("up").description("Start all services (optionally filtered by stack)").alias("deploy").argument("[stack-name]","Name of the stack to start (optional - runs all if omitted)").option("-v, --verbose","Enable verbose output",!1).option("-q, --quiet","Suppress non-essential output",!1).option("--dry-run","Show what would be started without starting",!1).option("-f, --force","Kill existing Tilt process before starting",!1).option("--ignore-drift","Start even if generated files differ from service.json",!1).option("--ignore-version","Start even if this tdk is older than minTdkVersion in .tdk/project.json",!1).option("--only <services...>","Start only these services plus what the Tiltfile enables for them (their dependsOn services and shared infrastructure). With a stack, names must belong to that stack; dependencies may cross stacks").option("--json","Print one JSON object on stdout when the stack is ready or the command fails; implies --quiet",!1).action(async(n,A)=>{let l=A.json?iB("UP_FAILED","tdk up"):void 0;A.json&&(A.quiet=!0);let c=pQ(process.env.TILT_PORT);c.ok||(l?.({ok:!1},[{code:"INVALID_TILT_PORT",message:c.message}]),Co(c.message));let u=c.port,p=Cn();p&&v4(p,{ignoreVersion:A.ignoreVersion,onFail:w=>l?.({ok:!1},[{code:"TDK_VERSION_TOO_OLD",message:w}])});let E=A.dryRun?null:await B4();E&&(l?.({ok:!1},[{code:"HOST_UNSUPPORTED",message:E}]),Co(E));let B=C4(process.platform,process.env.TDK_ALLOW_NATIVE_WINDOWS);B&&Co(B);let I=Cn();if(I&&tw(I,{onInvalid:w=>l?.({ok:!1},[{code:"INVALID_SCHEMA_VERSION",message:w}])}),!A.dryRun){let{assertMachineReadyOrExit:w}=await import("./cold-preflight-OQUN7OFG.js");await w()}let v=async()=>{let w=A.dryRun?Va():Cn(),U=w??process.cwd(),b=w1(),T,J=[];if((!A.only||n)&&(T=$r(b),J=T.map(ue=>ue.name)),A.only){if(n&&!Cg(n)){let ft=an.stackNotFound(n,J);l?.({ok:!1},[oB(ft).error]),ft.exit()}let ue=n?b.filter(ft=>ft.stack===n):b,Le=iw(A.only,ue);if(Le.length>0){let ft=ue.map(we=>we.name),yt=an.unknownServices(Le,ft);l?.({ok:!1},[{code:"UNKNOWN_SERVICE",message:yt.message,...yt.suggestions.length>0?{suggestions:yt.suggestions}:{}}]),yt.exit()}}w&&S4(w,{ignoreDrift:A.ignoreDrift,onDrift:ue=>l?.({ok:!1},[{code:"DRIFT_DETECTED",message:ue}])}),w&&uD(w,{onInvalid:ue=>l?.({ok:!1},[{code:"INVALID_SERVICE_CONFIG",message:ue}])}),w&&!l&&!A.quiet&&cD(w);let L=await eB(U,{inspectDocker:!A.dryRun});if(!A.dryRun){if(w){let ft=zm(U);ft.length>0&&!A.quiet&&console.log(S.gray(`Added ${ft.join(", ")} to .env (generated; existing values unchanged)`))}w&&!m4(rw(U,".tdk",".tdk-out","Tiltfile"))&&(A.quiet||console.log(S.gray("No generated Tiltfile yet; generating .tdk/.tdk-out/ ...")),await zu(U,{quiet:A.quiet}));let ue=j1(U);ue.length>0&&A.verbose&&!A.quiet&&console.log(S.gray(`Refreshed runtime assets: ${ue.join(", ")}`));let Le=nR(U);Le.length>0&&!A.quiet&&console.log(S.gray(`Added ${Le.join(", ")} to the pre_alpha phase in .tdk/project.json`))}let _,ae,Ce=[];if(n){if(_=b.filter(ue=>ue.stack===n),_.length===0){let ue=an.stackNotFound(n,J);l?.({ok:!1},[oB(ue).error]),ue.exit()}Ce=_.map(ue=>ue.name),ae=`stack "${n}"`}else{_=b;let ue=T??$r(b);ae=`all stacks (${Un(ue.length,"stack")}, ${Un(_.length,"service")})`}let Re=[];if(A.only){let ue=lw(A.only,ji());_=ue.selected,Re=ue.dependencies,Ce=_.map(Le=>Le.name),ae=`${Un(A.only.length,"requested service")}${Re.length>0?` plus ${Re.join(", ")}`:""}`}A.verbose&&!A.quiet&&console.log(S.gray(`Found ${Un(_.length,"service")} in ${ae}`));let ye=_.map(ue=>ue.name);if(!A.quiet){console.log(S.blue(`${A.dryRun?"Would start":"Starting"} ${Un(ye.length,"service")} from ${ae}...`));for(let we of ye)console.log(S.gray(` - ${we}`));let{appBase:ue,apiBase:Le}=kC(L.ingressHttp),ft=_.filter(we=>we.config?.appType==="frontend"),yt=_.filter(we=>oc(we.config?.appType));if(ft.length>0){console.log(S.blue(`
1373
1373
  \u{1F30D} Frontend URLs:`));for(let we of ft){let Me=we.config?.basePath??`/${we.name}`;console.log(S.gray(` - ${we.name}: ${ue}${S.cyan(ky(Me))}`))}}if(yt.length>0){console.log(S.blue(`
1374
1374
  \u{1F527} Backend API URLs:`));for(let we of yt){let Me=we.name.replace(/-api$/,""),Pe=we.config?.apiPath??`/api/${Me}`,Ot=we.config?.sablier,In=Ot?.enable&&Ot?.deferStart?S.dim(" (deferred \u2014 starts on first request)"):"";console.log(S.gray(` - ${we.name}: ${Le}${S.cyan(ky(Pe))}${In}`))}}}let Je=A.only??(n?[n]:void 0),Ge=g1(Ce,{verbose:A.verbose,quiet:A.quiet,force:A.force,focusTargets:Je}),Ne=Je?`tilt up ${Ge.join(" ")}`:"tilt up";if(!A.quiet){console.log(S.blue(iD(L)));for(let ue of ew(L))console.log(S.yellow(ue));console.log(S.gray("Override with TDK_HTTP_PORT, TDK_HTTPS_PORT, or TDK_POSTGRES_PORT."))}if(l&&A.dryRun){l({ok:!0,dryRun:!0,stack:n??null,services:ye,...A.only?{requested:A.only,declaredDependencies:Re}:{},command:Ne});return}if(aB(A,"not starting services",Ne))return;sD(L),rD(U,L);let Fe=vl.tiltUi,Se=u??Fe,Ve=A.only?[...new Set([Fe,Se])]:[Se],at=[],ke=[];for(let ue of Ve){if(await ic(ue)===null)continue;let Le=aw(ue);Le&&ow(Le,U)?ke.push({port:ue,root:Le.root}):at.push(ue)}if(ke.length>0&&u!==void 0){let ue=ke[0],Le=`TILT_PORT=${ue?.port} is used by another project's Tilt (${ue?.root}). Choose a free port, or run tdk down in that project.`;l?.({ok:!1},[{code:"TILT_PORT_IN_USE",message:Le}]),Co(Le)}if(!A.quiet)for(let ue of ke)console.log(S.yellow(`\u26A0\uFE0F Tilt on port ${ue.port} belongs to another project (${ue.root}); this project will use another port.`));let xt=A.force&&ke.length===0,st=JR({runningPorts:at,force:xt,only:!!A.only});if(st.action==="already-running"){let ue=`Environment is already running on port ${st.ports.join(", ")}.`;l?.({ok:!0,alreadyRunning:!0,tiltUrl:`http://localhost:${st.ports[0]}`}),A.quiet||console.log(S.green(ue));return}if(st.action==="only-blocked"){let ue=`A Tilt is already running on port ${st.ports.join(", ")}. --only cannot change a running stack's services: run \`tdk down\` first, or pass --force to replace it.`;l?.({ok:!1},[{code:"TILT_ALREADY_RUNNING",message:ue}]),Co(ue)}if(A.only)for(let ue of at)SI(ue);let Ee=await FR({configuredPort:u,force:xt,basePort:Fe,findAvailablePort:PD}),fe=Ee.port;Ee.autoSwitched&&!A.quiet&&(console.log(S.yellow(`\u26A0\uFE0F Port ${Fe} is already in use`)),console.log(S.blue(`\u{1F504} Auto-switching to port ${fe}
1375
1375
  `))),process.env.TILT_PORT=fe.toString(),await KR({force:xt,quiet:A.quiet,port:fe},{stop:SI,log:ue=>console.log(S.yellow(ue)),wait:ue=>new Promise(Le=>setTimeout(Le,ue))}),A.quiet||(console.log(S.gray(`
@@ -1,2 +1,2 @@
1
1
  import{createRequire as __tdkRequire}from'node:module';const require=__tdkRequire(import.meta.url);
2
- import{Ib as a,Jb as b,Kb as c,Lb as d,Mb as e}from"./chunk-I3NXJOZC.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{e as assertMachineReadyOrExit,d as formatColdPreflight,a as nodeTooOld,b as requireVerifiedDockerVersions,c as runColdPreflight};
2
+ import{Ib as a,Jb as b,Kb as c,Lb as d,Mb as e}from"./chunk-O2SVXNG5.js";import"./chunk-42IVF3YT.js";import"./chunk-6EA4DGCY.js";export{e as assertMachineReadyOrExit,d as formatColdPreflight,a as nodeTooOld,b as requireVerifiedDockerVersions,c as runColdPreflight};
package/cli/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tdk-cli-internal",
3
3
  "private": true,
4
- "version": "1.3.156",
4
+ "version": "1.3.157",
5
5
  "description": "TDK CLI — start services on your machine.",
6
6
  "keywords": [
7
7
  "tdk",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tdk-landscape/tdk-cli-core",
3
- "version": "1.3.156",
3
+ "version": "1.3.157",
4
4
  "description": "TDK CLI — start services on your machine.",
5
5
  "homepage": "https://tdk-landscape.github.io/tdk-website",
6
6
  "repository": {