@fugood/bricks-cli 2.25.0-beta.8 → 2.25.0-beta.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +115 -28
  2. package/lib/1001.js +1 -0
  3. package/lib/1010.js +1 -0
  4. package/lib/1178.js +1 -0
  5. package/lib/1215.js +1 -0
  6. package/lib/1708.js +9 -0
  7. package/lib/1759.js +1 -0
  8. package/lib/1936.js +1 -0
  9. package/lib/1946.js +1 -0
  10. package/lib/2151.js +1 -0
  11. package/lib/2247.js +1 -0
  12. package/lib/2486.js +1 -0
  13. package/lib/2557.js +1 -0
  14. package/lib/3223.js +4 -0
  15. package/lib/3332.js +13 -0
  16. package/lib/3593.js +1 -0
  17. package/lib/3690.js +1 -0
  18. package/lib/3774.js +44 -0
  19. package/lib/3976.js +14 -0
  20. package/lib/4305.js +1 -0
  21. package/lib/4456.js +3 -0
  22. package/lib/4479.js +30 -0
  23. package/lib/4530.js +22 -0
  24. package/lib/4642.js +9 -0
  25. package/lib/4685.js +1202 -0
  26. package/lib/5212.js +1 -0
  27. package/lib/563.js +4 -0
  28. package/lib/5658.js +2 -0
  29. package/lib/6194.js +3 -0
  30. package/lib/6645.js +1 -0
  31. package/lib/6818.js +1 -0
  32. package/lib/7111.js +2 -0
  33. package/lib/7233.js +2546 -0
  34. package/lib/7294.js +19 -0
  35. package/lib/7456.js +1 -0
  36. package/lib/7494.js +18 -0
  37. package/lib/7511.js +1 -0
  38. package/lib/7574.js +1 -0
  39. package/lib/7648.js +1 -0
  40. package/lib/8166.js +1 -0
  41. package/lib/8295.js +109 -0
  42. package/lib/831.js +1 -0
  43. package/lib/853.js +1 -0
  44. package/lib/907.js +918 -0
  45. package/lib/9215.js +1 -0
  46. package/lib/9320.js +3 -0
  47. package/lib/9387.js +32 -0
  48. package/lib/9405.js +1 -0
  49. package/lib/9430.js +1 -0
  50. package/lib/9583.js +19 -0
  51. package/lib/9590.js +7 -0
  52. package/lib/9663.js +1 -0
  53. package/lib/9866.js +7 -0
  54. package/lib/index.js +165 -974
  55. package/lib/lib.js +1121 -0
  56. package/lib/simulator-host-bridge.cjs +1 -0
  57. package/lib/simulator-main.mjs +23 -0
  58. package/lib/simulator-preload.cjs +1 -0
  59. package/package.json +28 -8
  60. package/lib/10.js +0 -1
  61. package/lib/117.js +0 -2543
  62. package/lib/166.js +0 -1
  63. package/lib/178.js +0 -1
  64. package/lib/3.js +0 -1
  65. package/lib/456.js +0 -1
  66. package/lib/511.js +0 -1
  67. package/lib/587.js +0 -7
  68. package/lib/602.js +0 -3
  69. package/lib/647.js +0 -30
  70. package/lib/940.js +0 -1
package/lib/5212.js ADDED
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=5212;export const __rspack_esm_ids=[5212];export const __webpack_modules__={76983(r,n,t){t.r(n),t.d(n,{runWithConcurrency:()=>i});var e,o=t(99436),i=(e=o(function*(r,n,t){var e,i=[],s=0,_=(e=o(function*(){for(;s<r.length;){var n=s++;i[n]=yield t(r[n],n)}}),function(){return e.apply(this,arguments)}),c=Array.from({length:Math.min(Number.isInteger(n)&&n>0?n:1,r.length)},()=>_());return yield Promise.all(c),i}),function(r,n,t){return e.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(e,r,o){var t=o(95243),i=o(5485);e.exports=function(e){return i(t(e).toLowerCase())}},63322(e,r,o){o.r(r),o.d(r,{BUILTIN_ISSUE_CODES:()=>l,buildConfigDoctorReport:()=>g,getDoctorExitCode:()=>m,loadConfigForDoctor:()=>h,parseCodesOption:()=>f,renderConfigDoctorReport:()=>y,runConfigDoctor:()=>$});var t,i,n,s=o(99436),a=o(79896),c=o(38890),p=o(56493),l=["schema-error","ref-error","calc-error","expression-error","action-ref-error","deprecated-feature"],u={error:0,warning:1,info:2},f=e=>"string"==typeof e&&e?e.split(",").map(e=>e.trim()).filter(Boolean):null,d=e=>{if(!e)throw Error("The fetched record has no config");return"string"==typeof e?JSON.parse(e):e},h=(t=s(function*(e,r,{composed:o=!1}={}){if(a.existsSync(r))return{config:JSON.parse(a.readFileSync(r,"utf-8")),target:{type:e,source:"file",path:r}};var t=(0,p.requireAuth)();if("app"===e){var i=yield t.application({id:r,composed:o});if(!i)throw Error(`Application not found: ${r}`);return{config:d(i.config),target:{type:e,source:"remote",id:r,composed:o}}}var n=yield t.module({id:r});if(!n)throw Error(`Module not found: ${r}`);return{config:d(n.config),target:{type:e,source:"remote",id:r}}}),function(e,r){return t.apply(this,arguments)}),g=(i=s(function*(e,{type:r="app",only:o=null,ignore:t=null,checkAutomation:i=!1}={}){var n=[...l,...c.lintRuleCodes],s=[...o||[],...t||[]].filter(e=>!n.includes(e));if(s.length>0)throw Error(`Unknown rule code(s): ${s.join(", ")}
2
+ Valid codes: ${n.join(", ")}`);var a=e=>(!o||o.includes(e))&&(!t||!t.includes(e)),p=[],f=(0,c.checkConfig)(e,{checkCalc:!0,checkExpressions:!0,checkActionRefs:!0,checkAutomation:i}),d=(e,r,o)=>{a(r)&&(e||[]).forEach(e=>p.push({hint:null,...o(e)}))};d(f.schema,"schema-error",e=>({severity:"error",code:"schema-error",path:e.instancePath||e.dataPath||"/",message:e.message,hint:e.params?.pattern?`pattern: ${e.params.pattern}`:null})),d(f.ref,"ref-error",e=>({severity:"error",code:"ref-error",path:e.field,message:e.message})),d(f.calc,"calc-error",e=>({severity:"error",code:"calc-error",path:e.field,message:e.message})),d(f.expression,"expression-error",e=>({severity:"error",code:"expression-error",path:e.field,message:e.message})),d(f.actionRef,"action-ref-error",e=>({severity:"error",code:"action-ref-error",path:e.field,message:e.message})),a("deprecated-feature")&&(0,c.checkConfigDeprecatedFeatures)(e).forEach(e=>p.push({severity:"warning",code:"deprecated-feature",path:e.id,message:e.data,hint:null}));var h=!f.valid;if(!h){var g=o?o.filter(e=>c.lintRuleCodes.includes(e)):null,m=t?t.filter(e=>c.lintRuleCodes.includes(e)):null;(!g||g.length>0)&&p.push(...(0,c.lintConfig)(e,{configType:r,only:g,ignore:m}))}p.sort((e,r)=>u[e.severity]-u[r.severity]);var v={errors:p.filter(e=>"error"===e.severity).length,warnings:p.filter(e=>"warning"===e.severity).length,infos:p.filter(e=>"info"===e.severity).length};return{ok:0===v.errors,valid:f.valid,lintSkipped:h,summary:v,issues:p}}),function(e){return i.apply(this,arguments)}),m=(e,{strict:r=!1}={})=>e.summary.errors>0||r&&e.summary.warnings>0?1:0,v=[["error","Errors"],["warning","Warnings"],["info","Info"]],y=e=>{var r=[];r.push("\nConfig Doctor Report");var o=e.target;if(o){var t="file"===o.source?`${o.type} config: ${o.path}`:`${o.type}: ${o.id}${o.composed?" (composed)":""}`;r.push(t)}if(r.push("─".repeat(60)),0===e.issues.length)return r.push("✓ No issues found"),r.join("\n");v.forEach(([o,t])=>{var i=e.issues.filter(e=>e.severity===o);0!==i.length&&(r.push(`
3
+ ${t} (${i.length})
4
+ `),i.forEach((e,o)=>{r.push(` ${o+1}. [${e.code}] ${e.path||""}`),r.push(` ${e.message}`),e.hint&&r.push(` ↳ ${e.hint}`)}))}),e.lintSkipped&&r.push("\n ⚠ Lint rules skipped — fix schema/reference errors first"),r.push("\n"+"─".repeat(60));var i=e.summary,n=i.errors,s=i.warnings,a=i.infos,c=[];return n>0&&c.push(`✗ ${n} error(s)`),s>0&&c.push(`⚠ ${s} warning(s)`),a>0&&c.push(`ℹ ${a} info`),r.push(c.join(" ")),r.join("\n")},$=(n=s(function*(e,r,o){var t=f(o.only),i=f(o.ignore),n=yield h(e,r,{composed:!!o.composed}),s=n.config,a=n.target,c=yield g(s,{type:e,only:t,ignore:i,checkAutomation:!!o.validateAutomation});return c.target=a,{report:c,exitCode:m(c,{strict:!!o.strict})}}),function(e,r,o){return n.apply(this,arguments)})}};