@fugood/bricks-cli 2.24.12 → 2.24.13
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/611.js +1 -1
- package/lib/627.js +1 -1
- package/lib/703.js +1 -1
- package/lib/737.js +1 -1
- package/lib/890.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/611.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __webpack_esm_id__=611;export const __webpack_esm_ids__=[611];export const __webpack_esm_modules__={20611:(e,t,r)=>{r.r(t),r.d(t,{detectChannel:()=>o,detectInstallMethod:()=>i});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},o=({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.24.
|
|
1
|
+
export const __webpack_esm_id__=611;export const __webpack_esm_ids__=[611];export const __webpack_esm_modules__={20611:(e,t,r)=>{r.r(t),r.d(t,{detectChannel:()=>o,detectInstallMethod:()=>i});var a=r(73024),n=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return a.realpathSync(e)}catch{return e}},o=({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.24.13")?"beta":"release"},i=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:a=l}={})=>{var o,i=(o=e)?(e=>e.replace(/\.exe$/i,""))(n.basename(o)):"";if("bricks"===i||"bricks-beta"===i)return{method:"binary",execPath:e,installDir:n.dirname(e)};var c=a(t),h=((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(h){var p=n.sep,b=n.join(r,".bun","install","global");return h===b||h.startsWith(b+p)?{method:"bun",installRoot:h}:/[\\/](?:\.pnpm|pnpm[\\/]global)[\\/]/.test(h)?{method:"pnpm",installRoot:h}:/[\\/](?:\.yarn|yarn[\\/]global)[\\/]/.test(h)?{method:"yarn",installRoot:h}:{method:"npm",installRoot:h.endsWith(`${p}lib`)?h.slice(0,-`${p}lib`.length):h}}return{method:"unknown",execPath:e,scriptPath:c}}}};
|
package/lib/627.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __webpack_esm_id__=627;export const __webpack_esm_ids__=[627];export const __webpack_esm_modules__={33627:(e,r,a)=>{a.r(r),a.d(r,{buildDoctorReport:()=>k,renderDoctorReport:()=>v});var o,i,s=a(99436),t=a(50700),n=a(74445),c=a(34992),p=a(74752),l=(o=s(function*(){try{return yield Promise.all([a.e(428),a.e(886),a.e(703),a.e(737)]).then(a.bind(a,18737)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return o.apply(this,arguments)}),u=(e,r,a)=>({severity:e,code:r,message:a}),k=(i=s(function*({version:e="2.24.
|
|
1
|
+
export const __webpack_esm_id__=627;export const __webpack_esm_ids__=[627];export const __webpack_esm_modules__={33627:(e,r,a)=>{a.r(r),a.d(r,{buildDoctorReport:()=>k,renderDoctorReport:()=>v});var o,i,s=a(99436),t=a(50700),n=a(74445),c=a(34992),p=a(74752),l=(o=s(function*(){try{return yield Promise.all([a.e(428),a.e(886),a.e(703),a.e(737)]).then(a.bind(a,18737)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return o.apply(this,arguments)}),u=(e,r,a)=>({severity:e,code:r,message:a}),k=(i=s(function*({version:e="2.24.13",mcpCheck:r=l}={}){var a=(0,p.getCurrentProfile)(),o=(0,p.getCurrentProfileSource)(),i=(0,p.getTokenInfo)(a),s=(0,p.getBaseUrl)(),k=(0,p.getActivityLogBaseUrl)(),h=[],v={ok:!1,timestamp:(new Date).toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:o},config:{path:p.CONFIG_PATH,baseUrl:s,activityLogBaseUrl:k},auth:{available:Boolean(i?.token),source:i?.token?"config":"missing",workspaceId:i?.workspaceId||null,workspaceName:i?.workspaceName||null,createdAt:i?.createdAt||null,tokenPreview:(0,c.$l)(i?.token)},connectivity:{workspace:{ok:!1,skipped:!i?.token,error:null}},capabilities:{zeroArgMode:(0,n.isInteractiveTerminal)()?"interactive":"help",mcp:{available:!1,error:null}},issues:h};if(i?.token)try{var d=yield(0,t.createClient)(s,i.token).workspace();v.connectivity.workspace={ok:!0,skipped:!1,error:null,id:d?._id||i.workspaceId||null,name:d?.name||i.workspaceName||null},v.auth.workspaceId=d?._id||v.auth.workspaceId,v.auth.workspaceName=d?.name||v.auth.workspaceName}catch(e){v.connectivity.workspace={ok:!1,skipped:!1,error:e.message},h.push(u("error","workspace_unreachable",`Workspace query failed for ${s}: ${e.message}`))}else h.push(u("warning","auth_missing","No saved token for the current profile."));var m=yield r();return v.capabilities.mcp={available:m.available,error:m.error||null},m.available||h.push(u("warning","mcp_unavailable",`MCP stdio server is unavailable: ${m.error||"Unknown error"}`)),v.ok=0===h.length,v}),function(){return i.apply(this,arguments)}),h=(e,r,a)=>`${e.padEnd(14)} ${r}${a?` ${a}`:""}`,v=e=>{var r=[];if(r.push("BRICKS CLI Doctor"),r.push("─".repeat(60)),r.push(h("CLI","OK",`bricks v${e.cli.version}`)),r.push(h("Profile","OK",`${e.profile.name} (${e.profile.source})`)),r.push(h("BRICKS API","OK",e.config.baseUrl)),r.push(h("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace";r.push(h("Auth","OK",`${a} (${e.auth.source}, ${e.auth.tokenPreview})`))}else r.push(h("Auth","WARN","No saved token for the current profile"));if(e.connectivity.workspace.skipped)r.push(h("Workspace","WARN","Skipped because no token is available"));else if(e.connectivity.workspace.ok){var o=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";r.push(h("Workspace","OK",o))}else r.push(h("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?r.push(h("MCP","OK","STDIO server import is available")):r.push(h("MCP","WARN",e.capabilities.mcp.error)),r.push(h("Zero-arg mode",((e,r=!1)=>e?"OK":r?"WARN":"FAIL")("interactive"===e.capabilities.zeroArgMode,"help"===e.capabilities.zeroArgMode),"interactive"===e.capabilities.zeroArgMode?"Starts Ink interactive mode on TTY":"Shows help outside TTY contexts")),e.issues.length>0&&(r.push("─".repeat(60)),r.push("Issues"),e.issues.forEach(e=>{r.push(`- [${e.severity}] ${e.message}`)})),r.join("\n")}}};
|