@mindexec/cli 0.2.340 → 0.2.341
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/codex-runtime.js +255 -31
- package/package.json +1 -1
- package/remote-hub.js +80 -2
- package/scripts/remote-fast-live-rate-smoke.mjs +19 -3
- package/scripts/remote-fast-mdm-browser-smoke.mjs +28 -2
- package/scripts/remote-hub-smoke.mjs +32 -2
- package/server.js +1304 -21
- package/wwwroot/_headers +50 -17
- package/wwwroot/assets/AdminDashboardPage-B2vz2Px9.css +1 -0
- package/wwwroot/assets/AdminDashboardPage-DpUfWSRs.js +1 -0
- package/wwwroot/assets/AppSidebar-CBqvLonm.js +1 -0
- package/wwwroot/assets/AuthPages-Cd5fYgU0.js +1 -0
- package/wwwroot/assets/AuthPages-DFGWKWuB.css +1 -0
- package/wwwroot/assets/CodePage-Bncc352E.css +1 -0
- package/wwwroot/assets/CodePage-D9-cUf4A.js +87 -0
- package/wwwroot/assets/CompanyCorePage-ChBnq1ve.css +1 -0
- package/wwwroot/assets/CompanyCorePage-D0byTW77.js +13 -0
- package/wwwroot/assets/ExecutionModePage-DtMDlqYc.js +18 -0
- package/wwwroot/assets/ExecutionModePage-TLuld9l3.css +1 -0
- package/wwwroot/assets/LaunchLeadCapture-CiRI1shz.css +1 -0
- package/wwwroot/assets/LaunchLeadCapture-CqeoHfvb.js +1 -0
- package/wwwroot/assets/MarketingHome-DPzaYzA_.css +1 -0
- package/wwwroot/assets/MarketingHome-DbWyEAya.js +1 -0
- package/wwwroot/assets/MindCanvas-CME1KpAo.js +48 -0
- package/wwwroot/assets/MindCanvas-DiQlUDJu.css +1 -0
- package/wwwroot/assets/PlanMasterPage-CJ36rep-.css +1 -0
- package/wwwroot/assets/PlanMasterPage-mhlZZK19.js +4 -0
- package/wwwroot/assets/PricingPage-Cg_0i_ZR.css +1 -0
- package/wwwroot/assets/PricingPage-zVu8-CrF.js +1 -0
- package/wwwroot/assets/ToolPages-DIB187pZ.css +1 -0
- package/wwwroot/assets/ToolPages-DTSqKzQd.js +28 -0
- package/wwwroot/assets/YouTubeSearchPage-IPPa_BIH.css +1 -0
- package/wwwroot/assets/YouTubeSearchPage-xGiaLNqk.js +4 -0
- package/wwwroot/assets/app-runtime-xD2Z3NdN.js +1 -0
- package/wwwroot/assets/canvas-runtime-D1gfvqKp.js +44 -0
- package/wwwroot/assets/code-agent-runtime-B5PPZd1t.js +74 -0
- package/wwwroot/assets/executionModeSettings-NJqurj-o.js +1 -0
- package/wwwroot/assets/index-CP_xejf2.css +1 -0
- package/wwwroot/assets/index-CZS-9WFu.js +2 -0
- package/wwwroot/assets/marketingTools-DN_rnHeB.js +4 -0
- package/wwwroot/assets/mindCanvasSearchWorker-BzPMsHOB.js +1 -0
- package/wwwroot/assets/mindexecution-mindcanvas.png +0 -0
- package/wwwroot/assets/mindexecution-prod-home-current.png +0 -0
- package/wwwroot/assets/mindexecution-prod-pricing-current.png +0 -0
- package/wwwroot/assets/pricingCheckoutShell-O-DnwmbU.js +1 -0
- package/wwwroot/assets/runtimeSettingsPersistenceProjection-BoNWmYjU.js +1 -0
- package/wwwroot/assets/storage-CGDupGH4.js +1 -0
- package/wwwroot/assets/supabaseAuthAdapter-C3z334Qw.js +44 -0
- package/wwwroot/assets/toolHandoff-D5e5f7t5.js +4 -0
- package/wwwroot/assets/vendor-icons-oiW_NVNO.js +681 -0
- package/wwwroot/assets/vendor-msgpack-BE8aAsr3.js +1 -0
- package/wwwroot/assets/vendor-react-BXzpOyCS.js +40 -0
- package/wwwroot/favicon.svg +7 -0
- package/wwwroot/index.html +22 -736
- package/wwwroot/manifest.webmanifest +18 -21
- package/wwwroot/robots.txt +1 -1
- package/wwwroot/service-worker.js +5 -31
- package/wwwroot/sitemap.xml +21 -9
- package/wwwroot/MindExecution.Web.styles.css +0 -3
- package/wwwroot/_content/MindExecution.Plugins.Admin/css/admin-dashboard.css +0 -546
- package/wwwroot/_content/MindExecution.Plugins.Directory/MindExecution.Plugins.Directory.u7utcng611.bundle.scp.css +0 -7
- package/wwwroot/_content/MindExecution.Plugins.Directory/background.png +0 -0
- package/wwwroot/_content/MindExecution.Plugins.Directory/directory-manager.js +0 -202
- package/wwwroot/_content/MindExecution.Plugins.Directory/exampleJsInterop.js +0 -6
- package/wwwroot/_content/MindExecution.Plugins.YouTube/css/youtube-search.css +0 -251
- package/wwwroot/_content/MindExecution.Shared/MindExecution.Shared.wsano1j4wp.bundle.scp.css +0 -4
- package/wwwroot/_content/MindExecution.Shared/css/admin-dashboard.css +0 -559
- package/wwwroot/_content/MindExecution.Shared/css/app.css +0 -1
- package/wwwroot/_content/MindExecution.Shared/css/mind-map-overrides.css +0 -3705
- package/wwwroot/_content/MindExecution.Shared/fonts/NotoSansKR-Bold.ttf +0 -0
- package/wwwroot/_content/MindExecution.Shared/fonts/NotoSansKR-Regular.ttf +0 -0
- package/wwwroot/_content/MindExecution.Shared/js/agent-visualization.js +0 -359
- package/wwwroot/_content/MindExecution.Shared/js/background-themes.js +0 -1631
- package/wwwroot/_content/MindExecution.Shared/js/code-master.js +0 -8316
- package/wwwroot/_content/MindExecution.Shared/js/file-system-helper.js +0 -639
- package/wwwroot/_content/MindExecution.Shared/js/helpers/InfiniteGridHelper.js +0 -109
- package/wwwroot/_content/MindExecution.Shared/js/marked.min.js +0 -69
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js +0 -12909
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js.backup +0 -1059
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-css3d-manager.js +0 -24635
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dev-guards.js +0 -325
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js +0 -1491
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js.bak +0 -434
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-glow-shader.js +0 -260
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-interactions.js +0 -7829
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-plan-worker.js +0 -160
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-renderer.js +0 -10400
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-logic-workers.js +0 -977
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-menu-manager.js +0 -1531
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-multi-select.js +0 -1716
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-node-search-worker.js +0 -554
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-nodes.js +0 -4578
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js +0 -489
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js.backup +0 -372
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-pipeline.js +0 -2203
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-lod-system.js +0 -646
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-overlay-v2.js +0 -4735
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js +0 -2383
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js.backup +0 -1258
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-visibility-worker.js +0 -890
- package/wwwroot/_content/MindExecution.Shared/js/mindmap-toolbar.js +0 -639
- package/wwwroot/_content/MindExecution.Shared/js/native-drop-handler.js +0 -170
- package/wwwroot/_content/MindExecution.Shared/js/plan-master.js +0 -788
- package/wwwroot/_content/MindExecution.Shared/js/renderers/CSS3DRenderer.js +0 -90
- package/wwwroot/_content/MindExecution.Shared/js/texture-worker-manager.js +0 -188
- package/wwwroot/_content/MindExecution.Shared/js/texture-worker.js +0 -208
- package/wwwroot/_content/MindExecution.Shared/js/three.min.js +0 -6
- package/wwwroot/_content/MindExecution.Shared/js/titlebar-handler.js +0 -191
- package/wwwroot/_content/MindExecution.Shared/js/token-manager.js +0 -37
- package/wwwroot/_content/MindExecution.Shared/js/token-worker.js +0 -28
- package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js +0 -5626
- package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js.map +0 -7
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/css/all.min.css +0 -9
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-brands-400.ttf +0 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-brands-400.woff2 +0 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-regular-400.ttf +0 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-regular-400.woff2 +0 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-solid-900.ttf +0 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/webfonts/fa-solid-900.woff2 +0 -0
- package/wwwroot/_content/MindExecution.Shared/models/all-MiniLM-L6-v2-quantized.onnx +0 -0
- package/wwwroot/_content/MindExecution.Shared/models/vocab.txt +0 -30522
- package/wwwroot/_framework/Google.Protobuf.9h59ukbel7.dll +0 -0
- package/wwwroot/_framework/Markdig.d1j7v41cl1.dll +0 -0
- package/wwwroot/_framework/MessagePack.Annotations.l6qv48kgpt.dll +0 -0
- package/wwwroot/_framework/MessagePack.eqoptzx9d5.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Authorization.k7dsih5y5g.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Components.6nyje9sa0g.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Components.Authorization.iycd6unprw.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Components.Web.487u3twia4.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Components.WebAssembly.d0gcnmlxxz.dll +0 -0
- package/wwwroot/_framework/Microsoft.AspNetCore.Metadata.h4yevl9adi.dll +0 -0
- package/wwwroot/_framework/Microsoft.CSharp.8bsm8vx6su.dll +0 -0
- package/wwwroot/_framework/Microsoft.Data.Sqlite.jdlxgv2jtg.dll +0 -0
- package/wwwroot/_framework/Microsoft.EntityFrameworkCore.4gjazp7kjf.dll +0 -0
- package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Abstractions.gocudnvz7b.dll +0 -0
- package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Relational.lt4rsvinuo.dll +0 -0
- package/wwwroot/_framework/Microsoft.EntityFrameworkCore.Sqlite.69luj0fa9r.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Caching.Abstractions.364t4jh3zz.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Caching.Memory.izlxhpzosu.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Configuration.8zq7hh41o7.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Configuration.Abstractions.8if74zs6ea.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Configuration.Json.duvlngw8i0.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.t2hh9kvx0o.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.DependencyInjection.n4tg99oy8l.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.DependencyModel.h0d06ixk3e.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Logging.Abstractions.rl32bkx2sd.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Logging.dlht1xei0t.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Options.qeunebioml.dll +0 -0
- package/wwwroot/_framework/Microsoft.Extensions.Primitives.18cr6vnuuz.dll +0 -0
- package/wwwroot/_framework/Microsoft.IO.RecyclableMemoryStream.r915vovvw4.dll +0 -0
- package/wwwroot/_framework/Microsoft.IdentityModel.Abstractions.1ejljk3erv.dll +0 -0
- package/wwwroot/_framework/Microsoft.IdentityModel.JsonWebTokens.1596zr8gne.dll +0 -0
- package/wwwroot/_framework/Microsoft.IdentityModel.Logging.229uyvpgio.dll +0 -0
- package/wwwroot/_framework/Microsoft.IdentityModel.Tokens.9sibtajc9f.dll +0 -0
- package/wwwroot/_framework/Microsoft.JSInterop.WebAssembly.ryia5gxiad.dll +0 -0
- package/wwwroot/_framework/Microsoft.JSInterop.ew9vz9o332.dll +0 -0
- package/wwwroot/_framework/Microsoft.ML.OnnxRuntime.w9deo1m5ss.dll +0 -0
- package/wwwroot/_framework/Microsoft.ML.Tokenizers.cm2vuv2z61.dll +0 -0
- package/wwwroot/_framework/Microsoft.NET.StringTools.3qbrf4v2ki.dll +0 -0
- package/wwwroot/_framework/MimeMapping.og9ys58ylm.dll +0 -0
- package/wwwroot/_framework/MindExecution.Core.y7ffihhajj.dll +0 -0
- package/wwwroot/_framework/MindExecution.Kernel.l5y3qroa7p.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Admin.uuf238xa0h.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Business.nyr3v25v48.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Concept.l9z9tx9svt.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Directory.ju87t8h3zs.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.PlanMaster.krn3jgvjpa.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.YouTube.5m53srfud6.dll +0 -0
- package/wwwroot/_framework/MindExecution.Shared.ojp3psugsm.dll +0 -0
- package/wwwroot/_framework/MindExecution.Web.82k6ktlkfg.dll +0 -0
- package/wwwroot/_framework/Newtonsoft.Json.a56zs13vug.dll +0 -0
- package/wwwroot/_framework/SQLitePCLRaw.batteries_v2.rrd1nzawpp.dll +0 -0
- package/wwwroot/_framework/SQLitePCLRaw.core.1dxloztpfz.dll +0 -0
- package/wwwroot/_framework/SQLitePCLRaw.provider.e_sqlite3.oekyzl53i1.dll +0 -0
- package/wwwroot/_framework/Supabase.Core.s1pkj4aj0l.dll +0 -0
- package/wwwroot/_framework/Supabase.Functions.qz4nu782sg.dll +0 -0
- package/wwwroot/_framework/Supabase.Gotrue.twah27pkik.dll +0 -0
- package/wwwroot/_framework/Supabase.Postgrest.gmuuv369ih.dll +0 -0
- package/wwwroot/_framework/Supabase.Realtime.ox3kchdy3w.dll +0 -0
- package/wwwroot/_framework/Supabase.Storage.fnjnepaowr.dll +0 -0
- package/wwwroot/_framework/Supabase.azmaw5pgcz.dll +0 -0
- package/wwwroot/_framework/System.Collections.23yxgetbju.dll +0 -0
- package/wwwroot/_framework/System.Collections.Concurrent.vow3rm1dku.dll +0 -0
- package/wwwroot/_framework/System.Collections.Immutable.ap9596utv5.dll +0 -0
- package/wwwroot/_framework/System.Collections.NonGeneric.npjkaz40oc.dll +0 -0
- package/wwwroot/_framework/System.Collections.Specialized.ugkjbs6p02.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.Annotations.clwo0z2oyu.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.Primitives.end4v0xe2c.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.TypeConverter.tgtp5sm4iv.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.wupoltkk1t.dll +0 -0
- package/wwwroot/_framework/System.Console.9dik0wogo2.dll +0 -0
- package/wwwroot/_framework/System.Data.Common.4v8jejsiu0.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.DiagnosticSource.e2q75ondtq.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.Process.9736yjnxs8.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.TraceSource.h9al53gbbw.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.Tracing.h4bcp2fo98.dll +0 -0
- package/wwwroot/_framework/System.Drawing.64oovy8qts.dll +0 -0
- package/wwwroot/_framework/System.Drawing.Primitives.o6jiqpgbgl.dll +0 -0
- package/wwwroot/_framework/System.Formats.Asn1.rylx5ipd40.dll +0 -0
- package/wwwroot/_framework/System.IO.Compression.iceabaupns.dll +0 -0
- package/wwwroot/_framework/System.IO.Pipelines.uw8csd3mlz.dll +0 -0
- package/wwwroot/_framework/System.IdentityModel.Tokens.Jwt.t67es60z5b.dll +0 -0
- package/wwwroot/_framework/System.Linq.Expressions.ty95ava37f.dll +0 -0
- package/wwwroot/_framework/System.Linq.Queryable.hs2195jrwy.dll +0 -0
- package/wwwroot/_framework/System.Linq.hssodjwmlf.dll +0 -0
- package/wwwroot/_framework/System.Memory.1k78n7wdxb.dll +0 -0
- package/wwwroot/_framework/System.Net.Http.3br8rfql4c.dll +0 -0
- package/wwwroot/_framework/System.Net.Http.Json.860wbh17d8.dll +0 -0
- package/wwwroot/_framework/System.Net.NetworkInformation.e3wr00853o.dll +0 -0
- package/wwwroot/_framework/System.Net.Ping.r5cw4mf1a4.dll +0 -0
- package/wwwroot/_framework/System.Net.Primitives.ksxwiwlvhu.dll +0 -0
- package/wwwroot/_framework/System.Net.WebSockets.6rt3n3gl2q.dll +0 -0
- package/wwwroot/_framework/System.Net.WebSockets.Client.z3usrzo7rz.dll +0 -0
- package/wwwroot/_framework/System.Numerics.Tensors.0c7z4mt3on.dll +0 -0
- package/wwwroot/_framework/System.Numerics.Vectors.lbdzx8reja.dll +0 -0
- package/wwwroot/_framework/System.ObjectModel.yct1gdirzf.dll +0 -0
- package/wwwroot/_framework/System.Private.CoreLib.c1dbswx1b2.dll +0 -0
- package/wwwroot/_framework/System.Private.Uri.zp9kmg0z93.dll +0 -0
- package/wwwroot/_framework/System.Private.Xml.Linq.lgv2n0akl4.dll +0 -0
- package/wwwroot/_framework/System.Private.Xml.dpsk8g304y.dll +0 -0
- package/wwwroot/_framework/System.Reactive.t3fuon548l.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.ILGeneration.1tcuz2cmbk.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.Lightweight.ddt2wylovg.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.d8vkadiwhg.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Primitives.cpsl71xd1z.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.31vjgsfk1o.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.JavaScript.pn2wvizzet.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.RuntimeInformation.l5rk496q70.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Intrinsics.0zee9qcqfy.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Loader.xw2jr9wl92.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Numerics.ezj1dfyvbj.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Serialization.Formatters.0y019e9zkr.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Serialization.Primitives.bia5wb62c8.dll +0 -0
- package/wwwroot/_framework/System.Runtime.h9cduidfkh.dll +0 -0
- package/wwwroot/_framework/System.Security.Claims.2r18wim2rl.dll +0 -0
- package/wwwroot/_framework/System.Security.Cryptography.qqgybpoucx.dll +0 -0
- package/wwwroot/_framework/System.Text.Encoding.Extensions.9t3hs6kyll.dll +0 -0
- package/wwwroot/_framework/System.Text.Encodings.Web.wftjfh2crk.dll +0 -0
- package/wwwroot/_framework/System.Text.Json.0v0qgmri0w.dll +0 -0
- package/wwwroot/_framework/System.Text.RegularExpressions.cvkox11l6l.dll +0 -0
- package/wwwroot/_framework/System.Threading.Channels.419493szqu.dll +0 -0
- package/wwwroot/_framework/System.Threading.Thread.xhmys87xh5.dll +0 -0
- package/wwwroot/_framework/System.Threading.b66vzsz9g1.dll +0 -0
- package/wwwroot/_framework/System.Transactions.Local.7zfffdvnwf.dll +0 -0
- package/wwwroot/_framework/System.Web.HttpUtility.9up6xfbtuq.dll +0 -0
- package/wwwroot/_framework/System.Xml.Linq.n5rzv9nbf7.dll +0 -0
- package/wwwroot/_framework/System.Xml.ReaderWriter.ag8pilllob.dll +0 -0
- package/wwwroot/_framework/System.Xml.XDocument.sn51jas17n.dll +0 -0
- package/wwwroot/_framework/System.brmz7yk5qh.dll +0 -0
- package/wwwroot/_framework/Websocket.Client.vapounvmnl.dll +0 -0
- package/wwwroot/_framework/blazor.boot.json +0 -305
- package/wwwroot/_framework/blazor.webassembly.js +0 -1
- package/wwwroot/_framework/dotnet.js +0 -4
- package/wwwroot/_framework/dotnet.native.boem75ye5i.wasm +0 -0
- package/wwwroot/_framework/dotnet.native.qc8g39g30v.js +0 -16
- package/wwwroot/_framework/dotnet.runtime.opaiwunc3t.js +0 -4
- package/wwwroot/_framework/icudt_CJK.tjcz0u77k5.dat +0 -0
- package/wwwroot/_framework/icudt_EFIGS.tptq2av103.dat +0 -0
- package/wwwroot/_framework/icudt_no_CJK.lfu7j35m59.dat +0 -0
- package/wwwroot/_framework/netstandard.yvr3prsx0x.dll +0 -0
- package/wwwroot/appsettings.json +0 -83
- package/wwwroot/icon-192.png +0 -0
- package/wwwroot/icon-512.png +0 -0
- package/wwwroot/js/marketing-tool.js +0 -180
- package/wwwroot/service-worker-assets.js +0 -857
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
// Minimal CSS3DRenderer setup adapted for direct script include (non-module)
|
|
2
|
-
(function(){
|
|
3
|
-
if (window.CSS3DRenderer) return;
|
|
4
|
-
|
|
5
|
-
function epsilon(value){return Math.abs(value) < 1e-10 ? 0 : value;}
|
|
6
|
-
|
|
7
|
-
class CSS3DObject extends THREE.Object3D {
|
|
8
|
-
constructor(element){
|
|
9
|
-
super();
|
|
10
|
-
this.element = element || document.createElement('div');
|
|
11
|
-
this.element.style.position = 'absolute';
|
|
12
|
-
this.element.style.pointerEvents = 'auto';
|
|
13
|
-
// Flags used by renderer checks
|
|
14
|
-
this.isCSS3DObject = true;
|
|
15
|
-
|
|
16
|
-
this.addEventListener('removed', function(){
|
|
17
|
-
this.traverse(function(object){
|
|
18
|
-
if (object.element instanceof Element && object.element.parentNode !== null){
|
|
19
|
-
object.element.parentNode.removeChild(object.element);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
class CSS3DSprite extends CSS3DObject {
|
|
27
|
-
constructor(element){
|
|
28
|
-
super(element);
|
|
29
|
-
this.isCSS3DSprite = true;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function CSS3DRenderer(){
|
|
34
|
-
var _width, _height; var _widthHalf, _heightHalf; var cache = { camera:{ fov:0, style:'', mode:'matrix3d' }, objects: new WeakMap() };
|
|
35
|
-
var domElement = document.createElement('div'); domElement.style.overflow = 'hidden'; domElement.style.contain = 'layout style'; domElement.style.willChange = 'transform'; domElement.style.webkitTransition = domElement.style.transition = 'none'; domElement.style.webkitBackfaceVisibility = domElement.style.backfaceVisibility = 'visible'; this.domElement = domElement;
|
|
36
|
-
var cameraElement = document.createElement('div'); cameraElement.style.webkitTransformStyle = cameraElement.style.transformStyle = 'preserve-3d'; cameraElement.style.pointerEvents = 'none'; cameraElement.style.webkitTransformOrigin = cameraElement.style.transformOrigin = '0 0'; cameraElement.style.contain = 'layout style'; cameraElement.style.willChange = 'transform'; cameraElement.style.webkitTransition = cameraElement.style.transition = 'none'; cameraElement.style.webkitBackfaceVisibility = cameraElement.style.backfaceVisibility = 'visible'; domElement.appendChild(cameraElement);
|
|
37
|
-
|
|
38
|
-
this.getSize = function(){ return { width:_width, height:_height }; };
|
|
39
|
-
this.getCameraElement = function(){ return cameraElement; };
|
|
40
|
-
this.setSize = function(width, height){ _width=width; _height=height; _widthHalf=_width/2; _heightHalf=_height/2; domElement.style.width=width+'px'; domElement.style.height=height+'px'; cameraElement.style.width=width+'px'; cameraElement.style.height=height+'px'; };
|
|
41
|
-
function getCameraCSSMatrix(matrix){ var e=matrix.elements; return 'matrix3d('+epsilon(e[0])+','+epsilon(-e[1])+','+epsilon(e[2])+','+epsilon(e[3])+','+epsilon(e[4])+','+epsilon(-e[5])+','+epsilon(e[6])+','+epsilon(e[7])+','+epsilon(e[8])+','+epsilon(-e[9])+','+epsilon(e[10])+','+epsilon(e[11])+','+epsilon(e[12])+','+epsilon(-e[13])+','+epsilon(e[14])+','+epsilon(e[15])+')'; }
|
|
42
|
-
function getObjectCSSMatrix(matrix){ var e=matrix.elements; var m='matrix3d('+epsilon(e[0])+','+epsilon(e[1])+','+epsilon(e[2])+','+epsilon(e[3])+','+epsilon(-e[4])+','+epsilon(-e[5])+','+epsilon(-e[6])+','+epsilon(-e[7])+','+epsilon(e[8])+','+epsilon(e[9])+','+epsilon(e[10])+','+epsilon(e[11])+','+epsilon(e[12])+','+epsilon(e[13])+','+epsilon(e[14])+','+epsilon(e[15])+')'; return m; }
|
|
43
|
-
function renderObject(object, scene, camera, cameraCSSMatrix){ if (object.isCSS3DObject){ var style=getObjectCSSMatrix(object.matrixWorld); var display=object.visible ? '' : 'none'; var element=object.element; var cached=cache.objects.get(object); if (cached===undefined || cached.style!==style){ element.style.webkitTransform=element.style.transform=style; } if (cached===undefined || cached.display!==display){ element.style.display=display; } if (cached===undefined || cached.style!==style || cached.display!==display){ cache.objects.set(object, { style, display }); } if (element.parentNode !== cameraElement){ cameraElement.appendChild(element); } } for (var i=0,l=object.children.length;i<l;i++){ renderObject(object.children[i], scene, camera, cameraCSSMatrix); } }
|
|
44
|
-
function setCameraElementMode(mode){
|
|
45
|
-
if (cache.camera.mode === mode) return;
|
|
46
|
-
cache.camera.mode = mode;
|
|
47
|
-
var style = mode === 'flat' ? 'flat' : 'preserve-3d';
|
|
48
|
-
cameraElement.style.webkitTransformStyle = cameraElement.style.transformStyle = style;
|
|
49
|
-
}
|
|
50
|
-
function renderCameraOnly(renderer, camera){ setCameraElementMode('matrix3d'); var fov=camera.projectionMatrix.elements[5]*_heightHalf; if (cache.camera.fov!==fov){ renderer.domElement.style.webkitPerspective=renderer.domElement.style.perspective=fov+'px'; cache.camera.fov=fov; } if (camera.parent===null && camera.matrixWorldNeedsUpdate===true) camera.updateMatrixWorld(); var cameraCSSMatrix='translateZ('+fov+'px)'+getCameraCSSMatrix(camera.matrixWorldInverse); var style=cameraCSSMatrix+'translate('+_widthHalf+'px,'+(-_heightHalf)+'px)'; if (cache.camera.style!==style){ cameraElement.style.webkitTransform=cameraElement.style.transform=style; cache.camera.style=style; } return cameraCSSMatrix; }
|
|
51
|
-
function renderFlatCameraOnly(renderer, camera, options){
|
|
52
|
-
if (!camera || !_width || !_height || !camera.isPerspectiveCamera) return false;
|
|
53
|
-
var position = camera.position || {};
|
|
54
|
-
var rotation = camera.rotation || {};
|
|
55
|
-
var cameraZ = Math.max(1, Number(position.z || 1));
|
|
56
|
-
var cameraX = Number(position.x || 0);
|
|
57
|
-
var cameraY = Number(position.y || 0);
|
|
58
|
-
var projectionScale = Number(camera.projectionMatrix && camera.projectionMatrix.elements ? camera.projectionMatrix.elements[5] : 0);
|
|
59
|
-
if (!Number.isFinite(cameraX) || !Number.isFinite(cameraY) || !Number.isFinite(cameraZ) || !Number.isFinite(projectionScale) || projectionScale <= 0) return false;
|
|
60
|
-
if (Math.abs(Number(rotation.x || 0)) > 1e-5 || Math.abs(Number(rotation.y || 0)) > 1e-5 || Math.abs(Number(rotation.z || 0)) > 1e-5) return false;
|
|
61
|
-
var scale = (projectionScale * _heightHalf) / cameraZ;
|
|
62
|
-
var translateX = _widthHalf - cameraX * scale;
|
|
63
|
-
// Match the runtime raycast/screen projection basis exactly. Adding a
|
|
64
|
-
// viewport-height correction here makes the DOM appear above its hit frame.
|
|
65
|
-
var translateY = _heightHalf + cameraY * scale;
|
|
66
|
-
var translateBucket = Math.max(0.001, Number(options && options.translateBucketPx || 0.25));
|
|
67
|
-
var scaleBucket = Math.max(0.000001, Number(options && options.scaleBucket || 0.0005));
|
|
68
|
-
var tx = Math.round(translateX / translateBucket) * translateBucket;
|
|
69
|
-
var ty = Math.round(translateY / translateBucket) * translateBucket;
|
|
70
|
-
var s = Math.round(scale / scaleBucket) * scaleBucket;
|
|
71
|
-
var style = 'flat|'+Math.round(_width)+'|'+Math.round(_height)+'|'+Math.round(tx / translateBucket)+'|'+Math.round(ty / translateBucket)+'|'+Math.round(s / scaleBucket);
|
|
72
|
-
setCameraElementMode('flat');
|
|
73
|
-
if (cache.camera.fov !== 0){
|
|
74
|
-
renderer.domElement.style.webkitPerspective = renderer.domElement.style.perspective = '';
|
|
75
|
-
cache.camera.fov = 0;
|
|
76
|
-
}
|
|
77
|
-
if (cache.camera.style !== style){
|
|
78
|
-
cameraElement.style.webkitTransform = cameraElement.style.transform = 'matrix('+s.toFixed(6)+',0,0,'+(-s).toFixed(6)+','+tx.toFixed(3)+','+ty.toFixed(3)+')';
|
|
79
|
-
cache.camera.style = style;
|
|
80
|
-
}
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
this.renderCamera = function(camera){ renderCameraOnly(this, camera); };
|
|
84
|
-
this.renderFlatCamera = function(camera, options){ return renderFlatCameraOnly(this, camera, options); };
|
|
85
|
-
this.renderFlat = function(scene, camera, options){ if (scene.autoUpdate===true) scene.updateMatrixWorld(); if (renderFlatCameraOnly(this, camera, options)!==true) return false; renderObject(scene, scene, camera, null); return true; };
|
|
86
|
-
this.render = function(scene, camera){ if (scene.autoUpdate===true) scene.updateMatrixWorld(); var cameraCSSMatrix=renderCameraOnly(this, camera); renderObject(scene, scene, camera, cameraCSSMatrix); };
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
window.CSS3DObject = CSS3DObject; window.CSS3DSprite = CSS3DSprite; window.CSS3DRenderer = CSS3DRenderer;
|
|
90
|
-
})();
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
// texture-worker-manager.js
|
|
2
|
-
// [NEW] Worker 풀 관리 + 텍스처 생성 API
|
|
3
|
-
(function () {
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
const WORKER_COUNT = 2; // Worker 수 (CPU 코어에 따라 조절)
|
|
7
|
-
const workers = [];
|
|
8
|
-
const pendingRequests = new Map();
|
|
9
|
-
let nextRequestId = 0;
|
|
10
|
-
let currentWorkerIndex = 0;
|
|
11
|
-
let isInitialized = false;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Worker 풀 초기화
|
|
15
|
-
*/
|
|
16
|
-
function init() {
|
|
17
|
-
if (isInitialized) return Promise.resolve();
|
|
18
|
-
|
|
19
|
-
// OffscreenCanvas 지원 확인
|
|
20
|
-
if (typeof OffscreenCanvas === 'undefined') {
|
|
21
|
-
console.warn('[TextureWorker] OffscreenCanvas not supported, using fallback');
|
|
22
|
-
return Promise.resolve();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return new Promise((resolve) => {
|
|
26
|
-
let readyCount = 0;
|
|
27
|
-
|
|
28
|
-
for (let i = 0; i < WORKER_COUNT; i++) {
|
|
29
|
-
try {
|
|
30
|
-
const worker = new Worker('_content/MindExecution.Shared/js/texture-worker.js');
|
|
31
|
-
|
|
32
|
-
worker.onmessage = (e) => {
|
|
33
|
-
const { type, requestId, bitmap, error } = e.data;
|
|
34
|
-
|
|
35
|
-
if (type === 'ready') {
|
|
36
|
-
readyCount++;
|
|
37
|
-
console.log(`[TextureWorker] Worker ${i} ready (${readyCount}/${WORKER_COUNT})`);
|
|
38
|
-
if (readyCount === WORKER_COUNT) {
|
|
39
|
-
isInitialized = true;
|
|
40
|
-
console.log('[TextureWorker] All workers ready');
|
|
41
|
-
resolve();
|
|
42
|
-
}
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const pending = pendingRequests.get(requestId);
|
|
47
|
-
if (!pending) return;
|
|
48
|
-
|
|
49
|
-
pendingRequests.delete(requestId);
|
|
50
|
-
|
|
51
|
-
if (type === 'error') {
|
|
52
|
-
pending.reject(new Error(error));
|
|
53
|
-
} else if (type === 'textureReady') {
|
|
54
|
-
pending.resolve(bitmap);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
worker.onerror = (e) => {
|
|
59
|
-
console.error(`[TextureWorker] Worker ${i} error:`, e);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
workers.push(worker);
|
|
63
|
-
} catch (e) {
|
|
64
|
-
console.error(`[TextureWorker] Failed to create worker ${i}:`, e);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// 타임아웃 (5초 후 강제 resolve)
|
|
69
|
-
setTimeout(() => {
|
|
70
|
-
if (!isInitialized) {
|
|
71
|
-
console.warn('[TextureWorker] Init timeout, some workers may not be ready');
|
|
72
|
-
isInitialized = workers.length > 0;
|
|
73
|
-
resolve();
|
|
74
|
-
}
|
|
75
|
-
}, 5000);
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Worker 지원 여부
|
|
81
|
-
*/
|
|
82
|
-
function isSupported() {
|
|
83
|
-
return typeof OffscreenCanvas !== 'undefined' && workers.length > 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Worker를 사용해 텍스처 생성 요청
|
|
88
|
-
* @returns {Promise<ImageBitmap>}
|
|
89
|
-
*/
|
|
90
|
-
async function renderTexture(nodeData, width, height, qualityScale = 1.0) {
|
|
91
|
-
if (!isInitialized) {
|
|
92
|
-
await init();
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return new Promise((resolve, reject) => {
|
|
96
|
-
if (!isSupported()) {
|
|
97
|
-
reject(new Error('Worker not supported'));
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const requestId = nextRequestId++;
|
|
102
|
-
const worker = workers[currentWorkerIndex];
|
|
103
|
-
currentWorkerIndex = (currentWorkerIndex + 1) % workers.length;
|
|
104
|
-
|
|
105
|
-
pendingRequests.set(requestId, { resolve, reject });
|
|
106
|
-
|
|
107
|
-
// 5초 타임아웃
|
|
108
|
-
const timeout = setTimeout(() => {
|
|
109
|
-
if (pendingRequests.has(requestId)) {
|
|
110
|
-
pendingRequests.delete(requestId);
|
|
111
|
-
reject(new Error('Worker timeout'));
|
|
112
|
-
}
|
|
113
|
-
}, 5000);
|
|
114
|
-
|
|
115
|
-
// 원래 resolve/reject에 타임아웃 클리어 추가
|
|
116
|
-
const originalResolve = resolve;
|
|
117
|
-
const originalReject = reject;
|
|
118
|
-
|
|
119
|
-
pendingRequests.set(requestId, {
|
|
120
|
-
resolve: (result) => {
|
|
121
|
-
clearTimeout(timeout);
|
|
122
|
-
originalResolve(result);
|
|
123
|
-
},
|
|
124
|
-
reject: (error) => {
|
|
125
|
-
clearTimeout(timeout);
|
|
126
|
-
originalReject(error);
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
// Worker에 요청 전송
|
|
131
|
-
worker.postMessage({
|
|
132
|
-
type: 'renderTexture',
|
|
133
|
-
requestId: requestId,
|
|
134
|
-
nodeData: {
|
|
135
|
-
id: nodeData.id,
|
|
136
|
-
contentType: nodeData.contentType,
|
|
137
|
-
response: nodeData.response,
|
|
138
|
-
prompt: nodeData.prompt
|
|
139
|
-
},
|
|
140
|
-
width: Math.round(width),
|
|
141
|
-
height: Math.round(height),
|
|
142
|
-
qualityScale: qualityScale
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* ImageBitmap을 THREE.CanvasTexture로 변환
|
|
149
|
-
*/
|
|
150
|
-
function bitmapToTexture(bitmap, THREE) {
|
|
151
|
-
// ImageBitmap을 Canvas에 그리기
|
|
152
|
-
const canvas = document.createElement('canvas');
|
|
153
|
-
canvas.width = bitmap.width;
|
|
154
|
-
canvas.height = bitmap.height;
|
|
155
|
-
const ctx = canvas.getContext('2d');
|
|
156
|
-
ctx.drawImage(bitmap, 0, 0);
|
|
157
|
-
bitmap.close(); // 메모리 해제
|
|
158
|
-
|
|
159
|
-
// THREE.CanvasTexture 생성
|
|
160
|
-
const texture = new THREE.CanvasTexture(canvas);
|
|
161
|
-
texture.colorSpace = THREE.SRGBColorSpace;
|
|
162
|
-
texture.generateMipmaps = true;
|
|
163
|
-
texture.minFilter = THREE.LinearMipmapLinearFilter;
|
|
164
|
-
texture.magFilter = THREE.LinearFilter;
|
|
165
|
-
|
|
166
|
-
return texture;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Worker 종료
|
|
171
|
-
*/
|
|
172
|
-
function terminate() {
|
|
173
|
-
workers.forEach(w => w.terminate());
|
|
174
|
-
workers.length = 0;
|
|
175
|
-
pendingRequests.clear();
|
|
176
|
-
isInitialized = false;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// 전역 노출
|
|
180
|
-
window.TextureWorkerManager = {
|
|
181
|
-
init,
|
|
182
|
-
isSupported,
|
|
183
|
-
renderTexture,
|
|
184
|
-
bitmapToTexture,
|
|
185
|
-
terminate
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
})();
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
// texture-worker.js
|
|
2
|
-
// [NEW] Web Worker for off-thread texture rendering
|
|
3
|
-
// 메인 스레드 블로킹 없이 텍스처 생성
|
|
4
|
-
|
|
5
|
-
// Worker 내에서 marked.js 로드
|
|
6
|
-
importScripts('marked.min.js');
|
|
7
|
-
|
|
8
|
-
// marked 설정
|
|
9
|
-
if (typeof marked !== 'undefined') {
|
|
10
|
-
marked.setOptions({
|
|
11
|
-
breaks: true,
|
|
12
|
-
gfm: true
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 마크다운을 플레인 텍스트로 변환 (간단 버전)
|
|
18
|
-
*/
|
|
19
|
-
function markdownToPlainText(markdown) {
|
|
20
|
-
if (!markdown) return '';
|
|
21
|
-
|
|
22
|
-
// HTML로 변환 후 태그 제거
|
|
23
|
-
let html = '';
|
|
24
|
-
try {
|
|
25
|
-
html = marked.parse(markdown);
|
|
26
|
-
} catch {
|
|
27
|
-
return markdown;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// HTML 태그 제거
|
|
31
|
-
let text = html
|
|
32
|
-
.replace(/<br\s*\/?>/gi, '\n')
|
|
33
|
-
.replace(/<\/p>/gi, '\n\n')
|
|
34
|
-
.replace(/<\/li>/gi, '\n')
|
|
35
|
-
.replace(/<[^>]+>/g, '')
|
|
36
|
-
.replace(/ /g, ' ')
|
|
37
|
-
.replace(/&/g, '&')
|
|
38
|
-
.replace(/</g, '<')
|
|
39
|
-
.replace(/>/g, '>')
|
|
40
|
-
.replace(/"/g, '"')
|
|
41
|
-
.replace(/'/g, "'")
|
|
42
|
-
.replace(/\n{3,}/g, '\n\n')
|
|
43
|
-
.trim();
|
|
44
|
-
|
|
45
|
-
return text;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 텍스트를 줄 단위로 분할 (word wrap)
|
|
50
|
-
*/
|
|
51
|
-
function wrapText(ctx, text, maxWidth) {
|
|
52
|
-
const lines = [];
|
|
53
|
-
const paragraphs = text.split('\n');
|
|
54
|
-
|
|
55
|
-
for (const paragraph of paragraphs) {
|
|
56
|
-
if (paragraph.trim() === '') {
|
|
57
|
-
lines.push('');
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const words = paragraph.split(' ');
|
|
62
|
-
let currentLine = '';
|
|
63
|
-
|
|
64
|
-
for (const word of words) {
|
|
65
|
-
const testLine = currentLine ? `${currentLine} ${word}` : word;
|
|
66
|
-
const metrics = ctx.measureText(testLine);
|
|
67
|
-
|
|
68
|
-
if (metrics.width > maxWidth && currentLine) {
|
|
69
|
-
lines.push(currentLine);
|
|
70
|
-
currentLine = word;
|
|
71
|
-
} else {
|
|
72
|
-
currentLine = testLine;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (currentLine) {
|
|
77
|
-
lines.push(currentLine);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return lines;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* 노드 배경 그리기
|
|
86
|
-
*/
|
|
87
|
-
function drawBackground(ctx, width, height, isSelected) {
|
|
88
|
-
const radius = 20;
|
|
89
|
-
const borderWidth = isSelected ? 4 : 2;
|
|
90
|
-
const borderColor = isSelected ? '#2563eb' : '#d1d5db';
|
|
91
|
-
const bgColor = '#ffffff';
|
|
92
|
-
|
|
93
|
-
// 배경
|
|
94
|
-
ctx.fillStyle = bgColor;
|
|
95
|
-
ctx.beginPath();
|
|
96
|
-
ctx.roundRect(borderWidth, borderWidth, width - borderWidth * 2, height - borderWidth * 2, radius);
|
|
97
|
-
ctx.fill();
|
|
98
|
-
|
|
99
|
-
// 테두리
|
|
100
|
-
ctx.strokeStyle = borderColor;
|
|
101
|
-
ctx.lineWidth = borderWidth;
|
|
102
|
-
ctx.stroke();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 텍스트 노드 렌더링
|
|
107
|
-
*/
|
|
108
|
-
function renderTextNode(canvas, nodeData, qualityScale) {
|
|
109
|
-
const ctx = canvas.getContext('2d');
|
|
110
|
-
|
|
111
|
-
// ★ 핵심: ctx.scale로 좌표계 축소 (기존 메인 스레드 방식과 동일)
|
|
112
|
-
// 캔버스는 작지만 원본 좌표로 그리면 알아서 축소됨
|
|
113
|
-
ctx.scale(qualityScale, qualityScale);
|
|
114
|
-
|
|
115
|
-
// 원본 크기 기준으로 계산 (scale 적용되어 실제론 작아짐)
|
|
116
|
-
const width = canvas.width / qualityScale;
|
|
117
|
-
const height = canvas.height / qualityScale;
|
|
118
|
-
|
|
119
|
-
// 배경 그리기 (원본 크기 좌표)
|
|
120
|
-
ctx.fillStyle = '#ffffff';
|
|
121
|
-
ctx.fillRect(0, 0, width, height);
|
|
122
|
-
drawBackground(ctx, width, height, false);
|
|
123
|
-
|
|
124
|
-
// 텍스트 설정 (원본 크기)
|
|
125
|
-
const zoomLevel = 2;
|
|
126
|
-
const fontSize = 14 * zoomLevel;
|
|
127
|
-
const lineHeight = fontSize * 1.5;
|
|
128
|
-
const padding = 16 * zoomLevel;
|
|
129
|
-
const textColor = '#1f2937';
|
|
130
|
-
|
|
131
|
-
ctx.font = `${fontSize}px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
|
|
132
|
-
ctx.fillStyle = textColor;
|
|
133
|
-
ctx.textBaseline = 'top';
|
|
134
|
-
|
|
135
|
-
// 마크다운 → 플레인 텍스트
|
|
136
|
-
const content = nodeData.response || nodeData.prompt || '';
|
|
137
|
-
const plainText = markdownToPlainText(content);
|
|
138
|
-
|
|
139
|
-
// 줄 바꿈 처리
|
|
140
|
-
const maxTextWidth = width - padding * 2;
|
|
141
|
-
const lines = wrapText(ctx, plainText, maxTextWidth);
|
|
142
|
-
|
|
143
|
-
// 텍스트 그리기
|
|
144
|
-
let y = padding;
|
|
145
|
-
const maxY = height - padding;
|
|
146
|
-
|
|
147
|
-
for (const line of lines) {
|
|
148
|
-
if (y + lineHeight > maxY) {
|
|
149
|
-
// 하단 페이드아웃
|
|
150
|
-
const gradient = ctx.createLinearGradient(0, height - 50, 0, height);
|
|
151
|
-
gradient.addColorStop(0, 'rgba(255,255,255,0)');
|
|
152
|
-
gradient.addColorStop(1, 'rgba(255,255,255,1)');
|
|
153
|
-
ctx.fillStyle = gradient;
|
|
154
|
-
ctx.fillRect(0, height - 50, width, 50);
|
|
155
|
-
break;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
ctx.fillStyle = textColor;
|
|
159
|
-
ctx.fillText(line, padding, y);
|
|
160
|
-
y += lineHeight;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* 메시지 핸들러
|
|
166
|
-
*/
|
|
167
|
-
self.onmessage = async function (e) {
|
|
168
|
-
const { type, nodeData, width, height, qualityScale, requestId } = e.data;
|
|
169
|
-
|
|
170
|
-
if (type !== 'renderTexture') {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
try {
|
|
175
|
-
// ★ qualityScale 적용하여 작은 캔버스 생성 (메모리 절약)
|
|
176
|
-
// width, height: 원본 크기 (styleW, styleH)
|
|
177
|
-
// 실제 캔버스: width * qualityScale, height * qualityScale
|
|
178
|
-
const renderWidth = Math.round(width * qualityScale);
|
|
179
|
-
const renderHeight = Math.round(height * qualityScale);
|
|
180
|
-
|
|
181
|
-
const canvas = new OffscreenCanvas(renderWidth, renderHeight);
|
|
182
|
-
|
|
183
|
-
// renderTextNode는 캔버스 크기 기준으로 렌더링
|
|
184
|
-
renderTextNode(canvas, nodeData, qualityScale);
|
|
185
|
-
|
|
186
|
-
// ImageBitmap으로 변환 (복사 없이 전달)
|
|
187
|
-
const bitmap = canvas.transferToImageBitmap();
|
|
188
|
-
|
|
189
|
-
// 결과 전송
|
|
190
|
-
self.postMessage({
|
|
191
|
-
type: 'textureReady',
|
|
192
|
-
requestId: requestId,
|
|
193
|
-
bitmap: bitmap,
|
|
194
|
-
width: width,
|
|
195
|
-
height: height
|
|
196
|
-
}, [bitmap]); // Transferable로 전달
|
|
197
|
-
|
|
198
|
-
} catch (error) {
|
|
199
|
-
self.postMessage({
|
|
200
|
-
type: 'error',
|
|
201
|
-
requestId: requestId,
|
|
202
|
-
error: error.message
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
// Worker 준비 완료 알림
|
|
208
|
-
self.postMessage({ type: 'ready' });
|