@fugood/bricks-cli 2.26.0-beta.17 → 2.26.0-beta.19
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/README.md +36 -1
- package/lib/1010.js +1 -1
- package/lib/1178.js +1 -1
- package/lib/1708.js +3 -3
- package/lib/2486.js +1 -1
- package/lib/6632.js +1 -1
- package/lib/6818.js +1 -1
- package/lib/7494.js +12 -3
- package/lib/907.js +314 -81
- package/lib/9320.js +23 -2
- package/lib/9439.js +2 -2
- package/lib/devtools.js +1 -1
- package/lib/index.js +90 -80
- package/lib/lib.js +334 -92
- package/package.json +6 -6
package/lib/6818.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.
|
|
1
|
+
export const __rspack_esm_id=6818;export const __rspack_esm_ids=[6818];export const __webpack_modules__={53241(e,t,r){r.r(t),r.d(t,{detectChannel:()=>i,detectInstallMethod:()=>o});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},i=({version:e,execPath:t}={})=>{var r=t||process.execPath;return r&&/[\\/]bricks-beta(?:\.exe)?$/i.test(r)||/-(beta|alpha|rc|next)\b/i.test(e||"2.26.0-beta.19")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{let i;var o=(i=e)?n.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),p=((e,t)=>{if(!e)return null;var r=n.sep,a=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(a);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var b=n.sep,d=n.join(r,".bun","install","global");return p===d||p.startsWith(d+b)?{method:"bun",installRoot:p}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(p)?{method:"pnpm",installRoot:p}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(p)?{method:"yarn",installRoot:p}:{method:"npm",installRoot:p.endsWith(`${b}lib`)?p.slice(0,-`${b}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
|
package/lib/7494.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const __rspack_esm_id=7494;export const __rspack_esm_ids=[7494];export const __webpack_modules__={59957(e,r,t){t.r(r),t.d(r,{BricksControllerClient:()=>
|
|
1
|
+
export const __rspack_esm_id=7494;export const __rspack_esm_ids=[7494];export const __webpack_modules__={59957(e,r,t){t.r(r),t.d(r,{BricksControllerClient:()=>m,createControllerClient:()=>v});var n,a,o,i=t(99436),s=t(5018),l=t(44668),c=t(54506),p=t(78549),u=t(94370),d=t(75149),h=c.ApolloClient,k=c.InMemoryCache,f=c.HttpLink,y=p.o,m=l(function e(r,t){s(this,e),this.baseUrl=r,this.endpoint="/api/graphql";var n,a=new f({uri:`${r}${this.endpoint}`,fetch:(0,d.P)(r)}),o=y((n=i(function*(e,{headers:r}){return{headers:{...r,authorization:`Bearer ${yield t()}`}}}),function(e,r){return n.apply(this,arguments)}));this.apolloClient=new h({link:o.concat(a),cache:new k,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"workspaces",value:(n=i(function*(){for(var e=(0,u.default)`
|
|
2
2
|
query cliWorkspaces($paginate: Paginate) {
|
|
3
3
|
workspaces(paginate: $paginate) {
|
|
4
4
|
_id
|
|
@@ -15,7 +15,7 @@ export const __rspack_esm_id=7494;export const __rspack_esm_ids=[7494];export co
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
`,r=[],t=0;;t+=100){var n=yield this.apolloClient.query({query:e,variables:{paginate:{limit:100,offset:t}}}),a=n.data,
|
|
18
|
+
`,r=[],t=0;;t+=100){var n=yield this.apolloClient.query({query:e,variables:{paginate:{limit:100,offset:t}}}),a=n.data,o=n.errors;if(o?.length>0)throw Error(o.map(({message:e})=>e).join("\n"));var i=a.workspaces||[];if(r.push(...i),i.length<100)return r}}),function(){return n.apply(this,arguments)})},{key:"createWorkspace",value:(a=i(function*({name:e,description:r}){var t=(0,u.default)`
|
|
19
19
|
mutation cliCreateWorkspace($name: String, $description: String) {
|
|
20
20
|
createWorkspace(name: $name, description: $description) {
|
|
21
21
|
_id
|
|
@@ -32,4 +32,13 @@ export const __rspack_esm_id=7494;export const __rspack_esm_ids=[7494];export co
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`,n=yield this.apolloClient.mutate({mutation:t,variables:{name:e,description:r},errorPolicy:"all",fetchPolicy:"no-cache"}),a=n.data,
|
|
35
|
+
`,n=yield this.apolloClient.mutate({mutation:t,variables:{name:e,description:r},errorPolicy:"all",fetchPolicy:"no-cache"}),a=n.data,o=n.errors;if(o?.length>0)throw Error(o.map(({message:e})=>e).join("\n"));return a.createWorkspace}),function(e){return a.apply(this,arguments)})},{key:"updateWorkspaceTokens",value:(o=i(function*({id:e,tokens:r}){var t=(0,u.default)`
|
|
36
|
+
mutation cliUpdateWorkspaceTokens($id: ID!, $tokens: [WorkspaceTokenInput]) {
|
|
37
|
+
updateWorkspaceTokens(id: $id, tokens: $tokens) {
|
|
38
|
+
newTokens {
|
|
39
|
+
name
|
|
40
|
+
token
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`,n=yield this.apolloClient.mutate({mutation:t,variables:{id:e,tokens:r},errorPolicy:"all",fetchPolicy:"no-cache"}),a=n.data,o=n.errors;if(o?.length>0)throw Error(o.map(({message:e})=>e).join("\n"));return a.updateWorkspaceTokens.newTokens}),function(e){return o.apply(this,arguments)})}]),v=(e,r)=>new m(e,r)},75149(e,r,t){t.d(r,{P:()=>o});var n=t(79657),a=t(64007);function o(e){var r=process.env.HTTPS_PROXY||process.env.https_proxy;if(!r||!e.startsWith("https://"))return n.Ay;var t=new a(r);return(e,r={})=>(0,n.Ay)(e,{...r,agent:t})}}};
|