@clagentic/console 1.6.0 → 1.7.0-beta.1

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 (85) hide show
  1. package/bin/cli.js +20 -102
  2. package/deploy/clagentic-console.service +10 -1
  3. package/lib/agents-favorites.js +0 -1
  4. package/lib/agents.js +0 -10
  5. package/lib/cli-sessions.js +0 -12
  6. package/lib/codex-defaults.js +4 -1
  7. package/lib/config.js +0 -8
  8. package/lib/daemon.js +88 -9
  9. package/lib/dm.js +0 -1
  10. package/lib/ipc.js +129 -59
  11. package/lib/loop-handoff.js +5 -1
  12. package/lib/memory-limits.js +214 -36
  13. package/lib/memory-shed.js +207 -0
  14. package/lib/notes.js +0 -20
  15. package/lib/os-users.js +0 -3
  16. package/lib/project-connection.js +31 -5
  17. package/lib/project-external-trigger.js +2 -1
  18. package/lib/project-filesystem.js +18 -11
  19. package/lib/project-knowledge.js +0 -8
  20. package/lib/project-loop.js +162 -9
  21. package/lib/project-sessions.js +87 -21
  22. package/lib/project-user-mention.js +2 -1
  23. package/lib/project-user-message.js +16 -5
  24. package/lib/project.js +14 -25
  25. package/lib/public/app.js +1 -2
  26. package/lib/public/css/channel-layout.css +25 -158
  27. package/lib/public/css/diagnostics.css +17 -1
  28. package/lib/public/css/icon-strip.css +1 -32
  29. package/lib/public/css/input.css +0 -56
  30. package/lib/public/css/loop.css +94 -0
  31. package/lib/public/css/messages.css +23 -4
  32. package/lib/public/css/mobile-nav.css +0 -124
  33. package/lib/public/index.html +11 -11
  34. package/lib/public/modules/app-connection.js +2 -1
  35. package/lib/public/modules/app-favicon.js +1 -1
  36. package/lib/public/modules/app-loop-ui.js +140 -4
  37. package/lib/public/modules/app-messages.js +17 -11
  38. package/lib/public/modules/app-projects.js +1 -1
  39. package/lib/public/modules/custom-icons.js +15 -1
  40. package/lib/public/modules/dom-refs.js +1 -2
  41. package/lib/public/modules/emoji-picker.js +6 -1
  42. package/lib/public/modules/filebrowser.js +33 -9
  43. package/lib/public/modules/input.js +39 -0
  44. package/lib/public/modules/scheduler.js +20 -6
  45. package/lib/public/modules/sidebar-mobile.js +0 -64
  46. package/lib/public/modules/sidebar-projects.js +90 -25
  47. package/lib/public/modules/sidebar-sessions.js +80 -13
  48. package/lib/public/modules/stt.js +2 -6
  49. package/lib/public/modules/tool-palette.js +0 -1
  50. package/lib/public/modules/tools.js +2 -6
  51. package/lib/public/style.css +0 -1
  52. package/lib/scheduler.js +0 -1
  53. package/lib/sdk-bridge.js +126 -194
  54. package/lib/sdk-message-processor.js +24 -9
  55. package/lib/sdk-permission-ownership.js +51 -0
  56. package/lib/server-auth.js +25 -18
  57. package/lib/server-dm.js +1 -1
  58. package/lib/server-skills.js +9 -1
  59. package/lib/server.js +18 -3
  60. package/lib/session-search.js +4 -299
  61. package/lib/sessions.js +467 -82
  62. package/lib/smtp.js +0 -15
  63. package/lib/user-presence.js +0 -12
  64. package/lib/users-preferences.js +2 -2
  65. package/lib/users.js +0 -5
  66. package/lib/utils.js +56 -0
  67. package/lib/ws-schema.js +3 -14
  68. package/lib/yoke/adapters/codex.js +96 -10
  69. package/lib/yoke/codex-local-image.js +79 -0
  70. package/package.json +1 -1
  71. package/scripts/postinstall.js +16 -11
  72. package/lib/ask-user-mcp-server.js +0 -121
  73. package/lib/project-memory.js +0 -39
  74. package/lib/public/console-icon.png +0 -0
  75. package/lib/public/css/debate.css +0 -1610
  76. package/lib/public/favicon-banded-32.png +0 -0
  77. package/lib/public/favicon-dark.svg +0 -32
  78. package/lib/public/favicon.svg +0 -32
  79. package/lib/public/icon-banded-96.png +0 -0
  80. package/lib/public/icons/email/gmail.svg +0 -7
  81. package/lib/public/icons/email/outlook.svg +0 -35
  82. package/lib/public/icons/email/yahoo.svg +0 -1
  83. package/lib/public/modules/events.js +0 -21
  84. package/lib/public/modules/state.js +0 -3
  85. package/lib/sdk-worker.js +0 -730
Binary file
@@ -1,32 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" fill="none">
2
- <rect width="72" height="72" rx="16" fill="#080A0F"/>
3
- <defs>
4
- <linearGradient id="cg" gradientUnits="userSpaceOnUse" x1="6" y1="10" x2="66" y2="62">
5
- <stop offset="0%" stop-color="#00CFFF"/>
6
- <stop offset="50%" stop-color="#4A7FE8"/>
7
- <stop offset="100%" stop-color="#7B3FE4"/>
8
- </linearGradient>
9
- </defs>
10
- <!-- Outer frame -->
11
- <rect x="6" y="10" width="60" height="52" rx="5" ry="5"
12
- fill="none" stroke="url(#cg)" stroke-width="3.5"/>
13
- <!-- Vertical divider -->
14
- <line x1="24" y1="10" x2="24" y2="62"
15
- stroke="url(#cg)" stroke-width="2" stroke-opacity="0.6"/>
16
- <!-- Left panel lines -->
17
- <line x1="10" y1="22" x2="20" y2="22" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
18
- <line x1="10" y1="28" x2="19" y2="28" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
19
- <line x1="10" y1="37" x2="20" y2="37" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
20
- <line x1="10" y1="43" x2="17" y2="43" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
21
- <!-- Bottom-left square -->
22
- <rect x="10" y="49" width="9" height="7" rx="1.5"
23
- fill="none" stroke="url(#cg)" stroke-width="1.8"/>
24
- <!-- Right panel lines -->
25
- <line x1="29" y1="19" x2="58" y2="19" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
26
- <line x1="29" y1="25" x2="54" y2="25" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
27
- <line x1="29" y1="31" x2="56" y2="31" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
28
- <line x1="29" y1="37" x2="50" y2="37" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
29
- <line x1="29" y1="43" x2="55" y2="43" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
30
- <line x1="29" y1="49" x2="58" y2="49" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
31
- <line x1="29" y1="55" x2="46" y2="55" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
32
- </svg>
@@ -1,32 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" fill="none">
2
- <rect width="72" height="72" rx="16" fill="#080A0F"/>
3
- <defs>
4
- <linearGradient id="cg" gradientUnits="userSpaceOnUse" x1="6" y1="10" x2="66" y2="62">
5
- <stop offset="0%" stop-color="#00CFFF"/>
6
- <stop offset="50%" stop-color="#4A7FE8"/>
7
- <stop offset="100%" stop-color="#7B3FE4"/>
8
- </linearGradient>
9
- </defs>
10
- <!-- Outer frame -->
11
- <rect x="6" y="10" width="60" height="52" rx="5" ry="5"
12
- fill="none" stroke="url(#cg)" stroke-width="3.5"/>
13
- <!-- Vertical divider -->
14
- <line x1="24" y1="10" x2="24" y2="62"
15
- stroke="url(#cg)" stroke-width="2" stroke-opacity="0.6"/>
16
- <!-- Left panel lines -->
17
- <line x1="10" y1="22" x2="20" y2="22" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
18
- <line x1="10" y1="28" x2="19" y2="28" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
19
- <line x1="10" y1="37" x2="20" y2="37" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
20
- <line x1="10" y1="43" x2="17" y2="43" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
21
- <!-- Bottom-left square -->
22
- <rect x="10" y="49" width="9" height="7" rx="1.5"
23
- fill="none" stroke="url(#cg)" stroke-width="1.8"/>
24
- <!-- Right panel lines -->
25
- <line x1="29" y1="19" x2="58" y2="19" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
26
- <line x1="29" y1="25" x2="54" y2="25" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
27
- <line x1="29" y1="31" x2="56" y2="31" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
28
- <line x1="29" y1="37" x2="50" y2="37" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
29
- <line x1="29" y1="43" x2="55" y2="43" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
30
- <line x1="29" y1="49" x2="58" y2="49" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
31
- <line x1="29" y1="55" x2="46" y2="55" stroke="url(#cg)" stroke-width="1.8" stroke-linecap="round"/>
32
- </svg>
Binary file
@@ -1,7 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="52 42 88 66">
2
- <path fill="#4285f4" d="M58 108h14V74L52 59v43c0 3.32 2.69 6 6 6"/>
3
- <path fill="#34a853" d="M120 108h14c3.32 0 6-2.69 6-6V59l-20 15"/>
4
- <path fill="#fbbc04" d="M120 48v26l20-15v-8c0-7.42-8.47-11.65-14.4-7.2"/>
5
- <path fill="#ea4335" d="M72 74V48l24 18 24-18v26L96 92"/>
6
- <path fill="#c5221f" d="M52 51v8l20 15V48l-5.6-4.2c-5.94-4.45-14.4-.22-14.4 7.2"/>
7
- </svg>
@@ -1,35 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <svg version="1.1" id="Livello_1" xmlns:x="http://ns.adobe.com/Extensibility/1.0/" xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" xmlns:graph="http://ns.adobe.com/Graphs/1.0/" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1831.085 1703.335" enable-background="new 0 0 1831.085 1703.335" xml:space="preserve">
5
- <path fill="#0A2767" d="M1831.083,894.25c0.1-14.318-7.298-27.644-19.503-35.131h-0.213l-0.767-0.426l-634.492-375.585 c-2.74-1.851-5.583-3.543-8.517-5.067c-24.498-12.639-53.599-12.639-78.098,0c-2.934,1.525-5.777,3.216-8.517,5.067L446.486,858.693 l-0.766,0.426c-19.392,12.059-25.337,37.556-13.278,56.948c3.553,5.714,8.447,10.474,14.257,13.868l634.492,375.585 c2.749,1.835,5.592,3.527,8.517,5.068c24.498,12.639,53.599,12.639,78.098,0c2.925-1.541,5.767-3.232,8.517-5.068l634.492-375.585 C1823.49,922.545,1831.228,908.923,1831.083,894.25z"/>
6
- <path fill="#0364B8" d="M520.453,643.477h416.38v381.674h-416.38V643.477z M1745.917,255.5V80.908 c1-43.652-33.552-79.862-77.203-80.908H588.204C544.552,1.046,510,37.256,511,80.908V255.5l638.75,170.333L1745.917,255.5z"/>
7
- <path fill="#0078D4" d="M511,255.5h425.833v383.25H511V255.5z"/>
8
- <path fill="#28A8EA" d="M1362.667,255.5H936.833v383.25L1362.667,1022h383.25V638.75L1362.667,255.5z"/>
9
- <path fill="#0078D4" d="M936.833,638.75h425.833V1022H936.833V638.75z"/>
10
- <path fill="#0364B8" d="M936.833,1022h425.833v383.25H936.833V1022z"/>
11
- <path fill="#14447D" d="M520.453,1025.151h416.38v346.969h-416.38V1025.151z"/>
12
- <path fill="#0078D4" d="M1362.667,1022h383.25v383.25h-383.25V1022z"/>
13
- <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="1128.4584" y1="811.0833" x2="1128.4584" y2="1.9982" gradientTransform="matrix(1 0 0 -1 0 1705.3334)">
14
- <stop offset="0" style="stop-color:#35B8F1"/>
15
- <stop offset="1" style="stop-color:#28A8EA"/>
16
- </linearGradient>
17
- <path fill="url(#SVGID_1_)" d="M1811.58,927.593l-0.809,0.426l-634.492,356.848c-2.768,1.703-5.578,3.321-8.517,4.769 c-10.777,5.132-22.481,8.029-34.407,8.517l-34.663-20.27c-2.929-1.47-5.773-3.105-8.517-4.897L447.167,906.003h-0.298 l-21.036-11.753v722.384c0.328,48.196,39.653,87.006,87.849,86.7h1230.914c0.724,0,1.363-0.341,2.129-0.341 c10.18-0.651,20.216-2.745,29.808-6.217c4.145-1.756,8.146-3.835,11.966-6.217c2.853-1.618,7.75-5.152,7.75-5.152 c21.814-16.142,34.726-41.635,34.833-68.772V894.25C1831.068,908.067,1823.616,920.807,1811.58,927.593z"/>
18
- <path opacity="0.5" fill="#0A2767" enable-background="new " d="M1797.017,891.397v44.287l-663.448,456.791L446.699,906.301 c0-0.235-0.191-0.426-0.426-0.426l0,0l-63.023-37.899v-31.938l25.976-0.426l54.932,31.512l1.277,0.426l4.684,2.981 c0,0,645.563,368.346,647.267,369.197l24.698,14.478c2.129-0.852,4.258-1.703,6.813-2.555 c1.278-0.852,640.879-360.681,640.879-360.681L1797.017,891.397z"/>
19
- <path fill="#1490DF" d="M1811.58,927.593l-0.809,0.468l-634.492,356.848c-2.768,1.703-5.578,3.321-8.517,4.769 c-24.641,12.038-53.457,12.038-78.098,0c-2.918-1.445-5.76-3.037-8.517-4.769L446.657,928.061l-0.766-0.468 c-12.25-6.642-19.93-19.409-20.057-33.343v722.384c0.305,48.188,39.616,87.004,87.803,86.7c0.001,0,0.002,0,0.004,0h1229.636 c48.188,0.307,87.5-38.509,87.807-86.696c0-0.001,0-0.002,0-0.004V894.25C1831.068,908.067,1823.616,920.807,1811.58,927.593z"/>
20
- <path opacity="0.1" enable-background="new " d="M1185.52,1279.629l-9.496,5.323c-2.752,1.752-5.595,3.359-8.517,4.812 c-10.462,5.135-21.838,8.146-33.47,8.857l241.405,285.479l421.107,101.476c11.539-8.716,20.717-20.178,26.7-33.343L1185.52,1279.629 z"/>
21
- <path opacity="0.05" enable-background="new " d="M1228.529,1255.442l-52.505,29.51c-2.752,1.752-5.595,3.359-8.517,4.812 c-10.462,5.135-21.838,8.146-33.47,8.857l113.101,311.838l549.538,74.989c21.649-16.254,34.394-41.743,34.407-68.815v-9.326 L1228.529,1255.442z"/>
22
- <path fill="#28A8EA" d="M514.833,1703.333h1228.316c18.901,0.096,37.335-5.874,52.59-17.033l-697.089-408.331 c-2.929-1.47-5.773-3.105-8.517-4.897L447.125,906.088h-0.298l-20.993-11.838v719.914 C425.786,1663.364,465.632,1703.286,514.833,1703.333C514.832,1703.333,514.832,1703.333,514.833,1703.333z"/>
23
- <path opacity="0.1" enable-background="new " d="M1022,418.722v908.303c-0.076,31.846-19.44,60.471-48.971,72.392 c-9.148,3.931-19,5.96-28.957,5.962H425.833V383.25H511v-42.583h433.073C987.092,340.83,1021.907,375.702,1022,418.722z"/>
24
- <path opacity="0.2" enable-background="new " d="M979.417,461.305v908.302c0.107,10.287-2.074,20.469-6.388,29.808 c-11.826,29.149-40.083,48.273-71.54,48.417H425.833V383.25h475.656c12.356-0.124,24.533,2.958,35.344,8.943 C962.937,405.344,979.407,432.076,979.417,461.305z"/>
25
- <path opacity="0.2" enable-background="new " d="M979.417,461.305v823.136c-0.208,43-34.928,77.853-77.927,78.225H425.833V383.25 h475.656c12.356-0.124,24.533,2.958,35.344,8.943C962.937,405.344,979.407,432.076,979.417,461.305z"/>
26
- <path opacity="0.2" enable-background="new " d="M936.833,461.305v823.136c-0.046,43.067-34.861,78.015-77.927,78.225H425.833 V383.25h433.072c43.062,0.023,77.951,34.951,77.927,78.013C936.833,461.277,936.833,461.291,936.833,461.305z"/>
27
- <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="162.7469" y1="1383.0741" x2="774.0864" y2="324.2592" gradientTransform="matrix(1 0 0 -1 0 1705.3334)">
28
- <stop offset="0" style="stop-color:#1784D9"/>
29
- <stop offset="0.5" style="stop-color:#107AD5"/>
30
- <stop offset="1" style="stop-color:#0A63C9"/>
31
- </linearGradient>
32
- <path fill="url(#SVGID_2_)" d="M78.055,383.25h780.723c43.109,0,78.055,34.947,78.055,78.055v780.723 c0,43.109-34.946,78.055-78.055,78.055H78.055c-43.109,0-78.055-34.947-78.055-78.055V461.305 C0,418.197,34.947,383.25,78.055,383.25z"/>
33
- <path fill="#FFFFFF" d="M243.96,710.631c19.238-40.988,50.29-75.289,89.17-98.495c43.057-24.651,92.081-36.94,141.675-35.515 c45.965-0.997,91.321,10.655,131.114,33.683c37.414,22.312,67.547,55.004,86.742,94.109c20.904,43.09,31.322,90.512,30.405,138.396 c1.013,50.043-9.706,99.628-31.299,144.783c-19.652,40.503-50.741,74.36-89.425,97.388c-41.327,23.734-88.367,35.692-136.011,34.578 c-46.947,1.133-93.303-10.651-134.01-34.067c-37.738-22.341-68.249-55.07-87.892-94.28c-21.028-42.467-31.57-89.355-30.745-136.735 C212.808,804.859,223.158,755.686,243.96,710.631z M339.006,941.858c10.257,25.912,27.651,48.385,50.163,64.812 c22.93,16.026,50.387,24.294,78.353,23.591c29.783,1.178,59.14-7.372,83.634-24.358c22.227-16.375,39.164-38.909,48.715-64.812 c10.677-28.928,15.946-59.572,15.543-90.404c0.33-31.127-4.623-62.084-14.649-91.554c-8.855-26.607-25.246-50.069-47.182-67.537 c-23.88-17.79-53.158-26.813-82.91-25.55c-28.572-0.74-56.644,7.593-80.184,23.804c-22.893,16.496-40.617,39.168-51.1,65.365 c-23.255,60.049-23.376,126.595-0.341,186.728L339.006,941.858z"/>
34
- <path fill="#50D9FF" d="M1362.667,255.5h383.25v383.25h-383.25V255.5z"/>
35
- </svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 512"><path fill="#5F01D1" d="M105 0h302c57.927.154 104.846 47.073 105 104.995V407c-.154 57.926-47.073 104.844-104.995 104.998L105 512C47.074 511.844.156 464.926.002 407.003L0 105C.156 47.073 47.074.154 104.997 0H105z"/><path fill="#fff" fill-rule="nonzero" d="M106.598 187.846h56.988l33.184 84.895 33.616-84.895h55.481l-83.545 200.975H146.48l22.871-53.255-62.751-147.72h-.002zm243.879 67.833h-62.144l55.156-132.502 61.917.003-54.929 132.499zm-45.865 12.682c19.067 0 34.523 15.457 34.523 34.521 0 19.065-15.456 34.522-34.523 34.522-19.065 0-34.519-15.457-34.519-34.522 0-19.064 15.456-34.521 34.519-34.521z"/></svg>
@@ -1,21 +0,0 @@
1
- // EventBus — lightweight pub/sub for module decoupling
2
- export class EventBus {
3
- constructor() {
4
- this._listeners = {};
5
- }
6
-
7
- on(event, fn) {
8
- (this._listeners[event] || (this._listeners[event] = [])).push(fn);
9
- return () => this.off(event, fn);
10
- }
11
-
12
- off(event, fn) {
13
- var list = this._listeners[event];
14
- if (list) this._listeners[event] = list.filter(f => f !== fn);
15
- }
16
-
17
- emit(event, data) {
18
- var list = this._listeners[event];
19
- if (list) list.forEach(fn => fn(data));
20
- }
21
- }
@@ -1,3 +0,0 @@
1
- // Centralized state — will be populated in Phase 2
2
- // For now, modules that need state receive it via init()
3
- export const state = {};