@fugood/bricks-cli 2.25.5-beta.2 → 2.25.5

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 CHANGED
@@ -177,6 +177,11 @@ bricks device get <device-id> [-j|--json]
177
177
  bricks device bind <passcode> [-n device-name]
178
178
  bricks device bind <passcode> [--dry-run] [-j|--json]
179
179
 
180
+ # Virtual (web) devices: create one and issue the token that opens it in a browser
181
+ bricks device create-virtual <name> [--token-name name] [--types UPDATE_STATUS,LISTEN_EVENTS,MANAGE_APPS] [--expires-in days] [--no-token] [--dry-run] [-j|--json]
182
+ bricks device token <device-id> [--token-name name] [--types ...] [--expires-in days] [-j|--json]
183
+ # The printed URL is <controller>/webLauncher.html?token=…; set BRICKS_CONTROLLER_URL to override the controller origin.
184
+
180
185
  # Control device
181
186
  bricks device control <device-id> <type> [-p payload] [--dry-run] [-j|--json]
182
187
  bricks device refresh <device-id> [--dry-run] [-j|--json]
package/lib/1708.js CHANGED
@@ -6,4 +6,4 @@ ${t}
6
6
  ${s.map(({entry:n})=>n).join("\n")}
7
7
  `;yield(0,k.writeFile)(t,`${i}${l}${c}`),console.log(`Added ${s.map(({entry:n})=>n).join(", ")} to .prettierignore`)}}),function(n){return g.apply(this,arguments)}),H=(y=v(function*(n){var e=D.join(n,".claude","settings.local.json"),t={};if(yield P(e)){try{t=JSON.parse((yield(0,k.readFile)(e,"utf-8")))}catch{console.warn(`Skipping auto mode setup; ${e} is not valid JSON`);return}if(t.autoMode)return}t.autoMode={environment:U},yield(0,k.mkdir)(D.dirname(e),{recursive:!0}),yield(0,k.writeFile)(e,`${JSON.stringify(t,null,2)}
8
8
  `),console.log(`Set up auto mode in ${e}`),yield W(n)}),function(n){return y.apply(this,arguments)}),V=(f=v(function*(n,e){var t,a,r={...R(e),default_tools_approval_mode:"approve"};if(yield P(n)){try{a=T.q((yield(0,k.readFile)(n,"utf-8")))}catch{console.warn(`Skipping .codex/config.toml update; ${n} is not valid TOML`);return}(t=a&&"object"==typeof a?a:{mcp_servers:{}}).mcp_servers&&"object"==typeof t.mcp_servers||(t.mcp_servers={}),t.mcp_servers["bricks-ctor"]=r,delete t.mcp_servers["bricks-project"]}else t={mcp_servers:{"bricks-ctor":r}};yield(0,k.writeFile)(n,`${T.A(t)}
9
- `),console.log(`Updated ${n}`)}),function(n,e){return f.apply(this,arguments)});function q(){return j.apply(this,arguments)}function j(){return(j=v(function*(n=process.cwd()){var e,t=(e=v(function*(n,e){var t,a=[],r=[];return yield Promise.all(Object.entries(n).map((t=v(function*([n,t]){try{(yield(0,k.readFile)(D.join(e,n),"utf8")).replace(/\r\n/g,"\n")!==t.replace(/\r\n/g,"\n")&&a.push(n)}catch{r.push(n)}}),function(n){return t.apply(this,arguments)}))),{changed:a.sort(),missing:r.sort()}}),function(n,t){return e.apply(this,arguments)}),a=yield t(w,D.join(n,"ctor")),r=(yield P(D.join(n,"CLAUDE.md")))||(yield P(D.join(n,"AGENTS.md")))?yield t(L,D.join(n,".bricks","skills")):{changed:[],missing:[]};return{upToDate:a.changed.length+a.missing.length+r.changed.length+r.missing.length===0,cliVersion:"2.25.5-beta.2",lib:a,skills:r}})).apply(this,arguments)}function z(){return Y.apply(this,arguments)}function Y(){return(Y=v(function*(n={}){var e=process.cwd(),t=!!n.skipCopyProject,a=!!n.refreshSkills;yield O(e);var r=D.join(e,"project");(yield P(r))&&(yield(0,k.rm)(r,{recursive:!0,force:!0}),console.log("Removed legacy project/ directory")),t?console.log("Skipping copy of files to ctor/"):yield N(e),yield K(e);var i=yield P(`${e}/CLAUDE.md`),o=yield P(`${e}/AGENTS.md`);(i||o)&&(yield _(`${e}/.mcp.json`,R(e)),yield F(e,{refreshSkills:a})),i&&(yield H(e)),o&&(yield V(`${e}/.codex/config.toml`,e))})).apply(this,arguments)}},53241(n,e,t){t.r(e),t.d(e,{detectChannel:()=>s,detectInstallMethod:()=>l});var a=t(73024),r=t(76760),i=t(48161),o=n=>{if(!n)return n;try{return a.realpathSync(n)}catch{return n}},s=({version:n,execPath:e}={})=>{var t=e||process.execPath;return t&&/[\\/]bricks-beta(?:\.exe)?$/i.test(t)||/-(beta|alpha|rc|next)\b/i.test(n||"2.25.5-beta.2")?"beta":"release"},l=({execPath:n=process.execPath,scriptPath:e=process.argv[1],homeDir:t=i.homedir(),realpath:a=o}={})=>{let s;var l=(s=n)?r.basename(s).replace(/\.exe$/i,""):"";if("bricks"===l||"bricks-beta"===l)return{method:"binary",execPath:n,installDir:r.dirname(n)};var c=a(e),p=((n,e)=>{if(!n)return null;var t=r.sep,a=`${t}node_modules${t}${e.replace(/\//g,t)}${t}`,i=n.indexOf(a);return -1===i?null:n.slice(0,i)})(c,"@fugood/bricks-cli");if(p){var d=r.sep,u=r.join(t,".bun","install","global");return p===u||p.startsWith(u+d)?{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(`${d}lib`)?p.slice(0,-`${d}lib`.length):p}}return{method:"unknown",execPath:n,scriptPath:c}}}};
9
+ `),console.log(`Updated ${n}`)}),function(n,e){return f.apply(this,arguments)});function q(){return j.apply(this,arguments)}function j(){return(j=v(function*(n=process.cwd()){var e,t=(e=v(function*(n,e){var t,a=[],r=[];return yield Promise.all(Object.entries(n).map((t=v(function*([n,t]){try{(yield(0,k.readFile)(D.join(e,n),"utf8")).replace(/\r\n/g,"\n")!==t.replace(/\r\n/g,"\n")&&a.push(n)}catch{r.push(n)}}),function(n){return t.apply(this,arguments)}))),{changed:a.sort(),missing:r.sort()}}),function(n,t){return e.apply(this,arguments)}),a=yield t(w,D.join(n,"ctor")),r=(yield P(D.join(n,"CLAUDE.md")))||(yield P(D.join(n,"AGENTS.md")))?yield t(L,D.join(n,".bricks","skills")):{changed:[],missing:[]};return{upToDate:a.changed.length+a.missing.length+r.changed.length+r.missing.length===0,cliVersion:"2.25.5",lib:a,skills:r}})).apply(this,arguments)}function z(){return Y.apply(this,arguments)}function Y(){return(Y=v(function*(n={}){var e=process.cwd(),t=!!n.skipCopyProject,a=!!n.refreshSkills;yield O(e);var r=D.join(e,"project");(yield P(r))&&(yield(0,k.rm)(r,{recursive:!0,force:!0}),console.log("Removed legacy project/ directory")),t?console.log("Skipping copy of files to ctor/"):yield N(e),yield K(e);var i=yield P(`${e}/CLAUDE.md`),o=yield P(`${e}/AGENTS.md`);(i||o)&&(yield _(`${e}/.mcp.json`,R(e)),yield F(e,{refreshSkills:a})),i&&(yield H(e)),o&&(yield V(`${e}/.codex/config.toml`,e))})).apply(this,arguments)}},53241(n,e,t){t.r(e),t.d(e,{detectChannel:()=>s,detectInstallMethod:()=>l});var a=t(73024),r=t(76760),i=t(48161),o=n=>{if(!n)return n;try{return a.realpathSync(n)}catch{return n}},s=({version:n,execPath:e}={})=>{var t=e||process.execPath;return t&&/[\\/]bricks-beta(?:\.exe)?$/i.test(t)||/-(beta|alpha|rc|next)\b/i.test(n||"2.25.5")?"beta":"release"},l=({execPath:n=process.execPath,scriptPath:e=process.argv[1],homeDir:t=i.homedir(),realpath:a=o}={})=>{let s;var l=(s=n)?r.basename(s).replace(/\.exe$/i,""):"";if("bricks"===l||"bricks-beta"===l)return{method:"binary",execPath:n,installDir:r.dirname(n)};var c=a(e),p=((n,e)=>{if(!n)return null;var t=r.sep,a=`${t}node_modules${t}${e.replace(/\//g,t)}${t}`,i=n.indexOf(a);return -1===i?null:n.slice(0,i)})(c,"@fugood/bricks-cli");if(p){var d=r.sep,u=r.join(t,".bun","install","global");return p===u||p.startsWith(u+d)?{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(`${d}lib`)?p.slice(0,-`${d}lib`.length):p}}return{method:"unknown",execPath:n,scriptPath:c}}}};
package/lib/2486.js CHANGED
@@ -1 +1 @@
1
- export const __rspack_esm_id=2486;export const __rspack_esm_ids=[2486];export const __webpack_modules__={421(e,r,a){a.r(r),a.d(r,{buildDoctorReport:()=>h,renderDoctorReport:()=>v});var i,o,t=a(99436),s=a(85382),n=a(31802),c=a(8479),l=a(7586),p=a(47988),u=(i=t(function*(){try{return yield Promise.all([a.e(1826),a.e(6645),a.e(4479),a.e(7648),a.e(6042),a.e(1010),a.e(7233)]).then(a.bind(a,63288)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),k=(e,r,a)=>({severity:e,code:r,message:a}),h=(o=t(function*({version:e="2.25.5-beta.2",mcpCheck:r=u}={}){var a=(0,p.getCurrentProfile)(),i=(0,p.getCurrentProfileSource)(),o=(0,n.getConnectionContext)(a),t=o.tokenInfo,h=o.auth,d=o.baseUrl,v=o.activityLogBaseUrl,m=[],w={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:p.CONFIG_PATH,baseUrl:d,activityLogBaseUrl:v},auth:{available:!!h,source:h?"config":"missing",kind:h?.kind||null,workspaceId:t?.workspaceId||null,workspaceName:t?.workspaceName||null,createdAt:t?.createdAt||null,tokenPreview:h?.kind==="token"?(0,l.$l)(h.token):null},connectivity:{workspace:{ok:!1,skipped:!h,error:null}},capabilities:{zeroArgMode:(0,c.isInteractiveTerminal)()?"interactive":"help",mcp:{available:!1,error:null}},issues:m};if(h)try{var b=yield(0,s.createClient)(d,h).workspace();w.connectivity.workspace={ok:!0,skipped:!1,error:null,id:b?._id||t.workspaceId||null,name:b?.name||t.workspaceName||null},w.auth.workspaceId=b?._id||w.auth.workspaceId,w.auth.workspaceName=b?.name||w.auth.workspaceName}catch(e){w.connectivity.workspace={ok:!1,skipped:!1,error:e.message},m.push(k("error","workspace_unreachable",`Workspace query failed for ${d}: ${e.message}`))}else m.push(k("warning","auth_missing","No usable credential for the current profile."));var f=yield r();return w.capabilities.mcp={available:f.available,error:f.error||null},f.available||m.push(k("warning","mcp_unavailable",`MCP stdio server is unavailable: ${f.error||"Unknown error"}`)),w.ok=0===m.length,w}),function(){return o.apply(this,arguments)}),d=(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(d("CLI","OK",`bricks v${e.cli.version}`)),r.push(d("Profile","OK",`${e.profile.name} (${e.profile.source})`)),r.push(d("BRICKS API","OK",e.config.baseUrl)),r.push(d("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace",i=[e.auth.source,e.auth.kind,e.auth.tokenPreview].filter(Boolean).join(", ");r.push(d("Auth","OK",i?`${a} (${i})`:a))}else r.push(d("Auth","WARN","No usable credential for the current profile"));if(e.connectivity.workspace.skipped)r.push(d("Workspace","WARN","Skipped because no credential is available"));else if(e.connectivity.workspace.ok){var o=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";r.push(d("Workspace","OK",o))}else r.push(d("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?r.push(d("MCP","OK","STDIO server import is available")):r.push(d("MCP","WARN",e.capabilities.mcp.error)),r.push(d("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")}}};
1
+ export const __rspack_esm_id=2486;export const __rspack_esm_ids=[2486];export const __webpack_modules__={421(e,r,a){a.r(r),a.d(r,{buildDoctorReport:()=>h,renderDoctorReport:()=>v});var i,o,t=a(99436),s=a(85382),n=a(31802),c=a(8479),l=a(7586),p=a(47988),u=(i=t(function*(){try{return yield Promise.all([a.e(1826),a.e(6645),a.e(4479),a.e(7648),a.e(6042),a.e(1010),a.e(7233)]).then(a.bind(a,63288)),{available:!0}}catch(e){return{available:!1,error:e.message}}}),function(){return i.apply(this,arguments)}),k=(e,r,a)=>({severity:e,code:r,message:a}),h=(o=t(function*({version:e="2.25.5",mcpCheck:r=u}={}){var a=(0,p.getCurrentProfile)(),i=(0,p.getCurrentProfileSource)(),o=(0,n.getConnectionContext)(a),t=o.tokenInfo,h=o.auth,d=o.baseUrl,v=o.activityLogBaseUrl,m=[],w={ok:!1,timestamp:new Date().toISOString(),cli:{name:"bricks",version:e},profile:{name:a,source:i},config:{path:p.CONFIG_PATH,baseUrl:d,activityLogBaseUrl:v},auth:{available:!!h,source:h?"config":"missing",kind:h?.kind||null,workspaceId:t?.workspaceId||null,workspaceName:t?.workspaceName||null,createdAt:t?.createdAt||null,tokenPreview:h?.kind==="token"?(0,l.$l)(h.token):null},connectivity:{workspace:{ok:!1,skipped:!h,error:null}},capabilities:{zeroArgMode:(0,c.isInteractiveTerminal)()?"interactive":"help",mcp:{available:!1,error:null}},issues:m};if(h)try{var b=yield(0,s.createClient)(d,h).workspace();w.connectivity.workspace={ok:!0,skipped:!1,error:null,id:b?._id||t.workspaceId||null,name:b?.name||t.workspaceName||null},w.auth.workspaceId=b?._id||w.auth.workspaceId,w.auth.workspaceName=b?.name||w.auth.workspaceName}catch(e){w.connectivity.workspace={ok:!1,skipped:!1,error:e.message},m.push(k("error","workspace_unreachable",`Workspace query failed for ${d}: ${e.message}`))}else m.push(k("warning","auth_missing","No usable credential for the current profile."));var f=yield r();return w.capabilities.mcp={available:f.available,error:f.error||null},f.available||m.push(k("warning","mcp_unavailable",`MCP stdio server is unavailable: ${f.error||"Unknown error"}`)),w.ok=0===m.length,w}),function(){return o.apply(this,arguments)}),d=(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(d("CLI","OK",`bricks v${e.cli.version}`)),r.push(d("Profile","OK",`${e.profile.name} (${e.profile.source})`)),r.push(d("BRICKS API","OK",e.config.baseUrl)),r.push(d("Activity Log","OK",e.config.activityLogBaseUrl)),e.auth.available){var a=e.auth.workspaceName||e.auth.workspaceId||"Unknown workspace",i=[e.auth.source,e.auth.kind,e.auth.tokenPreview].filter(Boolean).join(", ");r.push(d("Auth","OK",i?`${a} (${i})`:a))}else r.push(d("Auth","WARN","No usable credential for the current profile"));if(e.connectivity.workspace.skipped)r.push(d("Workspace","WARN","Skipped because no credential is available"));else if(e.connectivity.workspace.ok){var o=e.connectivity.workspace.name||e.connectivity.workspace.id||"Unknown workspace";r.push(d("Workspace","OK",o))}else r.push(d("Workspace","FAIL",e.connectivity.workspace.error));return e.capabilities.mcp.available?r.push(d("MCP","OK","STDIO server import is available")):r.push(d("MCP","WARN",e.capabilities.mcp.error)),r.push(d("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")}}};
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.25.5-beta.2")?"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}}}};
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 n=r(73024),a=r(76760),s=r(48161),l=e=>{if(!e)return e;try{return n.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.25.5")?"beta":"release"},o=({execPath:e=process.execPath,scriptPath:t=process.argv[1],homeDir:r=s.homedir(),realpath:n=l}={})=>{let i;var o=(i=e)?a.basename(i).replace(/\.exe$/i,""):"";if("bricks"===o||"bricks-beta"===o)return{method:"binary",execPath:e,installDir:a.dirname(e)};var c=n(t),p=((e,t)=>{if(!e)return null;var r=a.sep,n=`${r}node_modules${r}${t.replace(/\//g,r)}${r}`,s=e.indexOf(n);return -1===s?null:e.slice(0,s)})(c,"@fugood/bricks-cli");if(p){var d=a.sep,b=a.join(r,".bun","install","global");return p===b||p.startsWith(b+d)?{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(`${d}lib`)?p.slice(0,-`${d}lib`.length):p}}return{method:"unknown",execPath:e,scriptPath:c}}}};
package/lib/7233.js CHANGED
@@ -2472,7 +2472,7 @@ ${((e,i)=>{switch(e){case"defined_properties":return Object.entries(i).map(([e,i
2472
2472
  timestamp
2473
2473
  }
2474
2474
  }
2475
- `,tQ=X(function e(i,t){var n;Q(this,e),this.baseUrl=i,this.auth="string"==typeof t?{token:t,getHeaders:(n=h(function*(){return{authorization:`Bearer ${t}`}}),function(){return n.apply(this,arguments)})}:t,this.token=this.auth?.token,this.graphqlUrl=`${i}/api/graphql`},[{key:"authHeaders",value:(o=h(function*(){var e=yield this.auth.getHeaders();return{Authorization:e.authorization,...tH(e,tz)}}),function(){return o.apply(this,arguments)})},{key:"graphql",value:(r=h(function*(e,i){var t=yield(0,E.Ay)(this.graphqlUrl,{method:"POST",headers:{"Content-Type":"application/json",...yield this.authHeaders(),Accept:"application/json"},body:JSON.stringify({query:e,variables:i})});if(!t.ok){var n=yield t.text().catch(()=>"");throw Error(`Activity-log query failed (${t.status}): ${n}`)}var a=yield t.json();if(a.errors?.length)throw Error(a.errors.map(e=>e.message).join("\n"));return a.data}),function(e,i){return r.apply(this,arguments)})},{key:"events",value:(s=h(function*(e,{limit:i,offset:t}={}){var n={...e};return null!=i&&(n.limit=i),null!=t&&(n.offset=t),(yield this.graphql(tJ,{filter:n})).events}),function(e){return s.apply(this,arguments)})},{key:"screenshots",value:(d=h(function*(e){return(yield this.graphql(tX,{filter:e})).screenshots}),function(e){return d.apply(this,arguments)})},{key:"downloadScreenshot",value:(c=h(function*(e,i,t){var n=`${this.baseUrl}/api/v1/${encodeURIComponent(e)}/${encodeURIComponent(i)}/screenshot?ts=${encodeURIComponent(t)}`,a=yield(0,E.Ay)(n,{headers:yield this.authHeaders()});if(!a.ok){var o=yield a.text().catch(()=>"");throw Error(`Screenshot fetch failed (${a.status}): ${o}`)}return Buffer.from((yield a.arrayBuffer()))}),function(e,i,t){return c.apply(this,arguments)})}]);function tZ(e,i,t){switch(t){case"user":return new iM(e,i);case"workspace":return new te(e,i);default:throw Error(`Invalid token type: ${t}.`)}}process.env.STAGE,process.env.URL_BASE;var t0="bricks-mcp",t1={bricks:process.env.BRICKS_API_SERVER||"https://display-beta.bricks.tools",media:process.env.MEDIA_API_SERVER||"https://media-beta.bricks.tools",activityLog:process.env.ACTIVITY_LOG_API_SERVER||"https://activity-log-beta.bricks.tools"};process.env.AUTH0_DOMAIN,process.env.CACHE_URL;var t4=t(1639);let t6=({type:e,title:i,template_key:t})=>{var n,a,o=(0,t4.M4)(e);switch(e){case"subspace":n={title:i,layout:{width:"number",height:"number"},root_canvas_id:"CANVAS_<UUID>",canvas_map:{},brick_map:{},animation_map:{},generator_map:{},property_bank_map:{},property_bank_calc_map:{}},a={"canvas_map.CANVAS_<UUID>.item_list":[{type:"subspace",subspace_id:"SUBSPACE_<UUID>",$note:"If not a root subspace, it can be linked to canvas in other subspace"}]};break;case"canvas":var r=K(Y.Ji);n={title:i,item_list:[],property:{$definitions:Object.fromEntries(Object.entries(r.propTypes).map(([e,i])=>[e,{...i,description:r.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(r.eventTypes).map(([e])=>[e,{description:r.brickEventDescriptions[e]}]))}},a={property_bank_map:{[(0,t4.M4)("property_bank")]:{title:`Canvas ID: ${i}`,type:"string",value:o,routing:"read-only",kind:"auto-generated-item-id",idType:"canvas"}}};break;case"brick":var s=K(Y.dK.Basic),d=K(Y.brickMapping[t]);if(!d)throw Error(`Brick ${t} not found`);var c={...d,propTypes:{...s.propTypes,...d.propTypes},brickPropDescriptions:{...s.brickPropDescriptions,...d.brickPropDescriptions},eventTypes:{...s.eventTypes,...d.eventTypes},brickEventDescriptions:{...s.brickEventDescriptions,...d.brickEventDescriptions}};n={title:i,template_key:t,property:{$definitions:Object.fromEntries(Object.entries(c.propTypes).map(([e,i])=>[e,{...i,description:c.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(c.eventTypes).map(([e])=>[e,{description:c.brickEventDescriptions[e]}]))},outlet:{$definitions:Object.fromEntries(Object.entries(c.outletTypes??{}).map(([e])=>[e,{description:(c.brickOutletDescriptions??{})[e]}]))},state_group:{"BRICK_STATE_GROUP_<UUID>":{}}},a={canvas_map:{"CANVAS_<UUID WHICH NEED DISPLAY THIS BRICK>":{item_list:[{type:"brick",brick_id:o,frame:{x:"number",y:"number",width:"number",height:"number",standby_mode:"custom|top|left|right|bottom",standby_delay:"number",standby_easing:{default:{method:"ease",duration:"number"}}}}]}}};break;case"state_group":n={title:i,description:"State Group Description",conds:[{type:"property_bank|inner_state",key:"PROPERTY_BANK#<Data Node ID>|[current_canvas|BRICK_<OUTLET NAME>]|",method:"==|!=|>|>=|<|<=",value:"value_to_compare"}],override:{property:!1,event:!1,outlet:!1},commented:!1,break:!1,property:{},outlet:{},animation:{}};break;case"generator":var l=K(Y.generatorMapping[t]);if(!l)throw Error(`Generator ${t} not found`);n={title:i,template_key:t,property:{$definitions:Object.fromEntries(Object.entries(l.propTypes).map(([e,i])=>[e,{...i,description:l.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(l.eventTypes).map(([e])=>[e,{description:l.brickEventDescriptions[e]}]))},outlet:{$definitions:Object.fromEntries(Object.entries(l.outletTypes).map(([e])=>[e,{description:l.brickOutletDescriptions[e]}]))}};break;case"animation":n={title:i,type:"timing|decay|spring",property:"opacity|transform.translateX|transform.scale|etc",config:{$note:"Config for the animation"},compose_type:"parallel|sequence",item_list:[{animation_id:"ANIMATION_<SUB ANIMATION UUID>"}]};break;case"property_bank":n={title:i,description:"Property Bank Description",linkedFrom:"SUBSPACE_<UUID WHICH IS CROSS SUBSPACE>",type:"string|number|bool|object|array|any",kind:"color|datetime|id|media-resource-*|lottie-file-uri",unit:"grid|px|ms",routing:"read-only|default",value:"fit-to-type",event_map:{$note:`Available events: ${Object.keys(Y.qJ.eventTypes).join(", ")}`},local_sync:{update_mode:"all|main-only|minor-only|dont-sync"},$remote_update_additional:{$note:"Configure remote update behavior",enable_remote_update:!0,bank_type:"create|create-device-specific"}};break;case"property_bank_command":break;case"property_bank_calc":var p=(0,t4.M4)("property_bank_command"),u=(0,t4.M4)("property_bank_command"),m=(0,t4.M4)("property_bank_command"),_="const { arg_name } = inputs;\n\nreturn { arg_name };";n={title:i,map:{$note:"Required, actual implementation","PROPERTY_BANK_DATA_NODE_<UUID>":{type:"data-node",properties:{},in:{change:null},out:{value:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID>",port:"value"}]},$note:"Use this to input data to the sandbox"},"PROPERTY_BANK_COMMAND_NODE_<UUID FIRST>":{type:"command-node-object",title:"Command: OBJECT_SET",properties:{command:"OBJECT_SET",args:{path:"arg_name"}},in:{obj:null,path:null,value:[{id:"PROPERTY_BANK_DATA_NODE_<UUID>",port:"value"}]},out:{result:[{id:`PROPERTY_BANK_COMMAND_NODE_<UUID NEXT> | ${p}`,port:"obj | inputs"}]}},"PROPERTY_BANK_COMMAND_NODE_<UUID SECOND>":{type:"command-node-object",title:"Command: OBJECT_SET",properties:{command:"OBJECT_SET",args:{path:"arg_name"}},in:{obj:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID PREVIOUS>",port:"result"}],path:null,value:[{id:"PROPERTY_BANK_DATA_NODE_<UUID SECOND>",port:"value"}]},out:{result:[{id:`PROPERTY_BANK_COMMAND_NODE_<UUID NEXT> | ${p}`,port:"obj | inputs"}]}},[p]:{type:"command-node-sandbox",title:"Command: SANDBOX_RUN_JAVASCRIPT",properties:{command:"SANDBOX_RUN_JAVASCRIPT",args:{code:_,enable_async:!1}},in:{code:null,inputs:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID FINAL>",port:"result"}]},out:{result:[{id:m,port:"result"},{id:u,port:"result"}]}},[m]:{type:"command-node-sandbox",title:"Command: SANDBOX_GET_ERROR",properties:{command:"SANDBOX_GET_ERROR"},in:{result:[{id:p,port:"result"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE ERROR>",port:"change"}],$note:"Set `result` as null if there is no error"}},[u]:{type:"command-node-sandbox",title:"Command: SANDBOX_GET_RETURN_VALUE",properties:{command:"SANDBOX_GET_RETURN_VALUE"},in:{result:[{id:p,port:"result"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT> | PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT> | null",port:"change"}]}},"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT>":{type:"data-node",properties:{},in:{change:[{id:u,port:"result"}]},out:{value:null},$note:"Put full result into data node"},"PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT>":{type:"command-node-object",title:"Command: OBJECT_GET",properties:{command:"OBJECT_GET",args:{path:"obj_key"}},in:{obj:[{id:u,port:"obj"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>",port:"change"}]},$note:"Parse result object into data node"},"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>":{type:"data-node",properties:{},in:{change:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT>",port:"result"}]},out:{value:null},$note:"Put partial result into data node"}},editor_info:{},type:"script",script_config:{title:i,enable_async:!1,inputs:{"PROPERTY_BANK_DATA_NODE_<UUID>":"arg_name"},disabled_triggers:{},error:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE ERROR> | null",output:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT> | null",outputs:{obj_key:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>"},code:_,$note:"Required, info for GUI editor"}}}return x({id:o,example:n,extraInfo:a})};var t5=(l=h(function*(e,i){var t=new AbortController,n=setTimeout(()=>t.abort(),15e3);try{var a=yield(0,E.Ay)(e,{agent:i,size:0x6400000,signal:t.signal}),o=Number(a.headers.get("content-length"));if(Number.isFinite(o)&&o>0x6400000)throw Error("source_url response exceeds the 100 MiB download limit");var r=a.headers.get("content-type")||"application/octet-stream";return{data:yield a.blob(),contentType:r}}catch(e){if(e?.name==="AbortError")throw Error("source_url download exceeded the 15s time limit");throw e}finally{clearTimeout(n)}}),function(e,i){return l.apply(this,arguments)}),t2="2.25.5-beta.2";function t9(){return t3.apply(this,arguments)}function t3(){return(t3=h(function*(e={}){var i,t,n=e.baseUrl||t1.bricks,a=e.activityLogBaseUrl||t1.activityLog,o=!e.token&&!!e.getAuthHeaders,r=e.token||!e.getAuthHeaders&&process.env.BRICKS_API_TOKEN,s=null;if(!r&&e.getAuthHeaders){var d=yield e.getAuthHeaders();r=d.authorization?.replace(/^Bearer /,""),s=d["x-bricks-workspace-id"]||null}if(!r)throw console.error("Error: API token is required"),console.error(o?"OAuth sign-in did not produce credentials. Run `bricks auth login` again.":"Please provide a token via options or set BRICKS_API_TOKEN environment variable"),Error("API token is required");var c=function(e){try{var i=e.queryStringParameters?.token;if(!i){var t=new Headers(e.headers);i=t.get("authorization")?.replace("Bearer ","")}if(!i)return{success:!1,message:"Authentication failed: No token provided"};var n=function(e){try{var i=e.split(".");if(i.length<3)return null;var t=JSON.parse(Buffer.from(i[0],"base64url").toString());if(!A.includes(t?.alg))return null;return JSON.parse(Buffer.from(i[1],"base64url").toString())}catch{return null}}(i);if(!n)return{success:!1,message:"Authentication failed: Invalid token"};var a=w.includes(n.iss)?"user":"workspace";if("workspace"===a){var o=Array.isArray(n.t)?n.t:[];n.permissions=o.reduce((e,i)=>{var t=D[i];return t&&e.push(t),e},[])}else n.permissions=Object.keys(k);return{success:!0,token:i,tokenInfo:n,tokenType:a}}catch(e){return{success:!1,message:`Authentication failed: ${e.message}`}}}({queryStringParameters:{token:r}});if(!c.success){var l=o?"Invalid OAuth session credentials — run `bricks auth login` again":"Invalid BRICKS_API_TOKEN";throw console.error(`Error: ${l}`),console.error(c.message),Error(l)}var p=new b._({name:t0,version:t2});if(e.getAuthHeaders&&s){var u={token:r,getHeaders:e.getAuthHeaders};t={...c,tokenType:"workspace",tokenInfo:{...c.tokenInfo,w_id:s,permissions:Object.keys(k)},auth:u,client:tZ(n,u,"workspace")}}else t={...c,client:tZ(n,c.token,c.tokenType)};p.prompt("getting-started","Getting started with BRICKS",{},h(function*(){return{messages:[{role:"user",content:{type:"text",text:`Welcome to BRICKS — start here.
2475
+ `,tQ=X(function e(i,t){var n;Q(this,e),this.baseUrl=i,this.auth="string"==typeof t?{token:t,getHeaders:(n=h(function*(){return{authorization:`Bearer ${t}`}}),function(){return n.apply(this,arguments)})}:t,this.token=this.auth?.token,this.graphqlUrl=`${i}/api/graphql`},[{key:"authHeaders",value:(o=h(function*(){var e=yield this.auth.getHeaders();return{Authorization:e.authorization,...tH(e,tz)}}),function(){return o.apply(this,arguments)})},{key:"graphql",value:(r=h(function*(e,i){var t=yield(0,E.Ay)(this.graphqlUrl,{method:"POST",headers:{"Content-Type":"application/json",...yield this.authHeaders(),Accept:"application/json"},body:JSON.stringify({query:e,variables:i})});if(!t.ok){var n=yield t.text().catch(()=>"");throw Error(`Activity-log query failed (${t.status}): ${n}`)}var a=yield t.json();if(a.errors?.length)throw Error(a.errors.map(e=>e.message).join("\n"));return a.data}),function(e,i){return r.apply(this,arguments)})},{key:"events",value:(s=h(function*(e,{limit:i,offset:t}={}){var n={...e};return null!=i&&(n.limit=i),null!=t&&(n.offset=t),(yield this.graphql(tJ,{filter:n})).events}),function(e){return s.apply(this,arguments)})},{key:"screenshots",value:(d=h(function*(e){return(yield this.graphql(tX,{filter:e})).screenshots}),function(e){return d.apply(this,arguments)})},{key:"downloadScreenshot",value:(c=h(function*(e,i,t){var n=`${this.baseUrl}/api/v1/${encodeURIComponent(e)}/${encodeURIComponent(i)}/screenshot?ts=${encodeURIComponent(t)}`,a=yield(0,E.Ay)(n,{headers:yield this.authHeaders()});if(!a.ok){var o=yield a.text().catch(()=>"");throw Error(`Screenshot fetch failed (${a.status}): ${o}`)}return Buffer.from((yield a.arrayBuffer()))}),function(e,i,t){return c.apply(this,arguments)})}]);function tZ(e,i,t){switch(t){case"user":return new iM(e,i);case"workspace":return new te(e,i);default:throw Error(`Invalid token type: ${t}.`)}}process.env.STAGE,process.env.URL_BASE;var t0="bricks-mcp",t1={bricks:process.env.BRICKS_API_SERVER||"https://display-beta.bricks.tools",media:process.env.MEDIA_API_SERVER||"https://media-beta.bricks.tools",activityLog:process.env.ACTIVITY_LOG_API_SERVER||"https://activity-log-beta.bricks.tools"};process.env.AUTH0_DOMAIN,process.env.CACHE_URL;var t4=t(1639);let t6=({type:e,title:i,template_key:t})=>{var n,a,o=(0,t4.M4)(e);switch(e){case"subspace":n={title:i,layout:{width:"number",height:"number"},root_canvas_id:"CANVAS_<UUID>",canvas_map:{},brick_map:{},animation_map:{},generator_map:{},property_bank_map:{},property_bank_calc_map:{}},a={"canvas_map.CANVAS_<UUID>.item_list":[{type:"subspace",subspace_id:"SUBSPACE_<UUID>",$note:"If not a root subspace, it can be linked to canvas in other subspace"}]};break;case"canvas":var r=K(Y.Ji);n={title:i,item_list:[],property:{$definitions:Object.fromEntries(Object.entries(r.propTypes).map(([e,i])=>[e,{...i,description:r.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(r.eventTypes).map(([e])=>[e,{description:r.brickEventDescriptions[e]}]))}},a={property_bank_map:{[(0,t4.M4)("property_bank")]:{title:`Canvas ID: ${i}`,type:"string",value:o,routing:"read-only",kind:"auto-generated-item-id",idType:"canvas"}}};break;case"brick":var s=K(Y.dK.Basic),d=K(Y.brickMapping[t]);if(!d)throw Error(`Brick ${t} not found`);var c={...d,propTypes:{...s.propTypes,...d.propTypes},brickPropDescriptions:{...s.brickPropDescriptions,...d.brickPropDescriptions},eventTypes:{...s.eventTypes,...d.eventTypes},brickEventDescriptions:{...s.brickEventDescriptions,...d.brickEventDescriptions}};n={title:i,template_key:t,property:{$definitions:Object.fromEntries(Object.entries(c.propTypes).map(([e,i])=>[e,{...i,description:c.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(c.eventTypes).map(([e])=>[e,{description:c.brickEventDescriptions[e]}]))},outlet:{$definitions:Object.fromEntries(Object.entries(c.outletTypes??{}).map(([e])=>[e,{description:(c.brickOutletDescriptions??{})[e]}]))},state_group:{"BRICK_STATE_GROUP_<UUID>":{}}},a={canvas_map:{"CANVAS_<UUID WHICH NEED DISPLAY THIS BRICK>":{item_list:[{type:"brick",brick_id:o,frame:{x:"number",y:"number",width:"number",height:"number",standby_mode:"custom|top|left|right|bottom",standby_delay:"number",standby_easing:{default:{method:"ease",duration:"number"}}}}]}}};break;case"state_group":n={title:i,description:"State Group Description",conds:[{type:"property_bank|inner_state",key:"PROPERTY_BANK#<Data Node ID>|[current_canvas|BRICK_<OUTLET NAME>]|",method:"==|!=|>|>=|<|<=",value:"value_to_compare"}],override:{property:!1,event:!1,outlet:!1},commented:!1,break:!1,property:{},outlet:{},animation:{}};break;case"generator":var l=K(Y.generatorMapping[t]);if(!l)throw Error(`Generator ${t} not found`);n={title:i,template_key:t,property:{$definitions:Object.fromEntries(Object.entries(l.propTypes).map(([e,i])=>[e,{...i,description:l.brickPropDescriptions[e]}]))},event_map:{$definitions:Object.fromEntries(Object.entries(l.eventTypes).map(([e])=>[e,{description:l.brickEventDescriptions[e]}]))},outlet:{$definitions:Object.fromEntries(Object.entries(l.outletTypes).map(([e])=>[e,{description:l.brickOutletDescriptions[e]}]))}};break;case"animation":n={title:i,type:"timing|decay|spring",property:"opacity|transform.translateX|transform.scale|etc",config:{$note:"Config for the animation"},compose_type:"parallel|sequence",item_list:[{animation_id:"ANIMATION_<SUB ANIMATION UUID>"}]};break;case"property_bank":n={title:i,description:"Property Bank Description",linkedFrom:"SUBSPACE_<UUID WHICH IS CROSS SUBSPACE>",type:"string|number|bool|object|array|any",kind:"color|datetime|id|media-resource-*|lottie-file-uri",unit:"grid|px|ms",routing:"read-only|default",value:"fit-to-type",event_map:{$note:`Available events: ${Object.keys(Y.qJ.eventTypes).join(", ")}`},local_sync:{update_mode:"all|main-only|minor-only|dont-sync"},$remote_update_additional:{$note:"Configure remote update behavior",enable_remote_update:!0,bank_type:"create|create-device-specific"}};break;case"property_bank_command":break;case"property_bank_calc":var p=(0,t4.M4)("property_bank_command"),u=(0,t4.M4)("property_bank_command"),m=(0,t4.M4)("property_bank_command"),_="const { arg_name } = inputs;\n\nreturn { arg_name };";n={title:i,map:{$note:"Required, actual implementation","PROPERTY_BANK_DATA_NODE_<UUID>":{type:"data-node",properties:{},in:{change:null},out:{value:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID>",port:"value"}]},$note:"Use this to input data to the sandbox"},"PROPERTY_BANK_COMMAND_NODE_<UUID FIRST>":{type:"command-node-object",title:"Command: OBJECT_SET",properties:{command:"OBJECT_SET",args:{path:"arg_name"}},in:{obj:null,path:null,value:[{id:"PROPERTY_BANK_DATA_NODE_<UUID>",port:"value"}]},out:{result:[{id:`PROPERTY_BANK_COMMAND_NODE_<UUID NEXT> | ${p}`,port:"obj | inputs"}]}},"PROPERTY_BANK_COMMAND_NODE_<UUID SECOND>":{type:"command-node-object",title:"Command: OBJECT_SET",properties:{command:"OBJECT_SET",args:{path:"arg_name"}},in:{obj:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID PREVIOUS>",port:"result"}],path:null,value:[{id:"PROPERTY_BANK_DATA_NODE_<UUID SECOND>",port:"value"}]},out:{result:[{id:`PROPERTY_BANK_COMMAND_NODE_<UUID NEXT> | ${p}`,port:"obj | inputs"}]}},[p]:{type:"command-node-sandbox",title:"Command: SANDBOX_RUN_JAVASCRIPT",properties:{command:"SANDBOX_RUN_JAVASCRIPT",args:{code:_,enable_async:!1}},in:{code:null,inputs:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID FINAL>",port:"result"}]},out:{result:[{id:m,port:"result"},{id:u,port:"result"}]}},[m]:{type:"command-node-sandbox",title:"Command: SANDBOX_GET_ERROR",properties:{command:"SANDBOX_GET_ERROR"},in:{result:[{id:p,port:"result"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE ERROR>",port:"change"}],$note:"Set `result` as null if there is no error"}},[u]:{type:"command-node-sandbox",title:"Command: SANDBOX_GET_RETURN_VALUE",properties:{command:"SANDBOX_GET_RETURN_VALUE"},in:{result:[{id:p,port:"result"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT> | PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT> | null",port:"change"}]}},"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT>":{type:"data-node",properties:{},in:{change:[{id:u,port:"result"}]},out:{value:null},$note:"Put full result into data node"},"PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT>":{type:"command-node-object",title:"Command: OBJECT_GET",properties:{command:"OBJECT_GET",args:{path:"obj_key"}},in:{obj:[{id:u,port:"obj"}]},out:{result:[{id:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>",port:"change"}]},$note:"Parse result object into data node"},"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>":{type:"data-node",properties:{},in:{change:[{id:"PROPERTY_BANK_COMMAND_NODE_<UUID PARSE RESULT>",port:"result"}]},out:{value:null},$note:"Put partial result into data node"}},editor_info:{},type:"script",script_config:{title:i,enable_async:!1,inputs:{"PROPERTY_BANK_DATA_NODE_<UUID>":"arg_name"},disabled_triggers:{},error:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE ERROR> | null",output:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE RESULT> | null",outputs:{obj_key:"PROPERTY_BANK_DATA_NODE_<UUID RECEIVE PARTIAL RESULT>"},code:_,$note:"Required, info for GUI editor"}}}return x({id:o,example:n,extraInfo:a})};var t5=(l=h(function*(e,i){var t=new AbortController,n=setTimeout(()=>t.abort(),15e3);try{var a=yield(0,E.Ay)(e,{agent:i,size:0x6400000,signal:t.signal}),o=Number(a.headers.get("content-length"));if(Number.isFinite(o)&&o>0x6400000)throw Error("source_url response exceeds the 100 MiB download limit");var r=a.headers.get("content-type")||"application/octet-stream";return{data:yield a.blob(),contentType:r}}catch(e){if(e?.name==="AbortError")throw Error("source_url download exceeded the 15s time limit");throw e}finally{clearTimeout(n)}}),function(e,i){return l.apply(this,arguments)}),t2="2.25.5";function t9(){return t3.apply(this,arguments)}function t3(){return(t3=h(function*(e={}){var i,t,n=e.baseUrl||t1.bricks,a=e.activityLogBaseUrl||t1.activityLog,o=!e.token&&!!e.getAuthHeaders,r=e.token||!e.getAuthHeaders&&process.env.BRICKS_API_TOKEN,s=null;if(!r&&e.getAuthHeaders){var d=yield e.getAuthHeaders();r=d.authorization?.replace(/^Bearer /,""),s=d["x-bricks-workspace-id"]||null}if(!r)throw console.error("Error: API token is required"),console.error(o?"OAuth sign-in did not produce credentials. Run `bricks auth login` again.":"Please provide a token via options or set BRICKS_API_TOKEN environment variable"),Error("API token is required");var c=function(e){try{var i=e.queryStringParameters?.token;if(!i){var t=new Headers(e.headers);i=t.get("authorization")?.replace("Bearer ","")}if(!i)return{success:!1,message:"Authentication failed: No token provided"};var n=function(e){try{var i=e.split(".");if(i.length<3)return null;var t=JSON.parse(Buffer.from(i[0],"base64url").toString());if(!A.includes(t?.alg))return null;return JSON.parse(Buffer.from(i[1],"base64url").toString())}catch{return null}}(i);if(!n)return{success:!1,message:"Authentication failed: Invalid token"};var a=w.includes(n.iss)?"user":"workspace";if("workspace"===a){var o=Array.isArray(n.t)?n.t:[];n.permissions=o.reduce((e,i)=>{var t=D[i];return t&&e.push(t),e},[])}else n.permissions=Object.keys(k);return{success:!0,token:i,tokenInfo:n,tokenType:a}}catch(e){return{success:!1,message:`Authentication failed: ${e.message}`}}}({queryStringParameters:{token:r}});if(!c.success){var l=o?"Invalid OAuth session credentials — run `bricks auth login` again":"Invalid BRICKS_API_TOKEN";throw console.error(`Error: ${l}`),console.error(c.message),Error(l)}var p=new b._({name:t0,version:t2});if(e.getAuthHeaders&&s){var u={token:r,getHeaders:e.getAuthHeaders};t={...c,tokenType:"workspace",tokenInfo:{...c.tokenInfo,w_id:s,permissions:Object.keys(k)},auth:u,client:tZ(n,u,"workspace")}}else t={...c,client:tZ(n,c.token,c.tokenType)};p.prompt("getting-started","Getting started with BRICKS",{},h(function*(){return{messages:[{role:"user",content:{type:"text",text:`Welcome to BRICKS — start here.
2476
2476
 
2477
2477
  Before doing any complex work (application design, deployments, etc.),
2478
2478
  always consult the official docs rather than guessing.
package/lib/907.js CHANGED
@@ -1,4 +1,4 @@
1
- export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export const __webpack_modules__={85382(e,i,t){t.r(i),t.d(i,{BricksClient:()=>b,BricksPublicClient:()=>I,createClient:()=>S,createFetchForUrl:()=>g.P,createPublicClient:()=>k});var a,n,o,r,s=t(99436),d=t(5018),l=t(44668),c=t(54506),u=t(78549),p=t(94370),m=t(43741),$=t(89293),g=t(75149),_=c.ApolloClient,h=c.InMemoryCache,v=c.HttpLink,y=u.o,f={query:"query",mutation:"mutate"},I=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new v({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)});this.apolloClient=new _({link:t,cache:new h,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"checkWorkspaceOTP",value:(a=s(function*(e){var i=(0,p.default)`
1
+ export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export const __webpack_modules__={85382(e,i,t){t.r(i),t.d(i,{BricksClient:()=>b,BricksPublicClient:()=>I,createClient:()=>S,createFetchForUrl:()=>g.P,createPublicClient:()=>k});var a,n,r,o,s=t(99436),d=t(5018),l=t(44668),c=t(54506),u=t(78549),p=t(94370),m=t(43741),$=t(89293),g=t(75149),_=c.ApolloClient,v=c.InMemoryCache,h=c.HttpLink,y=u.o,f={query:"query",mutation:"mutate"},I=l(function e(i){d(this,e),this.baseUrl=i,this.endpoint="/api/graphql-nonauth";var t=new h({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)});this.apolloClient=new _({link:t,cache:new v,defaultOptions:{query:{errorPolicy:"all",fetchPolicy:"no-cache"}}})},[{key:"checkWorkspaceOTP",value:(a=s(function*(e){var i=(0,p.default)`
2
2
  query checkWorkspaceOTP($passcode: String!) {
3
3
  checkWorkspaceOTP(passcode: $passcode)
4
4
  }
@@ -12,7 +12,7 @@ export const __rspack_esm_id=907;export const __rspack_esm_ids=[907];export cons
12
12
  }
13
13
  `,t=yield this.apolloClient.mutate({mutation:i,variables:{passcode:e}}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a.exchangeWorkspaceOTP}),function(e){return n.apply(this,arguments)})}]),k=e=>new I(e),A="Note: OAuth workspace access is awaiting the next production server release. Until then, use workspace auth (passcode or token; CLI: `bricks auth login-workspace`).",C=(e,i)=>{if(i?.kind!=="oauth")return e;var t=e?.message||String(e);if(!(403===(e?.statusCode||e?.networkError?.statusCode||e?.cause?.statusCode)||/\b403\b|invalid algorithm/i.test(t))||t.includes(A))return e;var a=Error(`${t}
14
14
 
15
- ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseUrl=i,this.auth=(e=>{if(!e)return null;if("string"==typeof e){var i;return{kind:"token",token:e,getHeaders:(i=s(function*(){return{authorization:`Bearer ${e}`}}),function(){return i.apply(this,arguments)})}}return e})(t),this.token=this.auth?.token,this.endpoint="/api/graphql-workspace";var o=new v({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)}),r=y((a=s(function*(e,{headers:i}){return{headers:{...i,...n.auth?yield n.auth.getHeaders():{}}}}),function(e,i){return a.apply(this,arguments)}));this.apolloClient=new _({link:r.concat(o),cache:new h,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=m,this.mutations=$,this.generateMethods()},[{key:"generateMethods",value:function(){var e=this,i=i=>([t,a])=>{if(!this[t]){var n,o=(n=s(function*(n,o){try{var r=e.apolloClient[f[i]].bind(e.apolloClient),s=yield r({[i]:a,variables:n,...o}),d=s.data,l=s.errors;if(l)throw Error(l.map(({message:e})=>e).join("\n"));return d[t]}catch(e){if(e.cause?.result?.errors)throw Error(e.cause.result.errors.map(({message:e})=>e).join("\n"));throw e}}),function(e,i){return n.apply(this,arguments)});this[t]=s(function*(i={},t={}){try{return yield o(i,t)}catch(a){if(e.auth?.kind==="oauth"&&e.auth.refresh&&/401|unauthoriz|jwt expired|token.*expired|invalid.*token/i.test(a?.message||"")){yield e.auth.refresh();try{return yield o(i,t)}catch(i){throw C(i,e.auth)}}throw C(a,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(o=s(function*(e,i={}){var t=yield this.apolloClient.query({query:e,variables:i,fetchPolicy:"no-cache"}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return o.apply(this,arguments)})},{key:"mutate",value:(r=s(function*(e,i={}){var t=yield this.apolloClient.mutate({mutation:e,variables:i}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return r.apply(this,arguments)})}]),S=(e,i)=>new b(e,i)},75149(e,i,t){t.d(i,{P:()=>o});var a=t(79657),n=t(64007);function o(e){var i=process.env.HTTPS_PROXY||process.env.https_proxy;if(!i||!e.startsWith("https://"))return a.Ay;var t=new n(i);return(e,i={})=>(0,a.Ay)(e,{...i,agent:t})}},48596(e,i,t){t.d(i,{$7:()=>c,$V:()=>u,F3:()=>o,J6:()=>p,NJ:()=>s,VZ:()=>r,Yi:()=>n,lI:()=>l,mJ:()=>d});var a=t(94370),n=(0,a.default)`
15
+ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseUrl=i,this.auth=(e=>{if(!e)return null;if("string"==typeof e){var i;return{kind:"token",token:e,getHeaders:(i=s(function*(){return{authorization:`Bearer ${e}`}}),function(){return i.apply(this,arguments)})}}return e})(t),this.token=this.auth?.token,this.endpoint="/api/graphql-workspace";var r=new h({uri:`${i}${this.endpoint}`,fetch:(0,g.P)(i)}),o=y((a=s(function*(e,{headers:i}){return{headers:{...i,...n.auth?yield n.auth.getHeaders():{}}}}),function(e,i){return a.apply(this,arguments)}));this.apolloClient=new _({link:o.concat(r),cache:new v,defaultOptions:{watchQuery:{errorPolicy:"all",fetchPolicy:"no-cache"},query:{errorPolicy:"all",fetchPolicy:"no-cache"}}}),this.queries=m,this.mutations=$,this.generateMethods()},[{key:"generateMethods",value:function(){var e=this,i=i=>([t,a])=>{if(!this[t]){var n,r=(n=s(function*(n,r){try{var o=e.apolloClient[f[i]].bind(e.apolloClient),s=yield o({[i]:a,variables:n,...r}),d=s.data,l=s.errors;if(l)throw Error(l.map(({message:e})=>e).join("\n"));return d[t]}catch(e){if(e.cause?.result?.errors)throw Error(e.cause.result.errors.map(({message:e})=>e).join("\n"));throw e}}),function(e,i){return n.apply(this,arguments)});this[t]=s(function*(i={},t={}){try{return yield r(i,t)}catch(a){if(e.auth?.kind==="oauth"&&e.auth.refresh&&/401|unauthoriz|jwt expired|token.*expired|invalid.*token/i.test(a?.message||"")){yield e.auth.refresh();try{return yield r(i,t)}catch(i){throw C(i,e.auth)}}throw C(a,e.auth)}})}};Object.entries(this.queries).forEach(i("query")),Object.entries(this.mutations).forEach(i("mutation"))}},{key:"query",value:(r=s(function*(e,i={}){var t=yield this.apolloClient.query({query:e,variables:i,fetchPolicy:"no-cache"}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return r.apply(this,arguments)})},{key:"mutate",value:(o=s(function*(e,i={}){var t=yield this.apolloClient.mutate({mutation:e,variables:i}),a=t.data,n=t.errors;if(n?.length>0)throw Error(n.map(({message:e})=>e).join("\n"));return a}),function(e){return o.apply(this,arguments)})}]),S=(e,i)=>new b(e,i)},75149(e,i,t){t.d(i,{P:()=>r});var a=t(79657),n=t(64007);function r(e){var i=process.env.HTTPS_PROXY||process.env.https_proxy;if(!i||!e.startsWith("https://"))return a.Ay;var t=new n(i);return(e,i={})=>(0,a.Ay)(e,{...i,agent:t})}},48596(e,i,t){t.d(i,{$7:()=>c,$V:()=>u,F3:()=>r,J6:()=>p,NJ:()=>s,VZ:()=>o,Yi:()=>n,lI:()=>l,mJ:()=>d});var a=t(94370),n=(0,a.default)`
16
16
  fragment cliWorkspaceArguments on Workspace {
17
17
  _id
18
18
  name
@@ -38,7 +38,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
38
38
  }
39
39
  }
40
40
  }
41
- `,o=(0,a.default)`
41
+ `,r=(0,a.default)`
42
42
  fragment cliDeviceArguments on Device {
43
43
  _id
44
44
  name
@@ -124,7 +124,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
124
124
  create_datetime
125
125
  last_modify_datetime
126
126
  }
127
- `,r=(0,a.default)`
127
+ `,o=(0,a.default)`
128
128
  fragment cliDevicePanelArguments on Device {
129
129
  _id
130
130
  name
@@ -268,14 +268,14 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
268
268
  description
269
269
  current_version
270
270
  }
271
- `},89293(e,i,t){t.r(i),t.d(i,{bindApplication:()=>$,bindButtressServer:()=>C,controlDevice:()=>r,createApplication:()=>l,createApplicationWithShareVersion:()=>c,createDevice:()=>o,createMediaFileUploadRequest:()=>k,createModule:()=>_,dispatchDeviceGroupAction:()=>d,issueButtressAccessToken:()=>S,issueDevtoolsAccessToken:()=>w,releaseApplication:()=>I,releaseModule:()=>A,removeApplication:()=>p,removeDevice:()=>s,removeModule:()=>v,shortEditApplication:()=>m,shortEditModule:()=>y,triggerApplicationCanvasControl:()=>g,unbindButtressServer:()=>b,updateApplication:()=>u,updateModule:()=>h,updateWorkspace:()=>f});var a=t(94370),n=t(48596),o=(0,a.default)`
271
+ `},89293(e,i,t){t.r(i),t.d(i,{bindApplication:()=>_,bindButtressServer:()=>S,controlDevice:()=>o,createApplication:()=>u,createApplicationWithShareVersion:()=>p,createDevice:()=>r,createMediaFileUploadRequest:()=>C,createModule:()=>h,createVirtualDevice:()=>s,dispatchDeviceGroupAction:()=>c,issueButtressAccessToken:()=>w,issueDevtoolsAccessToken:()=>L,releaseApplication:()=>A,releaseModule:()=>b,removeApplication:()=>$,removeDevice:()=>l,removeModule:()=>f,shortEditApplication:()=>g,shortEditModule:()=>I,triggerApplicationCanvasControl:()=>v,unbindButtressServer:()=>D,updateApplication:()=>m,updateModule:()=>y,updateVirtualDevice:()=>d,updateWorkspace:()=>k});var a=t(94370),n=t(48596),r=(0,a.default)`
272
272
  mutation CLI_createDevice($bindPasscode: String, $name: String, $deviceName: String) {
273
273
  createDevice(bindPasscode: $bindPasscode, name: $name, deviceName: $deviceName) {
274
274
  ...cliDeviceArguments
275
275
  }
276
276
  }
277
277
  ${n.F3}
278
- `,r=(0,a.default)`
278
+ `,o=(0,a.default)`
279
279
  mutation CLI_controlDevice($id: ID!, $type: String!, $eventPayload: JSON) {
280
280
  controlDevice(id: $id, type: $type, eventPayload: $eventPayload) {
281
281
  _id
@@ -283,17 +283,37 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
283
283
  }
284
284
  }
285
285
  `,s=(0,a.default)`
286
+ mutation CLI_createVirtualDevice($name: String, $deviceName: String) {
287
+ createVirtualDevice(name: $name, deviceName: $deviceName) {
288
+ ...cliDeviceArguments
289
+ }
290
+ }
291
+ ${n.F3}
292
+ `,d=(0,a.default)`
293
+ mutation CLI_updateVirtualDevice($id: ID!, $tokens: [DeviceTokenInput], $revokeTokens: [ID!]) {
294
+ updateVirtualDevice(id: $id, tokens: $tokens, revokeTokens: $revokeTokens) {
295
+ device {
296
+ ...cliDeviceArguments
297
+ }
298
+ newTokens {
299
+ name
300
+ token
301
+ }
302
+ }
303
+ }
304
+ ${n.F3}
305
+ `,l=(0,a.default)`
286
306
  mutation CLI_removeDevice($id: ID!) {
287
307
  removeDevice(id: $id)
288
308
  }
289
- `,d=(0,a.default)`
309
+ `,c=(0,a.default)`
290
310
  mutation CLI_dispatchDeviceGroupAction($id: ID!, $action: String!) {
291
311
  dispatchDeviceGroupAction(id: $id, action: $action) {
292
312
  dispatched
293
313
  devices
294
314
  }
295
315
  }
296
- `,l=(0,a.default)`
316
+ `,u=(0,a.default)`
297
317
  mutation CLI_createApplication(
298
318
  $name: String
299
319
  $description: String
@@ -310,7 +330,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
310
330
  }
311
331
  }
312
332
  ${n.$7}
313
- `,c=(0,a.default)`
333
+ `,p=(0,a.default)`
314
334
  mutation CLI_createApplicationWithShareVersion(
315
335
  $name: String
316
336
  $description: String
@@ -327,7 +347,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
327
347
  }
328
348
  }
329
349
  ${n.$7}
330
- `,u=(0,a.default)`
350
+ `,m=(0,a.default)`
331
351
  mutation CLI_updateApplication(
332
352
  $id: ID!
333
353
  $config: String
@@ -350,11 +370,11 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
350
370
  }
351
371
  }
352
372
  ${n.$7}
353
- `,p=(0,a.default)`
373
+ `,$=(0,a.default)`
354
374
  mutation CLI_removeApplication($id: ID!) {
355
375
  removeApplication(id: $id)
356
376
  }
357
- `,m=(0,a.default)`
377
+ `,g=(0,a.default)`
358
378
  mutation CLI_shortEditApplication(
359
379
  $id: ID!
360
380
  $list: [ShortEditInput]!
@@ -366,7 +386,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
366
386
  }
367
387
  }
368
388
  ${n.$7}
369
- `,$=(0,a.default)`
389
+ `,_=(0,a.default)`
370
390
  mutation CLI_bindApplication(
371
391
  $id: ID!
372
392
  $bindDevices: [ID]
@@ -387,7 +407,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
387
407
  }
388
408
  }
389
409
  }
390
- `,g=(0,a.default)`
410
+ `,v=(0,a.default)`
391
411
  mutation CLI_triggerApplicationCanvasControl(
392
412
  $id: ID!
393
413
  $testId: String!
@@ -405,7 +425,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
405
425
  _id
406
426
  }
407
427
  }
408
- `,_=(0,a.default)`
428
+ `,h=(0,a.default)`
409
429
  mutation CLI_createModule(
410
430
  $name: String
411
431
  $description: String
@@ -430,7 +450,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
430
450
  }
431
451
  }
432
452
  ${n.$V}
433
- `,h=(0,a.default)`
453
+ `,y=(0,a.default)`
434
454
  mutation CLI_updateModule(
435
455
  $id: ID!
436
456
  $config: String
@@ -451,11 +471,11 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
451
471
  }
452
472
  }
453
473
  ${n.$V}
454
- `,v=(0,a.default)`
474
+ `,f=(0,a.default)`
455
475
  mutation CLI_removeModule($id: ID!) {
456
476
  removeModule(id: $id)
457
477
  }
458
- `,y=(0,a.default)`
478
+ `,I=(0,a.default)`
459
479
  mutation CLI_shortEditModule(
460
480
  $id: ID!
461
481
  $list: [ShortEditInput]!
@@ -467,7 +487,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
467
487
  name
468
488
  }
469
489
  }
470
- `,f=(0,a.default)`
490
+ `,k=(0,a.default)`
471
491
  mutation CLI_updateWorkspace(
472
492
  $name: String
473
493
  $description: String
@@ -491,7 +511,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
491
511
  }
492
512
  }
493
513
  }
494
- `,I=(0,a.default)`
514
+ `,A=(0,a.default)`
495
515
  mutation CLI_releaseApplication(
496
516
  $id: ID!
497
517
  $config: String
@@ -510,7 +530,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
510
530
  name
511
531
  }
512
532
  }
513
- `,k=(0,a.default)`
533
+ `,C=(0,a.default)`
514
534
  mutation CLI_createMediaFileUploadRequest(
515
535
  $name: String!
516
536
  $description: String!
@@ -537,7 +557,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
537
557
  }
538
558
  }
539
559
  }
540
- `,A=(0,a.default)`
560
+ `,b=(0,a.default)`
541
561
  mutation CLI_releaseModule(
542
562
  $id: ID!
543
563
  $config: String
@@ -557,7 +577,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
557
577
  name
558
578
  }
559
579
  }
560
- `,C=(0,a.default)`
580
+ `,S=(0,a.default)`
561
581
  mutation CLI_bindButtressServer(
562
582
  $serverId: String!
563
583
  $name: String
@@ -573,11 +593,11 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
573
593
  }
574
594
  }
575
595
  }
576
- `,b=(0,a.default)`
596
+ `,D=(0,a.default)`
577
597
  mutation CLI_unbindButtressServer($serverId: String!) {
578
598
  unbindButtressServer(serverId: $serverId)
579
599
  }
580
- `,S=(0,a.default)`
600
+ `,w=(0,a.default)`
581
601
  mutation CLI_issueButtressAccessToken($ttlSeconds: Int) {
582
602
  issueButtressAccessToken(ttlSeconds: $ttlSeconds) {
583
603
  token
@@ -586,7 +606,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
586
606
  jti
587
607
  }
588
608
  }
589
- `,w=(0,a.default)`
609
+ `,L=(0,a.default)`
590
610
  mutation CLI_issueDevtoolsAccessToken($ttlSeconds: Int) {
591
611
  issueDevtoolsAccessToken(ttlSeconds: $ttlSeconds) {
592
612
  token
@@ -595,14 +615,14 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
595
615
  jti
596
616
  }
597
617
  }
598
- `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationProject:()=>b,applications:()=>m,buttressServers:()=>w,checkBindDevicePasscode:()=>v,device:()=>r,deviceGroup:()=>l,deviceGroups:()=>c,deviceUsage:()=>C,devices:()=>s,devicesByGroup:()=>u,devicesPanel:()=>d,mediaBox:()=>k,mediaBoxes:()=>I,mediaFile:()=>A,mediaFiles:()=>y,mediaWorkspace:()=>f,module:()=>g,moduleProject:()=>S,modules:()=>_,publicApplicationShareInfo:()=>$,publicModules:()=>h,workspace:()=>o});var a=t(94370),n=t(48596),o=(0,a.default)`
618
+ `},43741(e,i,t){t.r(i),t.d(i,{application:()=>p,applicationProject:()=>b,applications:()=>m,buttressServers:()=>D,checkBindDevicePasscode:()=>h,device:()=>o,deviceGroup:()=>l,deviceGroups:()=>c,deviceUsage:()=>C,devices:()=>s,devicesByGroup:()=>u,devicesPanel:()=>d,mediaBox:()=>k,mediaBoxes:()=>I,mediaFile:()=>A,mediaFiles:()=>y,mediaWorkspace:()=>f,module:()=>g,moduleProject:()=>S,modules:()=>_,publicApplicationShareInfo:()=>$,publicModules:()=>v,workspace:()=>r});var a=t(94370),n=t(48596),r=(0,a.default)`
599
619
  query CLI_workspace {
600
620
  workspace {
601
621
  ...cliWorkspaceArguments
602
622
  }
603
623
  }
604
624
  ${n.Yi}
605
- `,r=(0,a.default)`
625
+ `,o=(0,a.default)`
606
626
  query CLI_device($id: ID) {
607
627
  device(id: $id) {
608
628
  ...cliDeviceArguments
@@ -711,14 +731,14 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
711
731
  }
712
732
  }
713
733
  ${n.J6}
714
- `,h=(0,a.default)`
734
+ `,v=(0,a.default)`
715
735
  query CLI_publicModules($keyword: String!, $limit: Int) {
716
736
  publicModules(keyword: $keyword, paginate: { limit: $limit }) {
717
737
  ...cliModuleShortArguments
718
738
  }
719
739
  }
720
740
  ${n.J6}
721
- `,v=(0,a.default)`
741
+ `,h=(0,a.default)`
722
742
  query CLI_checkBindDevicePasscode($passcode: String!) {
723
743
  checkBindDevicePasscode(passcode: $passcode)
724
744
  }
@@ -906,7 +926,7 @@ ${A}`);return a.cause=e,a},b=l(function e(i,t){var a,n=this;d(this,e),this.baseU
906
926
  setupGeminiCLI: $setupGeminiCLI
907
927
  )
908
928
  }
909
- `,w=(0,a.default)`
929
+ `,D=(0,a.default)`
910
930
  query CLI_buttressServers {
911
931
  buttressServers {
912
932
  serverId