From 9f60030e39feecc76f11671a4b9d82303c83670c Mon Sep 17 00:00:00 2001 From: Agando Date: Tue, 9 Jun 2026 06:00:43 +0200 Subject: auto: 2026-06-09_06:00 changes --- audit_2026-06-09_005950.md | 74 ++++++++ audit_2026-06-09_010008.md | 74 ++++++++ cheatsheet.html | 15 ++ downloads/architecture_map.html | 38 ++++ downloads/mindmap.html | 275 +++++++++++++++++++++++++++++ help.html | 30 +++- main.html | 14 +- mindmap.html | 283 +++++++++++++++++++++++++----- modules-index.json | 18 +- modules/core/module-aiassist.js | 133 +++----------- modules/core/module-fs.js | 6 +- modules/core/module-loader.js | 5 +- modules/core/module-neural-vfs.js | 5 + modules/core/module-system.js | 92 +++++++--- modules/core/terminal.js | 37 +++- modules/core/virtual-fs.js | 7 + modules/ext/cryptogzip.js | 321 +++++++++++++++++++++++++++++++++- modules/ext/filemgr.js | 3 + modules/ext/floating.js | 50 ++++-- modules/ext/skill-pack-core.js | 6 + modules/ext/webdav.js | 8 + modules/ext/wpm.js | 9 + newos4_whitepaper.md | 6 +- packages.json | 9 +- setup_ai.sh | 5 + skills/agent-orchestration.json | 4 +- skills/anti-loop-protocol.json | 9 + skills/backup-and-restore.json | 4 +- skills/config-management.json | 17 -- skills/debug-panel-and-logs.json | 4 +- skills/index.json | 98 +++++++++-- skills/memory-graph-optimization.json | 9 - skills/mindmap-user-guide.json | 14 -- skills/mindmap-user-guide.md | 40 ----- skills/mindmap-workflow.json | 4 +- skills/module-editing-workflow.json | 9 + skills/module-impl-flow.json | 13 -- skills/module-management.json | 4 +- skills/navigating-the-terminal.json | 4 +- skills/security-and-safety.json | 4 +- skills/self-patch-friction.json | 13 -- skills/sentinel-audit.json | 14 -- skills/skills-system-guide.json | 4 +- skills/system-maintenance.json | 4 +- skills/v4.5-system-sync.json | 13 -- skills/vfs-content-search.json | 9 + skills/web-search-and-fetch.json | 4 +- skills/webdav-operations.json | 4 +- skills/world-model-sync.json | 13 -- 49 files changed, 1432 insertions(+), 406 deletions(-) create mode 100644 audit_2026-06-09_005950.md create mode 100644 audit_2026-06-09_010008.md create mode 100644 downloads/architecture_map.html create mode 100644 downloads/mindmap.html create mode 100644 setup_ai.sh create mode 100644 skills/anti-loop-protocol.json delete mode 100644 skills/config-management.json delete mode 100644 skills/memory-graph-optimization.json delete mode 100644 skills/mindmap-user-guide.json delete mode 100644 skills/mindmap-user-guide.md create mode 100644 skills/module-editing-workflow.json delete mode 100644 skills/module-impl-flow.json delete mode 100644 skills/self-patch-friction.json delete mode 100644 skills/sentinel-audit.json delete mode 100644 skills/v4.5-system-sync.json create mode 100644 skills/vfs-content-search.json delete mode 100644 skills/world-model-sync.json diff --git a/audit_2026-06-09_005950.md b/audit_2026-06-09_005950.md new file mode 100644 index 0000000..f31990c --- /dev/null +++ b/audit_2026-06-09_005950.md @@ -0,0 +1,74 @@ +# newOS4 Audit — 2026-06-09_005950 +Target: /var/www/webx11.duckdns.org/spaces/newos4 + + +═══ 1. FILE INVENTORY ═══ + Total files: 146, JS: 56, HTML: 19, MD: 25, JSON: 27 + Total size: 15116 KB, Module files: 51, Backups: 0 + +═══ 2. MODULES INDEX INTEGRITY ═══ + core: 25 index entries + deprecated: 1 index entries + ext: 18 index entries + infrastructure: 6 index entries + Core files on disk: 27, Ext files on disk: 18 + +═══ 3. COMMAND REGISTRY ═══ + _safeRegister calls: 21 + Unique commands in terminal.js: 2 + +═══ 4. BUILTIN MODULES (module-loader.js) ═══ + BUILTIN entries: 25 + +═══ 5. DEAD/ORPHAN FILES ═══ + +═══ 6. HELP DOCS vs ACTUAL COMMANDS ═══ + +═══ 7. CONFIG FILE INTEGRITY ═══ + packages.json: version=1.1.0, cache-bust=N/A + modules/core/module-loader.js: version=v4.5.25, cache-bust=N/A + +═══ 8. MODULE FILE HEALTH ═══ + +═══ 9. DUPLICATE/OVERLAP CHECK ═══ + Total unique commands: 272 + +═══ 10. STALE AI-GENERATED DOCUMENTATION ═══ + +═══ AUDIT SUMMARY ═══ + 'SystemModule' → module-system.js (via modules-index.json) + 'FileSystemModule' → module-fs.js (via modules-index.json) + 'ModuleManagerModule' → module-modmgr.js (via modules-index.json) + 'OllamaModule' → module-ollama.js (via modules-index.json) + 'SearXNGModule' → module-searxng.js (via modules-index.json) + 'ConfigManagerModule' → module-config.js (via modules-index.json) + 'WebX11AIAssistantModule' → module-aiassist.js (via modules-index.json) + 'WebFetcherModule' → module-fetcher.js (via modules-index.json) + 'WebXAIAliasModule' → module-aiasm.js (via modules-index.json) + 'SecretVault' → secret-vault.js (via modules-index.json) + 'ChatStudioModule' → module-chatstudio.js (via modules-index.json) + 'AgentRegistryModule' → module-agent-registry.js (via modules-index.json) + 'LeaseModule' → module-leases.js (via modules-index.json) + 'OrchestratorModule' → module-orchestrator.js (via modules-index.json) + 'NeuralVFSModule' → module-neural-vfs.js (via modules-index.json) + 'SandboxModule' → module-sandbox.js (via modules-index.json) + 'MemoryGraphModule' → module-memory-graph.js (via modules-index.json) + 'PredictorModule' → module-predictor.js (via modules-index.json) + 'WorldModelModule' → module-world-model.js (via modules-index.json) + 'ServerMonitorModule' → module-servermon.js (via modules-index.json) + 'SimpleGUIModule' → module-simplegui.js (via modules-index.json) + help.html: all v4.4 commands ✓ + cheatsheet.html: all v4.4 commands ✓ + Pass: 23 + Orphaned: vis-network.min.js + modules/core/module-loader.js: no class def + modules/core/sandbox-worker.js: no class def + 'ai' in multiple: modules/core/module-aiassist.js, modules/core/module-ollama.js + 'ask' in multiple: modules/core/module-aiassist.js, modules/core/module-ollama.js + 'config-export' in multiple: modules/core/module-config.js, modules/core/terminal.js + 'config-reset' in multiple: modules/core/module-config.js, modules/core/terminal.js + 'echo' in multiple: modules/core/module-fs.js, modules/core/module-system.js + 'find' in multiple: modules/core/module-fs.js, modules/ext/finder.js + 'preview' in multiple: modules/core/module-system.js, modules/ext/filemgr.js + Warnings: 10 + Fails: 0 \ No newline at end of file diff --git a/audit_2026-06-09_010008.md b/audit_2026-06-09_010008.md new file mode 100644 index 0000000..3434a64 --- /dev/null +++ b/audit_2026-06-09_010008.md @@ -0,0 +1,74 @@ +# newOS4 Audit — 2026-06-09_010008 +Target: /var/www/webx11.duckdns.org/spaces/newos4 + + +═══ 1. FILE INVENTORY ═══ + Total files: 147, JS: 56, HTML: 19, MD: 26, JSON: 27 + Total size: 15119 KB, Module files: 51, Backups: 0 + +═══ 2. MODULES INDEX INTEGRITY ═══ + core: 25 index entries + deprecated: 1 index entries + ext: 18 index entries + infrastructure: 6 index entries + Core files on disk: 27, Ext files on disk: 18 + +═══ 3. COMMAND REGISTRY ═══ + _safeRegister calls: 21 + Unique commands in terminal.js: 2 + +═══ 4. BUILTIN MODULES (module-loader.js) ═══ + BUILTIN entries: 25 + +═══ 5. DEAD/ORPHAN FILES ═══ + +═══ 6. HELP DOCS vs ACTUAL COMMANDS ═══ + +═══ 7. CONFIG FILE INTEGRITY ═══ + packages.json: version=1.1.0, cache-bust=N/A + modules/core/module-loader.js: version=v4.5.25, cache-bust=N/A + +═══ 8. MODULE FILE HEALTH ═══ + +═══ 9. DUPLICATE/OVERLAP CHECK ═══ + Total unique commands: 272 + +═══ 10. STALE AI-GENERATED DOCUMENTATION ═══ + +═══ AUDIT SUMMARY ═══ + 'SystemModule' → module-system.js (via modules-index.json) + 'FileSystemModule' → module-fs.js (via modules-index.json) + 'ModuleManagerModule' → module-modmgr.js (via modules-index.json) + 'OllamaModule' → module-ollama.js (via modules-index.json) + 'SearXNGModule' → module-searxng.js (via modules-index.json) + 'ConfigManagerModule' → module-config.js (via modules-index.json) + 'WebX11AIAssistantModule' → module-aiassist.js (via modules-index.json) + 'WebFetcherModule' → module-fetcher.js (via modules-index.json) + 'WebXAIAliasModule' → module-aiasm.js (via modules-index.json) + 'SecretVault' → secret-vault.js (via modules-index.json) + 'ChatStudioModule' → module-chatstudio.js (via modules-index.json) + 'AgentRegistryModule' → module-agent-registry.js (via modules-index.json) + 'LeaseModule' → module-leases.js (via modules-index.json) + 'OrchestratorModule' → module-orchestrator.js (via modules-index.json) + 'NeuralVFSModule' → module-neural-vfs.js (via modules-index.json) + 'SandboxModule' → module-sandbox.js (via modules-index.json) + 'MemoryGraphModule' → module-memory-graph.js (via modules-index.json) + 'PredictorModule' → module-predictor.js (via modules-index.json) + 'WorldModelModule' → module-world-model.js (via modules-index.json) + 'ServerMonitorModule' → module-servermon.js (via modules-index.json) + 'SimpleGUIModule' → module-simplegui.js (via modules-index.json) + help.html: all v4.4 commands ✓ + cheatsheet.html: all v4.4 commands ✓ + Pass: 23 + Orphaned: audit_2026-06-09_005950.md + modules/core/module-loader.js: no class def + modules/core/sandbox-worker.js: no class def + 'ai' in multiple: modules/core/module-aiassist.js, modules/core/module-ollama.js + 'ask' in multiple: modules/core/module-aiassist.js, modules/core/module-ollama.js + 'config-export' in multiple: modules/core/module-config.js, modules/core/terminal.js + 'config-reset' in multiple: modules/core/module-config.js, modules/core/terminal.js + 'echo' in multiple: modules/core/module-fs.js, modules/core/module-system.js + 'find' in multiple: modules/core/module-fs.js, modules/ext/finder.js + 'preview' in multiple: modules/core/module-system.js, modules/ext/filemgr.js + Warnings: 10 + Fails: 0 \ No newline at end of file diff --git a/cheatsheet.html b/cheatsheet.html index aecb84e..1d91bc4 100644 --- a/cheatsheet.html +++ b/cheatsheet.html @@ -100,6 +100,17 @@ pre{background:var(--bg2);border:1px solid var(--border);border-radius:var(--rad

🔧 Tools

+
tar <src> <out.tar>Bundle VFS dir to tarball (add .gz for gzip)
+
untar <in.tar[.gz]> [dest]Extract tarball to VFS (auto-detects gzip)
+
wget <url> [filename]Download a URL and save to VFS
+
gzip <path>Compress a VFS file to .gz
+
gunzip <path.gz>Decompress .gz file (binary-safe)
+
encrypt <path> <pass>AES-256-GCM encrypt a file
+
decrypt <path.enc> <pass>Decrypt a .enc file
+
diff <a> <b>Unified diff between two files
+
edit <path>Open file in inline modal editor
+
cryptogzipSee gzip/encrypt/tar commands
+
calc <expr>Calculator
cron-every <s> <cmd>Schedule repeating
cron-list / cron-stopManage jobs
@@ -219,6 +230,8 @@ pre{background:var(--bg2);border:1px solid var(--border);border-radius:var(--rad
a2a-listA2A message status
contract-listList A2A contracts
contract-registerRegister A2A contract
+
sandbox-config <k> <v>Tune sandbox (max-workers, min-workers, pool-timeout)
+
memgraph-exportExport graph as JSON

📊 Monitor

@@ -227,6 +240,8 @@ pre{background:var(--bg2);border:1px solid var(--border);border-radius:var(--rad
serversList monitored servers
server-checkCheck server status
monitorToggle auto-monitoring
+
predictor-config <k> <v>Tune predictor (confidence-threshold, min-data-points)
+
world-model-config <k> <v>Tune world model (refresh-interval, max-projects)

🔒 Security / Vault

diff --git a/downloads/architecture_map.html b/downloads/architecture_map.html new file mode 100644 index 0000000..3286eea --- /dev/null +++ b/downloads/architecture_map.html @@ -0,0 +1,38 @@ + + + + + WebX11 newOS4 System Architecture + + + + + +
+
+ mindmap + root((WebX11 newOS4)) + VFS + Neural-VFS + Filesystem + Indexing + Modules + Core Modules + WPM Extensions + Module Editor + AI Engine + Smart-Context + Memory-Graph + World-Model + Tooling + Agents + Sandbox + Vault + WebDAV +
+
+ + \ No newline at end of file diff --git a/downloads/mindmap.html b/downloads/mindmap.html new file mode 100644 index 0000000..1ec96db --- /dev/null +++ b/downloads/mindmap.html @@ -0,0 +1,275 @@ + + + + + + newOS4 v4.5.22 — Architecture Mindmap + + + + +
+

🧠 newOS4 v4.5.22

+

Full architecture mindmap — 62 nodes across 5 layers

+
39 modules · 266 commands · 7 core services · 18 ext modules
+
+ +
+
Terminal Core
+
Core Modules
+
Ext Modules
+
Data Layer
+
AI Integration
+
+ +
+ + +
+ +
+
+mindmap
+  root(("newOS4 v4.5.22 — WebX11 Module System"))
+    Terminal Core
+      WebX11Terminal - input/output/autocomplete
+      WebX11SecurityManager - 4-level security
+      VirtualFileSystem - localStorage-backed in-memory FS
+      ModuleManager - register/load/discover modules
+      OllamaManager - AI provider bridge
+      ConfigRegistry - unified config command
+      SecretVault - encrypted secrets
+    Core Modules
+      SystemModule - help, mem, status, checkpoint
+      FileSystemModule - ls, cat, rm, mv, cp, trash
+      ModuleManagerModule - modules, loadmod
+      ConfigManagerModule - config-set, list, export
+      OllamaModule - ollama, models, pull, run
+      WebFetcherModule - fetch, web, extract
+      WebXAIAliasModule - webxai, wx, webx
+      SearXNGModule - search, s, images, videos
+      ChatStudioModule - chat
+      AgentRegistryModule - agent-list, contract-register
+      LeaseModule - lease-create, revoke, list
+      OrchestratorModule - a2a, consensus, pipeline
+      NeuralVFSModule - nvfs-index, resolve, alias
+      SandboxModule - sandbox-run, status
+      MemoryGraphModule - memgraph-search, stats
+      PredictorModule - predict, status
+      WorldModelModule - world-model, ask, refresh
+      ServerMonitorModule - server, servers, system-health
+      SimpleGUIModule - gui, gui-button, run
+    Ext Modules
+      WebDAVModule - webdav-ls, push, pull, backup
+      SkillPackCoreModule - skill-list, view, create
+      FloatingModule - floating-add, remove, pos, toggle
+      EditorModule - edit
+      DiffModule - diff
+      AliasModule - alias, unalias, ll, h, cls
+      ShellModule - sh, export, script, set
+      FinderModule - find
+      CryptoGzipModule - gzip, gunzip, encrypt
+      BusyBoxModule - which, env, date, cal, base64
+      CalcModule - calc
+      VoiceModule - voice
+      CronModule - cron-every, list, stop
+      ThemeModule - theme
+      WpmModule - wpm
+      MindmapModule - mindmap (this tool)
+      TutorialModule - tutorial
+      FileManagerModule - files, preview
+    Data Layer
+      VirtualFileSystem (in-memory tree + localStorage)
+      SecretVault (encrypted credential storage)
+      Neural VFS (semantic indexing + fuzzy search)
+      Memory Graph (entity-relation knowledge graph)
+      World Model (runtime state synthesis)
+      Config Registry (unified config API)
+      Session System (save/load/export state)
+    AI Integration
+      WebX11AIAssistantModule (agent loop + tool calling)
+      OllamaManager (model switching, context)
+      Guardrail Layer (policy, shadow mode, violations)
+      Agent Registry (A2A protocol, orchestration)
+      Predictor (usage prediction, smart suggestions)
+        
+
+ +
+
+
+ROOT: newOS4 v4.5.22 — WebX11 Module System
+  Terminal Core (7 components)
+    └ WebX11Terminal — input/output/autocomplete
+    └ WebX11SecurityManager — 4-level security
+    └ VirtualFileSystem — localStorage-backed in-memory FS
+    └ ModuleManager — register/load/discover modules
+    └ OllamaManager — AI provider bridge
+    └ ConfigRegistry — unified config command
+    └ SecretVault — encrypted secrets
+  Core Modules (19 modules)
+    └ SystemModule — help, mem, status, checkpoint
+    └ FileSystemModule — ls, cat, rm, mv, cp, trash
+    └ ModuleManagerModule — modules, loadmod
+    └ ConfigManagerModule — config-set, list, export
+    └ OllamaModule — ollama, models, pull, run
+    └ WebFetcherModule — fetch, web, extract
+    └ WebXAIAliasModule — webxai, wx, webx
+    └ SearXNGModule — search, s, images, videos
+    └ ChatStudioModule — chat
+    └ AgentRegistryModule — agent-list, contract-register
+    └ LeaseModule — lease-create, revoke, list
+    └ OrchestratorModule — a2a, consensus, pipeline
+    └ NeuralVFSModule — nvfs-index, resolve, alias
+    └ SandboxModule — sandbox-run, status
+    └ MemoryGraphModule — memgraph-search, stats
+    └ PredictorModule — predict, status
+    └ WorldModelModule — world-model, ask, refresh
+    └ ServerMonitorModule — server, servers, system-health
+    └ SimpleGUIModule — gui, gui-button, run
+  Ext Modules (18 modules)
+    └ WebDAVModule — webdav-ls, push, pull, backup
+    └ SkillPackCoreModule — skill-list, view, create
+    └ FloatingModule — floating-add, remove, pos, toggle
+    └ EditorModule — edit
+    └ DiffModule — diff
+    └ AliasModule — alias, unalias, ll, h, cls
+    └ ShellModule — sh, export, script, set
+    └ FinderModule — find
+    └ CryptoGzipModule — gzip, gunzip, encrypt
+    └ BusyBoxModule — which, env, date, cal, base64
+    └ CalcModule — calc
+    └ VoiceModule — voice
+    └ CronModule — cron-every, list, stop
+    └ ThemeModule — theme
+    └ WpmModule — wpm
+    └ MindmapModule — mindmap (this tool)
+    └ TutorialModule — tutorial
+    └ FileManagerModule — files, preview
+  Data Layer (7 components)
+    └ VirtualFileSystem (in-memory tree + localStorage)
+    └ SecretVault (encrypted credential storage)
+    └ Neural VFS (semantic indexing + fuzzy search)
+    └ Memory Graph (entity-relation knowledge graph)
+    └ World Model (runtime state synthesis)
+    └ Config Registry (unified config API)
+    └ Session System (save/load/export state)
+  AI Integration (5 modules)
+    └ WebX11AIAssistantModule (agent loop + tool calling)
+    └ OllamaManager (model switching, context)
+    └ Guardrail Layer (policy, shadow mode, violations)
+    └ Agent Registry (A2A protocol, orchestration)
+    └ Predictor (usage prediction, smart suggestions)
+
+
+
+ + + + + + \ No newline at end of file diff --git a/help.html b/help.html index 76109e2..bf2402a 100644 --- a/help.html +++ b/help.html @@ -4,7 +4,7 @@ -WebX11 v4.3 — Help +WebX11 v4.5.24 — Help
-

WebX11 System Mindmap

-

Visual architecture of the current session

+

🧠 newOS4 v4.5.22

+

Full architecture mindmap — 62 nodes across 5 layers

+
39 modules · 266 commands · 7 core services · 18 ext modules
+
+ +
+
Terminal Core
+
Core Modules
+
Ext Modules
+
Data Layer
+
AI Integration
+
+ +
+ +
-
mindmap
-  root((WebX11))
-    AI Engine
-      Model("gemma4:31b-cloud")
-      Memory("9.5MB")
-      Context("Session-based")
-    VFS (Virtual File System)
-      Storage("skills, agents, logs, memory, .semantic_index")
-      Files("system_review.html, mindmap.html")
-    Capabilities
-      Modules("Core Layer, Extension Layer")
-      Tools("Filesystem, System, Web Search, WPM Packages")
-    Management
-      Skills("Procedural")
-      Sessions("Historical")
-      User Profile("Persistent")
+ +
+
+mindmap
+  root(("newOS4 v4.5.22 — WebX11 Module System"))
+    Terminal Core
+      WebX11Terminal - input/output/autocomplete
+      WebX11SecurityManager - 4-level security
+      VirtualFileSystem - localStorage-backed in-memory FS
+      ModuleManager - register/load/discover modules
+      OllamaManager - AI provider bridge
+      ConfigRegistry - unified config command
+      SecretVault - encrypted secrets
+    Core Modules
+      SystemModule - help, mem, status, checkpoint
+      FileSystemModule - ls, cat, rm, mv, cp, trash
+      ModuleManagerModule - modules, loadmod
+      ConfigManagerModule - config-set, list, export
+      OllamaModule - ollama, models, pull, run
+      WebFetcherModule - fetch, web, extract
+      WebXAIAliasModule - webxai, wx, webx
+      SearXNGModule - search, s, images, videos
+      ChatStudioModule - chat
+      AgentRegistryModule - agent-list, contract-register
+      LeaseModule - lease-create, revoke, list
+      OrchestratorModule - a2a, consensus, pipeline
+      NeuralVFSModule - nvfs-index, resolve, alias
+      SandboxModule - sandbox-run, status
+      MemoryGraphModule - memgraph-search, stats
+      PredictorModule - predict, status
+      WorldModelModule - world-model, ask, refresh
+      ServerMonitorModule - server, servers, system-health
+      SimpleGUIModule - gui, gui-button, run
+    Ext Modules
+      WebDAVModule - webdav-ls, push, pull, backup
+      SkillPackCoreModule - skill-list, view, create
+      FloatingModule - floating-add, remove, pos, toggle
+      EditorModule - edit
+      DiffModule - diff
+      AliasModule - alias, unalias, ll, h, cls
+      ShellModule - sh, export, script, set
+      FinderModule - find
+      CryptoGzipModule - gzip, gunzip, encrypt
+      BusyBoxModule - which, env, date, cal, base64
+      CalcModule - calc
+      VoiceModule - voice
+      CronModule - cron-every, list, stop
+      ThemeModule - theme
+      WpmModule - wpm
+      MindmapModule - mindmap (this tool)
+      TutorialModule - tutorial
+      FileManagerModule - files, preview
+    Data Layer
+      VirtualFileSystem (in-memory tree + localStorage)
+      SecretVault (encrypted credential storage)
+      Neural VFS (semantic indexing + fuzzy search)
+      Memory Graph (entity-relation knowledge graph)
+      World Model (runtime state synthesis)
+      Config Registry (unified config API)
+      Session System (save/load/export state)
+    AI Integration
+      WebX11AIAssistantModule (agent loop + tool calling)
+      OllamaManager (model switching, context)
+      Guardrail Layer (policy, shadow mode, violations)
+      Agent Registry (A2A protocol, orchestration)
+      Predictor (usage prediction, smart suggestions)
+        
+
+ +
+
+
+ROOT: newOS4 v4.5.22 — WebX11 Module System
+  Terminal Core (7 components)
+    └ WebX11Terminal — input/output/autocomplete
+    └ WebX11SecurityManager — 4-level security
+    └ VirtualFileSystem — localStorage-backed in-memory FS
+    └ ModuleManager — register/load/discover modules
+    └ OllamaManager — AI provider bridge
+    └ ConfigRegistry — unified config command
+    └ SecretVault — encrypted secrets
+  Core Modules (19 modules)
+    └ SystemModule — help, mem, status, checkpoint
+    └ FileSystemModule — ls, cat, rm, mv, cp, trash
+    └ ModuleManagerModule — modules, loadmod
+    └ ConfigManagerModule — config-set, list, export
+    └ OllamaModule — ollama, models, pull, run
+    └ WebFetcherModule — fetch, web, extract
+    └ WebXAIAliasModule — webxai, wx, webx
+    └ SearXNGModule — search, s, images, videos
+    └ ChatStudioModule — chat
+    └ AgentRegistryModule — agent-list, contract-register
+    └ LeaseModule — lease-create, revoke, list
+    └ OrchestratorModule — a2a, consensus, pipeline
+    └ NeuralVFSModule — nvfs-index, resolve, alias
+    └ SandboxModule — sandbox-run, status
+    └ MemoryGraphModule — memgraph-search, stats
+    └ PredictorModule — predict, status
+    └ WorldModelModule — world-model, ask, refresh
+    └ ServerMonitorModule — server, servers, system-health
+    └ SimpleGUIModule — gui, gui-button, run
+  Ext Modules (18 modules)
+    └ WebDAVModule — webdav-ls, push, pull, backup
+    └ SkillPackCoreModule — skill-list, view, create
+    └ FloatingModule — floating-add, remove, pos, toggle
+    └ EditorModule — edit
+    └ DiffModule — diff
+    └ AliasModule — alias, unalias, ll, h, cls
+    └ ShellModule — sh, export, script, set
+    └ FinderModule — find
+    └ CryptoGzipModule — gzip, gunzip, encrypt
+    └ BusyBoxModule — which, env, date, cal, base64
+    └ CalcModule — calc
+    └ VoiceModule — voice
+    └ CronModule — cron-every, list, stop
+    └ ThemeModule — theme
+    └ WpmModule — wpm
+    └ MindmapModule — mindmap (this tool)
+    └ TutorialModule — tutorial
+    └ FileManagerModule — files, preview
+  Data Layer (7 components)
+    └ VirtualFileSystem (in-memory tree + localStorage)
+    └ SecretVault (encrypted credential storage)
+    └ Neural VFS (semantic indexing + fuzzy search)
+    └ Memory Graph (entity-relation knowledge graph)
+    └ World Model (runtime state synthesis)
+    └ Config Registry (unified config API)
+    └ Session System (save/load/export state)
+  AI Integration (5 modules)
+    └ WebX11AIAssistantModule (agent loop + tool calling)
+    └ OllamaManager (model switching, context)
+    └ Guardrail Layer (policy, shadow mode, violations)
+    └ Agent Registry (A2A protocol, orchestration)
+    └ Predictor (usage prediction, smart suggestions)
+
+
+
+ + + diff --git a/modules-index.json b/modules-index.json index 3b9f8cf..58e9b16 100644 --- a/modules-index.json +++ b/modules-index.json @@ -1,6 +1,6 @@ { - "version": "2026-06-05-v4.4.0", - "generated": "2026-06-05T15:40:00.000Z", + "version": "2026-06-08-v4.5.22", + "generated": "2026-06-08T23:50:00.000Z", "modules": { "module-agent-registry": { "name": "module-agent-registry", @@ -232,13 +232,13 @@ "name": "module-loader", "file": "modules/core/module-loader.js", "type": "core", - "class": "module-loader.js", + "class": null, "auto_load": true, "commands": [], - "description": "Log to terminal if available", + "description": "Async dependency-ordered module loader (foundation, not a module class)", "dependencies": [], "version": "1.0.0", - "updated": "2026-06-03", + "updated": "2026-06-08", "layer": "infrastructure" }, "module-manager": { @@ -267,7 +267,7 @@ "file": "modules/core/module-modmgr.js", "type": "core", "class": "ModuleManagerModule", - "auto_load": true, + "auto_load": false, "commands": [ "modules", "listmods", @@ -277,11 +277,11 @@ "load-local", "loadlocal" ], - "description": "Extracted from newOS4 index.html \u2014 ModuleManagerModule", + "description": "DEPRECATED 2026-06-08: duplicate of module-manager.js. Removed from BUILTIN. File kept for one release for rollback safety — will be deleted in v4.6.0.", "dependencies": [], "version": "1.0.0", - "updated": "2026-06-03", - "layer": "core" + "updated": "2026-06-08", + "layer": "deprecated" }, "module-my": { "name": "module-my", diff --git a/modules/core/module-aiassist.js b/modules/core/module-aiassist.js index 7f99386..ecd4637 100644 --- a/modules/core/module-aiassist.js +++ b/modules/core/module-aiassist.js @@ -60,114 +60,37 @@ } } } catch (e) {} - const CR = String.fromCharCode(10); - const optNote = CR + CR + '== TOOL EXECUTION RULES (STRICT) ==' + CR + 'STRICT RULE 1: NEVER describe what the filesystem looks like from your training data. ALWAYS call list_files() or read_file() first, then report the ACTUAL result.' + CR + 'STRICT RULE 2: If you return text without calling any tool, you have failed. Use tools for every factual question.' + CR + 'STRICT RULE 3: A response like "/bin/, /etc/, /home/" without calling list_files is ILLEGAL. Call the tool.' + CR + 'STRICT RULE 4: When calling a tool, base your answer ENTIRELY on the tool result. If result is empty, say "empty".' + CR + CR; - return `Current date: ${dateStr}\nCurrent time: ${timeStr}\n${nvfsNote}\n\nYou are WebX11AI, the AI assistant embedded in the WebX11 browser terminal. You have direct access to read/write files, search the web, install packages, edit modules, and run terminal commands — all via tool calls. Use tools proactively. Keep responses concise.${optNote}== TOOL REFERENCE == -You have these tools available. Use them WITHOUT asking permission unless the tool description says (DESTRUCTIVE): + return `Current date: ${dateStr} +Current time: ${timeStr}${nvfsNote} -FILESYSTEM: -- list_files(path?) — List files in VFS directory (omit for current dir) -- read_file(path) — Read file content (truncated past 8000 chars) -- write_file(path, content) — Write to file (DESTRUCTIVE — confirm with user first) -- make_directory(path) — Create a directory (DESTRUCTIVE — confirm first) -- delete_file(path) — Delete file (DESTRUCTIVE — confirm first) -- get_current_dir — Show current working directory +You are WebX11AI — embedded in the WebX11 newOS4 terminal. 3-layer system: VFS → Modules → AI. You can edit your own modules via edit_module/test_module/reload_module. -SYSTEM: -- get_status — Show filesystem, modules, Ollama, memory status -- get_help — List all available terminal commands -- run_command(command) — Execute any terminal command and capture output -- font-size <8-32> — Change terminal font size (persists in localStorage) +=== WORKFLOW === +1. Tool → Observe → Answer. Don't re-verify what a tool just told you. +2. find_files("about X") → nvfs_resolve(X) FIRST. NVFS is built-in core, never WPM. +3. load_skills("anti-loop-protocol") BEFORE tool #4 to prevent loops. +4. If editing a module: load_skills("module-editing-workflow") FIRST. +5. run_command may be blocked by security-level/guardrails — read the output. +6. Concise. Bullets. If a tool fails, try another. -SEARCH: -- web_search(query) — Search the web via proxy API (SearXNG + DDG fallback, results with title/url/snippet) -- web_fetch(url) — Fetch and extract readable content from a URL via proxy API (returns title + clean text + word count) - -PACKAGES: -- wpm_install(package) — Install WPM package by name (e.g. "widget", "calc") -- wpm_search(keyword) — Search available WPM packages - -SKILLS (PERSISTENT PROCEDURAL MEMORY): -- list_skills(category?) — Browse available skills, optionally filtered by category -- load_skills(query) — Search skills relevant to current task. Call at START of every task. -- create_skill(name, description, content, tags, category) — Save a new stored procedure. Call after completing complex multi-step tasks (3+ tool calls). -- patch_skill(name, content) — Update an existing skill when the approach changes - -FLOATING UI (PERSISTENT UI ELEMENTS): Use 'run_command' tool with these terminal commands: -- 'floating-add btn