@ddd-tool/domain-designer-cli 0.0.0-alpha.17 → 0.0.0-alpha.18
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.
|
@@ -122,7 +122,7 @@ Filtered results for: ${this.inputValue?this.inputValue:Fe.gray("Enter something
|
|
|
122
122
|
`)+i,s=r+1,r=t.indexOf(`
|
|
123
123
|
`,s)}while(r!==-1);return n+=t.slice(s),n}var{stdout:ch,stderr:hh}=ah,qn=Symbol("GENERATOR"),At=Symbol("STYLER"),Jt=Symbol("IS_EMPTY"),dh=["ansi","ansi","ansi256","ansi16m"],Et=Object.create(null),gv=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let i=ch?ch.level:0;t.level=e.level===void 0?i:e.level};var bv=t=>{let e=(...i)=>i.join(" ");return gv(e,t),Object.setPrototypeOf(e,Xt.prototype),e};function Xt(t){return bv(t)}Object.setPrototypeOf(Xt.prototype,Function.prototype);for(let[t,e]of Object.entries(fe))Et[t]={get(){let i=ir(this,Ln(e.open,e.close,this[At]),this[Jt]);return Object.defineProperty(this,t,{value:i}),i}};Et.visible={get(){let t=ir(this,this[At],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var Fn=(t,e,i,...r)=>t==="rgb"?e==="ansi16m"?fe[i].ansi16m(...r):e==="ansi256"?fe[i].ansi256(fe.rgbToAnsi256(...r)):fe[i].ansi(fe.rgbToAnsi(...r)):t==="hex"?Fn("rgb",e,i,...fe.hexToRgb(...r)):fe[i][t](...r),yv=["rgb","hex","ansi256"];for(let t of yv){Et[t]={get(){let{level:i}=this;return function(...r){let s=Ln(Fn(t,dh[i],"color",...r),fe.color.close,this[At]);return ir(this,s,this[Jt])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);Et[e]={get(){let{level:i}=this;return function(...r){let s=Ln(Fn(t,dh[i],"bgColor",...r),fe.bgColor.close,this[At]);return ir(this,s,this[Jt])}}}}var vv=Object.defineProperties(()=>{},{...Et,level:{enumerable:!0,get(){return this[qn].level},set(t){this[qn].level=t}}}),Ln=(t,e,i)=>{let r,s;return i===void 0?(r=t,s=e):(r=i.openAll+t,s=e+i.closeAll),{open:t,close:e,openAll:r,closeAll:s,parent:i}},ir=(t,e,i)=>{let r=(...s)=>_v(r,s.length===1?""+s[0]:s.join(" "));return Object.setPrototypeOf(r,vv),r[qn]=t,r[At]=e,r[Jt]=i,r},_v=(t,e)=>{if(t.level<=0||!e)return t[Jt]?"":e;let i=t[At];if(i===void 0)return e;let{openAll:r,closeAll:s}=i;if(e.includes("\x1B"))for(;i!==void 0;)e=lh(e,i.close,i.open),i=i.parent;let n=e.indexOf(`
|
|
124
124
|
`);return n!==-1&&(e=uh(e,s,r,n)),r+e+s};Object.defineProperties(Xt.prototype,Et);var wv=Xt(),Mw=Xt({level:hh?hh.level:0});var Qe=wv;var y={print(...t){console.log(...t)},printError(...t){console.error(this.error(...Se(...t)))},printSuccess(...t){console.log(this.success(...Se(...t)))},printWarn(...t){console.log(this.warn(...Se(...t)))},printInfo(...t){console.log(this.info(...Se(...t)))},printDebug(...t){console.log(this.debug(...Se(...t)))},error(...t){return Qe.red(...Se(...t))},success(...t){return Qe.green(...Se(...t))},warn(...t){return Qe.yellow(...Se(...t))},info(...t){return Qe.blueBright(...Se(...t))},debug(...t){return Qe.gray(...Se(...t))}};function Se(...t){return t?t.reduce((e,i)=>(i||e.push(""),typeof i=="string"?e.push(i):typeof i=="object"?e.push(JSON.stringify(i,null,2)):e.push(i.toString()),e),[]):[""]}var Hn=V(ki(),1);var L=V(ki(),1);var xv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",fh=(t=21)=>{let e="",i=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=xv[i[t]&63];return e};function Sv(t,e=!0,i=!1){let r=(0,L.ref)(),s,n=(0,L.ref)(!1),o=()=>{},a=new Proxy(t,{apply:function(h,c,d){let x=h(...d);if(x instanceof Error){if(r.value=x,s=x,e)throw o(),x}else n.value=!0,r.value=void 0,s=!0,o()}}),l=()=>{},u=new Proxy(h=>{r.value=h},{apply:function(h,c,d){h(...d),l(...d)}});return{promise:new Promise((h,c)=>{if(e&&s instanceof Error){c(s);return}else if(s===!0){h();return}let d;i&&(d=setTimeout(()=>{let x=new Error("timeout!");r.value=x,e&&c(x)},i)),o=()=>{d&&(clearTimeout(d),d=void 0),h()}}),callback:a,onError:u,resolved:(0,L.computed)(()=>n.value),error:(0,L.computed)(()=>r.value)}}function Av(){return fh()}function Ev(t){let e=Ov(t);return(0,L.shallowReadonly)({states:e.states,commands:e.commands,events:e.events})}function Ov(t){let e=t.states;for(let o of Object.keys(t.states))e[o]=(0,L.readonly)(e[o]);let i=(0,L.shallowReadonly)(t.states),r=(0,L.readonly)(t.commands),s={},n=t.events;for(let o in t.events)s[o]=n[o].api;return(0,L.shallowReadonly)({states:i,commands:r,events:(0,L.shallowReadonly)(s),destroy:t.destroy})}function rr(t){let{callback:e,onError:i,promise:r,resolved:s}=Sv(()=>{},!1,5e3);function n(c){if(s.value===!0)throw new Error("Agg already initialized");o.push(c())}let o=[],a=t({onCreated(c){Promise.resolve().then(c)},onBeforeInitialize:n,isInitialized:(0,L.computed)(()=>s.value),untilInitialized:r});setTimeout(()=>Promise.all(o).then(()=>{e()}).catch(c=>{i(c)}));let l=a.states||{},u=a.commands||{},h=a.events||{};return{_code:Av(),type:"Singleton",api:Ev({states:l,commands:u,events:h,destroy:()=>{}}),isInitialized:s,async untilInitialized(){return await r.catch(c=>{throw new Error(`Failed to initialize Agg: ${c.message}
|
|
125
|
-
Stack : ${c.stack||"unkown"}`)})}}}var Tv={"signal.{str}":"Error: {str}","signal.scriptStart":"===== Script start =====","signal.successComplete":"===== Program execution succeeded =====","signal.exitWithError":"===== Exit with error =====","question.subcommand":"Select the business type","question.subcommand.init":"Initialize project","question.subcommand.updateWorkspace":"Update Workspace","question.subcommand.runWeb":"Run Web server","question.subcommand.runWeb.source":"Please enter the ts file directory","question.subcommand.info":"[ test ]","error.userCancel":"User canceled","error.invalidArgs{str}":"Invalid args: {str}","error.badArgs":"Bad args","error.shouldBeValidDir{dir}":"{dir} should be a valid directory","error.shouldBeEmptyDir{dir}":"{dir} should be an empty directory"},jn=Tv;var Cv={"signal.{str}":"\u9519\u8BEF: {str}","signal.scriptStart":"===== \u811A\u672C\u5F00\u59CB\u6267\u884C =====","signal.successComplete":"===== \u811A\u672C\u6267\u884C\u6210\u529F =====","signal.exitWithError":"===== \u811A\u672C\u5F02\u5E38\u9000\u51FA =====","question.subcommand":"\u8BF7\u9009\u62E9\u8981\u6267\u884C\u7684\u4E1A\u52A1\u7C7B\u578B","question.subcommand.init":"\u521D\u59CB\u5316\u9879\u76EE","question.subcommand.updateWorkspace":"\u66F4\u65B0\u4F9D\u8D56","question.subcommand.runWeb":"\u8FD0\u884C Web \u670D\u52A1","question.subcommand.runWeb.source":"\u8BF7\u8F93\u5165ts\u6587\u4EF6\u76EE\u5F55","question.subcommand.info":"\u3010\u6D4B\u8BD5\u3011","error.userCancel":"\u7528\u6237\u7EC8\u6B62\u4E86\u811A\u672C\u6267\u884C","error.invalidArgs{str}":"\u65E0\u6548\u7684\u53C2\u6570: {str}","error.badArgs":"\u9519\u8BEF\u7684\u53C2\u6570","error.shouldBeValidDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u6709\u6548\u7684\u76EE\u5F55","error.shouldBeEmptyDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u7A7A\u76EE\u5F55"},ph=Cv;var Rv=rr(()=>{let t=(0,Hn.ref)("zh"),e=(0,Hn.ref)(jn);function i(r,s,n){let o=e.value[r];return o||(typeof s=="string"?o=s:typeof n=="string"&&(o=n)),o?(typeof s=="object"&&(o=o.replace(/\{\s*([a-zA-z_]+)\s*\}/g,(a,l)=>String(s[l]))),o):""}return{states:{currentLang:t},commands:{t:i,setCurrentLang(r){r==="en"?e.value=jn:r==="zh"?e.value=ph:isNever(r),t.value=r}}}});function Ae(){return Rv.api}var Mv=Ae().commands.t;function Zt(){throw Error(Mv("error.userCancel"))}var mh=V(require("node:os"),1);var Z={name:"@ddd-tool/domain-designer-cli",version:"0.0.0-alpha.
|
|
125
|
+
Stack : ${c.stack||"unkown"}`)})}}}var Tv={"signal.{str}":"Error: {str}","signal.scriptStart":"===== Script start =====","signal.successComplete":"===== Program execution succeeded =====","signal.exitWithError":"===== Exit with error =====","question.subcommand":"Select the business type","question.subcommand.init":"Initialize project","question.subcommand.updateWorkspace":"Update Workspace","question.subcommand.runWeb":"Run Web server","question.subcommand.runWeb.source":"Please enter the ts file directory","question.subcommand.info":"[ test ]","error.userCancel":"User canceled","error.invalidArgs{str}":"Invalid args: {str}","error.badArgs":"Bad args","error.shouldBeValidDir{dir}":"{dir} should be a valid directory","error.shouldBeEmptyDir{dir}":"{dir} should be an empty directory"},jn=Tv;var Cv={"signal.{str}":"\u9519\u8BEF: {str}","signal.scriptStart":"===== \u811A\u672C\u5F00\u59CB\u6267\u884C =====","signal.successComplete":"===== \u811A\u672C\u6267\u884C\u6210\u529F =====","signal.exitWithError":"===== \u811A\u672C\u5F02\u5E38\u9000\u51FA =====","question.subcommand":"\u8BF7\u9009\u62E9\u8981\u6267\u884C\u7684\u4E1A\u52A1\u7C7B\u578B","question.subcommand.init":"\u521D\u59CB\u5316\u9879\u76EE","question.subcommand.updateWorkspace":"\u66F4\u65B0\u4F9D\u8D56","question.subcommand.runWeb":"\u8FD0\u884C Web \u670D\u52A1","question.subcommand.runWeb.source":"\u8BF7\u8F93\u5165ts\u6587\u4EF6\u76EE\u5F55","question.subcommand.info":"\u3010\u6D4B\u8BD5\u3011","error.userCancel":"\u7528\u6237\u7EC8\u6B62\u4E86\u811A\u672C\u6267\u884C","error.invalidArgs{str}":"\u65E0\u6548\u7684\u53C2\u6570: {str}","error.badArgs":"\u9519\u8BEF\u7684\u53C2\u6570","error.shouldBeValidDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u6709\u6548\u7684\u76EE\u5F55","error.shouldBeEmptyDir{dir}":"{dir} \u5E94\u8BE5\u662F\u4E00\u4E2A\u7A7A\u76EE\u5F55"},ph=Cv;var Rv=rr(()=>{let t=(0,Hn.ref)("zh"),e=(0,Hn.ref)(jn);function i(r,s,n){let o=e.value[r];return o||(typeof s=="string"?o=s:typeof n=="string"&&(o=n)),o?(typeof s=="object"&&(o=o.replace(/\{\s*([a-zA-z_]+)\s*\}/g,(a,l)=>String(s[l]))),o):""}return{states:{currentLang:t},commands:{t:i,setCurrentLang(r){r==="en"?e.value=jn:r==="zh"?e.value=ph:isNever(r),t.value=r}}}});function Ae(){return Rv.api}var Mv=Ae().commands.t;function Zt(){throw Error(Mv("error.userCancel"))}var mh=V(require("node:os"),1);var Z={name:"@ddd-tool/domain-designer-cli",version:"0.0.0-alpha.18",private:!0,type:"module",files:["./src"],repository:{type:"git",url:"git+https://github.com/ddd-tool/domain-designer-cli-node.git"},bugs:{url:"https://github.com/ddd-tool/domain-designer-cli-node/issues"},readme:"ERROR: No README data found!",homepage:"https://github.com/ddd-tool/domain-designer-cli-node#readme",_id:"@ddd-tool/domain-designer-cli@0.0.0-alpha.18"};function sr(){let t=Z.repository.url.replace(/git\+/g,""),e=`REM App Name: Domain Designer Cli
|
|
126
126
|
REM Script Version: ${Z.version}
|
|
127
127
|
REM Repo Addr: ${t}
|
|
128
128
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-tool/domain-designer-cli",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"type": "module",
|
|
@@ -27,22 +27,20 @@
|
|
|
27
27
|
"repository": "https://github.com/ddd-tool/domain-designer-cli-node",
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@ddd-tool/domain-designer-core": "0.0.0-alpha.12",
|
|
31
|
+
"@ddd-tool/domain-designer-ui-component": "0.0.0-alpha.13",
|
|
32
|
+
"@primevue/themes": "^4.2.5",
|
|
30
33
|
"@types/node": "^22.10.2",
|
|
31
34
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
32
35
|
"@vue/tsconfig": "^0.7.0",
|
|
33
36
|
"npm-run-all2": "^7.0.2",
|
|
37
|
+
"primeicons": "^7.0.0",
|
|
38
|
+
"primevue": "^4.2.5",
|
|
34
39
|
"typescript": "^5.7.2",
|
|
35
40
|
"vite": "^6.0.5",
|
|
41
|
+
"vue": "^3.5.13",
|
|
36
42
|
"vue-tsc": "^2.1.10"
|
|
37
43
|
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@ddd-tool/domain-designer-core": "0.0.0-alpha.12",
|
|
40
|
-
"@ddd-tool/domain-designer-ui-component": "0.0.0-alpha.13",
|
|
41
|
-
"@primevue/themes": "^4.2.5",
|
|
42
|
-
"primeicons": "^7.0.0",
|
|
43
|
-
"primevue": "^4.2.5",
|
|
44
|
-
"vue": "^3.5.13"
|
|
45
|
-
},
|
|
46
44
|
"scripts": {
|
|
47
45
|
"dev": "vite",
|
|
48
46
|
"build": "run-p build:cli",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.0-alpha.
|
|
1
|
+
0.0.0-alpha.18
|