aegisone 1.0.67 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AEGISONE
2
2
 
3
- Product version: **1.0.67**
3
+ Product version: **1.0.68**
4
4
 
5
5
  One product, two faces: the terminal (`aegiscode`) and the window (`aegis-desktop`),
6
6
  reached through one command — `aegis` — and released as one version.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aegisone",
3
3
  "productName": "AEGISONE",
4
- "version": "1.0.67",
4
+ "version": "1.0.68",
5
5
  "description": "AEGISONE — one product, two faces. `aegis` opens the window when there is nothing else to do and runs the terminal otherwise; `aegiscode` keeps behaving exactly as it always has.",
6
6
  "author": {
7
7
  "name": "AEGIS Code",
@@ -34,7 +34,7 @@
34
34
  "size": "node scripts/bundle.mjs --json"
35
35
  },
36
36
  "optionalDependencies": {
37
- "electron": "44.8.0",
37
+ "electron": "44.11.5",
38
38
  "node-pty": "^1.1.0"
39
39
  },
40
40
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aegiscode",
3
3
  "productName": "AEGIS Code",
4
- "version": "7.0.59",
4
+ "version": "7.0.60",
5
5
  "description": "aegiscode — the command-line version of AEGIS One. The shared tool surface in your shell, over the same thin transport and tool registry as the MCP plugin and the desktop app. Ships transport + UI only; no brain.",
6
6
  "author": {
7
7
  "name": "AEGIS Code",
@@ -2,7 +2,7 @@
2
2
  "name": "aegis-desktop",
3
3
  "productName": "aegis one",
4
4
  "desktopName": "aegis-desktop",
5
- "version": "1.0.59",
5
+ "version": "1.0.60",
6
6
  "description": "Thin Electron host for AEGIS — a local chat UI over the shared client/aegis.js transport. Ships transport + UI only; engine logic stays server-side.",
7
7
  "author": {
8
8
  "name": "AEGIS Code",
@@ -82,11 +82,11 @@
82
82
  },
83
83
  "devDependencies": {
84
84
  "bytenode": "2.1.0",
85
- "electron": "44.8.0",
85
+ "electron": "44.11.5",
86
86
  "electron-builder": "^26.15.3"
87
87
  },
88
88
  "optionalDependencies": {
89
- "electron": "44.8.0",
89
+ "electron": "44.11.5",
90
90
  "node-pty": "^1.1.0"
91
91
  }
92
92
  }
@@ -1,3 +1,3 @@
1
1
  // SPDX-License-Identifier: AGPL-3.0-or-later
2
2
  // Copyright (C) 2026 Niklas Borneklint — AEGIS Code (aegiscode) / Aegiscloud.
3
- "use strict";const PTY_PANEL_FRAME_SRC="pty-frame.html",PTY_PANEL_FRAME_ROOT="pty-frame-root";function ptyPanelCreateId(){return"undefined"!=typeof window&&window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID():`pty-${Date.now()}-${Math.random().toString(36).slice(2)}`}const ptyPanelSessions=new Map;let ptyPanelNextLabel=1,ptyPanelShell=null;function ptyPanelBuildShell(){const e=document.createElement("div");return e.className="pty-panel-overlay",e.innerHTML='<div class="pty-panel" role="dialog" aria-label="Terminal"><div class="pty-panel-header"><span class="pty-panel-tabs" role="tablist" aria-label="Terminal sessions"></span><button type="button" class="pty-panel-new" aria-label="New terminal" title="New terminal">+</button><button type="button" class="pty-panel-close" aria-label="Close terminal" title="Close this terminal">×</button></div><div class="pty-panel-body"></div></div>',e}function ptyPanelMount(e){const t=ptyPanelShell;if(!t)return!1;const n=t.querySelector(".pty-panel-tabs"),l=t.querySelector(".pty-panel-body");if(!n||!l)return!1;const a=document.createElement("button");a.type="button",a.className="pty-panel-tab",a.setAttribute("role","tab"),a.setAttribute("aria-selected","false"),a.textContent=e.label,a.addEventListener("click",()=>ptyPanelActivate(e)),n.appendChild(a);const o=document.createElement("div");o.className="pty-panel-slot",o.hidden=!0;const s=document.createElement("iframe");return s.className="pty-panel-frame",s.title=`Terminal ${e.label} (aegiscode)`,s.src="pty-frame.html",o.appendChild(s),l.appendChild(o),e.tab=a,e.slot=o,e.frame=s,!0}function ptyPanelActivate(e){if(e&&!e.closed){for(const t of ptyPanelSessions.values()){const n=t===e;t.slot&&(t.slot.hidden=!n),t.tab&&(t.tab.classList.toggle("is-active",n),t.tab.setAttribute("aria-selected",n?"true":"false"))}ptyPanelShell.active=e.id,e.term&&e.host&&ptyPanelFit(e.term,e.host),e.term&&e.term.focus()}}function ptyPanelTeardown(e){if(e){e.closed=!0;try{e.unsubscribe&&e.unsubscribe()}catch{}try{window.aegis.pty.cancel(e.id)}catch{}try{e.term&&e.term.dispose()}catch{}try{e.resizeObserver&&e.resizeObserver.disconnect()}catch{}e.tab&&e.tab.parentNode&&e.tab.parentNode.removeChild(e.tab),e.slot&&e.slot.parentNode&&e.slot.parentNode.removeChild(e.slot)}}function ptyPanelClose(e){const t=e?ptyPanelSessions.get(e):ptyPanelSessions.get(ptyPanelShell&&ptyPanelShell.active);if(!t)return;if(ptyPanelSessions.delete(t.id),ptyPanelTeardown(t),0===ptyPanelSessions.size)return void ptyPanelCloseAll();const n=Array.from(ptyPanelSessions.values());ptyPanelActivate(n[n.length-1])}function ptyPanelCloseAll(){for(const e of Array.from(ptyPanelSessions.values()))ptyPanelSessions.delete(e.id),ptyPanelTeardown(e);ptyPanelShell&&ptyPanelShell.parentNode&&ptyPanelShell.parentNode.removeChild(ptyPanelShell),ptyPanelShell=null}function ptyPanelFontFamily(e){try{return e.getComputedStyle(e.document.documentElement).getPropertyValue("--font-mono").trim()||"monospace"}catch{return"monospace"}}function ptyPanelFail(e,t){if(!e||!e.slot)return;const n=document.createElement("p");n.className="pty-panel-note",n.textContent=t,e.slot.appendChild(n)}function ptyPanelBoot(e){if(!e||e.closed||e.term)return;const t=e.frame&&e.frame.contentWindow,n=t&&t.document,l=n&&n.getElementById("pty-frame-root");if(!t||"function"!=typeof t.Terminal||!l)return void ptyPanelFail(e,"the terminal panel is not available in this build (xterm.js missing)");const a=new t.Terminal({convertEol:!0,cursorBlink:!0,fontSize:13,fontFamily:ptyPanelFontFamily(t)});e.term=a,e.host=l,a.open(l),ptyPanelFit(a,l);const o=e.id;e.unsubscribe=window.aegis.pty.onEvent(o,e=>{const t=e&&e.p;t&&("data"===t.kind?a.write(t.chunk):"exit"===t.kind&&a.write("\r\n[process exited]\r\n"))}),"function"==typeof t.ResizeObserver&&(e.resizeObserver=new t.ResizeObserver(()=>ptyPanelFit(a,l)),e.resizeObserver.observe(l)),a.onData(e=>window.aegis.pty.write(o,e)),a.onResize(({cols:e,rows:t})=>window.aegis.pty.resize(o,e,t)),window.aegis.pty.exec(o,{cols:a.cols,rows:a.rows}).then(e=>{e&&e.ok||a.write(`\r\n[could not start: ${e&&e.e&&e.e.msg||"unknown error"}]\r\n`)}),a.focus()}function ptyPanelOpen(){if("undefined"==typeof window||void 0===window.aegis||!window.aegis.pty)return{ok:!1,reason:"the terminal panel bridge is not available in this build"};ptyPanelShell||(ptyPanelShell=ptyPanelBuildShell(),document.body.appendChild(ptyPanelShell),ptyPanelShell.querySelector(".pty-panel-new").addEventListener("click",()=>ptyPanelOpen()),ptyPanelShell.querySelector(".pty-panel-close").addEventListener("click",()=>ptyPanelClose()),ptyPanelShell.addEventListener("keydown",e=>{"Escape"===e.key&&ptyPanelClose()}));const e={id:ptyPanelCreateId(),label:String(ptyPanelNextLabel++),tab:null,slot:null,frame:null,term:null,host:null,unsubscribe:null,resizeObserver:null,closed:!1};return ptyPanelSessions.set(e.id,e),ptyPanelMount(e)?(ptyPanelActivate(e),e.frame&&e.frame.addEventListener("load",()=>ptyPanelBoot(e)),{ok:!0,id:e.id}):(ptyPanelSessions.delete(e.id),{ok:!1,reason:"could not build the terminal panel"})}function ptyPanelFit(e,t){const n=e._core,l=n&&n._renderService&&n._renderService.dimensions&&n._renderService.dimensions.css.cell;if(!l||!l.width||!l.height)return null;const a=Math.max(2,Math.floor(t.clientWidth/l.width)),o=Math.max(1,Math.floor(t.clientHeight/l.height));return a===e.cols&&o===e.rows||e.resize(a,o),{cols:a,rows:o}}function ptyPanelIsOpen(){return ptyPanelSessions.size>0}"undefined"!=typeof module&&module.exports&&(module.exports={createId:ptyPanelCreateId,open:ptyPanelOpen,close:ptyPanelClose,closeAll:ptyPanelCloseAll,isOpen:ptyPanelIsOpen,count:()=>ptyPanelSessions.size,FRAME_SRC:"pty-frame.html",FRAME_ROOT:"pty-frame-root"}),"undefined"!=typeof window&&(window.aegisPtyPanel={open:ptyPanelOpen,close:ptyPanelClose,closeAll:ptyPanelCloseAll,isOpen:ptyPanelIsOpen,count:()=>ptyPanelSessions.size});
3
+ "use strict";const PTY_PANEL_FRAME_SRC="pty-frame.html",PTY_PANEL_FRAME_ROOT="pty-frame-root";function ptyPanelCreateId(){return"undefined"!=typeof window&&window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID():`pty-${Date.now()}-${Math.random().toString(36).slice(2)}`}const ptyPanelSessions=new Map;let ptyPanelNextLabel=1,ptyPanelShell=null;function ptyPanelBuildShell(){const e=document.createElement("div");return e.className="pty-panel-overlay",e.innerHTML='<div class="pty-panel" role="dialog" aria-label="Terminal"><div class="pty-panel-header"><span class="pty-panel-tabs" role="tablist" aria-label="Terminal sessions"></span><button type="button" class="pty-panel-new" aria-label="New terminal" title="New terminal">+</button><button type="button" class="pty-panel-close" aria-label="Close terminal" title="Close this terminal">×</button></div><div class="pty-panel-body"></div></div>',e}function ptyPanelMount(e){const t=ptyPanelShell;if(!t)return!1;const n=t.querySelector(".pty-panel-tabs"),l=t.querySelector(".pty-panel-body");if(!n||!l)return!1;const a=document.createElement("button");a.type="button",a.className="pty-panel-tab",a.setAttribute("role","tab"),a.setAttribute("aria-selected","false"),a.textContent=e.label,a.addEventListener("click",()=>ptyPanelActivate(e)),n.appendChild(a);const o=document.createElement("div");o.className="pty-panel-slot",o.hidden=!0;const i=document.createElement("iframe");return i.className="pty-panel-frame",i.title=`Terminal ${e.label} (aegiscode)`,i.src="pty-frame.html",o.appendChild(i),l.appendChild(o),e.tab=a,e.slot=o,e.frame=i,!0}function ptyPanelActivate(e){if(e&&!e.closed){for(const t of ptyPanelSessions.values()){const n=t===e;t.slot&&(t.slot.hidden=!n),t.tab&&(t.tab.classList.toggle("is-active",n),t.tab.setAttribute("aria-selected",n?"true":"false"))}if(ptyPanelShell.active=e.id,e.term&&e.host){const t=e.term,n=e.host;requestAnimationFrame(()=>{e.closed||e.slot.hidden||ptyPanelFit(t,n)})}e.term&&e.term.focus()}}function ptyPanelTeardown(e){if(e){e.closed=!0;try{e.unsubscribe&&e.unsubscribe()}catch{}try{window.aegis.pty.cancel(e.id)}catch{}try{e.term&&e.term.dispose()}catch{}try{e.resizeObserver&&e.resizeObserver.disconnect()}catch{}e.tab&&e.tab.parentNode&&e.tab.parentNode.removeChild(e.tab),e.slot&&e.slot.parentNode&&e.slot.parentNode.removeChild(e.slot)}}function ptyPanelClose(e){const t=e?ptyPanelSessions.get(e):ptyPanelSessions.get(ptyPanelShell&&ptyPanelShell.active);if(!t)return;if(ptyPanelSessions.delete(t.id),ptyPanelTeardown(t),0===ptyPanelSessions.size)return void ptyPanelCloseAll();const n=Array.from(ptyPanelSessions.values());ptyPanelActivate(n[n.length-1])}function ptyPanelCloseAll(){for(const e of Array.from(ptyPanelSessions.values()))ptyPanelSessions.delete(e.id),ptyPanelTeardown(e);ptyPanelShell&&ptyPanelShell.parentNode&&ptyPanelShell.parentNode.removeChild(ptyPanelShell),ptyPanelShell=null}function ptyPanelFontFamily(e){try{return e.getComputedStyle(e.document.documentElement).getPropertyValue("--font-mono").trim()||"monospace"}catch{return"monospace"}}function ptyPanelFail(e,t){if(!e||!e.slot)return;const n=document.createElement("p");n.className="pty-panel-note",n.textContent=t,e.slot.appendChild(n)}function ptyPanelBoot(e){if(!e||e.closed||e.term)return;const t=e.frame&&e.frame.contentWindow,n=t&&t.document,l=n&&n.getElementById("pty-frame-root");if(!t||"function"!=typeof t.Terminal||!l)return void ptyPanelFail(e,"the terminal panel is not available in this build (xterm.js missing)");const a=new t.Terminal({convertEol:!0,cursorBlink:!1,fontSize:13,fontFamily:ptyPanelFontFamily(t)});e.term=a,e.host=l,a.open(l),ptyPanelFit(a,l),ptyPanelSettle(e,a,l);const o=t.document.fonts;o&&"object"==typeof o.ready&&"function"==typeof o.ready.then&&o.ready.then(()=>{e.closed||e.slot.hidden||ptyPanelFit(a,l)});const i=e.id;e.unsubscribe=window.aegis.pty.onEvent(i,e=>{const t=e&&e.p;t&&("data"===t.kind?a.write(t.chunk):"exit"===t.kind&&a.write("\r\n[process exited]\r\n"))}),e.slot&&"function"==typeof ResizeObserver&&(e.resizeObserver=new ResizeObserver(()=>{ptyPanelFitting!==a&&ptyPanelFit(a,l)}),e.resizeObserver.observe(e.slot)),a.onData(e=>window.aegis.pty.write(i,e)),a.onResize(({cols:e,rows:t})=>window.aegis.pty.resize(i,e,t)),window.aegis.pty.exec(i,{cols:a.cols,rows:a.rows}).then(e=>{e&&e.ok||a.write(`\r\n[could not start: ${e&&e.e&&e.e.msg||"unknown error"}]\r\n`)}),a.focus()}function ptyPanelOpen(){if("undefined"==typeof window||void 0===window.aegis||!window.aegis.pty)return{ok:!1,reason:"the terminal panel bridge is not available in this build"};ptyPanelShell||(ptyPanelShell=ptyPanelBuildShell(),document.body.appendChild(ptyPanelShell),ptyPanelShell.querySelector(".pty-panel-new").addEventListener("click",()=>ptyPanelOpen()),ptyPanelShell.querySelector(".pty-panel-close").addEventListener("click",()=>ptyPanelClose()),ptyPanelShell.addEventListener("keydown",e=>{"Escape"===e.key&&ptyPanelClose()}));const e={id:ptyPanelCreateId(),label:String(ptyPanelNextLabel++),tab:null,slot:null,frame:null,term:null,host:null,unsubscribe:null,resizeObserver:null,closed:!1};return ptyPanelSessions.set(e.id,e),ptyPanelMount(e)?(ptyPanelActivate(e),e.frame&&e.frame.addEventListener("load",()=>ptyPanelBoot(e)),{ok:!0,id:e.id}):(ptyPanelSessions.delete(e.id),{ok:!1,reason:"could not build the terminal panel"})}let ptyPanelFitting=null;function ptyPanelSettle(e,t,n){let l=null,a=0;const o=()=>{if(!e||e.closed||e.term!==t)return;if(a>=3)return;a+=1;let i=null;try{const e=ptyPanelFit(t,n);i=e?`${e.cols}x${e.rows}`:null}catch{return}i&&i===l||(l=i,"function"==typeof requestAnimationFrame&&requestAnimationFrame(o))};"function"==typeof requestAnimationFrame&&requestAnimationFrame(o)}function ptyPanelPad(e,t,n){const l=e=>{const t=parseFloat(e);return Number.isFinite(t)?t:0};return l(e&&e[t])+l(e&&e[n])}function ptyPanelFit(e,t){const n=e._core,l=n&&n._renderService&&n._renderService.dimensions&&n._renderService.dimensions.css.cell;if(!l||!l.width||!l.height)return null;const a=(t.ownerDocument&&t.ownerDocument.defaultView||window).getComputedStyle(t),o=ptyPanelPad(a,"paddingLeft","paddingRight"),i=ptyPanelPad(a,"paddingTop","paddingBottom"),s=Math.max(2,Math.floor((t.clientWidth-o)/l.width)),r=Math.max(1,Math.floor((t.clientHeight-i)/l.height));if(s!==e.cols||r!==e.rows){ptyPanelFitting=e;try{e.resize(s,r)}finally{ptyPanelFitting=null}}return{cols:s,rows:r}}function ptyPanelIsOpen(){return ptyPanelSessions.size>0}"undefined"!=typeof module&&module.exports&&(module.exports={createId:ptyPanelCreateId,open:ptyPanelOpen,close:ptyPanelClose,closeAll:ptyPanelCloseAll,isOpen:ptyPanelIsOpen,count:()=>ptyPanelSessions.size,FRAME_SRC:"pty-frame.html",FRAME_ROOT:"pty-frame-root"}),"undefined"!=typeof window&&(window.aegisPtyPanel={open:ptyPanelOpen,close:ptyPanelClose,closeAll:ptyPanelCloseAll,isOpen:ptyPanelIsOpen,count:()=>ptyPanelSessions.size});
@@ -1,3 +1,3 @@
1
1
  // SPDX-License-Identifier: AGPL-3.0-or-later
2
2
  // Copyright (C) 2026 Niklas Borneklint — AEGIS Code (aegiscode) / Aegiscloud.
3
- "use strict";const ptyWinSessions=new Map;let ptyWinNextLabel=1,ptyWinActive=null;function ptyWinId(){return window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID():`pty-${Date.now()}-${Math.random().toString(36).slice(2)}`}let ptyWinFitting=null;function ptyWinFit(t,e){const n=t&&t._core,i=n&&n._renderService&&n._renderService.dimensions&&n._renderService.dimensions.css.cell;if(!i||!i.width||!i.height)return null;const o=Math.max(2,Math.floor(e.clientWidth/i.width)),s=Math.max(1,Math.floor(e.clientHeight/i.height));if(o!==t.cols||s!==t.rows){ptyWinFitting=t;try{t.resize(o,s)}finally{ptyWinFitting=null}}return{cols:o,rows:s}}function ptyWinFontFamily(){return getComputedStyle(document.documentElement).getPropertyValue("--font-mono").trim()||"ui-monospace, SFMono-Regular, Menlo, monospace"}function ptyWinActivate(t){if(t&&!t.closed){for(const e of ptyWinSessions.values()){const n=e===t;e.slot&&(e.slot.hidden=!n),e.tab&&(e.tab.classList.toggle("is-active",n),e.tab.setAttribute("aria-selected",n?"true":"false"))}if(ptyWinActive=t.id,t.term&&t.slot){const e=t.term,n=t.slot;requestAnimationFrame(()=>{t.closed||ptyWinFit(e,n)})}t.term&&t.term.focus()}}function ptyWinTeardown(t){if(t){t.closed=!0;try{t.unsubscribe&&t.unsubscribe()}catch{}try{t.ro&&t.ro.disconnect()}catch{}try{window.aegis.pty.cancel(t.id)}catch{}if(ptyWinSessions.delete(t.id),t.tab&&t.tab.remove&&t.tab.remove(),t.slot&&t.slot.remove&&t.slot.remove(),ptyWinActive===t.id){const t=ptyWinSessions.values().next().value||null;ptyWinActive=null,t&&ptyWinActivate(t)}}}function ptyWinClose(t){const e=t?ptyWinSessions.get(t):ptyWinActive&&ptyWinSessions.get(ptyWinActive);e&&ptyWinTeardown(e),0===ptyWinSessions.size&&window.aegis&&"function"==typeof window.aegis.closePtyWindow&&window.aegis.closePtyWindow()}function ptyWinFail(t,e){const n=document.createElement("div");n.className="pty-win-note",n.textContent=e,t.slot&&t.slot.appendChild(n)}function ptyWinStart(){if("undefined"==typeof window||!window.aegis||!window.aegis.pty)return document.getElementById("pty-win-body").innerHTML='<div class="pty-win-note">the terminal bridge is not available in this build</div>',null;if("function"!=typeof window.Terminal)return document.getElementById("pty-win-body").innerHTML='<div class="pty-win-note">xterm.js is missing from this build — the terminal cannot render</div>',null;const t=document.getElementById("pty-win-tabs"),e=document.getElementById("pty-win-body"),n=ptyWinId(),i=String(ptyWinNextLabel++),o=document.createElement("button");o.type="button",o.className="pty-win-tab",o.setAttribute("role","tab"),o.textContent=i,o.title=`Terminal ${i} — click to switch, middle-click to close`;const s=document.createElement("div");s.className="pty-win-slot",s.hidden=!0;const r={id:n,label:i,tab:o,slot:s,term:null,unsubscribe:null,ro:null,closed:!1};ptyWinSessions.set(n,r),o.addEventListener("click",()=>ptyWinActivate(r)),o.addEventListener("auxclick",t=>{1===t.button&&(t.preventDefault(),ptyWinClose(n))}),t.appendChild(o),e.appendChild(s);const l=new window.Terminal({convertEol:!0,cursorBlink:!1,fontSize:13,fontFamily:ptyWinFontFamily(),allowProposedApi:!0});return r.term=l,l.open(s),ptyWinFit(l,s),r.unsubscribe=window.aegis.pty.onEvent(n,t=>{const e=t&&t.p;e&&("data"===e.kind?l.write(e.chunk):"exit"===e.kind&&l.write("\r\n[process exited]\r\n"))}),"function"==typeof ResizeObserver&&(r.ro=new ResizeObserver(()=>{ptyWinFitting!==l&&ptyWinFit(l,s)}),r.ro.observe(e)),l.onData(t=>window.aegis.pty.write(n,t)),l.onResize(({cols:t,rows:e})=>window.aegis.pty.resize(n,t,e)),window.aegis.pty.exec(n,{cols:l.cols,rows:l.rows}).then(t=>{t&&t.ok||l.write(`\r\n[could not start: ${t&&t.e&&t.e.msg||"unknown error"}]\r\n`)}),ptyWinActivate(r),r}window.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("pty-win-new");t&&t.addEventListener("click",()=>ptyWinStart()),window.addEventListener("keydown",t=>{t.ctrlKey&&t.shiftKey&&("T"===t.key||"t"===t.key)?(t.preventDefault(),ptyWinStart()):t.ctrlKey&&t.shiftKey&&("W"===t.key||"w"===t.key)&&(t.preventDefault(),ptyWinClose())}),ptyWinStart()}),window.aegisPtyWindow={start:ptyWinStart,close:ptyWinClose,count:()=>ptyWinSessions.size,active:()=>ptyWinActive};
3
+ "use strict";const ptyWinSessions=new Map;let ptyWinNextLabel=1,ptyWinActive=null;function ptyWinId(){return window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID():`pty-${Date.now()}-${Math.random().toString(36).slice(2)}`}let ptyWinFitting=null;function ptyPad(t,e,n){const i=t=>{const e=parseFloat(t);return Number.isFinite(e)?e:0};return i(t&&t[e])+i(t&&t[n])}function ptyWinFit(t,e){const n=t&&t._core,i=n&&n._renderService&&n._renderService.dimensions&&n._renderService.dimensions.css.cell;if(!i||!i.width||!i.height)return null;const o=ptyPad(getComputedStyle(e),"paddingLeft","paddingRight"),s=ptyPad(getComputedStyle(e),"paddingTop","paddingBottom"),r=Math.max(2,Math.floor((e.clientWidth-o)/i.width)),l=Math.max(1,Math.floor((e.clientHeight-s)/i.height));if(r!==t.cols||l!==t.rows){ptyWinFitting=t;try{t.resize(r,l)}finally{ptyWinFitting=null}}return{cols:r,rows:l}}function ptyWinFontFamily(){return getComputedStyle(document.documentElement).getPropertyValue("--font-mono").trim()||"ui-monospace, SFMono-Regular, Menlo, monospace"}function ptyWinSettle(t,e,n){let i=null,o=0;const s=()=>{if(!t||t.closed||t.term!==e)return;if(o>=3)return;o+=1;let r=null;try{const t=ptyWinFit(e,n);r=t?`${t.cols}x${t.rows}`:null}catch{return}r&&r===i||(i=r,"function"==typeof requestAnimationFrame&&requestAnimationFrame(s))};"function"==typeof requestAnimationFrame&&requestAnimationFrame(s)}function ptyWinActivate(t){if(t&&!t.closed){for(const e of ptyWinSessions.values()){const n=e===t;e.slot&&(e.slot.hidden=!n),e.tab&&(e.tab.classList.toggle("is-active",n),e.tab.setAttribute("aria-selected",n?"true":"false"))}if(ptyWinActive=t.id,t.term&&t.slot){const e=t.term,n=t.slot;requestAnimationFrame(()=>{t.closed||ptyWinFit(e,n)})}t.term&&t.term.focus()}}function ptyWinTeardown(t){if(t){t.closed=!0;try{t.unsubscribe&&t.unsubscribe()}catch{}try{t.ro&&t.ro.disconnect()}catch{}try{window.aegis.pty.cancel(t.id)}catch{}if(ptyWinSessions.delete(t.id),t.tab&&t.tab.remove&&t.tab.remove(),t.slot&&t.slot.remove&&t.slot.remove(),ptyWinActive===t.id){const t=ptyWinSessions.values().next().value||null;ptyWinActive=null,t&&ptyWinActivate(t)}}}function ptyWinClose(t){const e=t?ptyWinSessions.get(t):ptyWinActive&&ptyWinSessions.get(ptyWinActive);e&&ptyWinTeardown(e),0===ptyWinSessions.size&&window.aegis&&"function"==typeof window.aegis.closePtyWindow&&window.aegis.closePtyWindow()}function ptyWinFail(t,e){const n=document.createElement("div");n.className="pty-win-note",n.textContent=e,t.slot&&t.slot.appendChild(n)}function ptyWinStart(){if("undefined"==typeof window||!window.aegis||!window.aegis.pty)return document.getElementById("pty-win-body").innerHTML='<div class="pty-win-note">the terminal bridge is not available in this build</div>',null;if("function"!=typeof window.Terminal)return document.getElementById("pty-win-body").innerHTML='<div class="pty-win-note">xterm.js is missing from this build — the terminal cannot render</div>',null;const t=document.getElementById("pty-win-tabs"),e=document.getElementById("pty-win-body"),n=ptyWinId(),i=String(ptyWinNextLabel++),o=document.createElement("button");o.type="button",o.className="pty-win-tab",o.setAttribute("role","tab"),o.textContent=i,o.title=`Terminal ${i} — click to switch, middle-click to close`;const s=document.createElement("div");s.className="pty-win-slot",s.hidden=!0;const r={id:n,label:i,tab:o,slot:s,term:null,unsubscribe:null,ro:null,closed:!1};ptyWinSessions.set(n,r),o.addEventListener("click",()=>ptyWinActivate(r)),o.addEventListener("auxclick",t=>{1===t.button&&(t.preventDefault(),ptyWinClose(n))}),t.appendChild(o),e.appendChild(s);const l=new window.Terminal({convertEol:!0,cursorBlink:!1,fontSize:13,fontFamily:ptyWinFontFamily(),allowProposedApi:!0});r.term=l,l.open(s),ptyWinFit(l,s),ptyWinSettle(r,l,s);const c=document.fonts;return c&&c.ready&&"function"==typeof c.ready.then&&c.ready.then(()=>{r.closed||ptyWinFit(l,s)}),r.unsubscribe=window.aegis.pty.onEvent(n,t=>{const e=t&&t.p;e&&("data"===e.kind?l.write(e.chunk):"exit"===e.kind&&l.write("\r\n[process exited]\r\n"))}),"function"==typeof ResizeObserver&&(r.ro=new ResizeObserver(()=>{ptyWinFitting!==l&&ptyWinFit(l,s)}),r.ro.observe(e)),l.onData(t=>window.aegis.pty.write(n,t)),l.onResize(({cols:t,rows:e})=>window.aegis.pty.resize(n,t,e)),window.aegis.pty.exec(n,{cols:l.cols,rows:l.rows}).then(t=>{t&&t.ok||l.write(`\r\n[could not start: ${t&&t.e&&t.e.msg||"unknown error"}]\r\n`)}),ptyWinActivate(r),r}window.addEventListener("DOMContentLoaded",()=>{const t=document.getElementById("pty-win-new");t&&t.addEventListener("click",()=>ptyWinStart()),window.addEventListener("keydown",t=>{t.ctrlKey&&t.shiftKey&&("T"===t.key||"t"===t.key)?(t.preventDefault(),ptyWinStart()):t.ctrlKey&&t.shiftKey&&("W"===t.key||"w"===t.key)&&(t.preventDefault(),ptyWinClose())}),ptyWinStart()}),window.aegisPtyWindow={start:ptyWinStart,close:ptyWinClose,count:()=>ptyWinSessions.size,active:()=>ptyWinActive};
@@ -311,20 +311,23 @@ body[data-accent='amber'] {
311
311
  * says "something is here"; a sweep says "something is on its way", which is
312
312
  * the true statement, and the direction gives it a place in the layout's flow.
313
313
  *
314
- * `background-position` is animated instead of the reference's transform
315
- * because a bare block cannot carry a translated child — position walks the
316
- * gradient across the element itself with no extra node.
314
+ * The sweep is a pseudo-element moved with `transform`, which the compositor
315
+ * handles without repainting. `background-position` cannot be composited: it
316
+ * re-rasterizes the gradient every frame, and a loading screen has many
317
+ * skeletons going at once.
317
318
  */
318
319
  @keyframes aegis-shimmer {
319
320
  from {
320
- background-position: 200% 0;
321
+ transform: translateX(-100%);
321
322
  }
322
323
  to {
323
- background-position: -200% 0;
324
+ transform: translateX(100%);
324
325
  }
325
326
  }
326
327
 
327
328
  .skeleton {
329
+ position: relative;
330
+ overflow: hidden;
328
331
  border-radius: var(--r-sm);
329
332
  background-image: linear-gradient(
330
333
  90deg,
@@ -333,7 +336,27 @@ body[data-accent='amber'] {
333
336
  var(--surface2) 100%
334
337
  );
335
338
  background-size: 200% 100%;
339
+ }
340
+
341
+ .skeleton::after {
342
+ content: "";
343
+ position: absolute;
344
+ inset: 0;
345
+ /* A distinct BAND, not a copy of the parent's gradient: the original effect
346
+ was one 200%-wide gradient sliding across, which only reads as a sheen
347
+ because consecutive stops differ. Overlaying the same gradient on itself
348
+ would cancel out. Transparent at both ends, so the edge of the band does
349
+ not show as a seam as it enters and leaves. */
350
+ background-image: linear-gradient(
351
+ 90deg,
352
+ transparent 0%,
353
+ var(--surface3) 50%,
354
+ transparent 100%
355
+ );
356
+ background-repeat: no-repeat;
336
357
  animation: aegis-shimmer 1.4s var(--ease-in-out) infinite;
358
+ will-change: transform;
359
+ pointer-events: none;
337
360
  }
338
361
 
339
362
  /* A skeleton is a placeholder, so it must never be announced as content and
@@ -1912,17 +1935,24 @@ body.memory-open {
1912
1935
  animation-delay: 0.4s;
1913
1936
  }
1914
1937
 
1938
+ /* Compositor-only on purpose. This animated `background` and `box-shadow`
1939
+ alongside `transform`, run 1.2s infinite three times over, and none of the
1940
+ first two can be composited: both re-rasterize the element on every frame.
1941
+ With GPU compositing unavailable that repaint lands on the renderer's CPU
1942
+ time forever. `transform` and `opacity` are the only two properties a
1943
+ compositor can animate without repainting, so the pulse is now those two:
1944
+ a scale plus a fade toward the accent, with the accent itself applied as a
1945
+ static colour behind the dots. Visually the dot still brightens and swells
1946
+ at the same 30% beat — it just no longer costs a full element repaint. */
1915
1947
  @keyframes typing-glow {
1916
1948
  0%,
1917
1949
  60%,
1918
1950
  100% {
1919
- background: var(--text2);
1920
- box-shadow: none;
1951
+ opacity: 0.45;
1921
1952
  transform: scale(1);
1922
1953
  }
1923
1954
  30% {
1924
- background: var(--accent);
1925
- box-shadow: 0 0 9px 2px var(--accent);
1955
+ opacity: 1;
1926
1956
  transform: scale(1.25);
1927
1957
  }
1928
1958
  }
@@ -3889,12 +3919,19 @@ label {
3889
3919
 
3890
3920
  /* ---------------------------------------------------------- chat welcome */
3891
3921
  /* Shown when the transcript is empty; cloned from #welcome-template. */
3922
+ /* `transform`, not `background-position`. This used to sweep the highlight by
3923
+ animating `background-position` from -100% to 100%, which cannot be
3924
+ composited: every frame re-rasterized the whole 4-layer gradient behind the
3925
+ mask, forever, for a 5s loop. The sweep is now a pseudo-element that is
3926
+ translated instead, which the compositor can do without touching pixels.
3927
+ The pseudo stays inside `.glyph`, so the parent's mask-image still clips it
3928
+ to the six panels exactly as before. */
3892
3929
  @keyframes shimmer {
3893
3930
  from {
3894
- background-position: -100% 0, 0 0, 0 0, 0 0;
3931
+ transform: translateX(-100%);
3895
3932
  }
3896
3933
  to {
3897
- background-position: 100% 0, 0 0, 0 0, 0 0;
3934
+ transform: translateX(100%);
3898
3935
  }
3899
3936
  }
3900
3937
 
@@ -3968,15 +4005,15 @@ label {
3968
4005
  upper-left and falls off to the deep teal in every direction, so the mark
3969
4006
  reads as lit from one point rather than striped. Same two-family palette
3970
4007
  (teal, plus an ice-blue core) so it still belongs to this app's accent. */
4008
+ position: relative;
3971
4009
  background:
3972
- linear-gradient(112deg, transparent 36%, rgba(255,253,246,0.42) 48%, transparent 60%) 0 0 / 200% 100% no-repeat,
3973
4010
  conic-gradient(from -90deg at 50% 50%, rgba(255,255,255,0.30) 0deg 60deg, rgba(0,40,36,0.28) 60deg 120deg, rgba(255,255,255,0.30) 120deg 180deg, rgba(0,40,36,0.28) 180deg 240deg, rgba(255,255,255,0.30) 240deg 300deg, rgba(0,40,36,0.28) 300deg 360deg),
3974
4011
  radial-gradient(circle at 50% 50%, rgba(0,30,26,0.55) 0 5.5%, transparent 6.5%),
3975
4012
  radial-gradient(ellipse 64% 54% at 34% 26%, #ecfdf7 0%, #b0d4ee 18%, #5a7fd4 46%, var(--teal) 74%, #00786f 100%);
3976
- background-size: 200% 100%, 100% 100%, 100% 100%, 100% 100%;
4013
+ background-size: 100% 100%, 100% 100%, 100% 100%;
3977
4014
  background-repeat: no-repeat;
3978
4015
  filter: drop-shadow(0 0 14px rgba(0, 229, 192, 0.3));
3979
- animation: shimmer 5s linear infinite;
4016
+ overflow: hidden;
3980
4017
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M12.28%2011.52L12.19%202.1Q15.16%206.52%2020.47%206.88ZM12.55%2012L20.67%207.22Q18.33%2012%2020.67%2016.78ZM12.28%2012.48L20.47%2017.12Q15.16%2017.48%2012.19%2021.9ZM11.72%2012.48L11.81%2021.9Q8.84%2017.48%203.53%2017.12ZM11.45%2012L3.33%2016.78Q5.67%2012%203.33%207.22ZM11.72%2011.52L3.53%206.88Q8.84%206.52%2011.81%202.1Z%22%2F%3E%3C%2Fsvg%3E");
3981
4018
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M12.28%2011.52L12.19%202.1Q15.16%206.52%2020.47%206.88ZM12.55%2012L20.67%207.22Q18.33%2012%2020.67%2016.78ZM12.28%2012.48L20.47%2017.12Q15.16%2017.48%2012.19%2021.9ZM11.72%2012.48L11.81%2021.9Q8.84%2017.48%203.53%2017.12ZM11.45%2012L3.33%2016.78Q5.67%2012%203.33%207.22ZM11.72%2011.52L3.53%206.88Q8.84%206.52%2011.81%202.1Z%22%2F%3E%3C%2Fsvg%3E");
3982
4019
  -webkit-mask-size: contain;
@@ -3987,6 +4024,21 @@ label {
3987
4024
  mask-position: center;
3988
4025
  }
3989
4026
 
4027
+ /* The highlight layer, translated by the compositor. `will-change: transform`
4028
+ keeps it on its own compositing layer so the sweep never repaints `.glyph`
4029
+ underneath it. */
4030
+ .chat-welcome .glyph::after {
4031
+ content: "";
4032
+ position: absolute;
4033
+ inset: 0;
4034
+ background: linear-gradient(112deg, transparent 36%, rgba(255,253,246,0.42) 48%, transparent 60%);
4035
+ background-size: 200% 100%;
4036
+ background-repeat: no-repeat;
4037
+ animation: shimmer 5s linear infinite;
4038
+ will-change: transform;
4039
+ pointer-events: none;
4040
+ }
4041
+
3990
4042
  .chat-welcome .title {
3991
4043
  font-size: calc(30px * var(--app-font-scale, 1));
3992
4044
  font-weight: var(--fw-bold);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aegiscode",
3
3
  "productName": "AEGIS Code",
4
- "version": "7.0.59",
4
+ "version": "7.0.60",
5
5
  "description": "aegiscode — the command-line version of AEGIS One. The shared tool surface in your shell, over the same thin transport and tool registry as the MCP plugin and the desktop app. Ships transport + UI only; no brain.",
6
6
  "author": {
7
7
  "name": "AEGIS Code",