@fugood/bricks-cli 2.26.0-beta.9 → 2.26.0
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 +116 -7
- package/lib/1010.js +1 -1
- package/lib/1178.js +1 -1
- package/lib/1215.js +1 -1
- package/lib/1374.js +4 -0
- package/lib/1708.js +8 -8
- package/lib/1809.js +1 -0
- package/lib/1936.js +1 -1
- package/lib/2486.js +1 -1
- package/lib/2499.js +1 -0
- package/lib/2517.js +8 -0
- package/lib/2557.js +1 -1
- package/lib/3223.js +1 -1
- package/lib/3774.js +2 -6
- package/lib/3781.js +2 -2
- package/lib/{6842.js → 39.js} +1 -1
- package/lib/3976.js +6 -10
- package/lib/4456.js +2 -2
- package/lib/4485.js +1 -0
- package/lib/4530.js +10 -10
- package/lib/4994.js +1 -0
- package/lib/6194.js +2 -2
- package/lib/638.js +1 -0
- package/lib/6818.js +1 -1
- package/lib/7281.js +1 -0
- package/lib/7294.js +2 -2
- package/lib/7494.js +12 -3
- package/lib/7511.js +3 -1
- package/lib/8102.js +5 -0
- package/lib/831.js +1 -1
- package/lib/8687.js +49 -0
- package/lib/8937.js +1 -0
- package/lib/907.js +520 -91
- package/lib/9320.js +23 -2
- package/lib/9387.js +5 -5
- package/lib/9439.js +2670 -0
- package/lib/9663.js +1 -1
- package/lib/devtools.js +1 -0
- package/lib/index.js +168 -105
- package/lib/lib.js +565 -104
- package/lib/simulator-host-bridge.cjs +1 -1
- package/lib/simulator-main.mjs +6 -6
- package/package.json +8 -7
- package/lib/3332.js +0 -13
- package/lib/3593.js +0 -1
- package/lib/3690.js +0 -1
- package/lib/563.js +0 -4
- package/lib/6042.js +0 -1
- package/lib/6645.js +0 -1
- package/lib/7233.js +0 -2546
- package/lib/7574.js +0 -1
- package/lib/7648.js +0 -1
- package/lib/9590.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
const fs=require("node:fs"),path=require("node:path"),fsp=fs.promises,AUTOMATION_SCREENSHOT_PROJECT_DIR=path.join(".bricks","automation_screenshots");function isPathInsideDir(t,e){let o=path.relative(e,t);return""===o||".."!==o&&!o.startsWith(`..${path.sep}`)&&!path.isAbsolute(o)}function unsafeAutomationScreenshotPath(t){return Error(`Unsafe automation screenshot path: ${t}`)}function isMissingPathError(t){return t?.code==="ENOENT"||t?.code==="ENOTDIR"}function resolveAutomationScreenshotPath(t,e=""){let o=path.resolve(t),
|
|
1
|
+
const fs=require("node:fs"),path=require("node:path"),fsp=fs.promises,AUTOMATION_SCREENSHOT_PROJECT_DIR=path.join(".bricks","automation_screenshots"),DEFAULT_SIMULATOR_SECURITY_SETTINGS=Object.freeze({allowedInsecureHosts:[]});function isObject(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function normalizeSimulatorSecuritySettings(t={}){let e=isObject(t)?t:{};return{allowedInsecureHosts:(Array.isArray(e.allowedInsecureHosts)?e.allowedInsecureHosts:DEFAULT_SIMULATOR_SECURITY_SETTINGS.allowedInsecureHosts).filter(t=>"string"==typeof t).map(t=>t.trim().toLowerCase()).filter(Boolean)}}function parseUrl(t,e){try{return new URL(String(t||""),e)}catch{return null}}function isInsecureConnectionUrl(t,e){let o=parseUrl(t,e);return o?.protocol==="http:"||o?.protocol==="ws:"}function normalizeAllowedConnection(t){let e=String(t||"").trim().toLowerCase();if(!e)return null;if(!/^[a-z][a-z0-9+.-]*:\/\//i.test(e))return{host:e,protocol:null};try{let t=new URL(e);return{host:t.host.toLowerCase(),protocol:t.protocol}}catch{return null}}function isAllowedUnsecureConnectionUrl(t,e={},o){let r=normalizeSimulatorSecuritySettings(e),n=parseUrl(t,o);if(!n)return!1;let i=n.host.toLowerCase(),a=n.hostname.toLowerCase().replace(/^\[|\]$/g,"");return r.allowedInsecureHosts.map(normalizeAllowedConnection).some(t=>!!t&&(!t.protocol||t.protocol===n.protocol)&&(t.host===i||t.host===a))}function shouldBlockInsecureConnection(t,e={},o){let r=normalizeSimulatorSecuritySettings(e);return!!isInsecureConnectionUrl(t,o)&&!isAllowedUnsecureConnectionUrl(t,r,o)}function getUnsecureConnectionHost(t){let e=parseUrl(t);return e&&("http:"===e.protocol||"ws:"===e.protocol)?e.host.toLowerCase():null}function isPathInsideDir(t,e){let o=path.relative(e,t);return""===o||".."!==o&&!o.startsWith(`..${path.sep}`)&&!path.isAbsolute(o)}function unsafeAutomationScreenshotPath(t){return Error(`Unsafe automation screenshot path: ${t}`)}function isMissingPathError(t){return t?.code==="ENOENT"||t?.code==="ENOTDIR"}function resolveAutomationScreenshotPath(t,e=""){let o=path.resolve(t),r=path.resolve(o,AUTOMATION_SCREENSHOT_PROJECT_DIR),n=String(e||AUTOMATION_SCREENSHOT_PROJECT_DIR),i=path.resolve(o,n),a=isPathInsideDir(i,r)?i:path.resolve(r,n);if(!isPathInsideDir(a,r))throw Error("Automation screenshot path must stay inside the project screenshot directory.");let s=fs.realpathSync(o),c=path.relative(o,a),l=path.resolve(s,AUTOMATION_SCREENSHOT_PROJECT_DIR),h=path.resolve(s,c);if(!isPathInsideDir(h,l))throw unsafeAutomationScreenshotPath("canonical path escapes its screenshot directory");let u=path.relative(s,h),S=u?u.split(path.sep):[],m=s;for(let t=0;t<S.length;t+=1){let e,o=path.join(m,S[t]);try{e=fs.lstatSync(o)}catch(e){if(!isMissingPathError(e))throw e;return path.join(m,...S.slice(t))}if(e.isSymbolicLink())throw unsafeAutomationScreenshotPath("symbolic links are not allowed");if(t<S.length-1&&!e.isDirectory())throw unsafeAutomationScreenshotPath("a parent component is not a directory");if(!isPathInsideDir(m=fs.realpathSync(o),s))throw unsafeAutomationScreenshotPath("canonical path escapes the project")}return m}async function automationScreenshotPathExists(t,e){let o=resolveAutomationScreenshotPath(t,e);try{return await fsp.lstat(o),!0}catch(t){if(isMissingPathError(t))return!1;throw t}}async function readAutomationScreenshotDirectory(t,e){return fsp.readdir(resolveAutomationScreenshotPath(t,e))}async function makeAutomationScreenshotDirectory(t,e){let o=resolveAutomationScreenshotPath(t,e);await fsp.mkdir(o,{recursive:!0});let r=resolveAutomationScreenshotPath(t,e);if(!(await fsp.lstat(r)).isDirectory())throw unsafeAutomationScreenshotPath("created path is not a directory")}async function removeAutomationScreenshotPath(t,e){let o=resolveAutomationScreenshotPath(t,e);await fsp.rm(o,{recursive:!0,force:!0})}async function openAutomationScreenshotFile(t,e,o){let r,n=resolveAutomationScreenshotPath(t,e);try{r=await fsp.open(n,o|(fs.constants.O_NOFOLLOW||0),438)}catch(t){if(t?.code==="ELOOP")throw unsafeAutomationScreenshotPath("target is a symbolic link");throw t}try{let[e,o,i]=await Promise.all([r.stat(),fsp.lstat(n),fsp.realpath(n)]),a=resolveAutomationScreenshotPath(t);if(!e.isFile()||o.isSymbolicLink()||e.dev!==o.dev||e.ino!==o.ino||!isPathInsideDir(i,a))throw unsafeAutomationScreenshotPath("target changed during authorization");return r}catch(t){throw await r.close().catch(()=>{}),t}}function normalizeAutomationScreenshotEncoding(t){return"base64"===t?"base64":"utf8"}async function readAutomationScreenshotFile(t,e,o){let r=await openAutomationScreenshotFile(t,e,fs.constants.O_RDONLY);try{return await r.readFile({encoding:normalizeAutomationScreenshotEncoding(o)})}finally{await r.close()}}async function writeAutomationScreenshotFile(t,e,o,r){let n=resolveAutomationScreenshotPath(t,e);await fsp.mkdir(path.dirname(n),{recursive:!0});let i=await openAutomationScreenshotFile(t,e,fs.constants.O_WRONLY|fs.constants.O_CREAT);try{await i.truncate(0),await i.writeFile(o,{encoding:normalizeAutomationScreenshotEncoding(r)})}finally{await i.close()}}module.exports={DEFAULT_SIMULATOR_SECURITY_SETTINGS,normalizeSimulatorSecuritySettings,isInsecureConnectionUrl,shouldBlockInsecureConnection,getUnsecureConnectionHost,AUTOMATION_SCREENSHOT_PROJECT_DIR,automationScreenshotPathExists,readAutomationScreenshotDirectory,makeAutomationScreenshotDirectory,removeAutomationScreenshotPath,readAutomationScreenshotFile,writeAutomationScreenshotFile,resolveAutomationScreenshotPath,normalizeAutomationScreenshotEncoding};
|
package/lib/simulator-main.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{app as e,BrowserWindow as t,ipcMain as o}from"electron";import{readFile as s,writeFile as
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
import{app as e,BrowserWindow as t,ipcMain as o}from"electron";import{readFile as s,writeFile as n}from"fs/promises";import{watchFile as a}from"fs";import{createServer as r}from"http";import i from"node:path";import{fileURLToPath as l}from"node:url";import{parseArgs as c}from"util";import*as p from"@toon-format/toon";import d from"./simulator-host-bridge.cjs";let{normalizeSimulatorSecuritySettings:u,shouldBlockInsecureConnection:w,getUnsecureConnectionHost:h,automationScreenshotPathExists:m,readAutomationScreenshotDirectory:g,makeAutomationScreenshotDirectory:f,removeAutomationScreenshotPath:y,readAutomationScreenshotFile:S,writeAutomationScreenshotFile:b}=d;for(let e of[process.stdout,process.stderr])e.on("error",e=>{if("EPIPE"!==e.code)throw e});let{values:v}=c({args:process.argv,options:{"clear-cache":{type:"boolean"},"take-screenshot":{type:"string"},"show-menu":{type:"boolean"},"test-id":{type:"string"},"test-title-like":{type:"string"},"test-timeout":{type:"string"},"no-keep-open":{type:"boolean"},headless:{type:"boolean"},"cdp-port":{type:"string"},"capture-plan":{type:"string"}},strict:!0,allowPositionals:!0}),T=process.cwd(),C=i.dirname(l(import.meta.url)),k=()=>{o.handle("bricks-automation-screenshots:exists",async(e,t)=>{try{return await m(T,t)}catch{return!1}}),o.handle("bricks-automation-screenshots:readdir",async(e,t)=>{try{return await g(T,t)}catch{return[]}}),o.handle("bricks-automation-screenshots:mkdir",async(e,t)=>{await f(T,t)}),o.handle("bricks-automation-screenshots:unlink",async(e,t)=>{await y(T,t)}),o.handle("bricks-automation-screenshots:read-file",async(e,t,o)=>S(T,t,o)),o.handle("bricks-automation-screenshots:write-file",async(e,t,o,s)=>b(T,t,o,s))},I=async()=>{try{return u(JSON.parse(await s(`${T}/simulator.json`,"utf8")))}catch{return u()}},J=null;try{v["take-screenshot"]&&((J=JSON.parse(v["take-screenshot"])).path||(J.path=`${T}/screenshot.jpg`),J.width||(J.width=1280),J.height||(J.height=768),J.delay||(J.delay=1e3))}catch(e){console.error("Invalid take-screenshot config",e),process.exit(1)}let O=null;try{v["capture-plan"]&&(O=JSON.parse(await s(v["capture-plan"],"utf8")))}catch(e){console.error("Invalid capture-plan file",e),process.exit(1)}let E=JSON.parse(await s(`${T}/.bricks/build/application-config.json`)),N=await I(),_=e=>{console.error(e),process.exit(1)},$=Object.values(E.automation_map||{}).flatMap(e=>Object.entries(e.map||{})),P=e=>{let t=e.toLowerCase();return $.find(([,e])=>e.title?.toLowerCase().includes(t))?.[0]??null},R=()=>$.map(([e,t])=>`- ${e} (${t.title||"untitled"})`).join("\n")||"(none — the compiled automation map is empty)",j=v["test-id"]||null;if(j&&!$.some(([e])=>e===j)){let e=v["test-title-like"]?P(v["test-title-like"]):null;e||_(`No automation test with id: ${v["test-id"]}. Available tests:
|
|
2
|
+
${R()}`),j=e}!j&&v["test-title-like"]&&((j=P(v["test-title-like"]))||_(`No automation found matching title: ${v["test-title-like"]}. Available tests:
|
|
3
|
+
${R()}`));let L=v["no-keep-open"]??!1,x=parseInt(v["test-timeout"]||"",10)||9e4,B=process.env.BRICKS_STAGE||"production",U={production:"https://control.bricks.tools/applicationPreview.html",beta:"https://control-beta.bricks.tools/applicationPreview.html",development:"http://localhost:3006/dev-applicationPreview.html"}[B];U||_(`Invalid BRICKS_STAGE: ${B}`),N=u({...N,allowedInsecureHosts:[...N.allowedInsecureHosts,h(U)].filter(Boolean)});let D=async(e,t)=>{let{WebSocketServer:o}=await import("ws"),s=new Set;e.webContents.on("console-message",(e,...t)=>{let o="object"==typeof t[0]?t[0].message:t[1];if(o?.startsWith("[CDP]"))try{let e=JSON.parse(o.slice(5)),t="cdp-response"===e.type?{id:e.id,result:e.result,error:e.error}:{method:e.method,params:e.params};e.sessionId&&(t.sessionId=e.sessionId);let n=JSON.stringify(t);for(let e of s)1===e.readyState&&e.send(n)}catch{}});let n=e=>new Promise(o=>{let s=r();s.once("error",()=>{e<t+100?o(n(e+1)):o(null)}),s.listen(e,()=>s.close(()=>o(e)))}),a=await n(t);if(!a)return void console.warn(`CDP server: no available port in range ${t}-${t+99}`);let i=r((e,t)=>{if("/json/list"===e.url||"/json"===e.url){t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify([{description:"BRICKS Simulator",id:"bricks-simulator",title:"BRICKS Simulator",type:"page",url:U,webSocketDebuggerUrl:`ws://localhost:${a}/ws`}]));return}if("/json/version"===e.url){t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify({Browser:"BRICKS Simulator","Protocol-Version":"1.3"}));return}if("/devtools/info"===e.url){t.writeHead(200,{"Content-Type":"application/json"}),t.end(JSON.stringify({name:"BRICKS Simulator",port:a,protocols:["cdp"],hasPasscode:!1}));return}t.writeHead(404),t.end()});new o({server:i,path:"/ws"}).on("connection",t=>{s.add(t),e.webContents.executeJavaScript(`
|
|
4
4
|
if (!window.__cdpRelayInstalled) {
|
|
5
5
|
window.__cdpRelayInstalled = true
|
|
6
6
|
window.addEventListener('message', (evt) => {
|
|
@@ -11,7 +11,7 @@ ${P()}`));let H=y["no-keep-open"]??!1,x=parseInt(y["test-timeout"]||"",10)||9e4,
|
|
|
11
11
|
} catch {}
|
|
12
12
|
})
|
|
13
13
|
}
|
|
14
|
-
`),t.on("message",t=>{try{let o=JSON.parse(t.toString()),s=JSON.stringify({type:"cdp-request",id:o.id,method:o.method,params:o.params||{},sessionId:o.sessionId});e.webContents.executeJavaScript(`window.postMessage(${JSON.stringify(s)})`)}catch{}}),t.on("close",()=>s.delete(t))}),i.listen(
|
|
14
|
+
`),t.on("message",t=>{try{let o=JSON.parse(t.toString()),s=JSON.stringify({type:"cdp-request",id:o.id,method:o.method,params:o.params||{},sessionId:o.sessionId});e.webContents.executeJavaScript(`window.postMessage(${JSON.stringify(s)})`)}catch{}}),t.on("close",()=>s.delete(t))}),i.listen(a,()=>{console.log(`CDP server: ws://localhost:${a}/ws`),console.log(`Inspect: devtools://devtools/bundled/inspector.html?ws=localhost:${a}/ws`)})};e.commandLine.appendSwitch("use-mock-keychain"),e.commandLine.appendSwitch("password-store","basic");let H=async o=>{let s=Array.isArray(o.states)?o.states:[],a=s[0]||{},r=new t({width:a.width||800,height:a.height||1200,frame:!1,show:!1,webPreferences:{preload:i.join(C,"simulator-preload.cjs"),contextIsolation:!0,nodeIntegration:!1}});r.setBackgroundColor("#333"),r.webContents.session.webRequest.onBeforeRequest({urls:["http://*/*","ws://*/*"]},(e,t)=>{t({cancel:w(e.url,N)})});let l=null;r.webContents.on("console-message",(e,...t)=>{let o="object"==typeof t[0]?t[0].message:t[1];if(o?.startsWith("[TEST_RESULT]"))try{let e=JSON.parse(o.replace("[TEST_RESULT]",""));if(console.log(`[TEST_RESULT_TOON]${p.encode(e.result)}`),l){let t=l;l=null,t(e.result)}}catch{}});let c=e=>new Promise(t=>setTimeout(t,e)),d=()=>new Promise(e=>r.webContents.once("dom-ready",e)),u=()=>r.webContents.executeJavaScript(`
|
|
15
15
|
window.addEventListener('message', (evt) => {
|
|
16
16
|
try {
|
|
17
17
|
const data = JSON.parse(evt.data)
|
|
@@ -20,7 +20,7 @@ ${P()}`));let H=y["no-keep-open"]??!1,x=parseInt(y["test-timeout"]||"",10)||9e4,
|
|
|
20
20
|
}
|
|
21
21
|
} catch (e) {}
|
|
22
22
|
})
|
|
23
|
-
`),
|
|
23
|
+
`),h=e=>{let t={type:"config",configFile:{_originTitle:"Test",...E,title:Math.random().toString()},workspace:{billing:{lock:{},plan:{type:"__internal__"}}},showMenu:!1,testId:e,hideDevChrome:!0};return r.webContents.executeJavaScript(`window.postMessage(JSON.stringify(${JSON.stringify(t)}))`)},m=()=>new Promise((e,t)=>{let o=setTimeout(()=>{l=null,t(Error(`automation did not report a result within ${x}ms`))},x);l=t=>{clearTimeout(o),e(t)}}),g=e=>e&&$.some(([t])=>t===e)?e:null,f=a.width||800,y=a.height||1200;for(let e of s){let t=e.width||800,o=e.height||1200,s=Date.now(),a={name:e.name,screenshotPath:e.screenshotPath,ok:!1,wallMs:0};try{let s=g(e.testId);if(e.testId&&!s)throw Error(`no automation test with id: ${e.testId}`);(t!==f||o!==y)&&(r.setContentSize(t,o),f=t,y=o);let i=d();r.loadURL(U),await i,await u(),await h(s),s&&await m(),await c(e.delayMs||1200);let l=await r.webContents.capturePage();await n(e.screenshotPath,l.resize({width:t,height:o}).toJPEG(75)),a.ok=!0}catch(t){console.error(`Capture state "${e.name}" failed:`,t?.message||t)}finally{a.wallMs=Date.now()-s,console.log(`[CAPTURE_STATE]${JSON.stringify(a)}`)}}e.quit()};e.on("ready",()=>{if(O){k(),H(O).catch(t=>{console.error("Capture plan failed",t),e.exit(1)});return}k();let o=!0;J&&!J.noHeadless&&(o=!1);let r=!!v.headless||"1"===process.env.BRICKS_SIMULATOR_HEADLESS,l=L&&!J&&r;l&&(o=!1);let c=new t({width:J?.width||1280,height:J?.height||768,frame:!J,show:o,webPreferences:{preload:i.join(C,"simulator-preload.cjs"),contextIsolation:!0,nodeIntegration:!1,...l?{backgroundThrottling:!1}:{}}});c.setBackgroundColor("#333"),c.webContents.session.webRequest.onBeforeRequest({urls:["http://*/*","ws://*/*"]},(e,t)=>{t({cancel:w(e.url,N)})}),c.loadURL(U);let d=null,m=()=>{if(!J||d)return;let{delay:t,width:o,height:s,path:a}=J;d=setTimeout(async()=>{let t=!1;console.log("Taking screenshot");try{let e=await c.webContents.capturePage();console.log("Writing screenshot to",a),await n(a,e.resize({width:o,height:s}).toJPEG(75))}catch(e){t=!0,console.error("Screenshot capture/write failed",e)}finally{L&&(console.log("Closing app"),t?e.exit(1):e.quit())}},t)},g=()=>{let e={type:"config",configFile:{_originTitle:"Test",...E,title:Math.random().toString()},workspace:{billing:{lock:{},plan:{type:"__internal__"}}},showMenu:v["show-menu"]||!1,testId:j,hideDevChrome:!!J};c.webContents.executeJavaScript(`window.postMessage(JSON.stringify(${JSON.stringify(e)}))`),j||m()},f=null;c.webContents.once("dom-ready",()=>{g(),j&&(L||J)&&(f=setTimeout(()=>{console.error(`Automation test ${j} did not report a result within ${x}ms — check that its waits can resolve and the expected canvas/data changes actually happen.`),e.exit(1)},x)),j&&c.webContents.executeJavaScript(`
|
|
24
24
|
window.addEventListener('message', (evt) => {
|
|
25
25
|
try {
|
|
26
26
|
const data = JSON.parse(evt.data)
|
|
@@ -29,4 +29,4 @@ ${P()}`));let H=y["no-keep-open"]??!1,x=parseInt(y["test-timeout"]||"",10)||9e4,
|
|
|
29
29
|
}
|
|
30
30
|
} catch (e) {}
|
|
31
31
|
})
|
|
32
|
-
`);let t=
|
|
32
|
+
`);let t=v["cdp-port"]?parseInt(v["cdp-port"],10):null;t&&D(c,t)}),j&&c.webContents.on("console-message",(t,...o)=>{let s="object"==typeof o[0]?o[0].message:o[1];if(s?.startsWith("[TEST_RESULT]")){f&&clearTimeout(f);let t=JSON.parse(s.replace("[TEST_RESULT]",""));console.log(`[TEST_RESULT_TOON]${p.encode(t.result)}`),J?m():L&&e.quit()}}),v["clear-cache"]&&(console.log("Clearing cache"),c.webContents.session.clearCache()),c.on("close",()=>e.quit()),a(`${T}/.bricks/build/application-config.json`,{bigint:!1,persistent:!0,interval:1e3},async()=>{console.log("Detected config changed"),E=JSON.parse(await s(`${T}/.bricks/build/application-config.json`));let e=await I();N=u({...e,allowedInsecureHosts:[...e.allowedInsecureHosts,h(U)].filter(Boolean)}),g()}),a(`${T}/simulator.json`,{bigint:!1,persistent:!0,interval:1e3},async()=>{console.log("Detected simulator settings changed");let e=await I();N=u({...e,allowedInsecureHosts:[...e.allowedInsecureHosts,h(U)].filter(Boolean)})})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-cli",
|
|
3
|
-
"version": "2.26.0
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "BRICKS CLI - Command-line interface for BRICKS Workspace API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bricks",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"exports": {
|
|
26
26
|
".": "./lib/index.js",
|
|
27
27
|
"./lib": "./lib/lib.js",
|
|
28
|
+
"./devtools": "./lib/devtools.js",
|
|
28
29
|
"./package.json": "./package.json"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
@@ -55,11 +56,11 @@
|
|
|
55
56
|
"@babel/parser": "7.28.5",
|
|
56
57
|
"@babel/traverse": "7.28.5",
|
|
57
58
|
"@babel/types": "7.28.5",
|
|
58
|
-
"@fugood/bricks-config-core": "^2.26.0
|
|
59
|
-
"@fugood/bricks-core-generated": "^2.26.0
|
|
60
|
-
"@fugood/bricks-devtools-core": "^2.
|
|
61
|
-
"@fugood/bricks-system-properties-definition": "^2.
|
|
62
|
-
"@fugood/property-bank-calc-generated": "^2.26.0
|
|
59
|
+
"@fugood/bricks-config-core": "^2.26.0",
|
|
60
|
+
"@fugood/bricks-core-generated": "^2.26.0",
|
|
61
|
+
"@fugood/bricks-devtools-core": "^2.26.0",
|
|
62
|
+
"@fugood/bricks-system-properties-definition": "^2.26.0",
|
|
63
|
+
"@fugood/property-bank-calc-generated": "^2.26.0",
|
|
63
64
|
"@huggingface/gguf": "^0.3.2",
|
|
64
65
|
"@iarna/toml": "^3.0.0",
|
|
65
66
|
"@inquirer/prompts": "^7.0.0",
|
|
@@ -88,5 +89,5 @@
|
|
|
88
89
|
"engines": {
|
|
89
90
|
"node": ">=18.0.0"
|
|
90
91
|
},
|
|
91
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "ae285a21c880ad1de830d9770003158e906da66d"
|
|
92
93
|
}
|