@mindexec/cli 0.2.2 → 0.2.4

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.
Files changed (24) hide show
  1. package/README.md +50 -0
  2. package/package.json +6 -4
  3. package/remote-hub.js +737 -0
  4. package/scripts/remote-hub-smoke.mjs +146 -0
  5. package/server.js +144 -28
  6. package/wwwroot/_content/MindExecution.Shared/js/mind-map-core.js +11 -0
  7. package/wwwroot/_content/MindExecution.Shared/js/mind-map-css3d-manager.js +732 -2
  8. package/wwwroot/_content/MindExecution.Shared/js/mind-map-nodes.js +3 -1
  9. package/wwwroot/_framework/MindExecution.Core.rydw4mhsbd.dll +0 -0
  10. package/wwwroot/_framework/{MindExecution.Kernel.gwwc40sc45.dll → MindExecution.Kernel.8sz1fl3k6s.dll} +0 -0
  11. package/wwwroot/_framework/{MindExecution.Plugins.Admin.0jgrn1sckv.dll → MindExecution.Plugins.Admin.iltai5c3i9.dll} +0 -0
  12. package/wwwroot/_framework/{MindExecution.Plugins.Business.13mme2qcag.dll → MindExecution.Plugins.Business.mscgb1gwpf.dll} +0 -0
  13. package/wwwroot/_framework/{MindExecution.Plugins.Concept.9al2g3v3f9.dll → MindExecution.Plugins.Concept.s888y8snr4.dll} +0 -0
  14. package/wwwroot/_framework/{MindExecution.Plugins.Directory.3w4t6n3se0.dll → MindExecution.Plugins.Directory.281klijdzl.dll} +0 -0
  15. package/wwwroot/_framework/{MindExecution.Plugins.PlanMaster.vfmfbygv5y.dll → MindExecution.Plugins.PlanMaster.2gy2ozelqp.dll} +0 -0
  16. package/wwwroot/_framework/{MindExecution.Plugins.YouTube.32jyiqs383.dll → MindExecution.Plugins.YouTube.1v8o9nnlzq.dll} +0 -0
  17. package/wwwroot/_framework/{MindExecution.Shared.7ttmykvopx.dll → MindExecution.Shared.04anisxh35.dll} +0 -0
  18. package/wwwroot/_framework/MindExecution.Web.0qdidsf6sl.dll +0 -0
  19. package/wwwroot/_framework/blazor.boot.json +21 -21
  20. package/wwwroot/index.html +1 -1
  21. package/wwwroot/service-worker-assets.js +26 -26
  22. package/wwwroot/service-worker.js +1 -1
  23. package/wwwroot/_framework/MindExecution.Core.1q1trifbuu.dll +0 -0
  24. package/wwwroot/_framework/MindExecution.Web.ozzcqp30uy.dll +0 -0
package/README.md CHANGED
@@ -45,6 +45,56 @@ precompressed static files from the npm bundle by default. Use
45
45
  `-KeepPackagedGalleryImages` or `-KeepPackagedPrecompressedAssets` only when
46
46
  testing a full untrimmed local package.
47
47
 
48
+ ## Remote Direct quick start
49
+
50
+ LocalBridge also starts a separate RemoteHub listener for direct remote-agent
51
+ experiments. By default it binds to loopback only:
52
+
53
+ ```bash
54
+ npx @mindexec/cli
55
+ npx @mindexec/remote connect --manager 127.0.0.1:5197 --pair <pair-token>
56
+ ```
57
+
58
+ Read the pair token from the protected local endpoint:
59
+
60
+ ```bash
61
+ curl -H "X-Bridge-Token: <bridge-token>" http://127.0.0.1:5147/api/remote/status
62
+ ```
63
+
64
+ LAN/direct mode must be enabled explicitly by changing the RemoteHub bind host:
65
+
66
+ ```powershell
67
+ $env:REMOTE_HUB_HOST="0.0.0.0"
68
+ $env:REMOTE_HUB_PORT="5197"
69
+ $env:REMOTE_HUB_PAIR_TOKEN="<strong-token>"
70
+ npx @mindexec/cli
71
+ ```
72
+
73
+ Device inventory is intentionally not paginated:
74
+
75
+ ```bash
76
+ curl -H "X-Bridge-Token: <bridge-token>" http://127.0.0.1:5147/api/remote/devices
77
+ ```
78
+
79
+ Request and read the latest view-only thumbnail for a connected device:
80
+
81
+ ```bash
82
+ curl -X POST -H "X-Bridge-Token: <bridge-token>" http://127.0.0.1:5147/api/remote/devices/<device-id>/thumbnail/request
83
+ curl -H "X-Bridge-Token: <bridge-token>" http://127.0.0.1:5147/api/remote/devices/<device-id>/thumbnail
84
+ ```
85
+
86
+ Queue a safe task-only instruction for one device or all connected devices:
87
+
88
+ ```bash
89
+ curl -X POST -H "X-Bridge-Token: <bridge-token>" -H "Content-Type: application/json" \
90
+ -d "{\"instruction\":\"Check the desktop and report status.\"}" \
91
+ http://127.0.0.1:5147/api/remote/devices/<device-id>/tasks
92
+
93
+ curl -X POST -H "X-Bridge-Token: <bridge-token>" -H "Content-Type: application/json" \
94
+ -d "{\"instruction\":\"Prepare a short status report.\",\"allConnected\":true}" \
95
+ http://127.0.0.1:5147/api/remote/tasks
96
+ ```
97
+
48
98
  ?먮뒗 ?꾩뿭 ?ㅼ튂 ???ㅽ뻾?⑸땲??
49
99
 
50
100
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexec/cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -8,8 +8,9 @@
8
8
  "start-bridge.bat",
9
9
  "start-bridge.sh",
10
10
  "launch-bridge.cjs",
11
- "server.js",
12
- "codex-runtime.js",
11
+ "server.js",
12
+ "remote-hub.js",
13
+ "codex-runtime.js",
13
14
  "port-guard.cjs",
14
15
  "wwwroot/",
15
16
  "scripts/",
@@ -19,7 +20,8 @@
19
20
  "scripts": {
20
21
  "start": "node launch-bridge.cjs",
21
22
  "dev": "node launch-bridge.cjs --watch",
22
- "test:syntax": "node --check server.js && node --check codex-runtime.js && node --check launch-bridge.cjs && node --check port-guard.cjs && node --check scripts/setup-tree-sitter-grammars.mjs",
23
+ "test:syntax": "node --check server.js && node --check remote-hub.js && node --check codex-runtime.js && node --check launch-bridge.cjs && node --check port-guard.cjs && node --check scripts/setup-tree-sitter-grammars.mjs && node --check scripts/remote-hub-smoke.mjs",
24
+ "test:remote": "node scripts/remote-hub-smoke.mjs",
23
25
  "pack:dry": "npm pack --dry-run",
24
26
  "setup:grammars": "node scripts/setup-tree-sitter-grammars.mjs",
25
27
  "postinstall": "npm run setup:grammars"