@mindexec/cli 0.2.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 +275 -0
- package/codex-runtime.js +960 -0
- package/launch-bridge.cjs +162 -0
- package/package.json +61 -0
- package/port-guard.cjs +232 -0
- package/scripts/setup-tree-sitter-grammars.mjs +59 -0
- package/server.js +8422 -0
- package/start-bridge.bat +32 -0
- package/start-bridge.sh +81 -0
- package/tree-sitter-grammars/README.md +18 -0
- package/tree-sitter-grammars/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-go.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-java.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-javascript.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-python.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-rust.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-tsx.wasm +0 -0
- package/tree-sitter-grammars/tree-sitter-typescript.wasm +0 -0
- package/wwwroot/MindExecution.Web.styles.css +3 -0
- package/wwwroot/_content/MindExecution.Plugins.Admin/css/admin-dashboard.css +546 -0
- package/wwwroot/_content/MindExecution.Plugins.Directory/MindExecution.Plugins.Directory.u7utcng611.bundle.scp.css +7 -0
- package/wwwroot/_content/MindExecution.Plugins.Directory/background.png +0 -0
- package/wwwroot/_content/MindExecution.Plugins.Directory/directory-manager.js +202 -0
- package/wwwroot/_content/MindExecution.Plugins.Directory/exampleJsInterop.js +6 -0
- package/wwwroot/_content/MindExecution.Plugins.YouTube/css/youtube-search.css +251 -0
- package/wwwroot/_content/MindExecution.Shared/MindExecution.Shared.wsano1j4wp.bundle.scp.css +4 -0
- package/wwwroot/_content/MindExecution.Shared/css/admin-dashboard.css +559 -0
- package/wwwroot/_content/MindExecution.Shared/css/app.css +1 -0
- package/wwwroot/_content/MindExecution.Shared/css/mind-map-overrides.css +2936 -0
- 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 +359 -0
- package/wwwroot/_content/MindExecution.Shared/js/background-themes.js +1721 -0
- package/wwwroot/_content/MindExecution.Shared/js/code-master.js +8316 -0
- package/wwwroot/_content/MindExecution.Shared/js/file-system-helper.js +639 -0
- package/wwwroot/_content/MindExecution.Shared/js/helpers/InfiniteGridHelper.js +109 -0
- package/wwwroot/_content/MindExecution.Shared/js/marked.min.js +69 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js +7982 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js.backup +1059 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-css3d-manager.js +15803 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dev-guards.js +325 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js +1430 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-dnd.js.bak +434 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-glow-shader.js +260 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-interactions.js +7640 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-plan-worker.js +160 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-lod-renderer.js +9923 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-logic-workers.js +977 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-menu-manager.js +1431 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-multi-select.js +1716 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-node-search-worker.js +553 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-nodes.js +4541 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js +489 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-object-manager.js.backup +372 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-pipeline.js +2075 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-lod-system.js +646 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-text-overlay-v2.js +4323 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js +2260 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-texture-factory.js.backup +1258 -0
- package/wwwroot/_content/MindExecution.Shared/js/mind-map-visibility-worker.js +890 -0
- package/wwwroot/_content/MindExecution.Shared/js/mindmap-toolbar.js +594 -0
- package/wwwroot/_content/MindExecution.Shared/js/native-drop-handler.js +170 -0
- package/wwwroot/_content/MindExecution.Shared/js/plan-master.js +788 -0
- package/wwwroot/_content/MindExecution.Shared/js/renderers/CSS3DRenderer.js +50 -0
- package/wwwroot/_content/MindExecution.Shared/js/texture-worker-manager.js +188 -0
- package/wwwroot/_content/MindExecution.Shared/js/texture-worker.js +208 -0
- package/wwwroot/_content/MindExecution.Shared/js/three.min.js +6 -0
- package/wwwroot/_content/MindExecution.Shared/js/titlebar-handler.js +191 -0
- package/wwwroot/_content/MindExecution.Shared/js/token-manager.js +37 -0
- package/wwwroot/_content/MindExecution.Shared/js/token-worker.js +28 -0
- package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js +5626 -0
- package/wwwroot/_content/MindExecution.Shared/js/troika-bundle.js.map +7 -0
- package/wwwroot/_content/MindExecution.Shared/lib/font-awesome/css/all.min.css +9 -0
- 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 +30522 -0
- 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.qrvp77qmhs.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.17lq4j1j7g.dll +0 -0
- package/wwwroot/_framework/Microsoft.JSInterop.WebAssembly.ryia5gxiad.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.1q1trifbuu.dll +0 -0
- package/wwwroot/_framework/MindExecution.Kernel.gwwc40sc45.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Admin.0jgrn1sckv.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Business.13mme2qcag.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Concept.dfp2mdt45q.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.Directory.3w4t6n3se0.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.PlanMaster.s0qpntz420.dll +0 -0
- package/wwwroot/_framework/MindExecution.Plugins.YouTube.iu11fq8d16.dll +0 -0
- package/wwwroot/_framework/MindExecution.Shared.7j27dcqnrc.dll +0 -0
- package/wwwroot/_framework/MindExecution.Web.pq1ty8ov2v.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.Concurrent.y1zmvuyipi.dll +0 -0
- package/wwwroot/_framework/System.Collections.Immutable.ug3j698qms.dll +0 -0
- package/wwwroot/_framework/System.Collections.NonGeneric.h66hj3863h.dll +0 -0
- package/wwwroot/_framework/System.Collections.Specialized.umr3y27ntj.dll +0 -0
- package/wwwroot/_framework/System.Collections.x53e19vfsj.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.Annotations.tz6gnt4ebt.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.Primitives.j7tiphu4rg.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.TypeConverter.ujlztox1gx.dll +0 -0
- package/wwwroot/_framework/System.ComponentModel.x9xz0ojfb6.dll +0 -0
- package/wwwroot/_framework/System.Console.ijzpqmj7ne.dll +0 -0
- package/wwwroot/_framework/System.Data.Common.1r0sqffq1p.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.DiagnosticSource.9upoqwq09o.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.Process.m99azzntjm.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.TraceSource.pl7wv26myr.dll +0 -0
- package/wwwroot/_framework/System.Diagnostics.Tracing.crlhfx6tut.dll +0 -0
- package/wwwroot/_framework/System.Drawing.Primitives.22e4y9ikq9.dll +0 -0
- package/wwwroot/_framework/System.Drawing.mi7d8hwowb.dll +0 -0
- package/wwwroot/_framework/System.Formats.Asn1.jx23sjiqnn.dll +0 -0
- package/wwwroot/_framework/System.IO.Compression.6fyoii3uej.dll +0 -0
- package/wwwroot/_framework/System.IO.Pipelines.vg77t4cd4d.dll +0 -0
- package/wwwroot/_framework/System.IdentityModel.Tokens.Jwt.t67es60z5b.dll +0 -0
- package/wwwroot/_framework/System.Linq.1bkoxlqgmq.dll +0 -0
- package/wwwroot/_framework/System.Linq.Expressions.24xqiypwdt.dll +0 -0
- package/wwwroot/_framework/System.Linq.Queryable.hvd01d6rsa.dll +0 -0
- package/wwwroot/_framework/System.Memory.8dx3lwgym4.dll +0 -0
- package/wwwroot/_framework/System.Net.Http.Json.3mhdm9l1rf.dll +0 -0
- package/wwwroot/_framework/System.Net.Http.eitrz660my.dll +0 -0
- package/wwwroot/_framework/System.Net.NetworkInformation.3pkuofcv9r.dll +0 -0
- package/wwwroot/_framework/System.Net.Ping.8clj5pklrp.dll +0 -0
- package/wwwroot/_framework/System.Net.Primitives.qrp4wcjz1p.dll +0 -0
- package/wwwroot/_framework/System.Net.WebSockets.Client.2u6pv01g69.dll +0 -0
- package/wwwroot/_framework/System.Net.WebSockets.qp6u31zvm5.dll +0 -0
- package/wwwroot/_framework/System.Numerics.Tensors.0c7z4mt3on.dll +0 -0
- package/wwwroot/_framework/System.Numerics.Vectors.kc7ufp2j4l.dll +0 -0
- package/wwwroot/_framework/System.ObjectModel.qv82fot1ib.dll +0 -0
- package/wwwroot/_framework/System.Private.CoreLib.rkafq04oma.dll +0 -0
- package/wwwroot/_framework/System.Private.Uri.t9542hmr6j.dll +0 -0
- package/wwwroot/_framework/System.Private.Xml.Linq.n8n3ptrbwu.dll +0 -0
- package/wwwroot/_framework/System.Private.Xml.rxd3tytisn.dll +0 -0
- package/wwwroot/_framework/System.Reactive.t3fuon548l.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.9tjhp6y0j3.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.ILGeneration.stxyk8zoo1.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Emit.Lightweight.6xrd5v8vg0.dll +0 -0
- package/wwwroot/_framework/System.Reflection.Primitives.wgn8fpwwvv.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.JavaScript.sliym526xh.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.RuntimeInformation.oji7zut14z.dll +0 -0
- package/wwwroot/_framework/System.Runtime.InteropServices.te07xr2we9.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Intrinsics.507y4h8nzq.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Loader.v7gk4bse0k.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Numerics.eqy5xjv3nd.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Serialization.Formatters.zpkrub8lab.dll +0 -0
- package/wwwroot/_framework/System.Runtime.Serialization.Primitives.vhkpnbxjip.dll +0 -0
- package/wwwroot/_framework/System.Runtime.jn319d5nyg.dll +0 -0
- package/wwwroot/_framework/System.Security.Claims.0ztig1q9vo.dll +0 -0
- package/wwwroot/_framework/System.Security.Cryptography.vttizqc9ho.dll +0 -0
- package/wwwroot/_framework/System.Text.Encoding.Extensions.utdd47ny8f.dll +0 -0
- package/wwwroot/_framework/System.Text.Encodings.Web.wah8r1zoe0.dll +0 -0
- package/wwwroot/_framework/System.Text.Json.kxlfxj0wrs.dll +0 -0
- package/wwwroot/_framework/System.Text.RegularExpressions.dbqn58klox.dll +0 -0
- package/wwwroot/_framework/System.Threading.42ao9vi047.dll +0 -0
- package/wwwroot/_framework/System.Threading.Channels.hfa7j0uv2w.dll +0 -0
- package/wwwroot/_framework/System.Threading.Thread.caul0pdqul.dll +0 -0
- package/wwwroot/_framework/System.Transactions.Local.fimi2hamzo.dll +0 -0
- package/wwwroot/_framework/System.Web.HttpUtility.gq8yz50p2e.dll +0 -0
- package/wwwroot/_framework/System.Xml.Linq.kitin4zjoj.dll +0 -0
- package/wwwroot/_framework/System.Xml.ReaderWriter.kzvw3qgxb0.dll +0 -0
- package/wwwroot/_framework/System.Xml.XDocument.c539ki6cuq.dll +0 -0
- package/wwwroot/_framework/System.m05i39uvk9.dll +0 -0
- package/wwwroot/_framework/Websocket.Client.vapounvmnl.dll +0 -0
- package/wwwroot/_framework/blazor.boot.json +305 -0
- package/wwwroot/_framework/blazor.webassembly.js +1 -0
- package/wwwroot/_framework/dotnet.js +4 -0
- package/wwwroot/_framework/dotnet.native.vz0adxojrz.wasm +0 -0
- package/wwwroot/_framework/dotnet.native.xsn1d6x2kd.js +16 -0
- package/wwwroot/_framework/dotnet.runtime.dstopyvqzi.js +4 -0
- 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.0xet7jg7ky.dll +0 -0
- package/wwwroot/_headers +40 -0
- package/wwwroot/_redirects +1 -0
- package/wwwroot/appsettings.json +71 -0
- package/wwwroot/icon-192.png +0 -0
- package/wwwroot/icon-512.png +0 -0
- package/wwwroot/index.html +710 -0
- package/wwwroot/js/marketing-tool.js +180 -0
- package/wwwroot/manifest.webmanifest +22 -0
- package/wwwroot/robots.txt +4 -0
- package/wwwroot/service-worker-assets.js +857 -0
- package/wwwroot/service-worker.js +33 -0
- package/wwwroot/sitemap.xml +27 -0
package/README.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# MindExec Local Bridge Server
|
|
2
|
+
|
|
3
|
+
??Blazor ?깆뿉??濡쒖뺄 ?뚯씪 ?쒖뒪?쒖뿉 ?묎렐?섍린 ?꾪븳 Node.js 釉뚮━吏 ?쒕쾭?낅땲??
|
|
4
|
+
|
|
5
|
+
## npm quick start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx @mindexec/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The npm CLI now starts both pieces of the local product:
|
|
12
|
+
|
|
13
|
+
- MindCanvas app: `http://localhost:5147/mindcanvas`
|
|
14
|
+
- LocalBridge API: `http://127.0.0.1:5147/api/status`
|
|
15
|
+
- Workspace assets: `http://127.0.0.1:5147/assets/...`
|
|
16
|
+
|
|
17
|
+
By default the CLI opens the MindCanvas app in your default browser after the
|
|
18
|
+
bridge is ready. Use `mindexec --no-open` or `MINDEXEC_NO_OPEN=1` when you only
|
|
19
|
+
want to start the listener.
|
|
20
|
+
|
|
21
|
+
For local frontend development, keep LocalBridge running and refresh the
|
|
22
|
+
packaged app bundle after code changes:
|
|
23
|
+
|
|
24
|
+
```powershell
|
|
25
|
+
.\scripts\publish-mindexec-cli.ps1 -AppOnly
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Then hard-refresh `http://localhost:5147/mindcanvas` in the browser.
|
|
29
|
+
|
|
30
|
+
The app and bridge are packaged together. Run `scripts/publish-mindexec-cli.ps1`
|
|
31
|
+
from the repository root before publishing so the latest
|
|
32
|
+
`MindExecution.Web` WASM `wwwroot` is copied into `LocalBridge/wwwroot`.
|
|
33
|
+
The packaged app is configured with `Bridge:Url=app-origin`, so custom
|
|
34
|
+
`BRIDGE_PORT` values keep the WASM app and LocalBridge API on the same origin.
|
|
35
|
+
The publish helper trims hosted/demo-only gallery images and unused
|
|
36
|
+
precompressed static files from the npm bundle by default. Use
|
|
37
|
+
`-KeepPackagedGalleryImages` or `-KeepPackagedPrecompressedAssets` only when
|
|
38
|
+
testing a full untrimmed local package.
|
|
39
|
+
|
|
40
|
+
?먮뒗 ?꾩뿭 ?ㅼ튂 ???ㅽ뻾?⑸땲??
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install -g @mindexec/cli
|
|
44
|
+
mindexec
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
湲곕낯 ?ㅽ뻾 二쇱냼??`http://127.0.0.1:5147`?낅땲?? `WORKSPACE_PATH`媛 鍮꾩뼱 ?덉쑝硫??ㅼ튂???⑦궎吏??遺紐??대뜑瑜?湲곕낯 ?묒뾽 怨듦컙?쇰줈 ?ъ슜?⑸땲??
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
BRIDGE_PORT=8080 WORKSPACE_PATH=/custom/path mindexec
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
?꾩?留먭낵 踰꾩쟾 ?뺤씤:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
mindexec --help
|
|
57
|
+
mindexec --version
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## ?ㅼ튂
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
cd LocalBridge
|
|
64
|
+
npm install
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## ?ㅽ뻾
|
|
68
|
+
|
|
69
|
+
### ?쇰컲 ?ㅽ뻾
|
|
70
|
+
```bash
|
|
71
|
+
cd LocalBridge
|
|
72
|
+
npm start
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`npm start`??`WORKSPACE_PATH`媛 鍮꾩뼱 ?덉쑝硫?`LocalBridge`??遺紐??대뜑(蹂댄넻 ??μ냼 猷⑦듃)瑜?湲곕낯 ?묒뾽 怨듦컙?쇰줈 ?ъ슜?⑸땲??
|
|
76
|
+
|
|
77
|
+
### macOS / Linux?먯꽌 ?명븯寃??ㅽ뻾
|
|
78
|
+
```bash
|
|
79
|
+
cd LocalBridge
|
|
80
|
+
chmod +x start-bridge.sh
|
|
81
|
+
./start-bridge.sh
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`start-bridge.sh`???ㅼ쓬???먮룞?쇰줈 泥섎━?⑸땲??
|
|
85
|
+
- `WORKSPACE_PATH`媛 ?놁쑝硫???μ냼 猷⑦듃瑜??묒뾽 怨듦컙?쇰줈 ?ъ슜
|
|
86
|
+
- `BRIDGE_PORT`媛 ?놁쑝硫?`5147` ?ъ슜
|
|
87
|
+
- 媛숈? ?ы듃???대? 釉뚮━吏媛 ???덉쑝硫?以묐났 ?ㅽ뻾 諛⑹?
|
|
88
|
+
- ?ㅻⅨ OS?먯꽌 蹂듭궗????`node_modules`媛 媛먯??섎㈃ ?꾩옱 ?뚮옯?쇱슜?쇰줈 ?ㅼ떆 `npm install`
|
|
89
|
+
|
|
90
|
+
### 媛쒕컻 紐⑤뱶 (?먮룞 ?ъ떆??
|
|
91
|
+
```bash
|
|
92
|
+
npm run dev
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### ?섍꼍 蹂??
|
|
96
|
+
|
|
97
|
+
| 蹂??| ?ㅻ챸 | 湲곕낯媛?|
|
|
98
|
+
|------|------|--------|
|
|
99
|
+
| `BRIDGE_PORT` | ?쒕쾭 ?ы듃 | 5147 |
|
|
100
|
+
| `WORKSPACE_PATH` | ?묒뾽 怨듦컙 寃쎈줈 | `LocalBridge` ?먮뒗 ?ㅼ튂 ?⑦궎吏??遺紐??대뜑 (?놁쑝硫?`~/Documents/MindExecution`) |
|
|
101
|
+
| `BRIDGE_TOKEN` | ?꾪뿕 REST API???ъ슜??怨좎젙 ?좏겙. 鍮꾩슦硫??ㅽ뻾 ???쒕뜡 ?앹꽦 | ?쒕뜡 |
|
|
102
|
+
| `BRIDGE_REQUIRE_TOKEN` | `false`/`0`/`off`濡??ㅼ젙?섎㈃ REST ?좏겙 寃??鍮꾪솢?깊솕 | true |
|
|
103
|
+
| `COMPANY_CORE_URL` | CompanyCore 濡쒖뺄 API 二쇱냼. `/api/company-core/*` ?꾨줉?????| http://127.0.0.1:5077 |
|
|
104
|
+
| `BRIDGE_SKIP_PORT_REAP` | ?쒖옉 ???숈씪 ?ы듃??湲곗〈 MindExec bridge ?뺣━瑜?嫄대꼫?? | false |
|
|
105
|
+
| `BRIDGE_FORCE_KILL_PORT_OWNER` | `BRIDGE_PORT`瑜??≪쓣 ?꾩쓽 ?꾨줈?몄뒪瑜??뺣━ | false |
|
|
106
|
+
|
|
107
|
+
?덉떆:
|
|
108
|
+
```bash
|
|
109
|
+
BRIDGE_PORT=8080 WORKSPACE_PATH=/custom/path npm start
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
macOS / Linux?먯꽌 ?ㅽ겕由쏀듃? ?④퍡 ?ㅽ뻾???뚮룄 ?숈씪?⑸땲??
|
|
113
|
+
```bash
|
|
114
|
+
BRIDGE_PORT=8080 WORKSPACE_PATH=/custom/path ./start-bridge.sh
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## API ?붾뱶?ъ씤??
|
|
118
|
+
|
|
119
|
+
### ?곹깭 ?뺤씤
|
|
120
|
+
- `GET /api/status` - ?쒕쾭 ?곹깭 ?뺤씤, `/events`??`wsToken`怨??꾪뿕 REST API??`bridgeToken` 諛섑솚
|
|
121
|
+
|
|
122
|
+
### ?묒뾽 怨듦컙
|
|
123
|
+
- `GET /api/workspace` - ?꾩옱 ?묒뾽 怨듦컙 ?뺣낫
|
|
124
|
+
- `POST /api/workspace/set` - ?묒뾽 怨듦컙 寃쎈줈 ?ㅼ젙
|
|
125
|
+
|
|
126
|
+
### ?뚯씪 ?묒뾽
|
|
127
|
+
- `POST /api/file/read` - ?뚯씪 ?쎄린
|
|
128
|
+
- `POST /api/file/write` - ?뚯씪 ?곌린
|
|
129
|
+
- `POST /api/file/delete` - ?뚯씪 ??젣
|
|
130
|
+
- `POST /api/file/exists` - ?뚯씪 議댁옱 ?뺤씤
|
|
131
|
+
- `POST /api/file/copy` - ?뚯씪 蹂듭궗
|
|
132
|
+
- `POST /api/file/move` - ?뚯씪 ?대룞/?대쫫 蹂寃?
|
|
133
|
+
- `POST /api/file/info` - ?뚯씪 ?뺣낫
|
|
134
|
+
|
|
135
|
+
### ?붾젆?좊━ ?묒뾽
|
|
136
|
+
- `POST /api/dir/create` - ?붾젆?좊━ ?앹꽦
|
|
137
|
+
- `POST /api/dir/list` - ?붾젆?좊━ 紐⑸줉
|
|
138
|
+
- `POST /api/dir/delete` - ?붾젆?좊━ ??젣
|
|
139
|
+
|
|
140
|
+
### ???ㅽ뻾
|
|
141
|
+
- `POST /api/shell/execute` - ??紐낅졊 ?ㅽ뻾. 湲곗〈 ?명솚?⑹씠硫??대??곸쑝濡?job ?대깽?몃? `/events`濡??꾩넚
|
|
142
|
+
- `POST /api/shell/jobs` - ??紐낅졊??諛깃렇?쇱슫??job?쇰줈 ?쒖옉?섍퀬 `jobId` 諛섑솚
|
|
143
|
+
- `GET /api/shell/jobs/:jobId` - job ?곹깭/異쒕젰 議고쉶
|
|
144
|
+
- `POST /api/shell/jobs/:jobId/cancel` - ?ㅽ뻾 以묒씤 job 痍⑥냼
|
|
145
|
+
|
|
146
|
+
### ?대깽???ㅽ듃由?- `WebSocket /events?token=<wsToken>` - ?꾨줈?앺듃 蹂寃쎄낵 shell/Codex job ?대깽?몃? push
|
|
147
|
+
|
|
148
|
+
Shell/Codex job ?대깽??
|
|
149
|
+
- `ShellQueued`
|
|
150
|
+
- `ShellStarted`
|
|
151
|
+
- `ShellStdout`
|
|
152
|
+
- `ShellStderr`
|
|
153
|
+
- `ShellCompleted`
|
|
154
|
+
- `ShellFailed`
|
|
155
|
+
- `ShellCancelRequested`
|
|
156
|
+
|
|
157
|
+
### OpenAI Codex runtime
|
|
158
|
+
- `GET /api/codex/capabilities` - TypeScript SDK / App Server scaffold / Legacy Exec provider availability
|
|
159
|
+
- `POST /api/codex/thread/start` - start a local Codex thread
|
|
160
|
+
- `POST /api/codex/thread/run` - run a Codex turn. Uses `@openai/codex-sdk` first and falls back to legacy `codex exec`
|
|
161
|
+
- `POST /api/codex/thread/resume` - resume a stored SDK thread by id
|
|
162
|
+
- `POST /api/codex/thread/cancel` - cancel an active turn
|
|
163
|
+
- `GET /api/codex/thread/:threadId/status` - inspect local thread status and compact run metadata
|
|
164
|
+
|
|
165
|
+
The TypeScript SDK runs only inside LocalBridge. Browser/WASM clients should call these bridge endpoints and must not import or execute Codex SDK packages directly.
|
|
166
|
+
|
|
167
|
+
### Port ownership
|
|
168
|
+
|
|
169
|
+
On startup, LocalBridge checks `BRIDGE_PORT` and stops an existing MindExec/LocalBridge listener on that same port before binding. If the port is owned by an unrelated process, startup fails with a clear message instead of silently killing it. Set `BRIDGE_FORCE_KILL_PORT_OWNER=1` only when the launcher owns that port policy and should terminate any listener.
|
|
170
|
+
|
|
171
|
+
The `start-bridge.bat` and `start-bridge.sh` wrappers always delegate startup to `launch-bridge.cjs`, so port cleanup is handled by the same guard path on every launch.
|
|
172
|
+
### CompanyCore ?꾨줉??- `GET /api/company-core/health` -> `CompanyCore /health`
|
|
173
|
+
- `GET /api/company-core/companies` -> `CompanyCore /api/companies`
|
|
174
|
+
- `POST /api/company-core/companies/create-and-run` -> `CompanyCore /api/companies/create-and-run`
|
|
175
|
+
|
|
176
|
+
MindExec Web? CompanyCore ?ы듃瑜?吏곸젒 ???꾩슂 ?놁씠 LocalBridge `5147`留??몄텧?섎㈃ ?⑸땲?? ???꾨줉?쒕룄 Bridge Token 蹂댄샇瑜?諛쏆뒿?덈떎.
|
|
177
|
+
|
|
178
|
+
## 蹂댁븞 二쇱쓽?ы빆
|
|
179
|
+
|
|
180
|
+
- ???쒕쾭??**濡쒖뺄?몄뒪??127.0.0.1)?먯꽌留?* ?묎렐 媛?ν빀?덈떎.
|
|
181
|
+
- ?묒뾽 怨듦컙 ?몃????뚯씪?먮뒗 ?묎렐?????놁뒿?덈떎.
|
|
182
|
+
- ?꾪뿕????紐낅졊(rm -rf, format ??? 李⑤떒?⑸땲??
|
|
183
|
+
- ?뚯씪 ?곌린/??젣, ?붾젆?좊━ ?앹꽦/??젣, asset ?낅줈?? shell, project open/close 媛숈? ?꾪뿕 REST API??湲곕낯?곸쑝濡?`X-Bridge-Token` ?먮뒗 `Authorization: Bearer <token>`???꾩슂?⑸땲??
|
|
184
|
+
- ?좏겙? `GET /api/status`??`bridgeToken`?쇰줈 ?뺤씤?⑸땲?? 怨좎젙 ?좏겙???꾩슂?섎㈃ `BRIDGE_TOKEN` ?섍꼍 蹂?섎? ?ъ슜?섏꽭??
|
|
185
|
+
|
|
186
|
+
## ?ъ슜 ?덉떆
|
|
187
|
+
|
|
188
|
+
### ?뚯씪 ?쎄린
|
|
189
|
+
```javascript
|
|
190
|
+
const response = await fetch('http://127.0.0.1:5147/api/file/read', {
|
|
191
|
+
method: 'POST',
|
|
192
|
+
headers: { 'Content-Type': 'application/json' },
|
|
193
|
+
body: JSON.stringify({ path: 'test.txt' })
|
|
194
|
+
});
|
|
195
|
+
const data = await response.json();
|
|
196
|
+
console.log(data.content);
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### ?뚯씪 ?곌린
|
|
200
|
+
```javascript
|
|
201
|
+
const status = await fetch('http://127.0.0.1:5147/api/status').then(r => r.json());
|
|
202
|
+
|
|
203
|
+
await fetch('http://127.0.0.1:5147/api/file/write', {
|
|
204
|
+
method: 'POST',
|
|
205
|
+
headers: {
|
|
206
|
+
'Content-Type': 'application/json',
|
|
207
|
+
[status.bridgeTokenHeader || 'X-Bridge-Token']: status.bridgeToken
|
|
208
|
+
},
|
|
209
|
+
body: JSON.stringify({
|
|
210
|
+
path: 'test.txt',
|
|
211
|
+
content: 'Hello, World!'
|
|
212
|
+
})
|
|
213
|
+
});
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### ??紐낅졊 ?ㅽ뻾
|
|
217
|
+
```javascript
|
|
218
|
+
const status = await fetch('http://127.0.0.1:5147/api/status').then(r => r.json());
|
|
219
|
+
|
|
220
|
+
const response = await fetch('http://127.0.0.1:5147/api/shell/execute', {
|
|
221
|
+
method: 'POST',
|
|
222
|
+
headers: {
|
|
223
|
+
'Content-Type': 'application/json',
|
|
224
|
+
[status.bridgeTokenHeader || 'X-Bridge-Token']: status.bridgeToken
|
|
225
|
+
},
|
|
226
|
+
body: JSON.stringify({
|
|
227
|
+
command: 'dir',
|
|
228
|
+
timeout: 30000
|
|
229
|
+
})
|
|
230
|
+
});
|
|
231
|
+
const result = await response.json();
|
|
232
|
+
console.log(result.stdout);
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### ??job ?ㅽ듃由щ컢
|
|
236
|
+
```javascript
|
|
237
|
+
const status = await fetch('http://127.0.0.1:5147/api/status').then(r => r.json());
|
|
238
|
+
const ws = new WebSocket(`ws://127.0.0.1:5147/events?token=${encodeURIComponent(status.wsToken)}`);
|
|
239
|
+
|
|
240
|
+
ws.onmessage = (message) => {
|
|
241
|
+
const event = JSON.parse(message.data);
|
|
242
|
+
if (event.type === 'ShellStdout') console.log(event.payload.chunk);
|
|
243
|
+
if (event.type === 'ShellCompleted') console.log('done', event.payload.jobId);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
await fetch('http://127.0.0.1:5147/api/shell/jobs', {
|
|
247
|
+
method: 'POST',
|
|
248
|
+
headers: {
|
|
249
|
+
'Content-Type': 'application/json',
|
|
250
|
+
[status.bridgeTokenHeader || 'X-Bridge-Token']: status.bridgeToken
|
|
251
|
+
},
|
|
252
|
+
body: JSON.stringify({
|
|
253
|
+
command: 'codex exec \"Summarize this repository\"',
|
|
254
|
+
timeout: 300000
|
|
255
|
+
})
|
|
256
|
+
});
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## CORS
|
|
260
|
+
|
|
261
|
+
湲곕낯?곸쑝濡??ㅼ쓬 origin?ㅼ씠 ?덉슜?⑸땲??
|
|
262
|
+
- http://localhost:5000
|
|
263
|
+
- http://localhost:5001
|
|
264
|
+
- https://localhost:5001
|
|
265
|
+
- http://127.0.0.1:5000
|
|
266
|
+
- http://127.0.0.1:5001
|
|
267
|
+
|
|
268
|
+
異붽? origin???꾩슂?섎㈃ `server.js`??CORS ?ㅼ젙???섏젙?섏꽭??
|
|
269
|
+
|
|
270
|
+
## Web怨?MAUI ?숈떆 ?ъ슜
|
|
271
|
+
|
|
272
|
+
1. 釉뚮━吏 ?쒕쾭瑜??ㅽ뻾?⑸땲??(`npm start`)
|
|
273
|
+
2. Web Blazor ?깆쓣 ?ㅽ뻾?⑸땲??
|
|
274
|
+
3. MAUI ?깆? 釉뚮━吏 ?쒕쾭 ?놁씠???묐룞?⑸땲??(吏곸젒 ?뚯씪 ?쒖뒪???묎렐)
|
|
275
|
+
|