@fugood/bricks-cli 2.25.0-beta.60 → 2.25.0-beta.61

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/lib/557.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=557;export const __rspack_esm_ids=[557];export const __webpack_modules__={70604(t){t.exports=function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},90250(t,e,r){var i=r(3634),n=r(70604),o=r(78243),s=r(5523);t.exports=function(t){return i(t)||n(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},69995(t,e,r){r.d(e,{H:()=>i});function i(t,e){try{var r=JSON.parse(t).error,i=r?.message??r;if("string"==typeof i&&i)return i}catch{}return t||e}},42208(t,e,r){r.d(e,{RP:()=>c});var i=r(99436),n=r(75720),o="CTOR",s="ctor@bricks.tools",u=`Co-authored-by: ${o} <${s}>`;function a(){return(a=i(function*(t){return!!(yield(0,n.sh)`cd ${t} && git config user.email`.quiet().nothrow().text()).trim()})).apply(this,arguments)}function c(t,e){return d.apply(this,arguments)}function d(){return(d=i(function*(t,e,r=[]){var i=yield function(t){return a.apply(this,arguments)}(t),n=i?[]:["-c",`user.name=${o}`,"-c",`user.email=${s}`],c=[];for(var d of e)c.push("-m",d);return i&&c.push("-m",u),[...n,"commit",...r,...c]})).apply(this,arguments)}},13376(t,e,r){r.d(e,{a:()=>a,p:()=>s});var i=r(99436),n=r(51455),o=".bricks/.last-pushed-commit";function s(t){return u.apply(this,arguments)}function u(){return(u=i(function*(t){try{return(yield(0,n.readFile)(`${t}/${o}`,"utf8")).trim()||null}catch{return null}})).apply(this,arguments)}function a(t,e){return c.apply(this,arguments)}function c(){return(c=i(function*(t,e){e&&(yield(0,n.mkdir)(`${t}/.bricks`,{recursive:!0}),yield(0,n.writeFile)(`${t}/${o}`,e))})).apply(this,arguments)}},69070(t,e,r){r.d(e,{k:()=>s,q:()=>a});var i=r(99436),n=r(26848),o=r(1708);function s(t){return u.apply(this,arguments)}function u(){return(u=i(function*(t){if(!o.stdin.isTTY)return"";var e=(0,n.createInterface)({input:o.stdin,output:o.stdout});try{return(yield e.question(`${t} `)).trim()}finally{e.close()}})).apply(this,arguments)}function a(t){return c.apply(this,arguments)}function c(){return(c=i(function*(t){return(yield s(t))==="y"})).apply(this,arguments)}},75720(t,e,r){r.d(e,{p:()=>l,sh:()=>f});var i,n,o=r(90250),s=r(99436),u=r(5018),a=r(44668),c=r(31421),d=r(73024),l=()=>{var t=process.argv[1];return t&&(0,d.existsSync)(t)?[process.execPath,t]:[process.execPath]},p=a(function t(e){u(this,t),this._cwd=void 0,this._mode="default",this._throw=!0,this._env=void 0,this._promise=null,this.args=e},[{key:"cwd",value:function(t){return this._cwd=t,this}},{key:"quiet",value:function(){return this._mode="quiet",this}},{key:"nothrow",value:function(){return this._throw=!1,this}},{key:"env",value:function(t){return this._env={...this._env,...t},this}},{key:"text",value:(i=s(function*(){return"default"===this._mode&&(this._mode="text"),(yield this.run()).stdout.toString("utf8")}),function(){return i.apply(this,arguments)})},{key:"then",value:function(t,e){return this.run().then(t,e)}},{key:"run",value:function(){return this._promise||(this._promise=this.exec()),this._promise}},{key:"exec",value:(n=s(function*(){var t=o(this.args),e=t[0],r=(function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i})(t).slice(1);if(!e)throw Error("sh: empty command");var i="default"===this._mode?["inherit","pipe","pipe"]:"quiet"===this._mode?["ignore","pipe","pipe"]:["inherit","pipe","pipe"],n=this._env?{...process.env,...this._env}:void 0,s=(0,c.spawn)(e,r,{cwd:this._cwd,stdio:i,env:n}),u=[],a=[];s.stdout?.on("data",t=>{u.push(t),"default"===this._mode&&process.stdout.write(t)}),s.stderr?.on("data",t=>{a.push(t),"default"===this._mode&&process.stderr.write(t)});var d=yield new Promise((t,e)=>{s.on("error",e),s.on("close",e=>t(e??0))}),l=Buffer.concat(u),p=Buffer.concat(a);if(0!==d&&this._throw){var h=Error(`sh: command failed with exit ${d}: ${this.args.join(" ")}`);throw h.exitCode=d,h.stdout=l,h.stderr=p,h}return{exitCode:d,stdout:l,stderr:p}}),function(){return n.apply(this,arguments)})}]),h=/\s/;function f(t,...e){var r,i,n,o,s,u=(r=[],i="",n=!1,o=()=>{n&&(r.push(i),i="",n=!1)},s=t=>{i+=t,n=!0},(t.forEach((t,r)=>{for(var i=0;i<t.length;i++){var n=t[i];h.test(n)?o():s(n)}r<e.length&&(t=>{if(null!=t){if(Array.isArray(t))return t.forEach((t,e)=>{e>0&&o(),s(String(t))});s(String(t))}})(e[r])}),o(),r.length>=3&&"cd"===r[0]&&"&&"===r[2])?{tokens:r.slice(3),initialCwd:r[1]}:{tokens:r}),a=u.tokens,c=u.initialCwd,d=new p(a);return c&&d.cwd(c),d}},71772(t,e,r){r.r(e),r.d(e,{push:()=>p});var i,n=r(99436),o=r(51455),s=r(75720),u=r(69995),a=r(42208),c=r(13376),d=r(69070),l=(i=n(function*(t){return JSON.parse((yield(0,o.readFile)(t,"utf8")))}),function(t){return i.apply(this,arguments)});function p(){return h.apply(this,arguments)}function h(){return(h=n(function*(t={}){var e,r=process.cwd(),i=t.autoCommit,n=t.check,p=t.validate,h=t.yes,f=0===(yield(0,s.sh)`cd ${r} && git status`.quiet().nothrow()).exitCode;if(!f&&!h&&!(yield(0,d.q)("No git repository found, continue? (y/n)")))throw Error("Update cancelled");var y=yield l(`${r}/application.json`),v=yield l(`${r}/.bricks/build/application-config.json`),m="",_="";if(f){if(yield(0,s.sh)`cd ${r} && git diff --name-only --diff-filter=ACMR`.text())if(i){_=(yield(0,s.sh)`cd ${r} && git rev-parse HEAD`.nothrow().text()).trim(),yield(0,s.sh)`cd ${r} && git add -A`;var g=yield(0,a.RP)(r,["chore: update bricks config"]);yield(0,s.sh)`cd ${r} && git ${g}`}else throw Error("Unstaged changes found, please commit or stash your changes before updating");m=(yield(0,s.sh)`cd ${r} && git rev-parse HEAD`.text()).trim()}if((void 0===n||n)&&(_?e=_:m&&(e=m)),!h&&!(yield(0,d.q)("Are you sure you want to push the new config? (y/n)")))throw Error("Update cancelled");var w="module"===y.type,x={...v,bricks_project_last_commit_id:m||void 0},$=`${r}/.bricks/build/push-config.json`;yield(0,o.writeFile)($,JSON.stringify(x));var k=["bricks",w?"module":"app","update",y.id,"-f",$,"--json"];void 0===p||p||k.push("--no-validate"),e&&k.push("--last-commit-id",e);var b=yield(0,s.sh)`${k}`.quiet().nothrow();if(0!==b.exitCode){var S=b.stderr.toString()||b.stdout.toString();throw Error((0,u.H)(S,"Update failed"))}var q=JSON.parse(b.stdout.toString());m&&(yield(0,c.a)(r,m)),console.log(`${w?"Module":"App"} config updated: ${q.target?.name||y.name}`)})).apply(this,arguments)}}};
package/lib/563.js ADDED
@@ -0,0 +1,4 @@
1
+ export const __rspack_esm_id=563;export const __rspack_esm_ids=[563];export const __webpack_modules__={56005(r,e,o){var t=o(95243),n=o(5485);r.exports=function(r){return n(t(r).toLowerCase())}},63322(r,e,o){o.r(e),o.d(e,{BUILTIN_ISSUE_CODES:()=>l,buildConfigDoctorReport:()=>g,getDoctorExitCode:()=>m,loadConfigForDoctor:()=>h,parseCodesOption:()=>f,renderConfigDoctorReport:()=>y,runConfigDoctor:()=>$});var t,n,i,s=o(99436),a=o(79896),c=o(38890),p=o(56493),l=["schema-error","ref-error","calc-error","expression-error","deprecated-feature"],u={error:0,warning:1,info:2},f=r=>"string"==typeof r&&r?r.split(",").map(r=>r.trim()).filter(Boolean):null,d=r=>{if(!r)throw Error("The fetched record has no config");return"string"==typeof r?JSON.parse(r):r},h=(t=s(function*(r,e,{composed:o=!1}={}){if(a.existsSync(e))return{config:JSON.parse(a.readFileSync(e,"utf-8")),target:{type:r,source:"file",path:e}};var t=(0,p.o)();if("app"===r){var n=yield t.application({id:e,composed:o});if(!n)throw Error(`Application not found: ${e}`);return{config:d(n.config),target:{type:r,source:"remote",id:e,composed:o}}}var i=yield t.module({id:e});if(!i)throw Error(`Module not found: ${e}`);return{config:d(i.config),target:{type:r,source:"remote",id:e}}}),function(r,e){return t.apply(this,arguments)}),g=(n=s(function*(r,{type:e="app",only:o=null,ignore:t=null,checkAutomation:n=!1}={}){var i=[...l,...c.lintRuleCodes],s=[...o||[],...t||[]].filter(r=>!i.includes(r));if(s.length>0)throw Error(`Unknown rule code(s): ${s.join(", ")}
2
+ Valid codes: ${i.join(", ")}`);var a=r=>(!o||o.includes(r))&&(!t||!t.includes(r)),p=[],f=(0,c.checkConfig)(r,{checkCalc:!0,checkExpressions:!0,checkAutomation:n}),d=(r,e,o)=>{a(e)&&(r||[]).forEach(r=>p.push({hint:null,...o(r)}))};d(f.schema,"schema-error",r=>({severity:"error",code:"schema-error",path:r.instancePath||r.dataPath||"/",message:r.message,hint:r.params?.pattern?`pattern: ${r.params.pattern}`:null})),d(f.ref,"ref-error",r=>({severity:"error",code:"ref-error",path:r.field,message:r.message})),d(f.calc,"calc-error",r=>({severity:"error",code:"calc-error",path:r.field,message:r.message})),d(f.expression,"expression-error",r=>({severity:"error",code:"expression-error",path:r.field,message:r.message})),a("deprecated-feature")&&(0,c.checkConfigDeprecatedFeatures)(r).forEach(r=>p.push({severity:"warning",code:"deprecated-feature",path:r.id,message:r.data,hint:null}));var h=!f.valid;if(!h){var g=o?o.filter(r=>c.lintRuleCodes.includes(r)):null,m=t?t.filter(r=>c.lintRuleCodes.includes(r)):null;(!g||g.length>0)&&p.push(...(0,c.lintConfig)(r,{configType:e,only:g,ignore:m}))}p.sort((r,e)=>u[r.severity]-u[e.severity]);var v={errors:p.filter(r=>"error"===r.severity).length,warnings:p.filter(r=>"warning"===r.severity).length,infos:p.filter(r=>"info"===r.severity).length};return{ok:0===v.errors,valid:f.valid,lintSkipped:h,summary:v,issues:p}}),function(r){return n.apply(this,arguments)}),m=(r,{strict:e=!1}={})=>r.summary.errors>0||e&&r.summary.warnings>0?1:0,v=[["error","Errors"],["warning","Warnings"],["info","Info"]],y=r=>{var e=[];e.push("\nConfig Doctor Report");var o=r.target;if(o){var t="file"===o.source?`${o.type} config: ${o.path}`:`${o.type}: ${o.id}${o.composed?" (composed)":""}`;e.push(t)}if(e.push("─".repeat(60)),0===r.issues.length)return e.push("✓ No issues found"),e.join("\n");v.forEach(([o,t])=>{var n=r.issues.filter(r=>r.severity===o);0!==n.length&&(e.push(`
3
+ ${t} (${n.length})
4
+ `),n.forEach((r,o)=>{e.push(` ${o+1}. [${r.code}] ${r.path||""}`),e.push(` ${r.message}`),r.hint&&e.push(` ↳ ${r.hint}`)}))}),r.lintSkipped&&e.push("\n ⚠ Lint rules skipped — fix schema/reference errors first"),e.push("\n"+"─".repeat(60));var n=r.summary,i=n.errors,s=n.warnings,a=n.infos,c=[];return i>0&&c.push(`✗ ${i} error(s)`),s>0&&c.push(`⚠ ${s} warning(s)`),a>0&&c.push(`ℹ ${a} info`),e.push(c.join(" ")),e.join("\n")},$=(i=s(function*(r,e,o){var t=f(o.only),n=f(o.ignore),i=yield h(r,e,{composed:!!o.composed}),s=i.config,a=i.target,c=yield g(s,{type:r,only:t,ignore:n,checkAutomation:!!o.validateAutomation});return c.target=a,{report:c,exitCode:m(c,{strict:!!o.strict})}}),function(r,e,o){return i.apply(this,arguments)})}};
package/lib/574.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=574;export const __rspack_esm_ids=[574];export const __webpack_modules__={56005(_,e,o){var s=o(95243),r=o(5485);_.exports=function(_){return r(s(_).toLowerCase())}}};
package/lib/645.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=645;export const __rspack_esm_ids=[645];export const __webpack_modules__={65650(u,r,e){u.exports=e(78942).Symbol},65111(u){u.exports=function(u,r){for(var e=-1,t=null==u?0:u.length,f=Array(t);++e<t;)f[e]=r(u[e],e,u);return f}},44187(u){u.exports=function(u,r,e,t){var f=-1,o=null==u?0:u.length;for(t&&o&&(e=u[++f]);++f<o;)e=r(e,u[f],f,u);return e}},52837(u){u.exports=function(u){return u.split("")}},39546(u){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;u.exports=function(u){return u.match(r)||[]}},87379(u,r,e){var t=e(65650),f=e(8870),o=e(29005),n=t?t.toStringTag:void 0;u.exports=function(u){return null==u?void 0===u?"[object Undefined]":"[object Null]":n&&n in Object(u)?f(u):o(u)}},51035(u){u.exports=function(u){return function(r){return null==u?void 0:u[r]}}},73501(u){u.exports=function(u,r,e){var t=-1,f=u.length;r<0&&(r=-r>f?0:f+r),(e=e>f?f:e)<0&&(e+=f),f=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(f);++t<f;)o[t]=u[t+r];return o}},52291(u,r,e){var t=e(65650),f=e(65111),o=e(53142),n=e(51187),a=1/0,c=t?t.prototype:void 0,d=c?c.toString:void 0;u.exports=function u(r){if("string"==typeof r)return r;if(o(r))return f(r,u)+"";if(n(r))return d?d.call(r):"";var e=r+"";return"0"==e&&1/r==-a?"-0":e}},28931(u,r,e){var t=e(73501);u.exports=function(u,r,e){var f=u.length;return e=void 0===e?f:e,!r&&e>=f?u:t(u,r,e)}},4326(u,r,e){var t=e(28931),f=e(83417),o=e(82237),n=e(95243);u.exports=function(u){return function(r){var e=f(r=n(r))?o(r):void 0,a=e?e[0]:r.charAt(0),c=e?t(e,1).join(""):r.slice(1);return a[u]()+c}}},93640(u,r,e){var t=e(44187),f=e(45881),o=e(39850),n=RegExp("['’]","g");u.exports=function(u){return function(r){return t(o(f(r).replace(n,"")),u,"")}}},69968(u,r,e){u.exports=e(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},74967(u){u.exports="object"==typeof global&&global&&global.Object===Object&&global},8870(u,r,e){var t=e(65650),f=Object.prototype,o=f.hasOwnProperty,n=f.toString,a=t?t.toStringTag:void 0;u.exports=function(u){var r=o.call(u,a),e=u[a];try{u[a]=void 0;var t=!0}catch(u){}var f=n.call(u);return t&&(r?u[a]=e:delete u[a]),f}},83417(u){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");u.exports=function(u){return r.test(u)}},15813(u){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;u.exports=function(u){return r.test(u)}},29005(u){var r=Object.prototype.toString;u.exports=function(u){return r.call(u)}},78942(u,r,e){var t=e(74967),f="object"==typeof self&&self&&self.Object===Object&&self;u.exports=t||f||Function("return this")()},82237(u,r,e){var t=e(52837),f=e(83417),o=e(92013);u.exports=function(u){return f(u)?o(u):t(u)}},92013(u){var r="\\ud800-\\udfff",e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",t="\\ud83c[\\udffb-\\udfff]",f="[^"+r+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+e+"|"+t+")?",c="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[f,o,n].join("|")+")"+c+a+")*",i=RegExp(t+"(?="+t+")|"+("(?:"+[f+e+"?",e,o,n,"["+r+"]"].join("|"))+")"+(c+a+d),"g");u.exports=function(u){return u.match(i)||[]}},10482(u){var r="\\ud800-\\udfff",e="\\u2700-\\u27bf",t="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",n="['’]",a="["+o+"]",c="["+t+"]",d="[^"+r+o+"\\d+"+e+t+f+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",x="[\\ud800-\\udbff][\\udc00-\\udfff]",s="["+f+"]",p="(?:"+c+"|"+d+")",l="(?:"+s+"|"+d+")",v="(?:"+n+"(?:d|ll|m|re|s|t|ve))?",b="(?:"+n+"(?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",j="[\\ufe0e\\ufe0f]?",A="(?:\\u200d(?:"+["[^"+r+"]",i,x].join("|")+")"+j+g+")*",y="(?:"+["["+e+"]",i,x].join("|")+")"+(j+g+A),O=RegExp([s+"?"+c+"+"+v+"(?="+[a,s,"$"].join("|")+")",l+"+"+b+"(?="+[a,s+p,"$"].join("|")+")",s+"?"+p+"+"+v,s+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",y].join("|"),"g");u.exports=function(u){return u.match(O)||[]}},45881(u,r,e){var t=e(69968),f=e(95243),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");u.exports=function(u){return(u=f(u))&&u.replace(o,t).replace(n,"")}},53142(u){u.exports=Array.isArray},80547(u){u.exports=function(u){return null!=u&&"object"==typeof u}},51187(u,r,e){var t=e(87379),f=e(80547);u.exports=function(u){return"symbol"==typeof u||f(u)&&"[object Symbol]"==t(u)}},95243(u,r,e){var t=e(52291);u.exports=function(u){return null==u?"":t(u)}},5485(u,r,e){u.exports=e(4326)("toUpperCase")},39850(u,r,e){var t=e(39546),f=e(15813),o=e(95243),n=e(10482);u.exports=function(u,r,e){return(u=o(u),void 0===(r=e?void 0:r))?f(u)?n(u):t(u):u.match(r)||[]}}};
package/lib/648.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=648;export const __rspack_esm_ids=[648];export const __webpack_modules__={25098(t,r,e){var o=e(23305),n=e(39361),s=e(11112),a=e(25276),i=e(57452);function p(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}p.prototype.clear=o,p.prototype.delete=n,p.prototype.get=s,p.prototype.has=a,p.prototype.set=i,t.exports=p},1386(t,r,e){var o=e(12393),n=e(62049),s=e(7144),a=e(7452),i=e(13964);function p(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}p.prototype.clear=o,p.prototype.delete=n,p.prototype.get=s,p.prototype.has=a,p.prototype.set=i,t.exports=p},19770(t,r,e){t.exports=e(94715)(e(78942),"Map")},68250(t,r,e){var o=e(49753),n=e(5681),s=e(80088),a=e(54732),i=e(59068);function p(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var o=t[r];this.set(o[0],o[1])}}p.prototype.clear=o,p.prototype.delete=n,p.prototype.get=s,p.prototype.has=a,p.prototype.set=i,t.exports=p},97034(t,r,e){var o=e(46285);t.exports=function(t,r){for(var e=t.length;e--;)if(o(t[e][0],r))return e;return -1}},57923(t,r,e){var o=e(93526),n=e(66040);t.exports=function(t,r){r=o(r,t);for(var e=0,s=r.length;null!=t&&e<s;)t=t[n(r[e++])];return e&&e==s?t:void 0}},89624(t,r,e){var o=e(93655),n=e(64759),s=e(41580),a=e(64066),i=/^\[object .+?Constructor\]$/,p=Object.prototype,u=Function.prototype.toString,c=p.hasOwnProperty,_=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!s(t)||n(t))&&(o(t)?_:i).test(a(t))}},93526(t,r,e){var o=e(53142),n=e(65187),s=e(96493),a=e(95243);t.exports=function(t,r){return o(t)?t:n(t,r)?[t]:s(a(t))}},41950(t,r,e){t.exports=e(78942)["__core-js_shared__"]},44700(t,r,e){var o=e(79067);t.exports=function(t,r){var e=t.__data__;return o(r)?e["string"==typeof r?"string":"hash"]:e.map}},94715(t,r,e){var o=e(89624),n=e(20155);t.exports=function(t,r){var e=n(t,r);return o(e)?e:void 0}},20155(t){t.exports=function(t,r){return null==t?void 0:t[r]}},23305(t,r,e){var o=e(94497);t.exports=function(){this.__data__=o?o(null):{},this.size=0}},39361(t){t.exports=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=!!r,r}},11112(t,r,e){var o=e(94497),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;if(o){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return n.call(r,t)?r[t]:void 0}},25276(t,r,e){var o=e(94497),n=Object.prototype.hasOwnProperty;t.exports=function(t){var r=this.__data__;return o?void 0!==r[t]:n.call(r,t)}},57452(t,r,e){var o=e(94497);t.exports=function(t,r){var e=this.__data__;return this.size+=+!this.has(t),e[t]=o&&void 0===r?"__lodash_hash_undefined__":r,this}},65187(t,r,e){var o=e(53142),n=e(51187),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,r){if(o(t))return!1;var e=typeof t;return!!("number"==e||"symbol"==e||"boolean"==e||null==t||n(t))||a.test(t)||!s.test(t)||null!=r&&t in Object(r)}},79067(t){t.exports=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}},64759(t,r,e){var o,n=e(41950),s=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";t.exports=function(t){return!!s&&s in t}},12393(t){t.exports=function(){this.__data__=[],this.size=0}},62049(t,r,e){var o=e(97034),n=Array.prototype.splice;t.exports=function(t){var r=this.__data__,e=o(r,t);return!(e<0)&&(e==r.length-1?r.pop():n.call(r,e,1),--this.size,!0)}},7144(t,r,e){var o=e(97034);t.exports=function(t){var r=this.__data__,e=o(r,t);return e<0?void 0:r[e][1]}},7452(t,r,e){var o=e(97034);t.exports=function(t){return o(this.__data__,t)>-1}},13964(t,r,e){var o=e(97034);t.exports=function(t,r){var e=this.__data__,n=o(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}},49753(t,r,e){var o=e(25098),n=e(1386),s=e(19770);t.exports=function(){this.size=0,this.__data__={hash:new o,map:new(s||n),string:new o}}},5681(t,r,e){var o=e(44700);t.exports=function(t){var r=o(this,t).delete(t);return this.size-=!!r,r}},80088(t,r,e){var o=e(44700);t.exports=function(t){return o(this,t).get(t)}},54732(t,r,e){var o=e(44700);t.exports=function(t){return o(this,t).has(t)}},59068(t,r,e){var o=e(44700);t.exports=function(t,r){var e=o(this,t),n=e.size;return e.set(t,r),this.size+=+(e.size!=n),this}},76853(t,r,e){var o=e(69011);t.exports=function(t){var r=o(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}},94497(t,r,e){t.exports=e(94715)(Object,"create")},96493(t,r,e){var o=e(76853),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;t.exports=o(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(n,function(t,e,o,n){r.push(o?n.replace(s,"$1"):e||t)}),r})},66040(t,r,e){var o=e(51187),n=1/0;t.exports=function(t){if("string"==typeof t||o(t))return t;var r=t+"";return"0"==r&&1/t==-n?"-0":r}},64066(t){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},46285(t){t.exports=function(t,r){return t===r||t!=t&&r!=r}},93655(t,r,e){var o=e(87379),n=e(41580);t.exports=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},41580(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},69011(t,r,e){var o=e(68250);function n(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw TypeError("Expected a function");var e=function(){var o=arguments,n=r?r.apply(this,o):o[0],s=e.cache;if(s.has(n))return s.get(n);var a=t.apply(this,o);return e.cache=s.set(n,a)||s,a};return e.cache=new(n.Cache||o),e}n.Cache=o,t.exports=n}};
package/lib/663.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=663;export const __rspack_esm_ids=[663];export const __webpack_modules__={70604(t){t.exports=function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},90250(t,e,r){var i=r(3634),n=r(70604),o=r(78243),s=r(5523);t.exports=function(t){return i(t)||n(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},69995(t,e,r){r.d(e,{H:()=>i});function i(t,e){try{var r=JSON.parse(t).error,i=r?.message??r;if("string"==typeof i&&i)return i}catch{}return t||e}},42208(t,e,r){r.d(e,{RP:()=>a});var i=r(99436),n=r(75720),o="CTOR",s="ctor@bricks.tools",l=`Co-authored-by: ${o} <${s}>`;function u(){return(u=i(function*(t){return!!(yield(0,n.sh)`cd ${t} && git config user.email`.quiet().nothrow().text()).trim()})).apply(this,arguments)}function a(t,e){return c.apply(this,arguments)}function c(){return(c=i(function*(t,e,r=[]){var i=yield function(t){return u.apply(this,arguments)}(t),n=i?[]:["-c",`user.name=${o}`,"-c",`user.email=${s}`],a=[];for(var c of e)a.push("-m",c);return i&&a.push("-m",l),[...n,"commit",...r,...a]})).apply(this,arguments)}},13376(t,e,r){r.d(e,{a:()=>u,p:()=>s});var i=r(99436),n=r(51455),o=".bricks/.last-pushed-commit";function s(t){return l.apply(this,arguments)}function l(){return(l=i(function*(t){try{return(yield(0,n.readFile)(`${t}/${o}`,"utf8")).trim()||null}catch{return null}})).apply(this,arguments)}function u(t,e){return a.apply(this,arguments)}function a(){return(a=i(function*(t,e){e&&(yield(0,n.mkdir)(`${t}/.bricks`,{recursive:!0}),yield(0,n.writeFile)(`${t}/${o}`,e))})).apply(this,arguments)}},69070(t,e,r){r.d(e,{k:()=>s,q:()=>u});var i=r(99436),n=r(26848),o=r(1708);function s(t){return l.apply(this,arguments)}function l(){return(l=i(function*(t){if(!o.stdin.isTTY)return"";var e=(0,n.createInterface)({input:o.stdin,output:o.stdout});try{return(yield e.question(`${t} `)).trim()}finally{e.close()}})).apply(this,arguments)}function u(t){return a.apply(this,arguments)}function a(){return(a=i(function*(t){return(yield s(t))==="y"})).apply(this,arguments)}},75720(t,e,r){r.d(e,{p:()=>d,sh:()=>f});var i,n,o=r(90250),s=r(99436),l=r(5018),u=r(44668),a=r(31421),c=r(73024),d=()=>{var t=process.argv[1];return t&&(0,c.existsSync)(t)?[process.execPath,t]:[process.execPath]},h=u(function t(e){l(this,t),this._cwd=void 0,this._mode="default",this._throw=!0,this._env=void 0,this._promise=null,this.args=e},[{key:"cwd",value:function(t){return this._cwd=t,this}},{key:"quiet",value:function(){return this._mode="quiet",this}},{key:"nothrow",value:function(){return this._throw=!1,this}},{key:"env",value:function(t){return this._env={...this._env,...t},this}},{key:"text",value:(i=s(function*(){return"default"===this._mode&&(this._mode="text"),(yield this.run()).stdout.toString("utf8")}),function(){return i.apply(this,arguments)})},{key:"then",value:function(t,e){return this.run().then(t,e)}},{key:"run",value:function(){return this._promise||(this._promise=this.exec()),this._promise}},{key:"exec",value:(n=s(function*(){var t=o(this.args),e=t[0],r=(function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i})(t).slice(1);if(!e)throw Error("sh: empty command");var i="default"===this._mode?["inherit","pipe","pipe"]:"quiet"===this._mode?["ignore","pipe","pipe"]:["inherit","pipe","pipe"],n=this._env?{...process.env,...this._env}:void 0,s=(0,a.spawn)(e,r,{cwd:this._cwd,stdio:i,env:n}),l=[],u=[];s.stdout?.on("data",t=>{l.push(t),"default"===this._mode&&process.stdout.write(t)}),s.stderr?.on("data",t=>{u.push(t),"default"===this._mode&&process.stderr.write(t)});var c=yield new Promise((t,e)=>{s.on("error",e),s.on("close",e=>t(e??0))}),d=Buffer.concat(l),h=Buffer.concat(u);if(0!==c&&this._throw){var p=Error(`sh: command failed with exit ${c}: ${this.args.join(" ")}`);throw p.exitCode=c,p.stdout=d,p.stderr=h,p}return{exitCode:c,stdout:d,stderr:h}}),function(){return n.apply(this,arguments)})}]),p=/\s/;function f(t,...e){var r,i,n,o,s,l=(r=[],i="",n=!1,o=()=>{n&&(r.push(i),i="",n=!1)},s=t=>{i+=t,n=!0},(t.forEach((t,r)=>{for(var i=0;i<t.length;i++){var n=t[i];p.test(n)?o():s(n)}r<e.length&&(t=>{if(null!=t){if(Array.isArray(t))return t.forEach((t,e)=>{e>0&&o(),s(String(t))});s(String(t))}})(e[r])}),o(),r.length>=3&&"cd"===r[0]&&"&&"===r[2])?{tokens:r.slice(3),initialCwd:r[1]}:{tokens:r}),u=l.tokens,a=l.initialCwd,c=new h(u);return a&&c.cwd(a),c}},47090(t,e,r){r.r(e),r.d(e,{pull:()=>y});var i=r(99436),n=r(51455),o=r(73024),s=r(76760),l=r(75720),u=r(69995),a=r(42208),c=r(13376),d=r(69070),h=["subspaces","automation-tests"];function p(t,e){return f.apply(this,arguments)}function f(){return(f=i(function*(t,e){if(!(0,o.existsSync)(t))return[];var r,l=[],u=yield(0,n.readdir)(t,{withFileTypes:!0});return yield Promise.all(u.map((r=i(function*(r){var i=(0,s.join)(t,r.name);r.isDirectory()?l.push(...yield p(i,e)):r.isFile()&&r.name.endsWith(".ts")&&l.push((0,s.relative)(e,i))}),function(t){return r.apply(this,arguments)}))),l})).apply(this,arguments)}function y(){return m.apply(this,arguments)}function m(){return(m=i(function*(t={}){var e,o,f=process.cwd(),y=!!t.force,m=0===(yield(0,l.sh)`cd ${f} && git status`.nothrow()).exitCode;if(m){if(yield(0,l.sh)`cd ${f} && git diff --name-only --diff-filter=ACMR`.text())if(y){console.log("Force mode: committing unstaged changes before pull..."),yield(0,l.sh)`cd ${f} && git add .`;var g=yield(0,a.RP)(f,["chore(force-pull): saved unstaged changes before pull"]);yield(0,l.sh)`cd ${f} && git ${g}`}else throw Error("Unstaged changes found, please commit or stash your changes before pulling")}else if(!(yield(0,d.q)("No git repository found, so it will not be safe to pull, continue? (y/n)")))throw Error("Pull cancelled");var v=JSON.parse((yield(0,n.readFile)(`${f}/application.json`,"utf8"))),$="module"===v.type,_=$?"module":"app";console.log(`Pulling ${_} project (${v.id})...`);var w=yield(0,l.sh)`bricks ${_} project-pull ${v.id} --json`.quiet().nothrow();if(0!==w.exitCode){var x=w.stderr.toString()||w.stdout.toString();throw Error((0,u.H)(x,"Pull failed"))}var k=JSON.parse(w.stdout.toString()),b=k.files,C=k.lastCommitId,S=(yield(0,c.p)(f))||C,P=$?"BRICKS_PROJECT_try-pull-module":"BRICKS_PROJECT_try-pull-application",j="";if(m&&!y){if(!(j=(yield(0,l.sh)`cd ${f} && git branch --show-current`.text()).trim()))throw Error("Cannot pull from a detached HEAD");console.log(`Checking commit ${S}...`);var E=(yield(0,l.sh)`cd ${f} && git rev-list -1 ${S}`.nothrow().text()).trim().match(/^[\da-f]{40}$/);if((yield(0,l.sh)`cd ${f} && git rev-parse HEAD`.text()).trim()===C)throw Error("Commit not changed");yield(0,l.sh)`cd ${f} && git branch -D ${P}`.nothrow(),E?yield(0,l.sh)`cd ${f} && git checkout -b ${P} ${S}`.nothrow():yield(0,l.sh)`cd ${f} && git checkout -b ${P}`}var R=yield(0,n.readFile)(`${f}/.oxfmtrc.json`,"utf8").then(JSON.parse).catch(()=>({trailingComma:"all",tabWidth:2,semi:!1,singleQuote:!0,printWidth:100})),A=new Set(b.map(t=>t.name)),q=[];yield Promise.all(h.map((e=i(function*(t){for(var e of yield p((0,s.join)(f,t),f)){var r=e.split(/[\\/]/).join("/");A.has(r)||q.push(r)}}),function(t){return e.apply(this,arguments)}))),yield Promise.all(q.map(t=>(0,n.unlink)(`${f}/${t}`)));var F=(yield r.e(75).then(r.bind(r,79491))).format;if(yield Promise.all(b.map((o=i(function*(t){var e=t.input;t.formatable&&(e=(yield F(t.name,t.input,R)).code);var r=(0,s.join)(f,t.name);return yield(0,n.mkdir)((0,s.dirname)(r),{recursive:!0}),(0,n.writeFile)(r,e)}),function(t){return o.apply(this,arguments)}))),m){if(yield(0,l.sh)`cd ${f} && git add .`,(yield(0,l.sh)`cd ${f} && git diff --cached --name-only`.text()).trim()){var O=y?`chore(force-pull): apply force pull-${_}`:$?"chore(project): apply file changes from BRICKS module":"chore(project): apply file changes from BRICKS application",B=yield(0,a.RP)(f,[O]);yield(0,l.sh)`cd ${f} && git ${B}`}if(!y){if(yield(0,l.sh)`cd ${f} && git checkout ${j}`,0!==(yield(0,l.sh)`cd ${f} && git merge ${P} --no-edit`.nothrow()).exitCode){yield(0,l.sh)`cd ${f} && git add .`;var D=yield(0,a.RP)(f,[`chore(project): merge with conflicts (resolve in ${j})`],["--no-verify"]);yield(0,l.sh)`cd ${f} && git ${D}`}yield(0,l.sh)`cd ${f} && git branch -D ${P}`.nothrow()}var I=(yield(0,l.sh)`cd ${f} && git rev-parse HEAD`.nothrow().text()).trim();I&&(yield(0,c.a)(f,I))}console.log(`${$?"Module":"App"} project pulled: ${b.length} files${q.length?`, removed ${q.length} orphan .ts file${1===q.length?"":"s"}`:""}${y?" (force)":""}`)})).apply(this,arguments)}}};