aegisone 1.0.57 → 1.0.59
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 +4 -2
- package/package.json +3 -2
- package/scripts/predist.mjs +1 -1
- package/src/doctor.js +1 -1
- package/vendor/cli/README.md +2 -2
- package/vendor/cli/package.json +1 -1
- package/vendor/cli/src/app.js +1 -1
- package/vendor/cli/src/commands.js +2 -2
- package/vendor/cli/src/config.js +1 -1
- package/vendor/cli/src/panels.js +1 -1
- package/vendor/cli/vendor/client/model-autosync.js +3 -0
- package/vendor/cli/vendor/client/model-sync.js +3 -0
- package/vendor/cli/vendor/client/prefs.js +1 -1
- package/vendor/cli/vendor/client/skills.js +3 -0
- package/vendor/cli/vendor/client/speech.js +3 -0
- package/vendor/cli/vendor/desktop/lib/local/engine.js +1 -1
- package/vendor/cli/vendor/desktop/lib/local/integrity.js +1 -1
- package/vendor/cli/vendor/desktop/lib/local/sandbox-appcontainer.js +6 -6
- package/vendor/cli/vendor/desktop/lib/local/sandbox-bwrap.js +7 -7
- package/vendor/cli/vendor/desktop/lib/local/sandbox.js +17 -11
- package/vendor/cli/vendor/desktop/main.js +406 -2
- package/vendor/cli/vendor/one/src/iface/pty.js +3 -0
- package/vendor/cli/vendor/one/src/protocol.js +3 -0
- package/vendor/desktop/lib/local/cli-face.js +1 -1
- package/vendor/desktop/lib/local/engine.js +1 -1
- package/vendor/desktop/lib/local/integrity.js +1 -1
- package/vendor/desktop/lib/local/pty-host.js +3 -0
- package/vendor/desktop/lib/local/sandbox-appcontainer.js +6 -6
- package/vendor/desktop/lib/local/sandbox-bwrap.js +7 -7
- package/vendor/desktop/lib/local/sandbox.js +17 -11
- package/vendor/desktop/lib/skills-host.js +3 -0
- package/vendor/desktop/lib/speech-host.js +3 -0
- package/vendor/desktop/lib/speech-resolve.js +3 -0
- package/vendor/desktop/main.js +406 -2
- package/vendor/desktop/package.json +4 -3
- package/vendor/desktop/preload.js +1 -1
- package/vendor/desktop/renderer/app.js +3 -3
- package/vendor/desktop/renderer/avatar/avatar.css +29 -1
- package/vendor/desktop/renderer/avatar/pane.js +1 -1
- package/vendor/desktop/renderer/dictation.js +3 -0
- package/vendor/desktop/renderer/index.html +200 -2
- package/vendor/desktop/renderer/pty-panel.js +3 -0
- package/vendor/desktop/renderer/settings-skills.js +3 -0
- package/vendor/desktop/renderer/style.css +230 -0
- package/vendor/desktop/renderer/vendor/NOTICE.md +10 -2
- package/vendor/desktop/renderer/vendor/xterm.css +285 -0
- package/vendor/desktop/renderer/vendor/xterm.js +1 -0
- package/vendor/desktop/vendor/faces/cli/README.md +2 -2
- package/vendor/desktop/vendor/faces/cli/package.json +1 -1
- package/vendor/desktop/vendor/faces/cli/src/app.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/commands.js +2 -2
- package/vendor/desktop/vendor/faces/cli/src/config.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/panels.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/client/model-autosync.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/client/model-sync.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/client/prefs.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/client/skills.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/client/speech.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/engine.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/integrity.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/sandbox-appcontainer.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/sandbox-bwrap.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/sandbox.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/main.js +3 -3
- package/vendor/desktop/vendor/faces/cli/vendor/one/src/iface/pty.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/one/src/protocol.js +3 -0
- package/vendor/desktop/vendor/model-autosync.js +3 -0
- package/vendor/desktop/vendor/model-sync.js +3 -0
- package/vendor/desktop/vendor/prefs.js +1 -1
- package/vendor/desktop/vendor/protocol.js +3 -0
- package/vendor/desktop/vendor/pty.js +3 -0
- package/vendor/desktop/vendor/skills.js +3 -0
- package/vendor/desktop/vendor/speech.js +3 -0
|
@@ -163,11 +163,39 @@
|
|
|
163
163
|
|
|
164
164
|
.avatar-field select,
|
|
165
165
|
.avatar-field input[type='text'],
|
|
166
|
-
.avatar-field input[type='number']
|
|
166
|
+
.avatar-field input[type='number'],
|
|
167
|
+
.avatar-field textarea {
|
|
167
168
|
flex: 1;
|
|
168
169
|
min-width: 0;
|
|
169
170
|
}
|
|
170
171
|
|
|
172
|
+
/* The one multi-line persona field (`identity.selfDesc`). Label above, box
|
|
173
|
+
below: a 120-character description sharing a row with a 42% label leaves a
|
|
174
|
+
two-line box the width of a thumb, so the user cannot read back the sentence
|
|
175
|
+
they just described themselves with. */
|
|
176
|
+
.avatar-field-stack {
|
|
177
|
+
align-items: flex-start;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: 4px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.avatar-field-stack .avatar-label {
|
|
183
|
+
flex: 0 0 auto;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.avatar-field textarea {
|
|
187
|
+
width: 100%;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
resize: vertical;
|
|
190
|
+
min-height: 44px;
|
|
191
|
+
font: inherit;
|
|
192
|
+
padding: 4px 6px;
|
|
193
|
+
border-radius: 4px;
|
|
194
|
+
border: 1px solid var(--line, #333);
|
|
195
|
+
background: var(--field-bg, rgba(0, 0, 0, 0.18));
|
|
196
|
+
color: inherit;
|
|
197
|
+
}
|
|
198
|
+
|
|
171
199
|
.avatar-field input[type='color'] {
|
|
172
200
|
flex: 0 0 36px;
|
|
173
201
|
height: 22px;
|
|
@@ -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";!function(){const e="undefined"!=typeof window&&window.AegisAvatarParts?{parts:window.AegisAvatarParts,persona:window.AegisAvatarPersona||null}:"undefined"!=typeof module&&module.exports?{parts:require("./parts.js"),persona:require("../../lib/avatar/persona.js")}:{parts:null,persona:null};if(!e.parts)throw new Error("avatar/pane.js: avatar/parts.js must be loaded first");const t=Object.freeze({"outfit.seasonal-winter":"outfit.seasonal","outfit.archive-coat":"outfit.archive"}),a=Object.freeze(new Set(["outfit","palette","expressions"])),n=Object.freeze({formality:"Formality",humor:"Humour",verbosity:"Verbosity",proactivity:"Proactivity",address:"Addresses you as",emojis:"Use emojis",enabled:"Voice",engine:"Voice engine",voiceId:"Voice id",rate:"Rate",motion:"Motion",size:"Size",docked:"Dock in the sidebar",hairColor:"Hair colour",pack:"Expression pack"});function i(e,t){let a=e;for(const e of t){if(null===a||"object"!=typeof a)return;a=a[e]}return a}function o(e,t){const a={};let n=a;for(let a=0;a<e.length;a+=1)a===e.length-1?n[e[a]]=t:(n[e[a]]={},n=n[e[a]]);return a}function r(e,t,a,n){const i=e.createElement(t);for(const[e,t]of Object.entries(a||{}))null!=t&&!1!==t&&("class"===e?i.className=t:"text"===e?i.textContent=String(t):i.setAttribute&&i.setAttribute(e,String(t)));return void 0!==n&&(i.textContent=String(n)),i}const s=Object.freeze({buildPane:function(s={}){const d=s.doc;if(!d||"function"!=typeof d.createElement)throw new Error("buildPane: a document is required");const p=s.manifest||e.parts,l=e.persona&&e.persona.LIMITS||{name:40,address:32,voiceId:64},c=e.persona&&e.persona.MAX_OUTFIT_LAYERS||3;let u=s.persona&&"object"==typeof s.persona?s.persona:e.persona?e.persona.defaultPersona():p.defaultPersona();const f=s.capabilities&&Array.isArray(s.capabilities.cosmeticsUnlocked)?new Set(s.capabilities.cosmeticsUnlocked):null,h=[],v=r(d,"div",{class:"avatar-pane",id:"avatar-pane"});function g(e,n){"expressionPack"!==e&&"expressions"!==e||(e="expressions");const i=t[`${e}.${n}`]||`${e}.${n}`;return a.has(e)&&f?{id:i,known:!0,unlocked:f.has(i)}:{id:i,known:!1,unlocked:!0}}function m(e,t){const a=p.LABELS&&p.LABELS[e];return a&&a[t]||String(t)}function C(e,t,a,o){const s=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),l=r(d,"label",{class:"avatar-label"},n[t]||t),c=r(d,"select",{id:`avatar-${o}-${a.join("-")}`,class:"avatar-select"}),f=p.IDS[o]||[];for(const e of f){const t=g(o,e),a=r(d,"option",{value:e},m(o,e));a.value=e,t.unlocked||(a.disabled=!0,a.textContent=`${m(o,e)} · locked`),c.appendChild(a)}c.value=String(i(u,a));const v=r(d,"span",{class:"avatar-field-note"}),C={path:a,kind:o,control:c,tag:"select",group:e};return c.addEventListener("change",(()=>{const e=g(o,c.value);if(!e.unlocked)return v.textContent=`${m(o,c.value)} is not unlocked yet (${e.id})`,void E(C,i(u,a));v.textContent="",E(C,c.value)})),h.push(C),s.appendChild(l),s.appendChild(c),s.appendChild(v),{field:s,control:c}}function y(e,t,a,{min:o,max:s,step:p,format:l}){const c=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),f=i(u,a),v=r(d,"span",{class:"avatar-value"},l?l(f):String(f)),g=r(d,"label",{class:"avatar-label"},n[t]||t),m=r(d,"input",{type:"range",id:`avatar-${t}`,min:String(o),max:String(s),step:String(p)});m.value=String(f);const C={path:a,kind:t,control:m,tag:"input",group:e};return m.addEventListener("input",(()=>{v.textContent=l?l(m.value):String(m.value),E(C,Number(m.value))})),h.push(C),c.appendChild(g),c.appendChild(m),c.appendChild(v),{field:c,control:m}}function b(e,t,a){const o=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),s=r(d,"input",{type:"checkbox",id:`avatar-${t}`});s.checked=!0===i(u,a);const p=r(d,"label",{class:"avatar-label",for:`avatar-${t}`},n[t]||t),l={path:a,kind:t,control:s,tag:"input",group:e};return s.addEventListener("change",(()=>E(l,!0===s.checked))),h.push(l),o.appendChild(s),o.appendChild(p),{field:o,control:s}}function k(e,t,a,o){const s=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),p=r(d,"label",{class:"avatar-label"},n[t]||t),l=r(d,"input",{type:"text",id:`avatar-${t}`,maxlength:o});l.value=String(i(u,a)||"");const c={path:a,kind:t,control:l,tag:"input",group:e};return l.addEventListener("change",(()=>E(c,String(l.value).slice(0,o)))),h.push(c),s.appendChild(p),s.appendChild(l),{field:s,control:l}}function x(e,t){const a=r(d,"div",{class:"avatar-group","data-group":t});return a.appendChild(r(d,"div",{class:"avatar-group-title"},e)),v.appendChild(a),a}const S=x("Presentation","presentation");S.appendChild(C("presentation","frame",["presentation","frame"],"frame").field),S.appendChild(C("presentation","skin",["presentation","skin"],"skin").field),S.appendChild(C("presentation","hair",["presentation","hair"],"hair").field),S.appendChild(function(e,t,a){const o=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),s=r(d,"label",{class:"avatar-label"},n[t]||t),p=r(d,"input",{type:"color",id:`avatar-${t}`});p.value=String(i(u,a)||"#3b2a20");const l={path:a,kind:t,control:p,tag:"input",group:"presentation"};return p.addEventListener("change",(()=>E(l,String(p.value).toLowerCase()))),h.push(l),o.appendChild(s),o.appendChild(p),{field:o,control:p}}(0,"hairColor",["presentation","hairColor"]).field),S.appendChild(C("presentation","eyes",["presentation","eyes"],"eyes").field),S.appendChild(C("presentation","palette",["presentation","palette"],"palette").field),S.appendChild(function(e){const t=r(d,"div",{class:"avatar-field","data-path":"presentation.outfit"});t.appendChild(r(d,"div",{class:"avatar-label"},"Outfit (up to "+c+" layers)"));const a=Array.isArray(i(u,["presentation","outfit"]))?i(u,["presentation","outfit"]).slice():[],n=[],o=r(d,"span",{class:"avatar-field-note"});for(const e of p.IDS.outfit||[]){const s=g("outfit",e),p=r(d,"div",{class:"avatar-check"}),l=r(d,"input",{type:"checkbox",id:`avatar-outfit-${e}`});l.checked=a.includes(e),l.disabled=!s.unlocked;const f=r(d,"label",{for:`avatar-outfit-${e}`},m("outfit",e)+(s.unlocked?"":" · locked")),v={path:["presentation","outfit"],kind:"outfitLayer",control:l,tag:"input",group:"presentation",id:e};l.addEventListener("change",(()=>{const t=Array.isArray(i(u,["presentation","outfit"]))?i(u,["presentation","outfit"]).slice():[];let a;if(l.checked){if(t.length>=c)return l.checked=!1,void(o.textContent=`at most ${c} outfit layers (earned at level 5)`);a=t.concat([e])}else a=t.filter((t=>t!==e));o.textContent="",E(v,a)})),h.push(v),n.push(l),p.appendChild(l),p.appendChild(f),t.appendChild(p)}return t.appendChild(o),{field:t,control:n}}().field),x("Expressions","expressions").appendChild(C("expressions","pack",["expressions","pack"],"expressionPack").field);const A=x("Voice","voice");A.appendChild(b("voice","enabled",["voice","enabled"]).field),A.appendChild(C("voice","engine",["voice","engine"],"voiceEngine").field),A.appendChild(k("voice","voiceId",["voice","id"],l.voiceId||64).field),A.appendChild(y("voice","rate",["voice","rate"],{min:.5,max:2,step:.1,format:e=>`${Number(e).toFixed(1)}×`}).field);const j=x("Register","register"),w=e=>`${Math.round(100*Number(e))}%`;j.appendChild(y("register","formality",["register","formality"],{min:0,max:1,step:.05,format:w}).field),j.appendChild(y("register","humor",["register","humor"],{min:0,max:1,step:.05,format:w}).field),j.appendChild(y("register","verbosity",["register","verbosity"],{min:0,max:1,step:.05,format:w}).field),j.appendChild(C("register","proactivity",["register","proactivity"],"proactivity").field),j.appendChild(k("register","address",["register","address"],l.address||32).field),j.appendChild(b("register","emojis",["register","emojis"]).field);const $=x("Appearance","appearance");$.appendChild(C("appearance","motion",["appearance","motion"],"motion").field),$.appendChild(C("appearance","size",["appearance","size"],"size").field),$.appendChild(b("appearance","docked",["appearance","docked"]).field);const L=r(d,"p",{class:"avatar-pane-status",id:"avatar-pane-status",role:"status"});function E(t,a){u=e.persona?e.persona.validate(function(e,t){const a={};for(const n of["identity","presentation","expressions","voice","register","appearance"])a[n]=Object.assign({},e[n],t[n]);return a}(u,o(t.path,a))).persona:u;const n=o(t.path,a);let i;try{i="function"==typeof s.onPatch?s.onPatch(n,{persona:u,record:t}):void 0}catch(e){i={ok:!1,reason:e&&e.message||"change handler threw"}}return Promise.resolve(i).then((e=>{e&&e.ok?P(!1===e.saved?"preview only":"saved"):e&&e.reason?P(`not saved — ${e.reason}`):P(void 0===e?"":"preview only")}),(e=>P(`not saved — ${e&&e.message||"error"}`))),u}function P(e){L.textContent=String(e||""),L.hidden=!e}return v.appendChild(L),{root:v,controls:h,status:L,get persona(){return u},update(e){if(!e||"object"!=typeof e)return u;u=e;for(const e of h){const t=i(u,e.path);"select"===e.tag?e.control.value=String(t):"checkbox"===(e.control.type||"")?e.control.checked=!0===t:Array.isArray(t)&&"outfitLayer"===e.kind?e.control.checked=t.includes(e.id):e.control.value=String(t)}return u},setStatus:P,destroy(){v.parentNode&&v.parentNode.removeChild&&v.parentNode.removeChild(v)}}},patchFor:o,readPath:i,UNLOCK_ALIASES:t,FIELD_LABELS:n});"undefined"!=typeof module&&module.exports?module.exports=s:"undefined"!=typeof globalThis&&(globalThis.AegisAvatarPane=s)}();
|
|
3
|
+
"use strict";!function(){const e="undefined"!=typeof window&&window.AegisAvatarParts?{parts:window.AegisAvatarParts,persona:window.AegisAvatarPersona||null}:"undefined"!=typeof module&&module.exports?{parts:require("./parts.js"),persona:require("../../lib/avatar/persona.js")}:{parts:null,persona:null};if(!e.parts)throw new Error("avatar/pane.js: avatar/parts.js must be loaded first");const t=Object.freeze({"outfit.seasonal-winter":"outfit.seasonal","outfit.archive-coat":"outfit.archive"}),a=Object.freeze(new Set(["outfit","palette","expressions"])),n=Object.freeze({name:"Name",pronouns:"Pronouns",selfDesc:"Describes itself as",formality:"Formality",humor:"Humour",verbosity:"Verbosity",proactivity:"Proactivity",address:"Addresses you as",emojis:"Use emojis",enabled:"Voice",engine:"Voice engine",voiceId:"Voice id",rate:"Rate",motion:"Motion",size:"Size",docked:"Dock in the sidebar",hairColor:"Hair colour",pack:"Expression pack"});function i(e,t){let a=e;for(const e of t){if(null===a||"object"!=typeof a)return;a=a[e]}return a}function o(e,t){const a={};let n=a;for(let a=0;a<e.length;a+=1)a===e.length-1?n[e[a]]=t:(n[e[a]]={},n=n[e[a]]);return a}function r(e,t,a,n){const i=e.createElement(t);for(const[e,t]of Object.entries(a||{}))null!=t&&!1!==t&&("class"===e?i.className=t:"text"===e?i.textContent=String(t):i.setAttribute&&i.setAttribute(e,String(t)));return void 0!==n&&(i.textContent=String(n)),i}const s=Object.freeze({buildPane:function(s={}){const d=s.doc;if(!d||"function"!=typeof d.createElement)throw new Error("buildPane: a document is required");const l=s.manifest||e.parts,p=e.persona&&e.persona.LIMITS||{name:40,address:32,voiceId:64},c=e.persona&&e.persona.MAX_OUTFIT_LAYERS||3;let u=s.persona&&"object"==typeof s.persona?s.persona:e.persona?e.persona.defaultPersona():l.defaultPersona();const f=s.capabilities&&Array.isArray(s.capabilities.cosmeticsUnlocked)?new Set(s.capabilities.cosmeticsUnlocked):null,h=[],v=r(d,"div",{class:"avatar-pane",id:"avatar-pane"});function g(e,n){"expressionPack"!==e&&"expressions"!==e||(e="expressions");const i=t[`${e}.${n}`]||`${e}.${n}`;return a.has(e)&&f?{id:i,known:!0,unlocked:f.has(i)}:{id:i,known:!1,unlocked:!0}}function m(e,t){const a=l.LABELS&&l.LABELS[e];return a&&a[t]||String(t)}function C(e,t,a,o){const s=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),p=r(d,"label",{class:"avatar-label"},n[t]||t),c=r(d,"select",{id:`avatar-${o}-${a.join("-")}`,class:"avatar-select"}),f=l.IDS[o]||[];for(const e of f){const t=g(o,e),a=r(d,"option",{value:e},m(o,e));a.value=e,t.unlocked||(a.disabled=!0,a.textContent=`${m(o,e)} · locked`),c.appendChild(a)}c.value=String(i(u,a));const v=r(d,"span",{class:"avatar-field-note"}),C={path:a,kind:o,control:c,tag:"select",group:e};return c.addEventListener("change",(()=>{const e=g(o,c.value);if(!e.unlocked)return v.textContent=`${m(o,c.value)} is not unlocked yet (${e.id})`,void P(C,i(u,a));v.textContent="",P(C,c.value)})),h.push(C),s.appendChild(p),s.appendChild(c),s.appendChild(v),{field:s,control:c}}function y(e,t,a,{min:o,max:s,step:l,format:p}){const c=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),f=i(u,a),v=r(d,"span",{class:"avatar-value"},p?p(f):String(f)),g=r(d,"label",{class:"avatar-label"},n[t]||t),m=r(d,"input",{type:"range",id:`avatar-${t}`,min:String(o),max:String(s),step:String(l)});m.value=String(f);const C={path:a,kind:t,control:m,tag:"input",group:e};return m.addEventListener("input",(()=>{v.textContent=p?p(m.value):String(m.value),P(C,Number(m.value))})),h.push(C),c.appendChild(g),c.appendChild(m),c.appendChild(v),{field:c,control:m}}function b(e,t,a){const o=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),s=r(d,"input",{type:"checkbox",id:`avatar-${t}`});s.checked=!0===i(u,a);const l=r(d,"label",{class:"avatar-label",for:`avatar-${t}`},n[t]||t),p={path:a,kind:t,control:s,tag:"input",group:e};return s.addEventListener("change",(()=>P(p,!0===s.checked))),h.push(p),o.appendChild(s),o.appendChild(l),{field:o,control:s}}function k(e,t,a,o){const s=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),l=r(d,"label",{class:"avatar-label"},n[t]||t),p=r(d,"input",{type:"text",id:`avatar-${t}`,maxlength:o});p.value=String(i(u,a)||"");const c={path:a,kind:t,control:p,tag:"input",group:e};return p.addEventListener("change",(()=>P(c,String(p.value).slice(0,o)))),h.push(c),s.appendChild(l),s.appendChild(p),{field:s,control:p}}function x(e,t){const a=r(d,"div",{class:"avatar-group","data-group":t});return a.appendChild(r(d,"div",{class:"avatar-group-title"},e)),v.appendChild(a),a}const S=x("Identity","identity");S.appendChild(k("identity","name",["identity","name"],p.name||40).field),S.appendChild(k("identity","pronouns",["identity","pronouns"],p.pronouns||24).field),S.appendChild(function(e,t,a,o,s){const l=r(d,"div",{class:"avatar-field avatar-field-stack","data-path":a.join(".")}),p=r(d,"label",{class:"avatar-label",for:`avatar-${t}`},n[t]||t),c=r(d,"textarea",{id:`avatar-${t}`,rows:2,maxlength:o});c.value=String(i(u,a)||"");const f={path:a,kind:t,control:c,tag:"textarea",group:"identity"};return c.addEventListener("change",(()=>P(f,String(c.value).slice(0,o)))),h.push(f),l.appendChild(p),l.appendChild(c),{field:l,control:c}}(0,"selfDesc",["identity","selfDesc"],p.selfDesc||120).field);const A=x("Presentation","presentation");A.appendChild(C("presentation","frame",["presentation","frame"],"frame").field),A.appendChild(C("presentation","skin",["presentation","skin"],"skin").field),A.appendChild(C("presentation","hair",["presentation","hair"],"hair").field),A.appendChild(function(e,t,a){const o=r(d,"div",{class:"avatar-field","data-path":a.join(".")}),s=r(d,"label",{class:"avatar-label"},n[t]||t),l=r(d,"input",{type:"color",id:`avatar-${t}`});l.value=String(i(u,a)||"#3b2a20");const p={path:a,kind:t,control:l,tag:"input",group:"presentation"};return l.addEventListener("change",(()=>P(p,String(l.value).toLowerCase()))),h.push(p),o.appendChild(s),o.appendChild(l),{field:o,control:l}}(0,"hairColor",["presentation","hairColor"]).field),A.appendChild(C("presentation","eyes",["presentation","eyes"],"eyes").field),A.appendChild(C("presentation","palette",["presentation","palette"],"palette").field),A.appendChild(function(e){const t=r(d,"div",{class:"avatar-field","data-path":"presentation.outfit"});t.appendChild(r(d,"div",{class:"avatar-label"},"Outfit (up to "+c+" layers)"));const a=Array.isArray(i(u,["presentation","outfit"]))?i(u,["presentation","outfit"]).slice():[],n=[],o=r(d,"span",{class:"avatar-field-note"});for(const e of l.IDS.outfit||[]){const s=g("outfit",e),l=r(d,"div",{class:"avatar-check"}),p=r(d,"input",{type:"checkbox",id:`avatar-outfit-${e}`});p.checked=a.includes(e),p.disabled=!s.unlocked;const f=r(d,"label",{for:`avatar-outfit-${e}`},m("outfit",e)+(s.unlocked?"":" · locked")),v={path:["presentation","outfit"],kind:"outfitLayer",control:p,tag:"input",group:"presentation",id:e};p.addEventListener("change",(()=>{const t=Array.isArray(i(u,["presentation","outfit"]))?i(u,["presentation","outfit"]).slice():[];let a;if(p.checked){if(t.length>=c)return p.checked=!1,void(o.textContent=`at most ${c} outfit layers (earned at level 5)`);a=t.concat([e])}else a=t.filter((t=>t!==e));o.textContent="",P(v,a)})),h.push(v),n.push(p),l.appendChild(p),l.appendChild(f),t.appendChild(l)}return t.appendChild(o),{field:t,control:n}}().field),x("Expressions","expressions").appendChild(C("expressions","pack",["expressions","pack"],"expressionPack").field);const j=x("Voice","voice");j.appendChild(b("voice","enabled",["voice","enabled"]).field),j.appendChild(C("voice","engine",["voice","engine"],"voiceEngine").field),j.appendChild(k("voice","voiceId",["voice","id"],p.voiceId||64).field),j.appendChild(y("voice","rate",["voice","rate"],{min:.5,max:2,step:.1,format:e=>`${Number(e).toFixed(1)}×`}).field);const $=x("Register","register"),w=e=>`${Math.round(100*Number(e))}%`;$.appendChild(y("register","formality",["register","formality"],{min:0,max:1,step:.05,format:w}).field),$.appendChild(y("register","humor",["register","humor"],{min:0,max:1,step:.05,format:w}).field),$.appendChild(y("register","verbosity",["register","verbosity"],{min:0,max:1,step:.05,format:w}).field),$.appendChild(C("register","proactivity",["register","proactivity"],"proactivity").field),$.appendChild(k("register","address",["register","address"],p.address||32).field),$.appendChild(b("register","emojis",["register","emojis"]).field);const L=x("Appearance","appearance");L.appendChild(C("appearance","motion",["appearance","motion"],"motion").field),L.appendChild(C("appearance","size",["appearance","size"],"size").field),L.appendChild(b("appearance","docked",["appearance","docked"]).field);const E=r(d,"p",{class:"avatar-pane-status",id:"avatar-pane-status",role:"status"});function P(t,a){u=e.persona?e.persona.validate(function(e,t){const a={};for(const n of["identity","presentation","expressions","voice","register","appearance"])a[n]=Object.assign({},e[n],t[n]);return a}(u,o(t.path,a))).persona:u;const n=o(t.path,a);let i;try{i="function"==typeof s.onPatch?s.onPatch(n,{persona:u,record:t}):void 0}catch(e){i={ok:!1,reason:e&&e.message||"change handler threw"}}return Promise.resolve(i).then((e=>{e&&e.ok?I(!1===e.saved?"preview only":"saved"):e&&e.reason?I(`not saved — ${e.reason}`):I(void 0===e?"":"preview only")}),(e=>I(`not saved — ${e&&e.message||"error"}`))),u}function I(e){E.textContent=String(e||""),E.hidden=!e}return v.appendChild(E),{root:v,controls:h,status:E,get persona(){return u},update(e){if(!e||"object"!=typeof e)return u;u=e;for(const e of h){const t=i(u,e.path);null==t?e.control.value="":"select"===e.tag?e.control.value=String(t):"checkbox"===(e.control.type||"")?e.control.checked=!0===t:Array.isArray(t)&&"outfitLayer"===e.kind?e.control.checked=t.includes(e.id):e.control.value=String(t)}return u},setStatus:I,destroy(){v.parentNode&&v.parentNode.removeChild&&v.parentNode.removeChild(v)}}},patchFor:o,readPath:i,UNLOCK_ALIASES:t,FIELD_LABELS:n});"undefined"!=typeof module&&module.exports?module.exports=s:"undefined"!=typeof globalThis&&(globalThis.AegisAvatarPane=s)}();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// Copyright (C) 2026 Niklas Borneklint — AEGIS Code (aegiscode) / Aegiscloud.
|
|
3
|
+
"use strict";!function(){var e=["audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus","audio/mp4"],t={status:null,recorder:null,stream:null,chunks:[],timer:null,startedAt:0,phase:"idle"};function n(){if(t.timer&&(clearTimeout(t.timer),t.timer=null),t.stream){try{t.stream.getTracks().forEach((function(e){e.stop()}))}catch(e){}t.stream=null}t.recorder=null,t.chunks=[]}function r(e){t.phase=e;var n=document.getElementById("dictate-toggle"),r=document.getElementById("dictate-label");if(n){var i="recording"===e,a="transcribing"===e;n.classList.toggle("is-recording",i),n.setAttribute("aria-pressed",i?"true":"false"),n.disabled=a,r&&(r.textContent=i?"stop":a?"transcribing…":"dictate"),n.title=i?"Stop recording and transcribe.":a?"Transcribing locally…":"Dictate a message — transcribed locally, then inserted into the composer."}}function i(e,t){var n=document.getElementById("dictate-hint");n&&(n.textContent=e||"",n.dataset.kind=t||"",n.hidden=!e)}function a(){var e=document.getElementById("dictate-toggle");if(e){var n=t.status||{},i=Boolean(n.enabled);e.hidden=!i,i||("recording"===t.phase&&s(),r("idle"))}}function o(){if("idle"!==t.phase)return Promise.resolve(!1);if("undefined"==typeof navigator||!navigator.mediaDevices||"function"!=typeof navigator.mediaDevices.getUserMedia||"function"!=typeof window.MediaRecorder)return i("this build cannot record audio — MediaRecorder is unavailable","error"),Promise.resolve(!1);var a=t.status&&t.status.maxSeconds||60,o=function(){for(var t=0;t<e.length;t+=1){var n=e[t];try{if(window.MediaRecorder.isTypeSupported(n))return{mime:n,ext:-1!==n.indexOf("ogg")?"ogg":-1!==n.indexOf("mp4")?"m4a":"webm"}}catch(e){}}return{mime:"",ext:"webm"}}();return navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){var n;t.stream=e,t.chunks=[];try{n=new window.MediaRecorder(e,o.mime?{mimeType:o.mime}:void 0)}catch(t){n=new window.MediaRecorder(e)}return t.recorder=n,t.ext=o.ext,n.ondataavailable=function(e){e&&e.data&&e.data.size&&t.chunks.push(e.data)},n.start(),t.startedAt=Date.now(),i("",""),r("recording"),t.timer=setTimeout((function(){"recording"===t.phase&&(i("reached the "+a+"s limit — transcribing what was recorded","info"),s())}),1e3*a),!0})).catch((function(e){n();var t=e&&e.name?String(e.name):"";return i("NotAllowedError"===t?"microphone permission was denied — allow it in your system settings":"NotFoundError"===t?"no microphone was found on this machine":"could not start recording: "+(e&&e.message||"unknown error"),"error"),r("idle"),!1}))}function s(){var e=t.recorder;return e&&"recording"===t.phase?new Promise((function(t){e.onstop=function(){t()};try{e.stop()}catch(e){t()}})).then((function(){Math.max(1,Math.round((Date.now()-t.startedAt)/1e3));var e=t.chunks.slice(),a=t.ext||"webm";if(n(),!e.length)return i("nothing was recorded","error"),r("idle"),!1;var o=new Blob(e,{type:e[0].type||"audio/webm"});return r("transcribing"),i("transcribing locally…","info"),o.arrayBuffer().then((function(e){return window.aegis.speechTranscribe({audio:e,ext:a})})).then((function(e){return r("idle"),e&&e.ok?(function(e){var t=document.getElementById("prompt");if(t){var n="number"==typeof t.selectionStart?t.selectionStart:t.value.length,r="number"==typeof t.selectionEnd?t.selectionEnd:t.value.length,i=t.value.slice(0,n),a=t.value.slice(r),o=i&&!/\s$/.test(i),s=i+(o?" ":"")+e+a;t.value=s;var c=(i+(o?" ":"")+e).length;try{t.setSelectionRange(c,c),t.focus()}catch(e){}t.dispatchEvent(new Event("input",{bubbles:!0}))}}(e.text),i("",""),!0):(i(e&&e.reason||"transcription failed","error"),!1)}))})).catch((function(e){return n(),r("idle"),i(e&&e.message||"transcription failed","error"),!1})):(n(),r("idle"),Promise.resolve(!1))}window.aegisDictation={refresh:function(){return window.aegis&&"function"==typeof window.aegis.speechStatus?window.aegis.speechStatus().then((function(e){return t.status=e||{enabled:!1,reason:"dictation is not available"},a(),t.status})).catch((function(e){return t.status={enabled:!1,reason:e&&e.message||"could not read dictation status"},a(),t.status})):(t.status={enabled:!1,reason:"dictation is not available in this build"},a(),Promise.resolve(t.status))},toggle:function(){return"recording"===t.phase?s():"transcribing"===t.phase?Promise.resolve(!1):o()},startRecording:o,stopRecording:s,renderMic:a,state:function(){return t.phase},status:function(){return t.status}}}();
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<link rel="stylesheet" href="style.css" />
|
|
23
23
|
<link rel="stylesheet" href="fingerprint.css" />
|
|
24
24
|
<link rel="stylesheet" href="avatar/avatar.css" />
|
|
25
|
+
<link rel="stylesheet" href="vendor/xterm.css" />
|
|
25
26
|
</head>
|
|
26
27
|
<body data-aegis-theme="default">
|
|
27
28
|
<header class="topbar">
|
|
@@ -546,7 +547,7 @@
|
|
|
546
547
|
<textarea
|
|
547
548
|
id="prompt"
|
|
548
549
|
rows="2"
|
|
549
|
-
placeholder="
|
|
550
|
+
placeholder="Enter to send, Shift+Enter for a newline, or drop a file"
|
|
550
551
|
></textarea>
|
|
551
552
|
<!-- The composer's control row: every switch that changes what this
|
|
552
553
|
send will do lives INSIDE the composer box, on one line under the
|
|
@@ -592,6 +593,23 @@
|
|
|
592
593
|
</button>
|
|
593
594
|
<span class="hint" id="auto-mode-hint"></span>
|
|
594
595
|
<span class="composer-spacer"></span>
|
|
596
|
+
<!-- Dictation. Present only when Settings → Dictation reports an
|
|
597
|
+
enabled, working local engine — `renderDictation()` in app.js owns
|
|
598
|
+
the `hidden` toggle, because a mic button that exists but always
|
|
599
|
+
fails is worse than no button. While recording it turns into a
|
|
600
|
+
stop control and carries `.is-recording`, which is the only thing
|
|
601
|
+
the red styling keys on. -->
|
|
602
|
+
<button
|
|
603
|
+
type="button"
|
|
604
|
+
id="dictate-toggle"
|
|
605
|
+
class="ghost-btn dictate-btn"
|
|
606
|
+
aria-pressed="false"
|
|
607
|
+
hidden
|
|
608
|
+
title="Dictate a message — transcribed locally, then inserted into the composer."
|
|
609
|
+
>
|
|
610
|
+
<span class="dictate-dot" aria-hidden="true">●</span>
|
|
611
|
+
<span id="dictate-label">dictate</span>
|
|
612
|
+
</button>
|
|
595
613
|
<button type="submit" id="send">Send</button>
|
|
596
614
|
</div>
|
|
597
615
|
</form>
|
|
@@ -617,6 +635,8 @@
|
|
|
617
635
|
<button type="button" class="settings-jump-link" data-jump="quick-launcher-card">Quick Launcher</button>
|
|
618
636
|
<button type="button" class="settings-jump-link" data-jump="approvals-card">Tool approvals</button>
|
|
619
637
|
<button type="button" class="settings-jump-link" data-jump="appearance-card">Appearance</button>
|
|
638
|
+
<button type="button" class="settings-jump-link" data-jump="skills-card">Skills</button>
|
|
639
|
+
<button type="button" class="settings-jump-link" data-jump="dictation-card">Dictation</button>
|
|
620
640
|
<button type="button" class="settings-jump-link" data-jump="persona-card">Companion</button>
|
|
621
641
|
</nav>
|
|
622
642
|
</div>
|
|
@@ -1063,6 +1083,174 @@
|
|
|
1063
1083
|
<p class="hint" id="accent-hint"></p>
|
|
1064
1084
|
</section>
|
|
1065
1085
|
|
|
1086
|
+
<section class="card" id="skills-card">
|
|
1087
|
+
<h2>Skills</h2>
|
|
1088
|
+
<!-- The skill list, in Settings.
|
|
1089
|
+
|
|
1090
|
+
A skill is a directory holding a SKILL.md: a description that says
|
|
1091
|
+
WHEN to reach for it, and a body that says what to do. The scanner
|
|
1092
|
+
is `client/skills.js` — the SAME module the terminal's `/skills`
|
|
1093
|
+
calls — so "what can this machine do" has one answer in both faces.
|
|
1094
|
+
|
|
1095
|
+
Three questions this card answers that a bare list would not: which
|
|
1096
|
+
directories are being searched (a skill in the wrong place is
|
|
1097
|
+
invisible, and that reads as "broken"); whether a skill is usable
|
|
1098
|
+
or merely present (a SKILL.md with no frontmatter still works, but
|
|
1099
|
+
the warning says so); and how to add one (the form below writes a
|
|
1100
|
+
correctly-shaped file instead of asking the user to remember the
|
|
1101
|
+
frontmatter). -->
|
|
1102
|
+
<p class="hint">
|
|
1103
|
+
Skills are reusable instructions the model can pick up — one folder per
|
|
1104
|
+
skill, each holding a <code>SKILL.md</code>. The terminal's
|
|
1105
|
+
<code>/skills</code> command lists the same ones.
|
|
1106
|
+
</p>
|
|
1107
|
+
<ul class="skills-list" id="skills-list" aria-label="Installed skills"></ul>
|
|
1108
|
+
<p class="hint" id="skills-status"></p>
|
|
1109
|
+
<details class="skills-dirs" id="skills-dirs-wrap">
|
|
1110
|
+
<summary>Where skills are looked for</summary>
|
|
1111
|
+
<ul class="skills-dirs-list" id="skills-dirs-list"></ul>
|
|
1112
|
+
</details>
|
|
1113
|
+
|
|
1114
|
+
<h3 class="skills-form-title">Import a skill from a URL</h3>
|
|
1115
|
+
<form id="skills-import-form" autocomplete="off">
|
|
1116
|
+
<label class="field-row" for="skill-import-url">
|
|
1117
|
+
<span>SKILL.md URL</span>
|
|
1118
|
+
<input
|
|
1119
|
+
type="url"
|
|
1120
|
+
id="skill-import-url"
|
|
1121
|
+
placeholder="https://example.com/skills/release-notes/SKILL.md"
|
|
1122
|
+
spellcheck="false"
|
|
1123
|
+
autocomplete="off"
|
|
1124
|
+
title="A direct link to a SKILL.md file. Only http:// and https:// are accepted."
|
|
1125
|
+
/>
|
|
1126
|
+
</label>
|
|
1127
|
+
<label class="field-row" for="skill-import-name">
|
|
1128
|
+
<span>name (optional)</span>
|
|
1129
|
+
<input
|
|
1130
|
+
type="text"
|
|
1131
|
+
id="skill-import-name"
|
|
1132
|
+
placeholder="defaults to the fetched file's name: frontmatter"
|
|
1133
|
+
spellcheck="false"
|
|
1134
|
+
autocomplete="off"
|
|
1135
|
+
title="Override the skill's folder/slash name. Leave blank to use the fetched file's own name: frontmatter."
|
|
1136
|
+
/>
|
|
1137
|
+
</label>
|
|
1138
|
+
<div class="skills-form-actions">
|
|
1139
|
+
<button type="submit" id="skill-import" class="ghost-btn">Import skill</button>
|
|
1140
|
+
</div>
|
|
1141
|
+
</form>
|
|
1142
|
+
<p class="hint" id="skill-import-hint"></p>
|
|
1143
|
+
|
|
1144
|
+
<h3 class="skills-form-title">Create a skill</h3>
|
|
1145
|
+
<form id="skills-form" autocomplete="off">
|
|
1146
|
+
<label class="field-row" for="skill-name">
|
|
1147
|
+
<span>name</span>
|
|
1148
|
+
<input
|
|
1149
|
+
type="text"
|
|
1150
|
+
id="skill-name"
|
|
1151
|
+
placeholder="release-notes"
|
|
1152
|
+
spellcheck="false"
|
|
1153
|
+
autocomplete="off"
|
|
1154
|
+
title="Lowercase letters, digits and single hyphens. This becomes the folder name and the skill's name."
|
|
1155
|
+
/>
|
|
1156
|
+
</label>
|
|
1157
|
+
<label class="field-row" for="skill-description">
|
|
1158
|
+
<span>when to use it</span>
|
|
1159
|
+
<input
|
|
1160
|
+
type="text"
|
|
1161
|
+
id="skill-description"
|
|
1162
|
+
placeholder="Use when the user asks to draft or update release notes."
|
|
1163
|
+
autocomplete="off"
|
|
1164
|
+
title="One sentence telling the model when this skill applies. This is the line every scanner shows."
|
|
1165
|
+
/>
|
|
1166
|
+
</label>
|
|
1167
|
+
<label class="field-row field-row-stack" for="skill-body">
|
|
1168
|
+
<span>instructions</span>
|
|
1169
|
+
<textarea
|
|
1170
|
+
id="skill-body"
|
|
1171
|
+
rows="5"
|
|
1172
|
+
spellcheck="false"
|
|
1173
|
+
placeholder="# Release notes 1. Read the commits since the last tag. 2. Group them by area. 3. Write one line per user-visible change."
|
|
1174
|
+
title="The steps themselves. Left blank writes a template you can edit later."
|
|
1175
|
+
></textarea>
|
|
1176
|
+
</label>
|
|
1177
|
+
<label class="field-row" for="skill-target-dir">
|
|
1178
|
+
<span>save in</span>
|
|
1179
|
+
<select id="skill-target-dir" title="Which skill directory this one is created in. User-level skills are visible in every project."></select>
|
|
1180
|
+
</label>
|
|
1181
|
+
<div class="skills-form-actions">
|
|
1182
|
+
<button type="submit" id="skill-create" class="ghost-btn">Create skill</button>
|
|
1183
|
+
<button type="button" id="skills-refresh" class="ghost-btn">Refresh</button>
|
|
1184
|
+
</div>
|
|
1185
|
+
</form>
|
|
1186
|
+
<p class="hint" id="skill-create-hint"></p>
|
|
1187
|
+
</section>
|
|
1188
|
+
|
|
1189
|
+
<section class="card" id="dictation-card">
|
|
1190
|
+
<h2>Dictation</h2>
|
|
1191
|
+
<!-- Speech TO text — the mirror of the Companion card's voice controls,
|
|
1192
|
+
which are speech FROM text.
|
|
1193
|
+
|
|
1194
|
+
The rules this card has to make visible, because they are the
|
|
1195
|
+
feature's whole safety story: it is OFF by default, it uses a LOCAL
|
|
1196
|
+
binary (whisper.cpp) and never a vendor, and with no engine
|
|
1197
|
+
installed the answer is an install hint rather than a microphone
|
|
1198
|
+
that silently posts audio somewhere. `client/speech.js` owns those
|
|
1199
|
+
rules; this markup only reports what it decided (`#dictation-hint`
|
|
1200
|
+
prints `resolve().reason` verbatim), so the card cannot claim more
|
|
1201
|
+
than the module allows. -->
|
|
1202
|
+
<p class="hint">
|
|
1203
|
+
Talk instead of typing. Recordings are transcribed by a local
|
|
1204
|
+
engine on this machine — <strong>no audio is uploaded</strong> — and
|
|
1205
|
+
nothing is kept after the text lands in the composer. The same switch
|
|
1206
|
+
is read by the terminal face.
|
|
1207
|
+
</p>
|
|
1208
|
+
<label
|
|
1209
|
+
class="flow-toggle"
|
|
1210
|
+
for="dictation-enabled"
|
|
1211
|
+
id="dictation-enabled-wrap"
|
|
1212
|
+
title="Turns the composer's microphone button on. Off by default: nothing listens until you say so."
|
|
1213
|
+
>
|
|
1214
|
+
<input type="checkbox" id="dictation-enabled" />
|
|
1215
|
+
<span>enable dictation</span>
|
|
1216
|
+
</label>
|
|
1217
|
+
<label class="field-row" for="dictation-model">
|
|
1218
|
+
<span>model file</span>
|
|
1219
|
+
<input
|
|
1220
|
+
type="text"
|
|
1221
|
+
id="dictation-model"
|
|
1222
|
+
placeholder="/home/you/.local/share/whisper/ggml-base.en.bin"
|
|
1223
|
+
spellcheck="false"
|
|
1224
|
+
autocomplete="off"
|
|
1225
|
+
title="Path to a whisper.cpp model (ggml-*.bin). Required: whisper.cpp cannot transcribe without one."
|
|
1226
|
+
/>
|
|
1227
|
+
</label>
|
|
1228
|
+
<label class="field-row" for="dictation-language">
|
|
1229
|
+
<span>language</span>
|
|
1230
|
+
<select id="dictation-language">
|
|
1231
|
+
<option value="auto" selected>detect automatically</option>
|
|
1232
|
+
<option value="en">English</option>
|
|
1233
|
+
<option value="sv">Swedish</option>
|
|
1234
|
+
<option value="de">German</option>
|
|
1235
|
+
<option value="fr">French</option>
|
|
1236
|
+
<option value="es">Spanish</option>
|
|
1237
|
+
</select>
|
|
1238
|
+
</label>
|
|
1239
|
+
<label class="field-row" for="dictation-max-seconds">
|
|
1240
|
+
<span>max length</span>
|
|
1241
|
+
<select id="dictation-max-seconds">
|
|
1242
|
+
<option value="30">30 seconds</option>
|
|
1243
|
+
<option value="60" selected>60 seconds</option>
|
|
1244
|
+
<option value="120">2 minutes</option>
|
|
1245
|
+
</select>
|
|
1246
|
+
</label>
|
|
1247
|
+
<div class="skills-form-actions">
|
|
1248
|
+
<button type="button" id="dictation-save" class="ghost-btn">Save</button>
|
|
1249
|
+
<button type="button" id="dictation-refresh" class="ghost-btn">Check again</button>
|
|
1250
|
+
</div>
|
|
1251
|
+
<p class="hint" id="dictation-hint"></p>
|
|
1252
|
+
</section>
|
|
1253
|
+
|
|
1066
1254
|
<section class="card" id="persona-card">
|
|
1067
1255
|
<h2>Companion</h2>
|
|
1068
1256
|
<p class="hint">
|
|
@@ -1789,7 +1977,7 @@
|
|
|
1789
1977
|
<h1 class="onboard-title">Welcome to aegis one</h1>
|
|
1790
1978
|
<p class="onboard-sub">
|
|
1791
1979
|
Sign in to sync memory, sessions and billing across every machine
|
|
1792
|
-
you run
|
|
1980
|
+
you run aegis one.
|
|
1793
1981
|
</p>
|
|
1794
1982
|
|
|
1795
1983
|
<button type="button" class="onboard-btn onboard-btn-google" id="onboard-google">
|
|
@@ -1834,6 +2022,8 @@
|
|
|
1834
2022
|
<script src="library.js"></script>
|
|
1835
2023
|
<script src="vendor/marked.umd.js"></script>
|
|
1836
2024
|
<script src="vendor/purify.min.js"></script>
|
|
2025
|
+
<script src="vendor/xterm.js"></script>
|
|
2026
|
+
<script src="pty-panel.js"></script>
|
|
1837
2027
|
<script src="vendor/aegis-highlight.js"></script>
|
|
1838
2028
|
<script src="markdown.js"></script>
|
|
1839
2029
|
<!-- Loaded before app.js: app.js's init() calls window.aegisFingerprint.mount
|
|
@@ -1862,6 +2052,14 @@
|
|
|
1862
2052
|
<!-- The `/` and `@` menus' pure half: trigger detection and one ranking rule,
|
|
1863
2053
|
shared with the palette so the two menus cannot disagree. -->
|
|
1864
2054
|
<script src="composer-triggers.js"></script>
|
|
2055
|
+
<!-- Settings → Skills and Settings → Dictation, plus the composer's mic.
|
|
2056
|
+
Two files because they are two surfaces: `settings-skills.js` paints the
|
|
2057
|
+
cards, `dictation.js` owns MediaRecorder and the mic button. Both are
|
|
2058
|
+
plain globals (this renderer has no module system) exposing
|
|
2059
|
+
`window.aegisSettingsCards` and `window.aegisDictation`, which app.js
|
|
2060
|
+
calls — so no card or button is wired from here beyond the form itself. -->
|
|
2061
|
+
<script src="settings-skills.js"></script>
|
|
2062
|
+
<script src="dictation.js"></script>
|
|
1865
2063
|
<!-- View > Go Back / Go Forward's stack. Pure: entries are `{kind, id}`, never
|
|
1866
2064
|
DOM nodes, so the Node test drives the whole thing without a window. Loaded
|
|
1867
2065
|
ahead of app.js because app.js calls createHistory() at module scope. -->
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// Copyright (C) 2026 Niklas Borneklint — AEGIS Code (aegiscode) / Aegiscloud.
|
|
3
|
+
"use strict";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)}`}let ptyPanelCurrent=null;function ptyPanelBuildOverlay(){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-title">Terminal (aegiscode)</span><button type="button" class="pty-panel-close" aria-label="Close terminal">×</button></div><div class="pty-panel-body"></div></div>',e}function ptyPanelTeardown(e){if(e){try{e.unsubscribe()}catch{}try{window.aegis.pty.cancel(e.id)}catch{}try{e.term.dispose()}catch{}e.overlay&&e.overlay.parentNode&&e.overlay.parentNode.removeChild(e.overlay)}}function ptyPanelClose(){if(!ptyPanelCurrent)return;const e=ptyPanelCurrent;ptyPanelCurrent=null,ptyPanelTeardown(e)}function ptyPanelOpen(){if(ptyPanelCurrent)return ptyPanelCurrent.overlay&&"function"==typeof ptyPanelCurrent.overlay.focus&&ptyPanelCurrent.overlay.focus(),{ok:!0};if("undefined"==typeof window||"function"!=typeof window.Terminal)return{ok:!1,reason:"the terminal panel is not available in this build (xterm.js missing)"};if(void 0===window.aegis||!window.aegis.pty)return{ok:!1,reason:"the terminal panel bridge is not available in this build"};const e=ptyPanelBuildOverlay();document.body.appendChild(e);const n=e.querySelector(".pty-panel-body"),t=new window.Terminal({convertEol:!0,cursorBlink:!0,fontSize:13});t.open(n);const o=ptyPanelCreateId(),a=window.aegis.pty.onEvent(o,(e=>{const n=e&&e.p;n&&("data"===n.kind?t.write(n.chunk):"exit"===n.kind&&t.write("\r\n[process exited]\r\n"))}));return ptyPanelCurrent={id:o,term:t,unsubscribe:a,overlay:e},t.onData((e=>window.aegis.pty.write(o,e))),t.onResize((({cols:e,rows:n})=>window.aegis.pty.resize(o,e,n))),e.querySelector(".pty-panel-close").addEventListener("click",ptyPanelClose),e.addEventListener("keydown",(e=>{"Escape"===e.key&&ptyPanelClose()})),window.aegis.pty.exec(o,{cols:t.cols,rows:t.rows}).then((e=>{e&&e.ok||t.write(`\r\n[could not start: ${e&&e.e&&e.e.msg||"unknown error"}]\r\n`)})),{ok:!0}}function ptyPanelIsOpen(){return Boolean(ptyPanelCurrent)}"undefined"!=typeof module&&module.exports&&(module.exports={createId:ptyPanelCreateId,open:ptyPanelOpen,close:ptyPanelClose,isOpen:ptyPanelIsOpen}),"undefined"!=typeof window&&(window.aegisPtyPanel={open:ptyPanelOpen,close:ptyPanelClose,isOpen:ptyPanelIsOpen});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// Copyright (C) 2026 Niklas Borneklint — AEGIS Code (aegiscode) / Aegiscloud.
|
|
3
|
+
"use strict";!function(){function e(e){return document.getElementById(e)}function t(t,i,n){var a=e(t);a&&(a.textContent=i||"",n&&(a.dataset.kind=n),a.hidden=!i)}var i={entries:[],roots:[],missing:[],createDir:""};function n(){return window.aegis&&"function"==typeof window.aegis.skillsList?window.aegis.skillsList().then((function(n){n&&n.ok?(i.entries=n.skills||[],i.roots=n.roots||[],i.missing=n.missing||[],i.createDir=n.createDir||"",function(){var t=e("skills-list");if(t){if(t.innerHTML="",i.entries.length)i.entries.forEach((function(e){t.appendChild(function(e,t){var i=document.createElement("li");i.className="skill-row";var n=document.createElement("span");n.className="skill-row-name",n.textContent="/"+e.name,i.appendChild(n);var a=document.createElement("span");a.className="skill-row-desc",a.textContent=e.description||"(no description)",e.warning&&(a.classList.add("skill-row-warning"),a.title=e.warning),i.appendChild(a);var l=document.createElement("span");l.className="skill-row-scope",l.textContent=e.scope,l.title=e.path,i.appendChild(l);var o=document.createElement("button");return o.type="button",o.className="skill-row-remove",o.textContent="×",o.title="Delete this skill ("+e.path+")",o.setAttribute("aria-label","Delete skill "+e.name),o.addEventListener("click",(function(){t(e.name)})),i.appendChild(o),i}(e,l))}));else{var n=document.createElement("li");n.className="skill-row";var a=document.createElement("span");a.className="skill-row-desc",a.textContent="No skills found yet — create one below.",n.appendChild(a),t.appendChild(n)}var o=e("skills-dirs-list");o&&(o.innerHTML="",i.roots.forEach((function(e){var t=document.createElement("li");t.textContent=e,-1!==i.missing.indexOf(e)&&(t.classList.add("skills-dirs-missing"),t.title="does not exist yet — creating a skill here will create it"),o.appendChild(t)})));var s=e("skill-target-dir");if(s){var r=s.value;s.innerHTML="";var d=i.roots.filter((function(e){return-1===i.missing.indexOf(e)||e===i.createDir}));i.createDir&&-1===d.indexOf(i.createDir)&&d.unshift(i.createDir),d.forEach((function(e){var t=document.createElement("option");t.value=e,t.textContent=e,s.appendChild(t)})),r&&-1!==d.indexOf(r)?s.value=r:i.createDir&&(s.value=i.createDir)}}}(),t("skills-status",i.entries.length?i.entries.length+(1===i.entries.length?" skill":" skills"):"","info")):t("skills-status",n&&n.error||"could not read the skill list","error")})).catch((function(e){t("skills-status",e&&e.message||"could not read the skill list","error")})):(t("skills-status","skills are not available in this build","error"),Promise.resolve())}function a(i){i&&i.preventDefault();var a=e("skill-name"),l=e("skill-description"),o=e("skill-body"),s=e("skill-target-dir"),r=a?a.value.trim():"";return r?window.aegis&&"function"==typeof window.aegis.skillsCreate?window.aegis.skillsCreate({name:r,description:l?l.value.trim():"",body:o?o.value:"",targetDir:s?s.value:""}).then((function(e){if(e&&e.ok)return t("skill-create-hint","created "+e.path,"ok"),a&&(a.value=""),l&&(l.value=""),o&&(o.value=""),n();t("skill-create-hint",e&&e.error||"could not create that skill","error")})).catch((function(e){t("skill-create-hint",e&&e.message||"could not create that skill","error")})):(t("skill-create-hint","skills are not available in this build","error"),Promise.resolve()):(t("skill-create-hint","a skill needs a name","error"),a&&a.focus(),Promise.resolve())}function l(e){return e&&window.aegis&&"function"==typeof window.aegis.skillsRemove&&("function"!=typeof window.confirm||window.confirm('Delete the skill "'+e+'"? Its folder and SKILL.md will be removed.'))?window.aegis.skillsRemove(e).then((function(i){if(i&&i.ok)return t("skills-status","deleted "+e,"ok"),n();t("skills-status",i&&i.error||"could not remove that skill","error")})).catch((function(e){t("skills-status",e&&e.message||"could not remove that skill","error")})):Promise.resolve()}function o(i){i&&i.preventDefault();var a=e("skill-import-url"),l=e("skill-import-name"),o=a?a.value.trim():"";return o?window.aegis&&"function"==typeof window.aegis.skillsImport?(t("skill-import-hint","fetching…","info"),window.aegis.skillsImport({url:o,name:l?l.value.trim():""}).then((function(e){if(e&&e.ok)return t("skill-import-hint","imported "+e.name+" from "+e.source,"ok"),a&&(a.value=""),l&&(l.value=""),n();t("skill-import-hint",e&&e.error||"could not import that skill","error")})).catch((function(e){t("skill-import-hint",e&&e.message||"could not import that skill","error")}))):(t("skill-import-hint","skill import is not available in this build","error"),Promise.resolve()):(t("skill-import-hint","a URL is required","error"),a&&a.focus(),Promise.resolve())}var s={status:null,loaded:!1};function r(i){var n=i||{};s.status=n;var a=n.settings||{},l=e("dictation-enabled");l&&(l.checked=!0===a.enabled);var o=e("dictation-model");o&&(o.value=a.model||"");var r=e("dictation-language");r&&a.language&&(r.value=a.language);var d=e("dictation-max-seconds");d&&a.maxSeconds&&(d.value=String(a.maxSeconds));var c=[];n.enabled?c.push("Ready — "+(n.reason||"local engine available")+(a.model?"":" (no model file set)")):(c.push(n.reason||"dictation is off"),n.install&&c.push(n.install)),t("dictation-hint",c.join("\n"),n.enabled?"ok":"info");var u=e("dictation-save");u&&(u.disabled=!1),window.aegisDictation&&window.aegisDictation.renderMic()}function d(){return window.aegis&&"function"==typeof window.aegis.speechStatus?window.aegis.speechStatus().then((function(e){return s.loaded=!0,r(e),e})).catch((function(e){t("dictation-hint",e&&e.message||"could not read dictation status","error")})):(t("dictation-hint","dictation is not available in this build","error"),Promise.resolve())}function c(){if(!window.aegis||"function"!=typeof window.aegis.speechSet)return Promise.resolve();var i={enabled:Boolean(e("dictation-enabled")&&e("dictation-enabled").checked),engine:"local",model:e("dictation-model")?e("dictation-model").value.trim():"",language:e("dictation-language")?e("dictation-language").value:"auto",maxSeconds:e("dictation-max-seconds")?Number(e("dictation-max-seconds").value):60};return i.enabled||(i.engine="none"),window.aegis.speechSet(i).then((function(e){return e&&e.ok?(t("dictation-hint","saved","ok"),d()):(r(e||{}),e)})).catch((function(e){t("dictation-hint",e&&e.message||"could not save dictation settings","error")}))}function u(){var t=e("skills-form");t&&t.addEventListener("submit",a);var i=e("skills-import-form");i&&i.addEventListener("submit",o);var l=e("skills-refresh");l&&l.addEventListener("click",(function(){n()}));var s=e("dictation-save");s&&s.addEventListener("click",c);var r=e("dictation-refresh");r&&r.addEventListener("click",(function(){d()}));var u=e("dictation-enabled");u&&u.addEventListener("change",c)}window.aegisSettingsCards={refreshAll:function(){return Promise.all([n(),d()])},loadSkills:n,loadDictation:d,createSkill:a,importSkill:o,removeSkill:l,saveDictation:c,skills:function(){return i},dictation:function(){return s}},"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",(function(){u()})):u())}();
|
|
@@ -1797,6 +1797,17 @@ body.memory-open {
|
|
|
1797
1797
|
.messages {
|
|
1798
1798
|
flex: 1;
|
|
1799
1799
|
overflow-y: auto;
|
|
1800
|
+
/* Chromium's scroll anchoring picks an anchor node and silently rewrites
|
|
1801
|
+
`scrollTop` whenever content ABOVE the viewport changes height. The
|
|
1802
|
+
transcript changes height above the viewport constantly while a turn
|
|
1803
|
+
streams (the body grows, the caret row and live figure come and go), and
|
|
1804
|
+
the anchoring adjustment lands in the same frame as the explicit
|
|
1805
|
+
`scrollTop = scrollHeight` in transcript-view's `follow()` — the two fight,
|
|
1806
|
+
and the loser is whichever committed last. That is visible as the view
|
|
1807
|
+
twitching under the reading position mid-turn. The transcript already has
|
|
1808
|
+
an owner for "where should the reader be" (follow + the scroll veto), so
|
|
1809
|
+
the second, implicit one is turned off here. */
|
|
1810
|
+
overflow-anchor: none;
|
|
1800
1811
|
padding: var(--s-4) var(--s-4) var(--s-2);
|
|
1801
1812
|
display: flex;
|
|
1802
1813
|
flex-direction: column;
|
|
@@ -2408,6 +2419,170 @@ label[hidden] {
|
|
|
2408
2419
|
min-width: 120px;
|
|
2409
2420
|
}
|
|
2410
2421
|
|
|
2422
|
+
/* ── Skills card + Dictation card (Settings) ──────────────────────────────────
|
|
2423
|
+
|
|
2424
|
+
Both cards are plain form rows above, so only what `field-row` cannot express
|
|
2425
|
+
is added: a stacked row for the instructions textarea, the skill list, and
|
|
2426
|
+
the recording state on the composer's mic button. */
|
|
2427
|
+
|
|
2428
|
+
.field-row-stack {
|
|
2429
|
+
flex-direction: column;
|
|
2430
|
+
align-items: stretch;
|
|
2431
|
+
gap: var(--s-1);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
.field-row input[type='text'],
|
|
2435
|
+
.field-row textarea {
|
|
2436
|
+
min-width: 220px;
|
|
2437
|
+
flex: 1;
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
.field-row-stack textarea {
|
|
2441
|
+
width: 100%;
|
|
2442
|
+
resize: vertical;
|
|
2443
|
+
font-family: var(--font-mono);
|
|
2444
|
+
font-size: var(--fs-small);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
.skills-list {
|
|
2448
|
+
list-style: none;
|
|
2449
|
+
margin: var(--s-2) 0 0;
|
|
2450
|
+
padding: 0;
|
|
2451
|
+
display: flex;
|
|
2452
|
+
flex-direction: column;
|
|
2453
|
+
gap: 2px;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
.skill-row {
|
|
2457
|
+
display: flex;
|
|
2458
|
+
align-items: baseline;
|
|
2459
|
+
gap: var(--s-3);
|
|
2460
|
+
padding: var(--s-1) var(--s-2);
|
|
2461
|
+
border-radius: var(--r-1, 4px);
|
|
2462
|
+
font-size: var(--fs-small);
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.skill-row:hover {
|
|
2466
|
+
background: var(--surface2, rgba(255, 255, 255, 0.04));
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.skill-row-name {
|
|
2470
|
+
font-family: var(--font-mono);
|
|
2471
|
+
color: var(--text1);
|
|
2472
|
+
white-space: nowrap;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
.skill-row-desc {
|
|
2476
|
+
flex: 1;
|
|
2477
|
+
color: var(--text2);
|
|
2478
|
+
overflow: hidden;
|
|
2479
|
+
text-overflow: ellipsis;
|
|
2480
|
+
white-space: nowrap;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
.skill-row-scope {
|
|
2484
|
+
color: var(--text3, var(--text2));
|
|
2485
|
+
font-size: var(--fs-xs, 0.85em);
|
|
2486
|
+
text-transform: uppercase;
|
|
2487
|
+
letter-spacing: 0.04em;
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
.skill-row-warning {
|
|
2491
|
+
color: var(--amber, #d9a441);
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
.skill-row-remove {
|
|
2495
|
+
background: none;
|
|
2496
|
+
border: 0;
|
|
2497
|
+
color: var(--text3, var(--text2));
|
|
2498
|
+
cursor: pointer;
|
|
2499
|
+
padding: 0 var(--s-1);
|
|
2500
|
+
font-size: var(--fs-small);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
.skill-row-remove:hover {
|
|
2504
|
+
color: var(--red, #e06c75);
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
.skills-dirs {
|
|
2508
|
+
margin-top: var(--s-2);
|
|
2509
|
+
font-size: var(--fs-small);
|
|
2510
|
+
color: var(--text2);
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.skills-dirs-list {
|
|
2514
|
+
list-style: none;
|
|
2515
|
+
margin: var(--s-1) 0 0;
|
|
2516
|
+
padding: 0;
|
|
2517
|
+
font-family: var(--font-mono);
|
|
2518
|
+
font-size: var(--fs-xs, 0.85em);
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.skills-dirs-missing {
|
|
2522
|
+
opacity: 0.55;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.skills-form-title {
|
|
2526
|
+
margin: var(--s-4) 0 0;
|
|
2527
|
+
font-size: var(--fs-small);
|
|
2528
|
+
font-weight: var(--fw-semibold);
|
|
2529
|
+
color: var(--text2);
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
.skills-form-actions {
|
|
2533
|
+
display: flex;
|
|
2534
|
+
gap: var(--s-2);
|
|
2535
|
+
margin-top: var(--s-3);
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
/* The composer's mic. Only `.is-recording` is loud: a control that is merely
|
|
2539
|
+
available should read like the other ghost buttons next to it. */
|
|
2540
|
+
.dictate-btn {
|
|
2541
|
+
display: inline-flex;
|
|
2542
|
+
align-items: center;
|
|
2543
|
+
gap: var(--s-1);
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/* The `display: inline-flex` above is an AUTHOR declaration, so it outranks
|
|
2547
|
+
the UA sheet's `[hidden] { display: none }` no matter the specificity.
|
|
2548
|
+
Without this override `renderDictation()` setting `el.hidden = true` would
|
|
2549
|
+
change an attribute with no rendering effect and the mic would sit in the
|
|
2550
|
+
composer on machines with no local engine — visible, and always failing. */
|
|
2551
|
+
.dictate-btn[hidden] {
|
|
2552
|
+
display: none;
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
.dictate-btn .dictate-dot {
|
|
2556
|
+
font-size: 0.7em;
|
|
2557
|
+
color: var(--text3, var(--text2));
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
.dictate-btn.is-recording {
|
|
2561
|
+
color: var(--red, #e06c75);
|
|
2562
|
+
border-color: var(--red, #e06c75);
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
.dictate-btn.is-recording .dictate-dot {
|
|
2566
|
+
color: var(--red, #e06c75);
|
|
2567
|
+
animation: dictate-pulse 1.2s ease-in-out infinite;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
.dictate-btn:disabled {
|
|
2571
|
+
opacity: 0.5;
|
|
2572
|
+
cursor: default;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
@keyframes dictate-pulse {
|
|
2576
|
+
0%, 100% { opacity: 1; }
|
|
2577
|
+
50% { opacity: 0.25; }
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2581
|
+
.dictate-btn.is-recording .dictate-dot {
|
|
2582
|
+
animation: none;
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2411
2586
|
.flow-toggle:hover {
|
|
2412
2587
|
color: var(--teal);
|
|
2413
2588
|
}
|
|
@@ -5847,6 +6022,61 @@ body.keys-open {
|
|
|
5847
6022
|
* listener never fire, and any code awaiting one would hang instead of
|
|
5848
6023
|
* degrading. A duration too short to perceive still emits the event.
|
|
5849
6024
|
*/
|
|
6025
|
+
/* ── ON9: the embedded terminal panel (renderer/pty-panel.js) ───────────────
|
|
6026
|
+
`aegiscode` running inside this window instead of a second OS process.
|
|
6027
|
+
One overlay, one xterm.js instance; the close chip and Escape both tear it
|
|
6028
|
+
down (pty-panel.js close()), same as the import sheet's backdrop pattern. */
|
|
6029
|
+
.pty-panel-overlay {
|
|
6030
|
+
position: fixed;
|
|
6031
|
+
inset: 0;
|
|
6032
|
+
z-index: 9000;
|
|
6033
|
+
display: flex;
|
|
6034
|
+
align-items: center;
|
|
6035
|
+
justify-content: center;
|
|
6036
|
+
background: rgba(0, 0, 0, 0.5);
|
|
6037
|
+
}
|
|
6038
|
+
|
|
6039
|
+
.pty-panel {
|
|
6040
|
+
display: flex;
|
|
6041
|
+
flex-direction: column;
|
|
6042
|
+
width: min(900px, 92vw);
|
|
6043
|
+
height: min(560px, 82vh);
|
|
6044
|
+
background: var(--surface2);
|
|
6045
|
+
border-radius: var(--r-lg);
|
|
6046
|
+
box-shadow: var(--shadow-2);
|
|
6047
|
+
overflow: hidden;
|
|
6048
|
+
}
|
|
6049
|
+
|
|
6050
|
+
.pty-panel-header {
|
|
6051
|
+
display: flex;
|
|
6052
|
+
align-items: center;
|
|
6053
|
+
justify-content: space-between;
|
|
6054
|
+
padding: var(--s-2) var(--s-3);
|
|
6055
|
+
background: var(--surface3, rgba(255, 255, 255, 0.08));
|
|
6056
|
+
color: var(--text);
|
|
6057
|
+
font-weight: var(--fw-semibold);
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6060
|
+
.pty-panel-close {
|
|
6061
|
+
background: none;
|
|
6062
|
+
border: none;
|
|
6063
|
+
color: var(--text);
|
|
6064
|
+
font-size: 18px;
|
|
6065
|
+
line-height: 1;
|
|
6066
|
+
cursor: pointer;
|
|
6067
|
+
padding: var(--s-1);
|
|
6068
|
+
}
|
|
6069
|
+
|
|
6070
|
+
.pty-panel-body {
|
|
6071
|
+
flex: 1;
|
|
6072
|
+
padding: var(--s-2);
|
|
6073
|
+
overflow: hidden;
|
|
6074
|
+
/* xterm.js paints its own canvas/rows inside; this just gives it a
|
|
6075
|
+
dark-matching inset so the panel never flashes the page background
|
|
6076
|
+
while the terminal is still attaching. */
|
|
6077
|
+
background: #0b0d10;
|
|
6078
|
+
}
|
|
6079
|
+
|
|
5850
6080
|
@media (prefers-reduced-motion: reduce) {
|
|
5851
6081
|
*,
|
|
5852
6082
|
*::before,
|