@must-b/must-b 1.72.11 → 1.72.12

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 (78) hide show
  1. package/dist/BUILD.json +3 -3
  2. package/dist/embedded-skills.json +1 -1
  3. package/dist/extensions/acpx/package.json +1 -1
  4. package/dist/extensions/bluebubbles/package.json +1 -1
  5. package/dist/extensions/copilot-proxy/package.json +1 -1
  6. package/dist/extensions/diagnostics-otel/package.json +1 -1
  7. package/dist/extensions/diffs/package.json +1 -1
  8. package/dist/extensions/discord/package.json +1 -1
  9. package/dist/extensions/feishu/package.json +1 -1
  10. package/dist/extensions/google-gemini-cli-auth/package.json +1 -1
  11. package/dist/extensions/googlechat/package.json +1 -1
  12. package/dist/extensions/imessage/package.json +1 -1
  13. package/dist/extensions/irc/package.json +1 -1
  14. package/dist/extensions/line/package.json +1 -1
  15. package/dist/extensions/llm-task/package.json +1 -1
  16. package/dist/extensions/lobster/package.json +1 -1
  17. package/dist/extensions/matrix/package.json +1 -1
  18. package/dist/extensions/mattermost/package.json +1 -1
  19. package/dist/extensions/memory-core/package.json +1 -1
  20. package/dist/extensions/memory-lancedb/package.json +1 -1
  21. package/dist/extensions/minimax-portal-auth/package.json +1 -1
  22. package/dist/extensions/msteams/package.json +1 -1
  23. package/dist/extensions/nextcloud-talk/package.json +1 -1
  24. package/dist/extensions/nostr/package.json +1 -1
  25. package/dist/extensions/ollama/package.json +1 -1
  26. package/dist/extensions/open-prose/package.json +1 -1
  27. package/dist/extensions/sglang/package.json +1 -1
  28. package/dist/extensions/signal/package.json +1 -1
  29. package/dist/extensions/slack/package.json +1 -1
  30. package/dist/extensions/synology-chat/package.json +1 -1
  31. package/dist/extensions/telegram/package.json +1 -1
  32. package/dist/extensions/tlon/package.json +1 -1
  33. package/dist/extensions/twitch/package.json +1 -1
  34. package/dist/extensions/vllm/package.json +1 -1
  35. package/dist/extensions/voice-call/package.json +1 -1
  36. package/dist/extensions/whatsapp/package.json +1 -1
  37. package/dist/extensions/zalouser/package.json +1 -1
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/public/assets/{index-CkCjyNSV.js → index-DA4PofMR.js} +1 -1
  41. package/dist/public/index.html +1 -1
  42. package/package.json +2 -2
  43. package/scripts/build-prod.mjs +1 -1
  44. /package/dist/extensions/acpx/{index.js → index.cjs} +0 -0
  45. /package/dist/extensions/bluebubbles/{index.js → index.cjs} +0 -0
  46. /package/dist/extensions/copilot-proxy/{index.js → index.cjs} +0 -0
  47. /package/dist/extensions/diagnostics-otel/{index.js → index.cjs} +0 -0
  48. /package/dist/extensions/diffs/{index.js → index.cjs} +0 -0
  49. /package/dist/extensions/discord/{index.js → index.cjs} +0 -0
  50. /package/dist/extensions/feishu/{index.js → index.cjs} +0 -0
  51. /package/dist/extensions/google-gemini-cli-auth/{index.js → index.cjs} +0 -0
  52. /package/dist/extensions/googlechat/{index.js → index.cjs} +0 -0
  53. /package/dist/extensions/imessage/{index.js → index.cjs} +0 -0
  54. /package/dist/extensions/irc/{index.js → index.cjs} +0 -0
  55. /package/dist/extensions/line/{index.js → index.cjs} +0 -0
  56. /package/dist/extensions/llm-task/{index.js → index.cjs} +0 -0
  57. /package/dist/extensions/lobster/{index.js → index.cjs} +0 -0
  58. /package/dist/extensions/matrix/{index.js → index.cjs} +0 -0
  59. /package/dist/extensions/mattermost/{index.js → index.cjs} +0 -0
  60. /package/dist/extensions/memory-core/{index.js → index.cjs} +0 -0
  61. /package/dist/extensions/memory-lancedb/{index.js → index.cjs} +0 -0
  62. /package/dist/extensions/minimax-portal-auth/{index.js → index.cjs} +0 -0
  63. /package/dist/extensions/msteams/{index.js → index.cjs} +0 -0
  64. /package/dist/extensions/nextcloud-talk/{index.js → index.cjs} +0 -0
  65. /package/dist/extensions/nostr/{index.js → index.cjs} +0 -0
  66. /package/dist/extensions/ollama/{index.js → index.cjs} +0 -0
  67. /package/dist/extensions/open-prose/{index.js → index.cjs} +0 -0
  68. /package/dist/extensions/sglang/{index.js → index.cjs} +0 -0
  69. /package/dist/extensions/signal/{index.js → index.cjs} +0 -0
  70. /package/dist/extensions/slack/{index.js → index.cjs} +0 -0
  71. /package/dist/extensions/synology-chat/{index.js → index.cjs} +0 -0
  72. /package/dist/extensions/telegram/{index.js → index.cjs} +0 -0
  73. /package/dist/extensions/tlon/{index.js → index.cjs} +0 -0
  74. /package/dist/extensions/twitch/{index.js → index.cjs} +0 -0
  75. /package/dist/extensions/vllm/{index.js → index.cjs} +0 -0
  76. /package/dist/extensions/voice-call/{index.js → index.cjs} +0 -0
  77. /package/dist/extensions/whatsapp/{index.js → index.cjs} +0 -0
  78. /package/dist/extensions/zalouser/{index.js → index.cjs} +0 -0
package/dist/BUILD.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@must-b/must-b",
3
- "version": "1.72.11",
4
- "gitHash": "2f614c9e",
5
- "buildTime": "2026-04-25T11:18:07.491Z",
3
+ "version": "1.72.12",
4
+ "gitHash": "6d6e1cce",
5
+ "buildTime": "2026-04-26T00:09:36.274Z",
6
6
  "node": "v24.14.0",
7
7
  "platform": "win32"
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.71.4",
3
- "generatedAt": "2026-04-25T11:15:34.030Z",
3
+ "generatedAt": "2026-04-26T00:08:01.164Z",
4
4
  "count": 57,
5
5
  "skills": [
6
6
  {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ]
13
13
  }
14
14
  }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ],
13
13
  "channel": {
14
14
  "id": "bluebubbles",
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "must-b": {
20
20
  "extensions": [
21
- "./index.js"
21
+ "./index.cjs"
22
22
  ]
23
23
  }
24
24
  }
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "must-b": {
16
16
  "extensions": [
17
- "./index.js"
17
+ "./index.cjs"
18
18
  ]
19
19
  }
20
20
  }
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "must-b": {
7
7
  "extensions": [
8
- "./index.js"
8
+ "./index.cjs"
9
9
  ]
10
10
  }
11
11
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "must-b": {
13
13
  "extensions": [
14
- "./index.js"
14
+ "./index.cjs"
15
15
  ],
16
16
  "channel": {
17
17
  "id": "feishu",
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "must-b": {
19
19
  "extensions": [
20
- "./index.js"
20
+ "./index.cjs"
21
21
  ],
22
22
  "channel": {
23
23
  "id": "googlechat",
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ],
11
11
  "channel": {
12
12
  "id": "line",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "must-b": {
12
12
  "extensions": [
13
- "./index.js"
13
+ "./index.cjs"
14
14
  ]
15
15
  }
16
16
  }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ]
13
13
  }
14
14
  }
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "must-b": {
15
15
  "extensions": [
16
- "./index.js"
16
+ "./index.cjs"
17
17
  ],
18
18
  "channel": {
19
19
  "id": "matrix",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "must-b": {
11
11
  "extensions": [
12
- "./index.js"
12
+ "./index.cjs"
13
13
  ],
14
14
  "channel": {
15
15
  "id": "mattermost",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "must-b": {
16
16
  "extensions": [
17
- "./index.js"
17
+ "./index.cjs"
18
18
  ]
19
19
  }
20
20
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "must-b": {
13
13
  "extensions": [
14
- "./index.js"
14
+ "./index.cjs"
15
15
  ]
16
16
  }
17
17
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "must-b": {
11
11
  "extensions": [
12
- "./index.js"
12
+ "./index.cjs"
13
13
  ],
14
14
  "channel": {
15
15
  "id": "msteams",
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ],
13
13
  "channel": {
14
14
  "id": "nextcloud-talk",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "must-b": {
11
11
  "extensions": [
12
- "./index.js"
12
+ "./index.cjs"
13
13
  ],
14
14
  "channel": {
15
15
  "id": "nostr",
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "must-b": {
10
10
  "extensions": [
11
- "./index.js"
11
+ "./index.cjs"
12
12
  ],
13
13
  "channel": {
14
14
  "id": "synology-chat",
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "must-b": {
13
13
  "extensions": [
14
- "./index.js"
14
+ "./index.cjs"
15
15
  ],
16
16
  "channel": {
17
17
  "id": "tlon",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "must-b": {
13
13
  "extensions": [
14
- "./index.js"
14
+ "./index.cjs"
15
15
  ]
16
16
  }
17
17
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "must-b": {
13
13
  "extensions": [
14
- "./index.js"
14
+ "./index.cjs"
15
15
  ]
16
16
  }
17
17
  }
@@ -6,7 +6,7 @@
6
6
  "type": "module",
7
7
  "must-b": {
8
8
  "extensions": [
9
- "./index.js"
9
+ "./index.cjs"
10
10
  ]
11
11
  }
12
12
  }
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "must-b": {
12
12
  "extensions": [
13
- "./index.js"
13
+ "./index.cjs"
14
14
  ],
15
15
  "channel": {
16
16
  "id": "zalouser",
package/dist/index.cjs CHANGED
@@ -4407,7 +4407,7 @@ ${Q}${m}`+p.repeat(E)+`${Q}`,I}function l(E,B,g,Q){return`${B}${Q}`+g.repeat(E)+
4407
4407
  \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
4408
4408
  \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557
4409
4409
  \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
4410
- \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D `;function j_e(){try{return"1.72.11"}catch{return"1.0.0"}}function W_e(){try{return"2f614c9e"}catch{return""}}function t0(e,A=58){let t=e.replace(/\x1b\[[0-9;]*m/g,""),i=Math.max(0,Math.floor((A-t.length)/2));return" ".repeat(i)+e}function BmA(e="\u2500",A=58){return dl(" "+e.repeat(A))}function PI(e,A){let t=j_e(),i=W_e();console.log(umA(L_e)),console.log(""),console.log(t0(Y_e(U_e("Must-b"))+" "+EmA("v"+t))),console.log(t0(dl("Professional AI Operating System"))),console.log(""),console.log(t0(umA("\u26A1 Autonomous \xB7 Precise \xB7 Always On"))),console.log(t0(dl("Vision")+dl(" \xB7 ")+dl("Voice")+dl(" \xB7 ")+dl("OS Control")+dl(" \xB7 ")+dl("Multi-Agent Hierarchy"))),console.log(""),console.log(BmA()),console.log("");let a=[`Node ${process.version}`,`Mode: ${e.toUpperCase()}`,`PID ${process.pid}`,i?`#${i}`:null].filter(Boolean).join(dl(" \xB7 "));console.log(t0(dl(a))),e==="web"&&(console.log(""),console.log(t0(P_e("\u25B6 ")+EmA(`http://localhost:${A}`))),console.log(t0(dl("Dashboard is live \u2014 open in your browser")))),console.log(""),console.log(BmA()),console.log(t0(dl("Built by Auto Step \xB7 https://must-b.com"))),console.log("")}var pmA=require("events"),mmA=require("module"),OM=VA(require("path"),1),bM=VA(require("fs"),1),HE=VA(require("os"),1);function gmA(e){let A=e.toLowerCase();return[/\b(refactor|redesign|architect|migrate|overhaul)\b/i,/\ball\s+(files|modules|services|endpoints)\b/i,/\bacross\s+the\s+(codebase|project|repo)\b/i,/\bmultiple\s+files\b/i,/\bimplement\s+(a\s+)?(new\s+)?(feature|system|module|service|api)\b/i,/\badd\s+(support\s+for|full|complete)\b/i,/\b(investigate|diagnose|audit|analyze)\b.*\b(and|then)\s+(fix|implement|add)\b/i,/\bfind\s+(all|every|the\s+root)\b/i,/\bsecurity\b.*\b(audit|review|fix|vulnerability)\b/i,/\b(vulnerability|cve|exploit|injection|xss|sql.inject)\b/i,/\b(first|step\s+1|phase\s+1)\b.*\bthen\b.*\b(implement|update|change)\b/i,/\bresearch\b.*\b(and|then)\b/i,/\binvestigate\b/i].some(i=>i.test(A))}async function z_e(e,A){let t=`${e}
4410
+ \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D `;function j_e(){try{return"1.72.12"}catch{return"1.0.0"}}function W_e(){try{return"6d6e1cce"}catch{return""}}function t0(e,A=58){let t=e.replace(/\x1b\[[0-9;]*m/g,""),i=Math.max(0,Math.floor((A-t.length)/2));return" ".repeat(i)+e}function BmA(e="\u2500",A=58){return dl(" "+e.repeat(A))}function PI(e,A){let t=j_e(),i=W_e();console.log(umA(L_e)),console.log(""),console.log(t0(Y_e(U_e("Must-b"))+" "+EmA("v"+t))),console.log(t0(dl("Professional AI Operating System"))),console.log(""),console.log(t0(umA("\u26A1 Autonomous \xB7 Precise \xB7 Always On"))),console.log(t0(dl("Vision")+dl(" \xB7 ")+dl("Voice")+dl(" \xB7 ")+dl("OS Control")+dl(" \xB7 ")+dl("Multi-Agent Hierarchy"))),console.log(""),console.log(BmA()),console.log("");let a=[`Node ${process.version}`,`Mode: ${e.toUpperCase()}`,`PID ${process.pid}`,i?`#${i}`:null].filter(Boolean).join(dl(" \xB7 "));console.log(t0(dl(a))),e==="web"&&(console.log(""),console.log(t0(P_e("\u25B6 ")+EmA(`http://localhost:${A}`))),console.log(t0(dl("Dashboard is live \u2014 open in your browser")))),console.log(""),console.log(BmA()),console.log(t0(dl("Built by Auto Step \xB7 https://must-b.com"))),console.log("")}var pmA=require("events"),mmA=require("module"),OM=VA(require("path"),1),bM=VA(require("fs"),1),HE=VA(require("os"),1);function gmA(e){let A=e.toLowerCase();return[/\b(refactor|redesign|architect|migrate|overhaul)\b/i,/\ball\s+(files|modules|services|endpoints)\b/i,/\bacross\s+the\s+(codebase|project|repo)\b/i,/\bmultiple\s+files\b/i,/\bimplement\s+(a\s+)?(new\s+)?(feature|system|module|service|api)\b/i,/\badd\s+(support\s+for|full|complete)\b/i,/\b(investigate|diagnose|audit|analyze)\b.*\b(and|then)\s+(fix|implement|add)\b/i,/\bfind\s+(all|every|the\s+root)\b/i,/\bsecurity\b.*\b(audit|review|fix|vulnerability)\b/i,/\b(vulnerability|cve|exploit|injection|xss|sql.inject)\b/i,/\b(first|step\s+1|phase\s+1)\b.*\bthen\b.*\b(implement|update|change)\b/i,/\bresearch\b.*\b(and|then)\b/i,/\binvestigate\b/i].some(i=>i.test(A))}async function z_e(e,A){let t=`${e}
4411
4411
 
4412
4412
  COORDINATOR INSTRUCTION: Generate ONLY research steps (read-only, no file writes).
4413
4413
  Steps must use ONLY these tools: filesystem_read, filesystem_list, filesystem_search,
package/dist/index.js CHANGED
@@ -4407,7 +4407,7 @@ ${Q}${m}`+p.repeat(E)+`${Q}`,I}function l(E,B,g,Q){return`${B}${Q}`+g.repeat(E)+
4407
4407
  \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
4408
4408
  \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551 \u2588\u2588\u2551\u255A\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557
4409
4409
  \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
4410
- \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D `;function j_e(){try{return"1.72.11"}catch{return"1.0.0"}}function W_e(){try{return"2f614c9e"}catch{return""}}function t0(e,A=58){let t=e.replace(/\x1b\[[0-9;]*m/g,""),i=Math.max(0,Math.floor((A-t.length)/2));return" ".repeat(i)+e}function BmA(e="\u2500",A=58){return dl(" "+e.repeat(A))}function PI(e,A){let t=j_e(),i=W_e();console.log(umA(L_e)),console.log(""),console.log(t0(Y_e(U_e("Must-b"))+" "+EmA("v"+t))),console.log(t0(dl("Professional AI Operating System"))),console.log(""),console.log(t0(umA("\u26A1 Autonomous \xB7 Precise \xB7 Always On"))),console.log(t0(dl("Vision")+dl(" \xB7 ")+dl("Voice")+dl(" \xB7 ")+dl("OS Control")+dl(" \xB7 ")+dl("Multi-Agent Hierarchy"))),console.log(""),console.log(BmA()),console.log("");let a=[`Node ${process.version}`,`Mode: ${e.toUpperCase()}`,`PID ${process.pid}`,i?`#${i}`:null].filter(Boolean).join(dl(" \xB7 "));console.log(t0(dl(a))),e==="web"&&(console.log(""),console.log(t0(P_e("\u25B6 ")+EmA(`http://localhost:${A}`))),console.log(t0(dl("Dashboard is live \u2014 open in your browser")))),console.log(""),console.log(BmA()),console.log(t0(dl("Built by Auto Step \xB7 https://must-b.com"))),console.log("")}var pmA=require("events"),mmA=require("module"),OM=VA(require("path"),1),bM=VA(require("fs"),1),HE=VA(require("os"),1);function gmA(e){let A=e.toLowerCase();return[/\b(refactor|redesign|architect|migrate|overhaul)\b/i,/\ball\s+(files|modules|services|endpoints)\b/i,/\bacross\s+the\s+(codebase|project|repo)\b/i,/\bmultiple\s+files\b/i,/\bimplement\s+(a\s+)?(new\s+)?(feature|system|module|service|api)\b/i,/\badd\s+(support\s+for|full|complete)\b/i,/\b(investigate|diagnose|audit|analyze)\b.*\b(and|then)\s+(fix|implement|add)\b/i,/\bfind\s+(all|every|the\s+root)\b/i,/\bsecurity\b.*\b(audit|review|fix|vulnerability)\b/i,/\b(vulnerability|cve|exploit|injection|xss|sql.inject)\b/i,/\b(first|step\s+1|phase\s+1)\b.*\bthen\b.*\b(implement|update|change)\b/i,/\bresearch\b.*\b(and|then)\b/i,/\binvestigate\b/i].some(i=>i.test(A))}async function z_e(e,A){let t=`${e}
4410
+ \u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D `;function j_e(){try{return"1.72.12"}catch{return"1.0.0"}}function W_e(){try{return"6d6e1cce"}catch{return""}}function t0(e,A=58){let t=e.replace(/\x1b\[[0-9;]*m/g,""),i=Math.max(0,Math.floor((A-t.length)/2));return" ".repeat(i)+e}function BmA(e="\u2500",A=58){return dl(" "+e.repeat(A))}function PI(e,A){let t=j_e(),i=W_e();console.log(umA(L_e)),console.log(""),console.log(t0(Y_e(U_e("Must-b"))+" "+EmA("v"+t))),console.log(t0(dl("Professional AI Operating System"))),console.log(""),console.log(t0(umA("\u26A1 Autonomous \xB7 Precise \xB7 Always On"))),console.log(t0(dl("Vision")+dl(" \xB7 ")+dl("Voice")+dl(" \xB7 ")+dl("OS Control")+dl(" \xB7 ")+dl("Multi-Agent Hierarchy"))),console.log(""),console.log(BmA()),console.log("");let a=[`Node ${process.version}`,`Mode: ${e.toUpperCase()}`,`PID ${process.pid}`,i?`#${i}`:null].filter(Boolean).join(dl(" \xB7 "));console.log(t0(dl(a))),e==="web"&&(console.log(""),console.log(t0(P_e("\u25B6 ")+EmA(`http://localhost:${A}`))),console.log(t0(dl("Dashboard is live \u2014 open in your browser")))),console.log(""),console.log(BmA()),console.log(t0(dl("Built by Auto Step \xB7 https://must-b.com"))),console.log("")}var pmA=require("events"),mmA=require("module"),OM=VA(require("path"),1),bM=VA(require("fs"),1),HE=VA(require("os"),1);function gmA(e){let A=e.toLowerCase();return[/\b(refactor|redesign|architect|migrate|overhaul)\b/i,/\ball\s+(files|modules|services|endpoints)\b/i,/\bacross\s+the\s+(codebase|project|repo)\b/i,/\bmultiple\s+files\b/i,/\bimplement\s+(a\s+)?(new\s+)?(feature|system|module|service|api)\b/i,/\badd\s+(support\s+for|full|complete)\b/i,/\b(investigate|diagnose|audit|analyze)\b.*\b(and|then)\s+(fix|implement|add)\b/i,/\bfind\s+(all|every|the\s+root)\b/i,/\bsecurity\b.*\b(audit|review|fix|vulnerability)\b/i,/\b(vulnerability|cve|exploit|injection|xss|sql.inject)\b/i,/\b(first|step\s+1|phase\s+1)\b.*\bthen\b.*\b(implement|update|change)\b/i,/\bresearch\b.*\b(and|then)\b/i,/\binvestigate\b/i].some(i=>i.test(A))}async function z_e(e,A){let t=`${e}
4411
4411
 
4412
4412
  COORDINATOR INSTRUCTION: Generate ONLY research steps (read-only, no file writes).
4413
4413
  Steps must use ONLY these tools: filesystem_read, filesystem_list, filesystem_search,
@@ -778,7 +778,7 @@ Burada senin hakkında öğrendiğim bilgiler yer alır.
778
778
  group-hover:bg-red-500/10 transition-all shrink-0`,children:r.jsx(vh,{size:13})}),r.jsx("span",{className:"text-[12px] font-semibold text-white/50 group-hover:text-red-400 transition-colors",children:i?"Signing out…":"Sign Out"})]})]}),r.jsx("div",{className:"px-4 py-2 border-t border-white/6",children:r.jsx("p",{className:"text-[9.5px] text-white/18 text-center",children:"must-b.com · Secure OAuth connection"})})]},"profile-panel")})]})}const M_=4,A_=3e3;function z_(){return r.jsxs(H.div,{className:"fixed inset-0 z-[200] pointer-events-none flex items-center justify-center",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},children:[r.jsx("div",{className:"absolute inset-0 bg-black/35"}),Array.from({length:M_}).map((e,t)=>r.jsx(H.span,{className:"absolute rounded-full",style:{border:"1.5px solid rgba(249,115,22,0.70)",boxShadow:"0 0 20px rgba(249,115,22,0.25)"},initial:{width:64,height:64,opacity:.9,scale:1},animate:{width:64+t*0,height:64+t*0,scale:[1,3.5+t*1.2],opacity:[.8,0]},transition:{duration:1.8,delay:t*.22,ease:"easeOut",repeat:1/0,repeatDelay:.1}},t)),r.jsx(H.div,{className:"relative z-10 w-16 h-16 rounded-full flex items-center justify-center",style:{background:"rgba(249,115,22,0.18)",border:"1.5px solid rgba(249,115,22,0.55)",backdropFilter:"blur(16px)",boxShadow:"0 0 32px rgba(249,115,22,0.35), 0 0 64px rgba(249,115,22,0.15)"},animate:{scale:[1,1.06,1]},transition:{duration:1.2,repeat:1/0,ease:"easeInOut"},children:r.jsx(As,{size:26,className:"text-orange-400"})}),r.jsx(H.p,{className:"absolute text-[12px] font-semibold text-orange-300/80 tracking-widest uppercase",style:{top:"calc(50% + 52px)"},initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:.15,duration:.3},children:"Dinliyorum…"})]})}function R_(){const[e,t]=f.useState(!1),n=f.useRef(null),s=f.useCallback(()=>{t(!0),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(!1),A_)},[]);return f.useEffect(()=>(window.addEventListener("mustb:wake",s),()=>{window.removeEventListener("mustb:wake",s),n.current&&clearTimeout(n.current)}),[s]),r.jsx(ne,{children:e&&r.jsx(z_,{},"wake-aura")})}const L_={browser_navigate:"navigate",web_search:"search",http_request:"request"},I_=20,D_=5e3;function O_(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return e.slice(0,30)}}function B_(e){try{return new URL(e).pathname.slice(0,40)||"/"}catch{return""}}function F_(e){return e==="search"?r.jsx(Xt,{size:10}):e==="request"?r.jsx(Rr,{size:10}):r.jsx(We,{size:10})}function R1(e){return e==="search"?"#a78bfa":e==="request"?"#94a3b8":"#38bdf8"}function V_({domain:e,kind:t}){var i;const n=((i=e[0])==null?void 0:i.toUpperCase())??"?",s=R1(t);return r.jsx("span",{className:"w-6 h-6 rounded-lg flex items-center justify-center flex-shrink-0 text-[10px] font-black",style:{background:`${s}18`,border:`1px solid ${s}30`,color:s},children:n})}function $_({entry:e,isLatest:t}){var a;const n=R1(e.kind),s=e.domain??"",i=e.query??(e.url?B_(e.url):"");return r.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2",style:{borderLeft:t?`2px solid ${n}`:"2px solid transparent",background:t?`${n}08`:"transparent"},children:[r.jsx(V_,{domain:s||"?",kind:e.kind}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-[11px] font-semibold text-white/80 truncate leading-tight",children:s||((a=e.query)==null?void 0:a.slice(0,30))||"—"}),i&&r.jsx("p",{className:"text-[9px] text-white/35 truncate font-mono mt-0.5",children:i})]}),r.jsx("span",{style:{color:n,opacity:.6},className:"flex-shrink-0",children:F_(e.kind)}),r.jsx("span",{className:"text-[9px] text-white/20 font-mono flex-shrink-0",children:new Date(e.ts).toLocaleTimeString("tr-TR",{hour:"2-digit",minute:"2-digit",second:"2-digit"})})]})}function U_(){const[e,t]=f.useState([]),[n,s]=f.useState(!1),[i,a]=f.useState(!1),[o,l]=f.useState(!1),c=f.useRef(null),d=f.useCallback(()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{s(!1),t([]),l(!1)},D_)},[]);return f.useEffect(()=>{const u=at(),p=h=>{const{type:m}=h;if(m==="planStart"){c.current&&clearTimeout(c.current),l(!0);return}if(m==="planFinish"){l(!1),t(y=>y.map(b=>({...b,done:!0}))),d();return}if(m==="stepStart"&&h.step){const y=h.step,b=y.tool?L_[y.tool]:void 0;if(!b)return;const v=y.parameters??{},g=String(v.url??v.endpoint??"").trim(),x=String(v.query??"").trim();if(!g&&!x)return;const w={id:`v-${Date.now()}-${Math.random().toString(36).slice(2,5)}`,kind:b,url:g||void 0,query:x||void 0,domain:g?O_(g):void 0,ts:Date.now(),done:!1};t(j=>[w,...j].slice(0,I_)),s(!0),a(!1)}};return u.on("agentUpdate",p),()=>{u.off("agentUpdate",p),c.current&&clearTimeout(c.current)}},[d]),!n||e.length===0?null:r.jsx(H.div,{className:"fixed right-4 z-[120] w-[300px]",style:{top:"88px"},initial:{opacity:0,x:20,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:16,scale:.96},transition:{type:"spring",stiffness:360,damping:30},children:r.jsxs("div",{className:"rounded-2xl overflow-hidden",style:{background:"rgba(5,3,1,0.88)",border:"1px solid rgba(56,189,248,0.22)",backdropFilter:"blur(24px)",boxShadow:"0 8px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(56,189,248,0.06), inset 0 1px 0 rgba(255,255,255,0.03)"},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 cursor-pointer select-none",style:{borderBottom:i?"none":"1px solid rgba(255,255,255,0.06)"},onClick:()=>a(u=>!u),children:[r.jsx(KS,{size:11,className:"text-sky-400/70 flex-shrink-0"}),r.jsx("span",{className:"text-[11px] font-bold text-white/60 flex-1 tracking-wide uppercase",children:"Gezi Haritası"}),o&&r.jsxs("span",{className:"flex items-center gap-1.5 flex-shrink-0",children:[r.jsx(H.span,{className:"w-1.5 h-1.5 rounded-full bg-sky-400",animate:{opacity:[1,.3,1]},transition:{duration:1,repeat:1/0}}),r.jsx("span",{className:"text-[10px] text-sky-400/70 font-medium",children:"taranıyor"})]}),r.jsx("span",{className:"text-[10px] text-white/25 flex-shrink-0 font-mono ml-1",children:e.length}),r.jsx("button",{onClick:u=>{u.stopPropagation(),s(!1),t([])},className:"text-white/20 hover:text-white/50 transition-colors flex-shrink-0 ml-1",children:r.jsx(st,{size:10})}),r.jsx("span",{className:"text-white/20 flex-shrink-0",children:i?r.jsx(gh,{size:10}):r.jsx(sa,{size:10})})]}),r.jsx(ne,{children:!i&&r.jsxs(H.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.18},className:"overflow-hidden",children:[r.jsx("div",{className:"overflow-y-auto divide-y divide-white/4",style:{maxHeight:"260px"},children:r.jsx(ne,{mode:"popLayout",children:e.map((u,p)=>r.jsx(H.div,{layout:!0,initial:{opacity:0,x:16},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},children:r.jsx($_,{entry:u,isLatest:p===0&&o})},u.id))})}),r.jsx("div",{className:"px-3 py-1.5 flex items-center justify-between",style:{borderTop:"1px solid rgba(255,255,255,0.04)"},children:r.jsxs("span",{className:"text-[9px] text-white/20 font-mono",children:[e.filter(u=>u.kind==="navigate").length," gezinti ·"," ",e.filter(u=>u.kind==="search").length," arama ·"," ",e.filter(u=>u.kind==="request").length," istek"]})})]})})]})})}function H_(e){if(!e.created_at)return"Older";const t=new Date,n=new Date(e.created_at),s=(t.getTime()-n.getTime())/864e5;return s<1&&t.getDate()===n.getDate()?"Today":s<2&&t.getDate()-n.getDate()===1?"Yesterday":s<7?"Last 7 Days":"Older"}const W_=["Today","Yesterday","Last 7 Days","Older"],G_="flex items-center gap-2.5 px-2.5 py-2 rounded-lg transition-all text-[13px] font-medium mb-0.5 w-full text-left",K_="bg-orange-500/15 text-orange-300 border border-orange-500/25",q_="text-white/80 hover:text-white/95 hover:bg-white/6";function Y_(e){return Xe(G_,e?K_:q_)}function X_(e){return e?"text-orange-400 shrink-0":"text-white/70 shrink-0"}function Q_({onClose:e}){const{t}=ft(),n=os(),s=pn(),i=n.pathname,[a,o]=f.useState([]),[l,c]=f.useState(null),[d,u]=f.useState(""),[p,h]=f.useState(null),[m,y]=f.useState(null),[b,v]=f.useState(""),[g,x]=f.useState(""),[w,j]=f.useState(!1),k=f.useCallback(async()=>{try{const P=await U("/api/chats");if(!P.ok)return;const V=await P.json();o(V);const M=new Set([...V.map(O=>O.id),"default"]);for(let O=localStorage.length-1;O>=0;O--){const z=localStorage.key(O);z!=null&&z.startsWith("mustb_chat_turns_")&&!M.has(z.slice(17))&&localStorage.removeItem(z)}}catch{}},[]);f.useEffect(()=>{k();const P=setInterval(k,1e4);return()=>clearInterval(P)},[k]),f.useEffect(()=>{const P=V=>{const{id:M,title:O}=V.detail;o(z=>z.map(A=>A.id===M?{...A,title:O}:A))};return window.addEventListener("mustb:chat-renamed",P),()=>window.removeEventListener("mustb:chat-renamed",P)},[]),f.useEffect(()=>{U("/api/setup/status").then(P=>P.ok?P.json():null).then(P=>{P&&(v(P.activeProvider??""),x(P.activeModel??""))}).catch(()=>{}),fetch("/api/auth/user-status").then(P=>P.json()).then(P=>j(!!P.authenticated)).catch(()=>{})},[]);const N=async()=>{try{const P=await U("/api/chats",{method:"POST",body:JSON.stringify({title:"New Chat"})});if(!P.ok){fe.error("Failed to create chat.");return}const V=await P.json();o(M=>[V,...M]),s(`/app?chat=${V.id}`),e()}catch{fe.error("Gateway unreachable.")}},S=async()=>{if(p){try{await U(`/api/chats/${p}`,{method:"DELETE"}),o(P=>P.filter(V=>V.id!==p)),fe.success("Chat deleted."),i.includes(p)&&s("/app")}catch{fe.error("Failed to delete chat.")}h(null)}},E=async P=>{y(null);try{await U(`/api/chats/${P}`,{method:"PATCH",body:JSON.stringify({archived:!0})}),o(V=>V.filter(M=>M.id!==P)),fe.success("Chat archived.")}catch{fe.error("Failed to archive chat.")}},L=async()=>{if(!l||!d.trim()){c(null);return}try{await U(`/api/chats/${l}`,{method:"PATCH",body:JSON.stringify({title:d})}),o(P=>P.map(V=>V.id===l?{...V,title:d}:V)),fe.success("Chat renamed.")}catch{fe.error("Failed to rename chat.")}c(null)},R=[{to:"/app/browser",icon:r.jsx(We,{size:14}),label:t.nav.browser},{to:"/app/automations",icon:r.jsx(p4,{size:14}),label:t.nav.workflows},{to:"/app/skills",icon:r.jsx(Re,{size:14}),label:t.nav.skills},{to:"/app/plugins",icon:r.jsx(Cr,{size:14}),label:t.nav.plugins},{to:"/app/channels",icon:r.jsx(kh,{size:14}),label:t.nav.channels},{to:"/app/files",icon:r.jsx(cs,{size:14}),label:t.nav.files},{to:"/app/memory",icon:r.jsx(ra,{size:14}),label:t.nav.memory,exact:!0},{to:"/app/settings",icon:r.jsx(jh,{size:14}),label:t.nav.settings,exact:!0},{to:"/app/settings?tab=api-keys",icon:r.jsx(a1,{size:14}),label:t.nav.apiKeys}];return r.jsxs("aside",{className:"w-[280px] h-full bg-[#0d0703] border-r border-orange-500/10 flex flex-col overflow-hidden",children:[r.jsx("div",{className:"flex items-center h-[60px] pl-14 pr-4 shrink-0",children:r.jsxs(pi,{to:"/app",onClick:e,className:"flex items-center gap-2.5 hover:opacity-80 transition-opacity",children:[r.jsxs("div",{className:"relative w-7 h-7 shrink-0",children:[r.jsx("div",{className:"absolute inset-0 bg-orange-500 rounded-full blur-sm opacity-40"}),r.jsx("img",{src:"/logo.png",alt:"Must-b",className:"w-full h-full object-contain relative z-10"})]}),r.jsx("span",{className:"text-[18px] font-black tracking-tight text-white/90 leading-none select-none",children:"Must-b"})]})}),r.jsx("p",{className:"text-[10px] font-bold text-white/30 uppercase tracking-widest px-3 mb-2",children:"Sohbet"}),r.jsx("div",{className:"px-3 pb-3 shrink-0",children:r.jsxs("button",{onClick:N,className:"flex items-center justify-center gap-2 w-full px-3 py-1.5 rounded-lg border border-orange-500/20 bg-orange-500/10 text-orange-400 hover:bg-orange-500/20 hover:border-orange-500/30 transition-all text-[12px] font-medium",children:[r.jsx(hl,{size:14}),t.sidebar.newChat]})}),r.jsxs("div",{className:"flex-1 overflow-y-auto scrollbar-hide px-2 pb-4",onClick:()=>m&&y(null),children:[(()=>{const P={Today:[],Yesterday:[],"Last 7 Days":[],Older:[]};for(const V of a)P[H_(V)].push(V);return W_.map(V=>{const M=P[V];return M.length===0?null:r.jsxs("div",{children:[r.jsx("p",{className:"px-2 mt-3 mb-1 text-[9.5px] font-bold text-white/20 uppercase tracking-widest",children:V}),r.jsx("div",{className:"space-y-0.5",children:M.map(O=>r.jsx("div",{className:"group relative",children:l===O.id?r.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 bg-orange-500/10 rounded-lg border border-orange-500/25",children:[r.jsx("input",{value:d,onChange:z=>u(z.target.value),className:"flex-1 bg-transparent text-[13px] text-white/80 outline-none min-w-0",autoFocus:!0,onKeyDown:z=>{z.key==="Enter"&&L(),z.key==="Escape"&&c(null)}}),r.jsx("button",{onClick:L,className:"p-1 text-green-400 hover:bg-green-400/10 rounded transition-colors",children:r.jsx(Rt,{size:12})}),r.jsx("button",{onClick:()=>c(null),className:"p-1 text-red-400 hover:bg-red-400/10 rounded transition-colors",children:r.jsx(st,{size:12})})]}):r.jsxs(r.Fragment,{children:[r.jsxs(pi,{to:`/app?chat=${O.id}`,onClick:e,className:Xe("flex items-center gap-2.5 px-2.5 py-2 rounded-lg transition-all text-[13px] font-medium pr-8",i.includes(O.id)?"bg-orange-500/15 text-orange-300 border border-orange-500/25":"text-white/55 hover:text-white/85 hover:bg-white/6"),children:[r.jsx(Ms,{size:13,className:i.includes(O.id)?"text-orange-400 shrink-0":"text-white/30 shrink-0"}),r.jsx("span",{className:"flex-1 truncate",children:O.title})]}),r.jsx("button",{onClick:z=>{z.preventDefault(),z.stopPropagation(),y(m===O.id?null:O.id)},className:"absolute right-1 top-1/2 -translate-y-1/2 p-1 rounded text-white/25 hover:text-white/70 hover:bg-white/8 opacity-0 group-hover:opacity-100 transition-all",children:r.jsx(zS,{size:14})}),m===O.id&&r.jsxs("div",{className:"absolute right-0 top-full mt-1 z-50 min-w-[150px] rounded-xl py-1 overflow-hidden",style:{background:"rgba(16,6,2,0.97)",border:"1px solid rgba(249,115,22,0.15)",backdropFilter:"blur(20px)"},onClick:z=>z.stopPropagation(),children:[r.jsxs("button",{onClick:()=>{y(null),c(O.id),u(O.title)},className:"flex items-center gap-2.5 w-full px-3 py-2 text-[12px] text-white/60 hover:bg-white/5 transition-colors",children:[r.jsx(e4,{size:12,className:"text-white/35 shrink-0"})," Rename"]}),r.jsxs("button",{onClick:()=>E(O.id),className:"flex items-center gap-2.5 w-full px-3 py-2 text-[12px] text-white/60 hover:bg-white/5 transition-colors",children:[r.jsx(NS,{size:12,className:"text-white/35 shrink-0"})," Archive"]}),r.jsx("hr",{className:"my-1 border-white/8"}),r.jsxs("button",{onClick:z=>{z.preventDefault(),z.stopPropagation(),y(null),h(O.id)},className:"flex items-center gap-2.5 w-full px-3 py-2 text-[12px] text-red-400 hover:bg-red-500/10 transition-colors",children:[r.jsx(Ds,{size:12,className:"shrink-0"})," Delete"]})]})]})},O.id))})]},V)})})(),r.jsx("hr",{className:"my-3 border-white/10"}),R.map(({to:P,icon:V,label:M,exact:O})=>{const z=P.split("?")[0],A=O?i===z:i.startsWith(z);return r.jsxs(pi,{to:P,onClick:e,className:Y_(A),children:[r.jsx("span",{className:X_(A),children:V}),M]},P)})]}),r.jsxs("div",{className:"border-t border-orange-500/10 p-3 shrink-0",children:[g&&r.jsxs("div",{className:"mb-2 px-1",children:[r.jsx("p",{className:"text-[9px] text-white/25 font-bold uppercase tracking-[0.2em] mb-0.5",children:"Active Model"}),r.jsx("p",{className:"text-orange-400 text-[11px] font-bold truncate",children:g}),b&&r.jsx("p",{className:"text-white/30 text-[10px] capitalize",children:b})]}),w&&r.jsxs("button",{onClick:async()=>{try{await fetch("/api/auth/signout",{method:"POST"})}catch{}e(),s("/app"),window.location.reload()},className:"w-full flex items-center gap-2 px-2.5 py-2 rounded-lg text-white/30 hover:text-red-400 hover:bg-red-500/10 transition-all text-xs font-medium",children:[r.jsx(vh,{size:13}),t.sidebar.logout]}),r.jsxs("p",{className:"mt-2 text-[10px] text-white/20 px-1",children:[t.sidebar.poweredBy," ",r.jsx("span",{className:"text-orange-500/70 font-semibold",children:"Auto Step"})]})]}),p&&r.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/60 p-4",children:r.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-sm shadow-2xl",style:{background:"rgba(16,6,2,0.97)",border:"1px solid rgba(249,115,22,0.18)"},children:[r.jsx("h3",{className:"text-lg font-bold text-white/90 mb-2",children:t.sidebar.deleteChat}),r.jsx("p",{className:"text-white/45 text-sm mb-6",children:t.sidebar.deleteConfirm}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{onClick:()=>h(null),className:"flex-1 px-4 py-2 rounded-xl bg-white/8 hover:bg-white/12 text-white/70 text-sm font-medium transition-colors",children:t.sidebar.cancel}),r.jsx("button",{onClick:S,className:"flex-1 px-4 py-2 rounded-xl bg-red-600 hover:bg-red-500 text-white text-sm font-medium transition-colors",children:t.sidebar.delete})]})]})})]})}function pe(e){window.dispatchEvent(new CustomEvent("mustb:invoke-skill",{detail:{skill:e}})),setTimeout(()=>{var t;return(t=document.querySelector("textarea"))==null?void 0:t.focus()},80)}function J_({panel:e,title:t,onClose:n}){return f.useEffect(()=>{const s=i=>{i.key==="Escape"&&n()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[n]),r.jsxs(ne,{children:[r.jsx(H.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.18},className:"fixed inset-0 z-40 bg-black/55 backdrop-blur-[3px]",onClick:n},"stage-backdrop"),r.jsxs(H.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:12},transition:{type:"spring",stiffness:380,damping:32},className:`fixed z-50 top-[72px] left-1/2 -translate-x-1/2
779
779
  w-full max-w-2xl max-h-[calc(100vh-92px)]
780
780
  glass-panel rounded-3xl overflow-hidden flex flex-col
781
- shadow-[0_24px_80px_rgba(0,0,0,0.7),0_0_0_1px_rgba(249,115,22,0.18)]`,onClick:s=>s.stopPropagation(),children:[r.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-orange-500/12 shrink-0",children:[r.jsx("span",{className:"text-[13px] font-bold text-white/80",children:t}),r.jsx("button",{onClick:n,className:"w-7 h-7 flex items-center justify-center rounded-full hover:bg-white/8 text-white/40 hover:text-white/70 transition-colors",children:r.jsx(st,{size:14})})]}),r.jsxs("div",{className:"flex-1 overflow-hidden min-h-0",children:[e==="memory"&&r.jsx(o_,{}),e==="plugins"&&r.jsx(d_,{}),e==="skills"&&r.jsx(f_,{}),e==="workspace"&&r.jsx(v_,{}),e==="livesight"&&r.jsx(b_,{})]})]},"stage-card")]})}function Z_(){const{t:e}=ft(),t=os(),n=pn(),[s,i]=f.useState(!1),[a,o]=f.useState(""),[l,c]=f.useState(null),[d,u]=f.useState(!1);f.useEffect(()=>{const y=b=>{u(b.detail.active)};return window.addEventListener("mustb:safeMode",y),()=>window.removeEventListener("mustb:safeMode",y)},[]),f.useEffect(()=>{i(!1)},[t.pathname]),t.pathname,f.useCallback(y=>o(b=>b===y?"":y),[]),f.useCallback(y=>{c(y),o("")},[]);const p=f.useCallback(()=>c(null),[]),h=e.dock;h.cat_webTools,h.skill_webSearch,h.desc_webSearch,h.skill_webFetch,h.desc_webFetch,h.skill_browserControl,h.desc_browserControl,h.cat_fileMedia,h.skill_pdfReader,h.desc_pdfReader,h.skill_imageAnalysis,h.desc_imageAnalysis,h.skill_imageGeneration,h.desc_imageGeneration,h.skill_tts,h.desc_tts,h.cat_aiAgents,h.skills,h.skill_spawnAgent,h.desc_spawnAgent,h.skill_agentSessions,h.desc_agentSessions,h.skill_canvas,h.desc_canvas,h.skill_git,h.desc_git,h.cat_systemTools,h.skill_gateway,h.desc_gateway,h.skill_fileManager,h.desc_fileManager,h.skill_cron,h.desc_cron,h.skill_messages,h.desc_messages,h.cat_knowledgeBase,h.mem_browse,h.desc_memBrowse,h.mem_search,h.desc_memSearch,h.mem_add,h.desc_memAdd,h.cat_personalOrg,h.mem_contacts,h.desc_contacts,h.mem_calendar,h.desc_calendar,h.cat_pluginManager,h.plug_marketplace,h.desc_marketplace,h.plug_installed,h.desc_installed,h.plug_mcp,h.desc_mcp,h.cat_developer,h.plug_bundleMcp,h.desc_bundleMcp,h.plug_cliCmds,h.desc_cliCmds,h.cat_automation,h.wf_automations,h.desc_automations,h.wf_scheduled,h.desc_scheduled,h.wf_commands,h.desc_commands,h.cat_advanced,h.wf_nodes,h.desc_nodes,h.wf_multiAgent,h.desc_multiAgent;const m={memory:h.memory,plugins:h.plugins,skills:h.skills,workspace:h.files,livesight:"Visual Audit"};return r.jsx(rk,{reducedMotion:d?"always":"never",children:r.jsxs("div",{className:"relative min-h-screen overflow-x-hidden font-sans bg-transparent",children:[l&&r.jsx(J_,{panel:l,title:m[l],onClose:p}),r.jsx("div",{className:"fixed top-[14px] left-4 z-40 overflow-hidden",children:r.jsx("button",{onClick:()=>i(y=>!y),"aria-label":"Toggle sidebar",className:"p-2 rounded-full text-white/45 hover:text-white/90 hover:bg-white/8 transition-all leading-none",style:{backdropFilter:"blur(8px)",fontSize:0},children:r.jsx(YS,{size:17,"aria-hidden":"true",focusable:"false"})})}),r.jsxs("header",{className:"fixed top-0 inset-x-0 z-50 h-16 flex items-center justify-between px-6 pointer-events-none",children:[r.jsx("div",{}),r.jsxs("div",{className:"flex items-center gap-2.5 shrink-0 pointer-events-auto",children:[r.jsxs(pi,{to:"/app/voice",className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-medium transition-all select-none ${t.pathname==="/app/voice"?"bg-orange-500/20 text-orange-300 border border-orange-500/30":"text-white/45 hover:text-white/85 hover:bg-white/8"}`,title:e.nav.voice,children:[r.jsx(ES,{size:14}),r.jsx("span",{className:"hidden sm:inline",children:e.nav.voice})]}),r.jsx(H.div,{initial:{opacity:0,x:12},animate:{opacity:1,x:0},transition:{duration:.4,delay:.15},className:"flex items-center gap-1 px-2 py-1.5 rounded-full",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.09)"},children:r.jsx(i_,{})}),r.jsx(P_,{})]})]}),r.jsx(ne,{children:s&&r.jsx(H.div,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",stiffness:340,damping:34},className:"fixed top-0 left-0 bottom-0 z-30 w-[280px]",children:r.jsx(Q_,{onClose:()=>i(!1)})},"sidebar-panel")}),r.jsx("main",{className:"relative min-h-screen pt-16 transition-[margin] duration-300 bg-transparent",style:{marginLeft:s?280:0},children:r.jsx(a2,{})}),r.jsx(k_,{}),r.jsx(E_,{}),r.jsx(R_,{}),r.jsx(U_,{})]})})}const eE=[{decision:"duplicate",label:"Create New Agent",sublabel:"Keep both — cloud data is copied to a separate folder",icon:DS,accent:"border-blue-500/30 bg-blue-500/8 hover:border-blue-500/50 text-blue-400"},{decision:"restore",label:"Use Cloud (Overwrite)",sublabel:"Cloud wins — local memory is replaced with cloud version",icon:MS,accent:"border-orange-500/30 bg-orange-500/8 hover:border-orange-500/50 text-orange-400"},{decision:"upload",label:"Keep Mine",sublabel:"Local wins — cloud memory is overwritten with local data",icon:a4,accent:"border-green-500/30 bg-green-500/8 hover:border-green-500/50 text-green-400"}];function tE(){const[e,t]=f.useState(null),[n,s]=f.useState(!1),[i,a]=f.useState(!1);f.useEffect(()=>{const c=at(),d=u=>{u.type==="CONFLICT_DETECTED"&&(t({localAgentName:u.localAgentName??null,cloudAgentName:u.cloudAgentName??null,localMtime:u.localMtime??null,cloudTimestamp:u.cloudTimestamp??null}),a(!1)),u.type==="syncResolveFinish"&&(a(!0),setTimeout(()=>{t(null),a(!1)},1800))};return c.on("agentUpdate",d),()=>{c.off("agentUpdate",d)}},[]);const o=async c=>{if(!n){s(!0);try{await fetch("/api/setup/sync-resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:c})})}catch{}s(!1)}},l=c=>{if(!c)return"—";try{return new Date(c).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"})}catch{return c}};return r.jsx(ne,{children:e&&r.jsx(H.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/70 backdrop-blur-sm px-4",children:r.jsxs(H.div,{initial:{opacity:0,y:24,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.95},transition:{duration:.25},className:"w-full max-w-md bg-[#0c0f18] border border-white/10 rounded-2xl shadow-2xl overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-3 px-6 py-5 border-b border-white/8 bg-amber-500/5",children:[r.jsx("div",{className:"w-9 h-9 rounded-full bg-amber-500/15 flex items-center justify-center flex-shrink-0",children:r.jsx(ns,{size:18,className:"text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-white font-bold text-base",children:"Memory Conflict Detected"}),r.jsx("p",{className:"text-gray-500 text-xs mt-0.5",children:"Two agent identities found — action required"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3 px-6 pt-5 pb-2",children:[r.jsxs("div",{className:"rounded-xl border border-white/8 bg-white/3 px-4 py-3",children:[r.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-1",children:"Local Agent"}),r.jsx("p",{className:"text-white font-bold text-sm",children:e.localAgentName??"—"}),r.jsx("p",{className:"text-gray-600 text-[10px] mt-1",children:l(e.localMtime)})]}),r.jsxs("div",{className:"rounded-xl border border-orange-500/20 bg-orange-500/5 px-4 py-3",children:[r.jsx("p",{className:"text-[10px] font-bold text-orange-400/60 uppercase tracking-widest mb-1",children:"Cloud Agent"}),r.jsx("p",{className:"text-orange-300 font-bold text-sm",children:e.cloudAgentName??"—"}),r.jsx("p",{className:"text-orange-400/40 text-[10px] mt-1",children:l(e.cloudTimestamp)})]})]}),r.jsx("div",{className:"px-6 py-4 space-y-2",children:i?r.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-green-400 text-sm font-semibold",children:[r.jsx("span",{className:"w-4 h-4 rounded-full border-2 border-green-400 flex items-center justify-center text-[10px]",children:"✓"}),"Conflict resolved"]}):eE.map(c=>{const d=c.icon;return r.jsxs("button",{onClick:()=>o(c.decision),disabled:n,className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl border transition-all text-left disabled:opacity-50 disabled:cursor-not-allowed ${c.accent}`,children:[n?r.jsx(se,{size:16,className:"animate-spin flex-shrink-0"}):r.jsx(d,{size:16,className:"flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-sm text-white",children:c.label}),r.jsx("p",{className:"text-[11px] text-gray-500 mt-0.5",children:c.sublabel})]})]},c.decision)})}),r.jsx("div",{className:"px-6 pb-5 pt-1",children:r.jsx("p",{className:"text-[10px] text-gray-700 text-center",children:'This action cannot be undone · If unsure, choose "Create New Agent" first'})})]})})})}const nE="1.72.11";function sE(){const[e,t]=f.useState("idle"),[n,s]=f.useState(null),[i,a]=f.useState(""),[o,l]=f.useState(""),c=f.useRef(!1),d=f.useCallback(async()=>{var m,y;t("checking"),a("");try{const b=await U("/api/system/version");if(!b.ok)throw new Error(`Server returned ${b.status}`);const g=await b.json(),x=(g==null?void 0:g.current)??((m=g==null?void 0:g.data)==null?void 0:m.current),w=(g==null?void 0:g.latest)??((y=g==null?void 0:g.data)==null?void 0:y.latest);if(!x||!w)throw new Error("Version endpoint returned incomplete data");s({current:x,latest:w}),rE(w,x)>0?t("update-available"):(t("up-to-date"),setTimeout(()=>t("idle"),3e3))}catch(b){a((b==null?void 0:b.message)??"Check failed"),t("error"),setTimeout(()=>{t("idle"),a("")},4e3)}},[]);f.useEffect(()=>{if(e!=="restarting")return;const m=setTimeout(()=>window.close(),1e4),y=setInterval(async()=>{try{(await fetch("/api/system/health",{credentials:"include"})).ok&&(clearInterval(y),clearTimeout(m),c.current=!0,t("done"),window.close())}catch{}},3e3);return()=>{clearInterval(y),clearTimeout(m)}},[e]),f.useEffect(()=>{const y=setInterval(()=>{t(b=>((b==="idle"||b==="up-to-date")&&d(),b))},288e5);return()=>clearInterval(y)},[d]);const u=f.useCallback(async()=>{t("downloading"),l("");try{const m=await fetch("/api/system/update",{method:"POST",credentials:"include"});if(!m.body)throw new Error("No response body");const y=m.body.getReader(),b=new TextDecoder;let v="";for(;;){const{done:g,value:x}=await y.read();if(g)break;const w=b.decode(x);v+=w,l(j=>j+w)}v.includes("__MUSTB_SHUTTING_DOWN__")?t("restarting"):v.includes("❌")?(a("Install failed — see log above"),t("error"),setTimeout(()=>{t("idle"),a("")},5e3)):t("done")}catch(m){a((m==null?void 0:m.message)??"Update failed"),t("error")}},[]),p=f.useCallback(async()=>{t("restarting");try{await U("/api/system/restart",{method:"POST"})}catch{}const m=at();let y=0;const b=setInterval(()=>{y++,m.connected&&(clearInterval(b),window.location.reload()),y>60&&clearInterval(b)},500)},[]),h=(n==null?void 0:n.current)??nE;return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end gap-2",children:[!["update-available","downloading","done","restarting"].includes(e)&&r.jsxs("button",{onClick:e==="idle"||e==="up-to-date"||e==="error"?d:void 0,disabled:["checking","downloading","restarting"].includes(e),title:"Check for updates",className:Xe("flex items-center gap-2","py-2 px-4 rounded-full shadow-2xl","text-xs font-medium","transition-all duration-200",e==="update-available"?"bg-red-900/90 backdrop-blur-md border border-red-500/50 text-white hover:bg-red-800 hover:border-red-400/60":e==="error"?"bg-amber-900/90 backdrop-blur-md border border-amber-500/60 text-white hover:bg-amber-800 hover:border-amber-400/70":"bg-gray-900/90 backdrop-blur-md border border-gray-700/50 text-gray-300 hover:bg-gray-800 hover:border-gray-600/60 hover:text-white",["checking","downloading","restarting"].includes(e)&&"cursor-wait opacity-80"),children:[e==="checking"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="update-available"&&r.jsx(yi,{size:13,className:"text-red-300 shrink-0"}),e==="up-to-date"&&r.jsx(Aa,{size:13,className:"text-emerald-400 shrink-0"}),e==="downloading"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="done"&&r.jsx(Aa,{size:13,className:"text-emerald-400 shrink-0"}),e==="restarting"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="error"&&r.jsx(wt,{size:13,className:"text-amber-300 shrink-0"}),e==="idle"&&r.jsx(de,{size:13,className:"text-gray-500 shrink-0"}),r.jsxs("span",{className:"tabular-nums",children:[r.jsx("span",{children:"Must-b v"}),r.jsx("span",{children:h})]}),e==="checking"&&r.jsx("span",{className:"text-orange-400/80",children:"Checking…"}),e==="up-to-date"&&r.jsx("span",{className:"text-emerald-400/80",children:"Up to date"}),e==="downloading"&&r.jsx("span",{className:"text-orange-400/80",children:"Installing…"}),e==="done"&&r.jsx("span",{className:"text-emerald-400/80",children:"Installed!"}),e==="restarting"&&r.jsx("span",{className:"text-orange-400/80",children:"Restarting…"}),e==="error"&&r.jsxs("span",{className:"text-amber-300/90 max-w-[140px] truncate",children:["Check failed",i?` — ${i}`:""]})]}),e==="update-available"&&n&&r.jsxs("div",{className:"flex flex-col gap-3 p-4 rounded-2xl bg-gray-900/95 border border-orange-500/30 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(yi,{size:16,className:"text-orange-400 shrink-0"}),r.jsx("span",{className:"text-orange-300 font-semibold text-sm",children:"Update Available"})]}),r.jsxs("div",{className:"text-gray-400 text-xs leading-relaxed",children:[r.jsx("span",{children:"Version "}),r.jsx("span",{className:"font-mono text-white",children:n.latest}),r.jsx("span",{children:" is ready to install."})]}),r.jsxs("div",{className:"flex items-center justify-between text-[11px] text-gray-500",children:[r.jsxs("span",{children:["Current: ",r.jsx("span",{className:"font-mono",children:n.current})]}),r.jsxs("span",{children:["Latest: ",r.jsx("span",{className:"font-mono text-orange-300",children:n.latest})]})]}),r.jsxs("button",{onClick:u,className:"flex items-center justify-center gap-2 bg-orange-600 hover:bg-orange-500 active:scale-95 text-white rounded-xl py-2 text-xs font-semibold transition-all duration-150 shadow-lg shadow-orange-900/30",children:[r.jsx(yi,{size:13}),r.jsx("span",{children:"Download & Install"})]}),r.jsx("button",{onClick:()=>t("idle"),className:"text-center text-[11px] text-gray-600 hover:text-gray-400 transition-colors",children:r.jsx("span",{children:"Dismiss"})})]}),e==="downloading"&&r.jsxs("div",{className:"p-4 rounded-2xl bg-gray-900/95 border border-white/10 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2 text-xs text-orange-300 mb-3",children:[r.jsx(se,{size:13,className:"animate-spin shrink-0"}),r.jsx("span",{children:"Installing update…"})]}),r.jsx("pre",{className:"text-[10px] text-gray-400 max-h-24 overflow-y-auto whitespace-pre-wrap break-all font-mono bg-black/30 rounded-lg p-2",children:r.jsx("span",{children:o||"Connecting to npm registry…"})})]}),e==="done"&&!c.current&&r.jsxs("div",{className:"flex flex-col gap-3 p-4 rounded-2xl bg-gray-900/95 border border-emerald-500/30 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Aa,{size:16,className:"text-emerald-400 shrink-0"}),r.jsx("span",{className:"text-emerald-300 font-semibold text-sm",children:"Update Installed!"})]}),r.jsx("p",{className:"text-gray-400 text-xs",children:r.jsx("span",{children:"Restart Must-b to apply the new version."})}),r.jsxs("button",{onClick:p,className:"flex items-center justify-center gap-2 bg-emerald-700 hover:bg-emerald-600 active:scale-95 text-white rounded-xl py-2 text-xs font-semibold transition-all duration-150",children:[r.jsx(de,{size:13}),r.jsx("span",{children:"Restart Now"})]})]})]}),e==="done"&&c.current&&r.jsx("div",{className:"fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-black",children:r.jsxs("div",{className:"font-mono text-center px-8 max-w-xl w-full",children:[r.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[r.jsx(Aa,{size:18,className:"text-green-400 shrink-0"}),r.jsx("span",{className:"text-green-400 text-xs tracking-widest uppercase",children:"must-b terminal"})]}),r.jsx("pre",{className:"text-green-400 text-sm leading-relaxed text-left inline-block",children:`╔══════════════════════════════════════════════════════╗
781
+ shadow-[0_24px_80px_rgba(0,0,0,0.7),0_0_0_1px_rgba(249,115,22,0.18)]`,onClick:s=>s.stopPropagation(),children:[r.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-orange-500/12 shrink-0",children:[r.jsx("span",{className:"text-[13px] font-bold text-white/80",children:t}),r.jsx("button",{onClick:n,className:"w-7 h-7 flex items-center justify-center rounded-full hover:bg-white/8 text-white/40 hover:text-white/70 transition-colors",children:r.jsx(st,{size:14})})]}),r.jsxs("div",{className:"flex-1 overflow-hidden min-h-0",children:[e==="memory"&&r.jsx(o_,{}),e==="plugins"&&r.jsx(d_,{}),e==="skills"&&r.jsx(f_,{}),e==="workspace"&&r.jsx(v_,{}),e==="livesight"&&r.jsx(b_,{})]})]},"stage-card")]})}function Z_(){const{t:e}=ft(),t=os(),n=pn(),[s,i]=f.useState(!1),[a,o]=f.useState(""),[l,c]=f.useState(null),[d,u]=f.useState(!1);f.useEffect(()=>{const y=b=>{u(b.detail.active)};return window.addEventListener("mustb:safeMode",y),()=>window.removeEventListener("mustb:safeMode",y)},[]),f.useEffect(()=>{i(!1)},[t.pathname]),t.pathname,f.useCallback(y=>o(b=>b===y?"":y),[]),f.useCallback(y=>{c(y),o("")},[]);const p=f.useCallback(()=>c(null),[]),h=e.dock;h.cat_webTools,h.skill_webSearch,h.desc_webSearch,h.skill_webFetch,h.desc_webFetch,h.skill_browserControl,h.desc_browserControl,h.cat_fileMedia,h.skill_pdfReader,h.desc_pdfReader,h.skill_imageAnalysis,h.desc_imageAnalysis,h.skill_imageGeneration,h.desc_imageGeneration,h.skill_tts,h.desc_tts,h.cat_aiAgents,h.skills,h.skill_spawnAgent,h.desc_spawnAgent,h.skill_agentSessions,h.desc_agentSessions,h.skill_canvas,h.desc_canvas,h.skill_git,h.desc_git,h.cat_systemTools,h.skill_gateway,h.desc_gateway,h.skill_fileManager,h.desc_fileManager,h.skill_cron,h.desc_cron,h.skill_messages,h.desc_messages,h.cat_knowledgeBase,h.mem_browse,h.desc_memBrowse,h.mem_search,h.desc_memSearch,h.mem_add,h.desc_memAdd,h.cat_personalOrg,h.mem_contacts,h.desc_contacts,h.mem_calendar,h.desc_calendar,h.cat_pluginManager,h.plug_marketplace,h.desc_marketplace,h.plug_installed,h.desc_installed,h.plug_mcp,h.desc_mcp,h.cat_developer,h.plug_bundleMcp,h.desc_bundleMcp,h.plug_cliCmds,h.desc_cliCmds,h.cat_automation,h.wf_automations,h.desc_automations,h.wf_scheduled,h.desc_scheduled,h.wf_commands,h.desc_commands,h.cat_advanced,h.wf_nodes,h.desc_nodes,h.wf_multiAgent,h.desc_multiAgent;const m={memory:h.memory,plugins:h.plugins,skills:h.skills,workspace:h.files,livesight:"Visual Audit"};return r.jsx(rk,{reducedMotion:d?"always":"never",children:r.jsxs("div",{className:"relative min-h-screen overflow-x-hidden font-sans bg-transparent",children:[l&&r.jsx(J_,{panel:l,title:m[l],onClose:p}),r.jsx("div",{className:"fixed top-[14px] left-4 z-40 overflow-hidden",children:r.jsx("button",{onClick:()=>i(y=>!y),"aria-label":"Toggle sidebar",className:"p-2 rounded-full text-white/45 hover:text-white/90 hover:bg-white/8 transition-all leading-none",style:{backdropFilter:"blur(8px)",fontSize:0},children:r.jsx(YS,{size:17,"aria-hidden":"true",focusable:"false"})})}),r.jsxs("header",{className:"fixed top-0 inset-x-0 z-50 h-16 flex items-center justify-between px-6 pointer-events-none",children:[r.jsx("div",{}),r.jsxs("div",{className:"flex items-center gap-2.5 shrink-0 pointer-events-auto",children:[r.jsxs(pi,{to:"/app/voice",className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[12px] font-medium transition-all select-none ${t.pathname==="/app/voice"?"bg-orange-500/20 text-orange-300 border border-orange-500/30":"text-white/45 hover:text-white/85 hover:bg-white/8"}`,title:e.nav.voice,children:[r.jsx(ES,{size:14}),r.jsx("span",{className:"hidden sm:inline",children:e.nav.voice})]}),r.jsx(H.div,{initial:{opacity:0,x:12},animate:{opacity:1,x:0},transition:{duration:.4,delay:.15},className:"flex items-center gap-1 px-2 py-1.5 rounded-full",style:{background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.09)"},children:r.jsx(i_,{})}),r.jsx(P_,{})]})]}),r.jsx(ne,{children:s&&r.jsx(H.div,{initial:{x:-280},animate:{x:0},exit:{x:-280},transition:{type:"spring",stiffness:340,damping:34},className:"fixed top-0 left-0 bottom-0 z-30 w-[280px]",children:r.jsx(Q_,{onClose:()=>i(!1)})},"sidebar-panel")}),r.jsx("main",{className:"relative min-h-screen pt-16 transition-[margin] duration-300 bg-transparent",style:{marginLeft:s?280:0},children:r.jsx(a2,{})}),r.jsx(k_,{}),r.jsx(E_,{}),r.jsx(R_,{}),r.jsx(U_,{})]})})}const eE=[{decision:"duplicate",label:"Create New Agent",sublabel:"Keep both — cloud data is copied to a separate folder",icon:DS,accent:"border-blue-500/30 bg-blue-500/8 hover:border-blue-500/50 text-blue-400"},{decision:"restore",label:"Use Cloud (Overwrite)",sublabel:"Cloud wins — local memory is replaced with cloud version",icon:MS,accent:"border-orange-500/30 bg-orange-500/8 hover:border-orange-500/50 text-orange-400"},{decision:"upload",label:"Keep Mine",sublabel:"Local wins — cloud memory is overwritten with local data",icon:a4,accent:"border-green-500/30 bg-green-500/8 hover:border-green-500/50 text-green-400"}];function tE(){const[e,t]=f.useState(null),[n,s]=f.useState(!1),[i,a]=f.useState(!1);f.useEffect(()=>{const c=at(),d=u=>{u.type==="CONFLICT_DETECTED"&&(t({localAgentName:u.localAgentName??null,cloudAgentName:u.cloudAgentName??null,localMtime:u.localMtime??null,cloudTimestamp:u.cloudTimestamp??null}),a(!1)),u.type==="syncResolveFinish"&&(a(!0),setTimeout(()=>{t(null),a(!1)},1800))};return c.on("agentUpdate",d),()=>{c.off("agentUpdate",d)}},[]);const o=async c=>{if(!n){s(!0);try{await fetch("/api/setup/sync-resolve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({decision:c})})}catch{}s(!1)}},l=c=>{if(!c)return"—";try{return new Date(c).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"})}catch{return c}};return r.jsx(ne,{children:e&&r.jsx(H.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/70 backdrop-blur-sm px-4",children:r.jsxs(H.div,{initial:{opacity:0,y:24,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:24,scale:.95},transition:{duration:.25},className:"w-full max-w-md bg-[#0c0f18] border border-white/10 rounded-2xl shadow-2xl overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-3 px-6 py-5 border-b border-white/8 bg-amber-500/5",children:[r.jsx("div",{className:"w-9 h-9 rounded-full bg-amber-500/15 flex items-center justify-center flex-shrink-0",children:r.jsx(ns,{size:18,className:"text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-white font-bold text-base",children:"Memory Conflict Detected"}),r.jsx("p",{className:"text-gray-500 text-xs mt-0.5",children:"Two agent identities found — action required"})]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3 px-6 pt-5 pb-2",children:[r.jsxs("div",{className:"rounded-xl border border-white/8 bg-white/3 px-4 py-3",children:[r.jsx("p",{className:"text-[10px] font-bold text-gray-500 uppercase tracking-widest mb-1",children:"Local Agent"}),r.jsx("p",{className:"text-white font-bold text-sm",children:e.localAgentName??"—"}),r.jsx("p",{className:"text-gray-600 text-[10px] mt-1",children:l(e.localMtime)})]}),r.jsxs("div",{className:"rounded-xl border border-orange-500/20 bg-orange-500/5 px-4 py-3",children:[r.jsx("p",{className:"text-[10px] font-bold text-orange-400/60 uppercase tracking-widest mb-1",children:"Cloud Agent"}),r.jsx("p",{className:"text-orange-300 font-bold text-sm",children:e.cloudAgentName??"—"}),r.jsx("p",{className:"text-orange-400/40 text-[10px] mt-1",children:l(e.cloudTimestamp)})]})]}),r.jsx("div",{className:"px-6 py-4 space-y-2",children:i?r.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-green-400 text-sm font-semibold",children:[r.jsx("span",{className:"w-4 h-4 rounded-full border-2 border-green-400 flex items-center justify-center text-[10px]",children:"✓"}),"Conflict resolved"]}):eE.map(c=>{const d=c.icon;return r.jsxs("button",{onClick:()=>o(c.decision),disabled:n,className:`w-full flex items-center gap-3 px-4 py-3 rounded-xl border transition-all text-left disabled:opacity-50 disabled:cursor-not-allowed ${c.accent}`,children:[n?r.jsx(se,{size:16,className:"animate-spin flex-shrink-0"}):r.jsx(d,{size:16,className:"flex-shrink-0"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-sm text-white",children:c.label}),r.jsx("p",{className:"text-[11px] text-gray-500 mt-0.5",children:c.sublabel})]})]},c.decision)})}),r.jsx("div",{className:"px-6 pb-5 pt-1",children:r.jsx("p",{className:"text-[10px] text-gray-700 text-center",children:'This action cannot be undone · If unsure, choose "Create New Agent" first'})})]})})})}const nE="1.72.12";function sE(){const[e,t]=f.useState("idle"),[n,s]=f.useState(null),[i,a]=f.useState(""),[o,l]=f.useState(""),c=f.useRef(!1),d=f.useCallback(async()=>{var m,y;t("checking"),a("");try{const b=await U("/api/system/version");if(!b.ok)throw new Error(`Server returned ${b.status}`);const g=await b.json(),x=(g==null?void 0:g.current)??((m=g==null?void 0:g.data)==null?void 0:m.current),w=(g==null?void 0:g.latest)??((y=g==null?void 0:g.data)==null?void 0:y.latest);if(!x||!w)throw new Error("Version endpoint returned incomplete data");s({current:x,latest:w}),rE(w,x)>0?t("update-available"):(t("up-to-date"),setTimeout(()=>t("idle"),3e3))}catch(b){a((b==null?void 0:b.message)??"Check failed"),t("error"),setTimeout(()=>{t("idle"),a("")},4e3)}},[]);f.useEffect(()=>{if(e!=="restarting")return;const m=setTimeout(()=>window.close(),1e4),y=setInterval(async()=>{try{(await fetch("/api/system/health",{credentials:"include"})).ok&&(clearInterval(y),clearTimeout(m),c.current=!0,t("done"),window.close())}catch{}},3e3);return()=>{clearInterval(y),clearTimeout(m)}},[e]),f.useEffect(()=>{const y=setInterval(()=>{t(b=>((b==="idle"||b==="up-to-date")&&d(),b))},288e5);return()=>clearInterval(y)},[d]);const u=f.useCallback(async()=>{t("downloading"),l("");try{const m=await fetch("/api/system/update",{method:"POST",credentials:"include"});if(!m.body)throw new Error("No response body");const y=m.body.getReader(),b=new TextDecoder;let v="";for(;;){const{done:g,value:x}=await y.read();if(g)break;const w=b.decode(x);v+=w,l(j=>j+w)}v.includes("__MUSTB_SHUTTING_DOWN__")?t("restarting"):v.includes("❌")?(a("Install failed — see log above"),t("error"),setTimeout(()=>{t("idle"),a("")},5e3)):t("done")}catch(m){a((m==null?void 0:m.message)??"Update failed"),t("error")}},[]),p=f.useCallback(async()=>{t("restarting");try{await U("/api/system/restart",{method:"POST"})}catch{}const m=at();let y=0;const b=setInterval(()=>{y++,m.connected&&(clearInterval(b),window.location.reload()),y>60&&clearInterval(b)},500)},[]),h=(n==null?void 0:n.current)??nE;return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end gap-2",children:[!["update-available","downloading","done","restarting"].includes(e)&&r.jsxs("button",{onClick:e==="idle"||e==="up-to-date"||e==="error"?d:void 0,disabled:["checking","downloading","restarting"].includes(e),title:"Check for updates",className:Xe("flex items-center gap-2","py-2 px-4 rounded-full shadow-2xl","text-xs font-medium","transition-all duration-200",e==="update-available"?"bg-red-900/90 backdrop-blur-md border border-red-500/50 text-white hover:bg-red-800 hover:border-red-400/60":e==="error"?"bg-amber-900/90 backdrop-blur-md border border-amber-500/60 text-white hover:bg-amber-800 hover:border-amber-400/70":"bg-gray-900/90 backdrop-blur-md border border-gray-700/50 text-gray-300 hover:bg-gray-800 hover:border-gray-600/60 hover:text-white",["checking","downloading","restarting"].includes(e)&&"cursor-wait opacity-80"),children:[e==="checking"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="update-available"&&r.jsx(yi,{size:13,className:"text-red-300 shrink-0"}),e==="up-to-date"&&r.jsx(Aa,{size:13,className:"text-emerald-400 shrink-0"}),e==="downloading"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="done"&&r.jsx(Aa,{size:13,className:"text-emerald-400 shrink-0"}),e==="restarting"&&r.jsx(se,{size:13,className:"animate-spin text-orange-400 shrink-0"}),e==="error"&&r.jsx(wt,{size:13,className:"text-amber-300 shrink-0"}),e==="idle"&&r.jsx(de,{size:13,className:"text-gray-500 shrink-0"}),r.jsxs("span",{className:"tabular-nums",children:[r.jsx("span",{children:"Must-b v"}),r.jsx("span",{children:h})]}),e==="checking"&&r.jsx("span",{className:"text-orange-400/80",children:"Checking…"}),e==="up-to-date"&&r.jsx("span",{className:"text-emerald-400/80",children:"Up to date"}),e==="downloading"&&r.jsx("span",{className:"text-orange-400/80",children:"Installing…"}),e==="done"&&r.jsx("span",{className:"text-emerald-400/80",children:"Installed!"}),e==="restarting"&&r.jsx("span",{className:"text-orange-400/80",children:"Restarting…"}),e==="error"&&r.jsxs("span",{className:"text-amber-300/90 max-w-[140px] truncate",children:["Check failed",i?` — ${i}`:""]})]}),e==="update-available"&&n&&r.jsxs("div",{className:"flex flex-col gap-3 p-4 rounded-2xl bg-gray-900/95 border border-orange-500/30 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(yi,{size:16,className:"text-orange-400 shrink-0"}),r.jsx("span",{className:"text-orange-300 font-semibold text-sm",children:"Update Available"})]}),r.jsxs("div",{className:"text-gray-400 text-xs leading-relaxed",children:[r.jsx("span",{children:"Version "}),r.jsx("span",{className:"font-mono text-white",children:n.latest}),r.jsx("span",{children:" is ready to install."})]}),r.jsxs("div",{className:"flex items-center justify-between text-[11px] text-gray-500",children:[r.jsxs("span",{children:["Current: ",r.jsx("span",{className:"font-mono",children:n.current})]}),r.jsxs("span",{children:["Latest: ",r.jsx("span",{className:"font-mono text-orange-300",children:n.latest})]})]}),r.jsxs("button",{onClick:u,className:"flex items-center justify-center gap-2 bg-orange-600 hover:bg-orange-500 active:scale-95 text-white rounded-xl py-2 text-xs font-semibold transition-all duration-150 shadow-lg shadow-orange-900/30",children:[r.jsx(yi,{size:13}),r.jsx("span",{children:"Download & Install"})]}),r.jsx("button",{onClick:()=>t("idle"),className:"text-center text-[11px] text-gray-600 hover:text-gray-400 transition-colors",children:r.jsx("span",{children:"Dismiss"})})]}),e==="downloading"&&r.jsxs("div",{className:"p-4 rounded-2xl bg-gray-900/95 border border-white/10 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2 text-xs text-orange-300 mb-3",children:[r.jsx(se,{size:13,className:"animate-spin shrink-0"}),r.jsx("span",{children:"Installing update…"})]}),r.jsx("pre",{className:"text-[10px] text-gray-400 max-h-24 overflow-y-auto whitespace-pre-wrap break-all font-mono bg-black/30 rounded-lg p-2",children:r.jsx("span",{children:o||"Connecting to npm registry…"})})]}),e==="done"&&!c.current&&r.jsxs("div",{className:"flex flex-col gap-3 p-4 rounded-2xl bg-gray-900/95 border border-emerald-500/30 backdrop-blur-md shadow-2xl w-60",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Aa,{size:16,className:"text-emerald-400 shrink-0"}),r.jsx("span",{className:"text-emerald-300 font-semibold text-sm",children:"Update Installed!"})]}),r.jsx("p",{className:"text-gray-400 text-xs",children:r.jsx("span",{children:"Restart Must-b to apply the new version."})}),r.jsxs("button",{onClick:p,className:"flex items-center justify-center gap-2 bg-emerald-700 hover:bg-emerald-600 active:scale-95 text-white rounded-xl py-2 text-xs font-semibold transition-all duration-150",children:[r.jsx(de,{size:13}),r.jsx("span",{children:"Restart Now"})]})]})]}),e==="done"&&c.current&&r.jsx("div",{className:"fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-black",children:r.jsxs("div",{className:"font-mono text-center px-8 max-w-xl w-full",children:[r.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[r.jsx(Aa,{size:18,className:"text-green-400 shrink-0"}),r.jsx("span",{className:"text-green-400 text-xs tracking-widest uppercase",children:"must-b terminal"})]}),r.jsx("pre",{className:"text-green-400 text-sm leading-relaxed text-left inline-block",children:`╔══════════════════════════════════════════════════════╗
782
782
  ║ ║
783
783
  ║ MUST-B IS BACK ONLINE ║
784
784
  ║ ───────────────────────────────────────────── ║
@@ -11,7 +11,7 @@
11
11
  <meta property="og:type" content="website" />
12
12
  <link rel="preconnect" href="https://fonts.googleapis.com" />
13
13
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
- <script type="module" crossorigin src="/assets/index-CkCjyNSV.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-DA4PofMR.js"></script>
15
15
  <link rel="stylesheet" crossorigin href="/assets/index-Ci_axB80.css">
16
16
  </head>
17
17
  <body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@must-b/must-b",
3
- "version": "1.72.11",
4
- "description": "Must-b v1.72.11 — Autonomous AI agent with Computer Use + Voice pipeline + cross-platform OS abstraction + MetaTrader 5 finance bridge, 57+ embedded skills — Gateway Protocol v3 + Phase B-E Architecture Unification",
3
+ "version": "1.72.12",
4
+ "description": "Must-b v1.72.12 — Autonomous AI agent with Computer Use + Voice pipeline + cross-platform OS abstraction + MetaTrader 5 finance bridge, 57+ embedded skills — Gateway Protocol v3 + Phase B-E Architecture Unification",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Must-b Inc.",
7
7
  "homepage": "https://must-b.com",
@@ -231,7 +231,7 @@ if (existsSync(EXT_SRC)) {
231
231
  continue;
232
232
  }
233
233
 
234
- const outEntryRel = entryRel.replace(/\.ts$/, ".js");
234
+ const outEntryRel = entryRel.replace(/\.ts$/, ".cjs");
235
235
  const outEntryAbs = join(outDir, outEntryRel);
236
236
  mkdirSync(dirname(outEntryAbs), { recursive: true });
237
237
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes