aegisone 1.0.42 → 1.0.44
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 +2 -2
- package/package.json +1 -1
- package/scripts/predist.mjs +1 -1
- package/src/doctor.js +1 -1
- package/vendor/cli/README.md +5 -5
- package/vendor/cli/package.json +2 -2
- package/vendor/cli/src/chatflow.js +1 -1
- package/vendor/cli/src/commands.js +2 -2
- package/vendor/cli/src/deps.js +1 -1
- package/vendor/cli/src/limits.js +1 -1
- package/vendor/cli/src/permissions.js +4 -0
- package/vendor/cli/src/provenance.lock.json +2 -2
- package/vendor/cli/vendor/desktop/lib/local/check-command.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/perm-store.js +7 -2
- package/vendor/cli/vendor/desktop/lib/local/prompt.js +1 -1
- package/vendor/cli/vendor/desktop/lib/local/repeat-guard.js +3 -0
- package/vendor/cli/vendor/desktop/lib/local/tools.js +186 -2
- package/vendor/cli/vendor/desktop/lib/local/verify-stop.js +3 -0
- package/vendor/cli/vendor/desktop/lib/settings.js +1 -1
- package/vendor/cli/vendor/desktop/main.js +802 -54
- package/vendor/desktop/README.md +3 -3
- package/vendor/desktop/bin/aegis.js +1 -1
- package/vendor/desktop/lib/avatar/events.js +1 -1
- package/vendor/desktop/lib/avatar/persona.js +1 -1
- package/vendor/desktop/lib/avatar/store.js +1 -1
- package/vendor/desktop/lib/local/check-command.js +3 -0
- package/vendor/desktop/lib/local/cli-face.js +3 -0
- package/vendor/desktop/lib/local/engine.js +1 -1
- package/vendor/desktop/lib/local/integrity.js +1 -1
- package/vendor/desktop/lib/local/perm-store.js +7 -2
- package/vendor/desktop/lib/local/prompt.js +1 -1
- package/vendor/desktop/lib/local/repeat-guard.js +3 -0
- package/vendor/desktop/lib/local/tools.js +186 -2
- package/vendor/desktop/lib/local/verify-stop.js +3 -0
- package/vendor/desktop/lib/settings.js +1 -1
- package/vendor/desktop/lib/sync/persist-gate.js +1 -1
- package/vendor/desktop/lib/sync/sessions.js +1 -1
- package/vendor/desktop/main.js +802 -54
- package/vendor/desktop/package.json +8 -4
- package/vendor/desktop/preload.js +1 -1
- package/vendor/desktop/renderer/app.js +3 -3
- package/vendor/desktop/renderer/avatar/pane.js +1 -1
- package/vendor/desktop/renderer/avatar/parts.js +1 -1
- package/vendor/desktop/renderer/commands.js +3 -0
- package/vendor/desktop/renderer/composer-triggers.js +3 -0
- package/vendor/desktop/renderer/find-in-conversation.js +3 -0
- package/vendor/desktop/renderer/fonts/fonts.css +42 -0
- package/vendor/desktop/renderer/fonts/ubuntu-vf-italic.woff2 +0 -0
- package/vendor/desktop/renderer/fonts/ubuntu-vf.woff2 +0 -0
- package/vendor/desktop/renderer/index.html +941 -484
- package/vendor/desktop/renderer/library.js +3 -0
- package/vendor/desktop/renderer/nav-history.js +3 -0
- package/vendor/desktop/renderer/palette-filter.js +3 -0
- package/vendor/desktop/renderer/shortcuts.js +3 -0
- package/vendor/desktop/renderer/style.css +2602 -380
- package/vendor/desktop/renderer/transcript-view.js +1 -1
- package/vendor/desktop/renderer/welcome-rows.js +3 -0
- package/vendor/desktop/vendor/faces/cli/README.md +5 -5
- package/vendor/desktop/vendor/faces/cli/package.json +2 -2
- package/vendor/desktop/vendor/faces/cli/src/chatflow.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/commands.js +2 -2
- package/vendor/desktop/vendor/faces/cli/src/deps.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/limits.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/permissions.js +1 -1
- package/vendor/desktop/vendor/faces/cli/src/provenance.lock.json +2 -2
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/check-command.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/perm-store.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/prompt.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/repeat-guard.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/tools.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/local/verify-stop.js +3 -0
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/lib/settings.js +1 -1
- package/vendor/desktop/vendor/faces/cli/vendor/desktop/main.js +3 -3
- package/vendor/desktop/vendor/sandbox/provenance.json +7 -7
|
@@ -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"
|
|
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)}();
|
|
@@ -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 shared="undefined"!=typeof window&&window.AegisAvatarPersona?{persona:window.AegisAvatarPersona,events:window.AegisAvatarEvents}:"undefined"!=typeof module&&module.exports?{persona:require("../../lib/avatar/persona.js"),events:require("../../lib/avatar/events.js")}:{persona:null,events:null},PERSONA=shared.persona,EVENTS=shared.events,LAYERS=Object.freeze(["shadow","hairBack","body","outfitUnder","head","face","hairFront","outfitOver","accessory","effect"]),SKIN_TONES=Object.freeze(["#f7dcc9","#eec2a4","#dda57f","#c0835a","#8e5c3c","#5f3c28"]),PALETTES=Object.freeze({amber:Object.freeze({bg:"#241a12",ink:"#f6e6d2",accent:"#f0a83c",cloth:"#3d2c1e",clothShade:"#2a1d13",metal:"#c9a227"}),slate:Object.freeze({bg:"#14181f",ink:"#e6ecf5",accent:"#6fa8dc",cloth:"#26313f",clothShade:"#1a222c",metal:"#9fb3c8"}),moss:Object.freeze({bg:"#121a14",ink:"#e8f2e6",accent:"#7fbf7f",cloth:"#243329",clothShade:"#19241d",metal:"#a8bf8f"}),plum:Object.freeze({bg:"#1c1220",ink:"#f1e6f5",accent:"#b27ad6",cloth:"#33203d",clothShade:"#24162c",metal:"#d8b4e2"}),mono:Object.freeze({bg:"#131313",ink:"#f2f2f2",accent:"#bfbfbf",cloth:"#2b2b2b",clothShade:"#1d1d1d",metal:"#9a9a9a"}),sunset:Object.freeze({bg:"#2a1418",ink:"#ffeede",accent:"#ff7a59",cloth:"#472029",clothShade:"#311519",metal:"#ffb27a"})}),FRAMES=Object.freeze({A:Object.freeze({label:"Round",head:"M100 34 C133 34 153 58 153 93 C153 130 130 165 100 173 C70 165 47 130 47 93 C47 58 67 34 100 34 Z",ear:Object.freeze([Object.freeze({cx:47,cy:100,r:11}),Object.freeze({cx:153,cy:100,r:11})]),faceY:104}),B:Object.freeze({label:"Square",head:"M100 32 H141 Q155 32 155 62 V98 Q155 148 100 170 Q45 148 45 98 V62 Q45 32 59 32 Z",ear:Object.freeze([Object.freeze({cx:45,cy:98,r:10}),Object.freeze({cx:155,cy:98,r:10})]),faceY:102}),C:Object.freeze({label:"Oval",head:"M100 28 C129 28 147 52 147 90 C147 124 129 168 100 180 C71 168 53 124 53 90 C53 52 71 28 100 28 Z",ear:Object.freeze([Object.freeze({cx:53,cy:96,r:9}),Object.freeze({cx:147,cy:96,r:9})]),faceY:106})}),BODY=Object.freeze({neck:"M85 158 h30 v26 h-30 Z",shirt:"M58 190 Q100 176 142 190 V262 H58 Z",sleeveL:"M58 190 L38 226 L58 238 L74 206 Z",sleeveR:"M142 190 L162 226 L142 238 L126 206 Z"}),HAIR=Object.freeze({"short-1":Object.freeze({label:"Short",back:Object.freeze([]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C131 28 153 50 153 84 C144 62 124 54 100 54 C76 54 56 62 47 84 C47 50 69 28 100 28 Z"}),Object.freeze({kind:"path",d:"M62 62 Q86 46 108 56 Q88 60 74 74 Z"})])}),"bob-2":Object.freeze({label:"Bob",back:Object.freeze([Object.freeze({kind:"path",d:"M44 96 Q44 30 100 30 Q156 30 156 96 V150 Q140 146 138 118 V96 Q132 62 100 62 Q68 62 62 96 V118 Q60 146 44 150 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C133 26 156 52 156 90 Q140 60 100 60 Q60 60 44 90 C44 52 67 26 100 26 Z"}),Object.freeze({kind:"path",d:"M46 88 Q60 108 58 150 L44 150 Q42 110 46 88 Z"}),Object.freeze({kind:"path",d:"M154 88 Q140 108 142 150 L156 150 Q158 110 154 88 Z"})])}),"long-3":Object.freeze({label:"Long",back:Object.freeze([Object.freeze({kind:"path",d:"M40 100 Q40 28 100 28 Q160 28 160 100 V226 Q142 232 138 200 V104 Q132 60 100 60 Q68 60 62 104 V200 Q58 232 40 226 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C134 26 158 52 158 92 Q140 58 100 58 Q60 58 42 92 C42 52 66 26 100 26 Z"}),Object.freeze({kind:"path",d:"M52 88 Q64 120 62 170 L48 168 Q44 116 52 88 Z"}),Object.freeze({kind:"path",d:"M148 88 Q136 120 138 170 L152 168 Q156 116 148 88 Z"})])}),"curly-4":Object.freeze({label:"Curly",back:Object.freeze([Object.freeze({kind:"circle",cx:62,cy:66,r:26}),Object.freeze({kind:"circle",cx:100,cy:46,r:30}),Object.freeze({kind:"circle",cx:138,cy:66,r:26})]),front:Object.freeze([Object.freeze({kind:"circle",cx:76,cy:52,r:20}),Object.freeze({kind:"circle",cx:106,cy:44,r:22}),Object.freeze({kind:"circle",cx:134,cy:58,r:18})])}),"buzz-5":Object.freeze({label:"Buzz",back:Object.freeze([]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 30 C130 30 152 52 152 82 Q136 58 100 58 Q64 58 48 82 C48 52 70 30 100 30 Z"})])}),"ponytail-6":Object.freeze({label:"Ponytail",back:Object.freeze([Object.freeze({kind:"path",d:"M146 74 Q186 96 178 148 Q170 190 150 196 Q166 156 158 122 Q150 92 138 82 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C132 28 154 50 154 86 Q140 58 100 58 Q60 58 46 86 C46 50 68 28 100 28 Z"})])}),"braids-7":Object.freeze({label:"Braids",back:Object.freeze([Object.freeze({kind:"path",d:"M52 92 Q44 150 48 196 L70 196 Q60 150 64 100 Z"}),Object.freeze({kind:"path",d:"M148 92 Q156 150 152 196 L130 196 Q140 150 136 100 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C132 28 154 50 154 86 Q140 58 100 58 Q60 58 46 86 C46 50 68 28 100 28 Z"})]),detail:Object.freeze([Object.freeze({kind:"path",d:"M50 132 H70 M50 160 H70 M130 132 H150 M130 160 H150",stroke:!0,role:"hairShade"})])}),"wavy-8":Object.freeze({label:"Wavy",back:Object.freeze([Object.freeze({kind:"path",d:"M42 96 Q42 30 100 30 Q158 30 158 96 Q150 130 156 168 Q146 158 142 132 Q140 96 132 70 Q118 58 100 58 Q82 58 68 70 Q60 96 58 132 Q54 158 44 168 Q50 130 42 96 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C134 26 158 54 156 94 Q146 62 116 58 Q96 56 84 66 Q66 74 44 94 C42 54 66 26 100 26 Z"})])})}),EYES=Object.freeze({soft:Object.freeze({label:"Soft",left:Object.freeze([Object.freeze({kind:"ellipse",cx:78,cy:106,rx:12,ry:9}),Object.freeze({kind:"circle",cx:78,cy:106,r:5,role:"ink"}),Object.freeze({kind:"circle",cx:80,cy:103,r:2,role:"highlight"})]),right:Object.freeze([Object.freeze({kind:"ellipse",cx:122,cy:106,rx:12,ry:9}),Object.freeze({kind:"circle",cx:122,cy:106,r:5,role:"ink"}),Object.freeze({kind:"circle",cx:124,cy:103,r:2,role:"highlight"})])}),sharp:Object.freeze({label:"Sharp",left:Object.freeze([Object.freeze({kind:"path",d:"M66 106 Q78 94 90 106 Q78 112 66 106 Z"}),Object.freeze({kind:"circle",cx:79,cy:104,r:4,role:"ink"})]),right:Object.freeze([Object.freeze({kind:"path",d:"M110 106 Q122 94 134 106 Q122 112 110 106 Z"}),Object.freeze({kind:"circle",cx:121,cy:104,r:4,role:"ink"})])}),sleepy:Object.freeze({label:"Sleepy",left:Object.freeze([Object.freeze({kind:"path",d:"M66 106 Q78 112 90 106",stroke:!0}),Object.freeze({kind:"circle",cx:78,cy:109,r:3,role:"ink"})]),right:Object.freeze([Object.freeze({kind:"path",d:"M110 106 Q122 112 134 106",stroke:!0}),Object.freeze({kind:"circle",cx:122,cy:109,r:3,role:"ink"})])}),bright:Object.freeze({label:"Bright",left:Object.freeze([Object.freeze({kind:"circle",cx:78,cy:105,r:12}),Object.freeze({kind:"circle",cx:78,cy:105,r:6,role:"ink"}),Object.freeze({kind:"circle",cx:82,cy:100,r:3,role:"highlight"})]),right:Object.freeze([Object.freeze({kind:"circle",cx:122,cy:105,r:12}),Object.freeze({kind:"circle",cx:122,cy:105,r:6,role:"ink"}),Object.freeze({kind:"circle",cx:126,cy:100,r:3,role:"highlight"})])})}),FACE=Object.freeze({nose:Object.freeze([Object.freeze({kind:"path",d:"M100 116 Q104 124 98 128",stroke:!0})])}),EXPRESSIONS=Object.freeze({neutral:Object.freeze({label:"Neutral",brows:Object.freeze(["M64 92 Q78 86 90 92","M110 92 Q122 86 136 92"]),mouth:"M88 140 Q100 146 112 140"}),attentive:Object.freeze({label:"Attentive",brows:Object.freeze(["M64 88 Q78 80 90 88","M110 88 Q122 80 136 88"]),mouth:"M88 140 Q100 148 112 140"}),focused:Object.freeze({label:"Focused",brows:Object.freeze(["M64 90 Q78 84 90 96","M110 96 Q122 84 136 90"]),mouth:"M88 142 H112"}),waiting:Object.freeze({label:"Waiting",brows:Object.freeze(["M62 86 Q78 78 92 84","M108 84 Q122 78 138 86"]),mouth:"M90 142 Q100 138 110 142"}),happy:Object.freeze({label:"Happy",brows:Object.freeze(["M64 88 Q78 82 90 88","M110 88 Q122 82 136 88"]),mouth:"M84 138 Q100 156 116 138",eyes:"arc"}),sleepy:Object.freeze({label:"Sleepy",brows:Object.freeze(["M64 94 Q78 90 90 94","M110 94 Q122 90 136 94"]),mouth:"M92 144 Q100 150 108 144",eyes:"closed"}),concerned:Object.freeze({label:"Concerned",brows:Object.freeze(["M62 84 Q78 92 92 98","M108 98 Q122 92 138 84"]),mouth:"M88 146 Q100 138 112 146"}),warm:Object.freeze({label:"Warm",brows:Object.freeze(["M64 90 Q78 84 90 90","M110 90 Q122 84 136 90"]),mouth:"M86 138 Q100 152 114 138"}),proud:Object.freeze({label:"Proud",brows:Object.freeze(["M64 86 Q78 80 90 86","M110 86 Q122 80 136 86"]),mouth:"M88 138 Q104 150 112 138"}),playful:Object.freeze({label:"Playful",brows:Object.freeze(["M64 88 Q78 80 90 88","M110 88 Q122 80 136 88"]),mouth:"M84 138 Q100 158 116 138",eyes:"arc"}),curious:Object.freeze({label:"Curious",brows:Object.freeze(["M64 82 Q78 76 90 88","M110 88 Q122 76 136 82"]),mouth:"M94 142 Q100 148 106 142"}),steady:Object.freeze({label:"Steady",brows:Object.freeze(["M64 90 Q78 86 90 90","M110 90 Q122 86 136 90"]),mouth:"M90 141 Q100 145 110 141"}),delighted:Object.freeze({label:"Delighted",brows:Object.freeze(["M62 86 Q78 78 92 86","M108 86 Q122 78 138 86"]),mouth:"M82 136 Q100 160 118 136",eyes:"arc"}),reverent:Object.freeze({label:"Reverent",brows:Object.freeze(["M64 94 Q78 88 90 94","M110 94 Q122 88 136 94"]),mouth:"M90 140 Q100 144 110 140",eyes:"closed"}),weary:Object.freeze({label:"Weary",brows:Object.freeze(["M62 92 Q78 96 92 100","M108 100 Q122 96 138 92"]),mouth:"M88 146 Q100 142 112 146"})}),EXPRESSION_PACKS=Object.freeze({core:Object.freeze(["neutral","attentive","focused","waiting","happy","sleepy","concerned"]),trusted:Object.freeze(["warm","proud"]),companion:Object.freeze(["playful","curious"]),confidant:Object.freeze(["steady","delighted"]),archivist:Object.freeze(["reverent","weary"])}),EYE_OVERRIDES=Object.freeze({arc:Object.freeze([Object.freeze({kind:"path",d:"M66 108 Q78 96 90 108",role:"ink"}),Object.freeze({kind:"path",d:"M110 108 Q122 96 134 108",role:"ink"})]),closed:Object.freeze([Object.freeze({kind:"path",d:"M66 106 H90",role:"ink"}),Object.freeze({kind:"path",d:"M110 106 H134",role:"ink"})])}),OUTFITS=Object.freeze({hoodie:Object.freeze({label:"Hoodie",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 174 144 192 V262 H56 Z"}),Object.freeze({kind:"path",d:"M78 178 Q100 196 122 178 L134 190 Q100 212 66 190 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M74 214 H126 V240 H74 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M96 196 V214 M104 196 V214",role:"metal"})])}),tshirt:Object.freeze({label:"T-shirt",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 176 144 192 V262 H56 Z",role:"accent"}),Object.freeze({kind:"path",d:"M84 182 Q100 194 116 182 L120 188 Q100 200 80 188 Z",role:"clothShade"})])}),flannel:Object.freeze({label:"Flannel",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 176 144 192 V262 H56 Z"}),Object.freeze({kind:"path",d:"M70 196 V262 M88 194 V262 M112 194 V262 M130 196 V262",role:"clothShade"}),Object.freeze({kind:"path",d:"M56 214 H144 M56 236 H144",role:"accent"}),Object.freeze({kind:"path",d:"M84 182 L100 200 L116 182 L124 190 L100 214 L76 190 Z",role:"clothShade"})])}),jacket:Object.freeze({label:"Jacket",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M54 190 Q100 172 146 190 V262 H54 Z"}),Object.freeze({kind:"path",d:"M54 190 L100 214 L146 190 L146 200 L100 224 L54 200 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M100 214 V262",role:"metal"})])}),headphones:Object.freeze({label:"Headphones",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M46 96 Q46 30 100 30 Q154 30 154 96",role:"metal"}),Object.freeze({kind:"rect",x:34,y:88,width:22,height:34,rx:8}),Object.freeze({kind:"rect",x:144,y:88,width:22,height:34,rx:8}),Object.freeze({kind:"circle",cx:45,cy:105,r:6,role:"accent"}),Object.freeze({kind:"circle",cx:155,cy:105,r:6,role:"accent"})]),accessory:!0}),glasses:Object.freeze({label:"Glasses",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"rect",x:60,y:96,width:40,height:26,rx:8,role:"metal"}),Object.freeze({kind:"rect",x:100,y:96,width:40,height:26,rx:8,role:"metal"}),Object.freeze({kind:"path",d:"M100 106 H100 M60 104 L44 100 M140 104 L156 100",role:"metal"})]),accessory:!0}),scarf:Object.freeze({label:"Scarf",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M72 172 Q100 190 128 172 L134 190 Q100 208 66 190 Z",role:"accent"}),Object.freeze({kind:"path",d:"M112 190 L128 236 L112 240 L98 194 Z",role:"accent"})])}),apron:Object.freeze({label:"Apron",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M74 200 H126 V262 H74 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M80 190 L92 200 M120 190 L108 200",role:"metal"}),Object.freeze({kind:"path",d:"M80 228 H120",role:"accent"})])}),"seasonal-winter":Object.freeze({label:"Winter set",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M44 74 Q100 44 156 74 L156 88 Q100 60 44 88 Z",role:"accent"}),Object.freeze({kind:"circle",cx:100,cy:40,r:12,role:"accent"}),Object.freeze({kind:"path",d:"M72 172 Q100 190 128 172 L134 190 Q100 208 66 190 Z",role:"clothShade"})])}),"archive-coat":Object.freeze({label:"Archive coat",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M50 188 Q100 168 150 188 V262 H50 Z"}),Object.freeze({kind:"path",d:"M50 188 L100 216 L150 188 L150 200 L100 228 L50 200 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M56 222 H144 V234 H56 Z",role:"metal"}),Object.freeze({kind:"path",d:"M100 228 V262",role:"metal"})])})}),LABELS=Object.freeze({frame:Object.freeze({A:"Round",B:"Square",C:"Oval"}),hair:Object.freeze(Object.fromEntries(Object.entries(HAIR).map((([e,r])=>[e,r.label])))),eyes:Object.freeze(Object.fromEntries(Object.entries(EYES).map((([e,r])=>[e,r.label])))),outfit:Object.freeze(Object.fromEntries(Object.entries(OUTFITS).map((([e,r])=>[e,r.label])))),palette:Object.freeze({amber:"Amber",slate:"Slate",moss:"Moss",plum:"Plum",mono:"Mono",sunset:"Sunset"}),expressionPack:Object.freeze({core:"Core",trusted:"Trusted",companion:"Companion",confidant:"Confidant",archivist:"Archivist"}),skin:Object.freeze({0:"Tone 1",1:"Tone 2",2:"Tone 3",3:"Tone 4",4:"Tone 5",5:"Tone 6"})}),IDS=PERSONA?PERSONA.PARTS:Object.freeze({});function defaultPersona(){if(!PERSONA)throw new Error("avatar/parts.js: the shared persona module is not loaded");return PERSONA.defaultPersona()}function motionFor(e,r){if(!PERSONA)return r?"minimal":"full";const t=e&&e.appearance?e:defaultPersona();return PERSONA.appliesMotion(t,Boolean(r))}function expressionsFor(e){const r=e&&e.expressions&&e.expressions.pack,t=EXPRESSION_PACKS[r]||[],c=EXPRESSION_PACKS.core.slice();for(const e of t)c.includes(e)||c.push(e);return c}const API=Object.freeze({LAYERS:LAYERS,IDS:IDS,SKIN_TONES:SKIN_TONES,PALETTES:PALETTES,FRAMES:FRAMES,BODY:BODY,HAIR:HAIR,EYES:EYES,FACE:FACE,EXPRESSIONS:EXPRESSIONS,EXPRESSION_PACKS:EXPRESSION_PACKS,EYE_OVERRIDES:EYE_OVERRIDES,OUTFITS:OUTFITS,LABELS:LABELS,defaultPersona:defaultPersona,motionFor:motionFor,expressionsFor:expressionsFor});"undefined"!=typeof module&&module.exports?module.exports=API:"undefined"!=typeof globalThis&&(globalThis.AegisAvatarParts=API);
|
|
3
|
+
"use strict";!function(){const e=("undefined"!=typeof window&&window.AegisAvatarPersona?{persona:window.AegisAvatarPersona,events:window.AegisAvatarEvents}:"undefined"!=typeof module&&module.exports?{persona:require("../../lib/avatar/persona.js"),events:require("../../lib/avatar/events.js")}:{persona:null,events:null}).persona,r=Object.freeze(["shadow","hairBack","body","outfitUnder","head","face","hairFront","outfitOver","accessory","effect"]),t=Object.freeze(["#f7dcc9","#eec2a4","#dda57f","#c0835a","#8e5c3c","#5f3c28"]),c=Object.freeze({amber:Object.freeze({bg:"#241a12",ink:"#f6e6d2",accent:"#f0a83c",cloth:"#3d2c1e",clothShade:"#2a1d13",metal:"#c9a227"}),slate:Object.freeze({bg:"#14181f",ink:"#e6ecf5",accent:"#6fa8dc",cloth:"#26313f",clothShade:"#1a222c",metal:"#9fb3c8"}),moss:Object.freeze({bg:"#121a14",ink:"#e8f2e6",accent:"#7fbf7f",cloth:"#243329",clothShade:"#19241d",metal:"#a8bf8f"}),plum:Object.freeze({bg:"#1c1220",ink:"#f1e6f5",accent:"#b27ad6",cloth:"#33203d",clothShade:"#24162c",metal:"#d8b4e2"}),mono:Object.freeze({bg:"#131313",ink:"#f2f2f2",accent:"#bfbfbf",cloth:"#2b2b2b",clothShade:"#1d1d1d",metal:"#9a9a9a"}),sunset:Object.freeze({bg:"#2a1418",ink:"#ffeede",accent:"#ff7a59",cloth:"#472029",clothShade:"#311519",metal:"#ffb27a"})}),b=Object.freeze({A:Object.freeze({label:"Round",head:"M100 34 C133 34 153 58 153 93 C153 130 130 165 100 173 C70 165 47 130 47 93 C47 58 67 34 100 34 Z",ear:Object.freeze([Object.freeze({cx:47,cy:100,r:11}),Object.freeze({cx:153,cy:100,r:11})]),faceY:104}),B:Object.freeze({label:"Square",head:"M100 32 H141 Q155 32 155 62 V98 Q155 148 100 170 Q45 148 45 98 V62 Q45 32 59 32 Z",ear:Object.freeze([Object.freeze({cx:45,cy:98,r:10}),Object.freeze({cx:155,cy:98,r:10})]),faceY:102}),C:Object.freeze({label:"Oval",head:"M100 28 C129 28 147 52 147 90 C147 124 129 168 100 180 C71 168 53 124 53 90 C53 52 71 28 100 28 Z",ear:Object.freeze([Object.freeze({cx:53,cy:96,r:9}),Object.freeze({cx:147,cy:96,r:9})]),faceY:106})}),f=Object.freeze({neck:"M85 158 h30 v26 h-30 Z",shirt:"M58 190 Q100 176 142 190 V262 H58 Z",sleeveL:"M58 190 L38 226 L58 238 L74 206 Z",sleeveR:"M142 190 L162 226 L142 238 L126 206 Z"}),a=Object.freeze({"short-1":Object.freeze({label:"Short",back:Object.freeze([]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C131 28 153 50 153 84 C144 62 124 54 100 54 C76 54 56 62 47 84 C47 50 69 28 100 28 Z"}),Object.freeze({kind:"path",d:"M62 62 Q86 46 108 56 Q88 60 74 74 Z"})])}),"bob-2":Object.freeze({label:"Bob",back:Object.freeze([Object.freeze({kind:"path",d:"M44 96 Q44 30 100 30 Q156 30 156 96 V150 Q140 146 138 118 V96 Q132 62 100 62 Q68 62 62 96 V118 Q60 146 44 150 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C133 26 156 52 156 90 Q140 60 100 60 Q60 60 44 90 C44 52 67 26 100 26 Z"}),Object.freeze({kind:"path",d:"M46 88 Q60 108 58 150 L44 150 Q42 110 46 88 Z"}),Object.freeze({kind:"path",d:"M154 88 Q140 108 142 150 L156 150 Q158 110 154 88 Z"})])}),"long-3":Object.freeze({label:"Long",back:Object.freeze([Object.freeze({kind:"path",d:"M40 100 Q40 28 100 28 Q160 28 160 100 V226 Q142 232 138 200 V104 Q132 60 100 60 Q68 60 62 104 V200 Q58 232 40 226 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C134 26 158 52 158 92 Q140 58 100 58 Q60 58 42 92 C42 52 66 26 100 26 Z"}),Object.freeze({kind:"path",d:"M52 88 Q64 120 62 170 L48 168 Q44 116 52 88 Z"}),Object.freeze({kind:"path",d:"M148 88 Q136 120 138 170 L152 168 Q156 116 148 88 Z"})])}),"curly-4":Object.freeze({label:"Curly",back:Object.freeze([Object.freeze({kind:"circle",cx:62,cy:66,r:26}),Object.freeze({kind:"circle",cx:100,cy:46,r:30}),Object.freeze({kind:"circle",cx:138,cy:66,r:26})]),front:Object.freeze([Object.freeze({kind:"circle",cx:76,cy:52,r:20}),Object.freeze({kind:"circle",cx:106,cy:44,r:22}),Object.freeze({kind:"circle",cx:134,cy:58,r:18})])}),"buzz-5":Object.freeze({label:"Buzz",back:Object.freeze([]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 30 C130 30 152 52 152 82 Q136 58 100 58 Q64 58 48 82 C48 52 70 30 100 30 Z"})])}),"ponytail-6":Object.freeze({label:"Ponytail",back:Object.freeze([Object.freeze({kind:"path",d:"M146 74 Q186 96 178 148 Q170 190 150 196 Q166 156 158 122 Q150 92 138 82 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C132 28 154 50 154 86 Q140 58 100 58 Q60 58 46 86 C46 50 68 28 100 28 Z"})])}),"braids-7":Object.freeze({label:"Braids",back:Object.freeze([Object.freeze({kind:"path",d:"M52 92 Q44 150 48 196 L70 196 Q60 150 64 100 Z"}),Object.freeze({kind:"path",d:"M148 92 Q156 150 152 196 L130 196 Q140 150 136 100 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 28 C132 28 154 50 154 86 Q140 58 100 58 Q60 58 46 86 C46 50 68 28 100 28 Z"})]),detail:Object.freeze([Object.freeze({kind:"path",d:"M50 132 H70 M50 160 H70 M130 132 H150 M130 160 H150",stroke:!0,role:"hairShade"})])}),"wavy-8":Object.freeze({label:"Wavy",back:Object.freeze([Object.freeze({kind:"path",d:"M42 96 Q42 30 100 30 Q158 30 158 96 Q150 130 156 168 Q146 158 142 132 Q140 96 132 70 Q118 58 100 58 Q82 58 68 70 Q60 96 58 132 Q54 158 44 168 Q50 130 42 96 Z"})]),front:Object.freeze([Object.freeze({kind:"path",d:"M100 26 C134 26 158 54 156 94 Q146 62 116 58 Q96 56 84 66 Q66 74 44 94 C42 54 66 26 100 26 Z"})])})}),l=Object.freeze({soft:Object.freeze({label:"Soft",left:Object.freeze([Object.freeze({kind:"ellipse",cx:78,cy:106,rx:12,ry:9}),Object.freeze({kind:"circle",cx:78,cy:106,r:5,role:"ink"}),Object.freeze({kind:"circle",cx:80,cy:103,r:2,role:"highlight"})]),right:Object.freeze([Object.freeze({kind:"ellipse",cx:122,cy:106,rx:12,ry:9}),Object.freeze({kind:"circle",cx:122,cy:106,r:5,role:"ink"}),Object.freeze({kind:"circle",cx:124,cy:103,r:2,role:"highlight"})])}),sharp:Object.freeze({label:"Sharp",left:Object.freeze([Object.freeze({kind:"path",d:"M66 106 Q78 94 90 106 Q78 112 66 106 Z"}),Object.freeze({kind:"circle",cx:79,cy:104,r:4,role:"ink"})]),right:Object.freeze([Object.freeze({kind:"path",d:"M110 106 Q122 94 134 106 Q122 112 110 106 Z"}),Object.freeze({kind:"circle",cx:121,cy:104,r:4,role:"ink"})])}),sleepy:Object.freeze({label:"Sleepy",left:Object.freeze([Object.freeze({kind:"path",d:"M66 106 Q78 112 90 106",stroke:!0}),Object.freeze({kind:"circle",cx:78,cy:109,r:3,role:"ink"})]),right:Object.freeze([Object.freeze({kind:"path",d:"M110 106 Q122 112 134 106",stroke:!0}),Object.freeze({kind:"circle",cx:122,cy:109,r:3,role:"ink"})])}),bright:Object.freeze({label:"Bright",left:Object.freeze([Object.freeze({kind:"circle",cx:78,cy:105,r:12}),Object.freeze({kind:"circle",cx:78,cy:105,r:6,role:"ink"}),Object.freeze({kind:"circle",cx:82,cy:100,r:3,role:"highlight"})]),right:Object.freeze([Object.freeze({kind:"circle",cx:122,cy:105,r:12}),Object.freeze({kind:"circle",cx:122,cy:105,r:6,role:"ink"}),Object.freeze({kind:"circle",cx:126,cy:100,r:3,role:"highlight"})])})}),n=Object.freeze({nose:Object.freeze([Object.freeze({kind:"path",d:"M100 116 Q104 124 98 128",stroke:!0})])}),o=Object.freeze({neutral:Object.freeze({label:"Neutral",brows:Object.freeze(["M64 92 Q78 86 90 92","M110 92 Q122 86 136 92"]),mouth:"M88 140 Q100 146 112 140"}),attentive:Object.freeze({label:"Attentive",brows:Object.freeze(["M64 88 Q78 80 90 88","M110 88 Q122 80 136 88"]),mouth:"M88 140 Q100 148 112 140"}),focused:Object.freeze({label:"Focused",brows:Object.freeze(["M64 90 Q78 84 90 96","M110 96 Q122 84 136 90"]),mouth:"M88 142 H112"}),waiting:Object.freeze({label:"Waiting",brows:Object.freeze(["M62 86 Q78 78 92 84","M108 84 Q122 78 138 86"]),mouth:"M90 142 Q100 138 110 142"}),happy:Object.freeze({label:"Happy",brows:Object.freeze(["M64 88 Q78 82 90 88","M110 88 Q122 82 136 88"]),mouth:"M84 138 Q100 156 116 138",eyes:"arc"}),sleepy:Object.freeze({label:"Sleepy",brows:Object.freeze(["M64 94 Q78 90 90 94","M110 94 Q122 90 136 94"]),mouth:"M92 144 Q100 150 108 144",eyes:"closed"}),concerned:Object.freeze({label:"Concerned",brows:Object.freeze(["M62 84 Q78 92 92 98","M108 98 Q122 92 138 84"]),mouth:"M88 146 Q100 138 112 146"}),warm:Object.freeze({label:"Warm",brows:Object.freeze(["M64 90 Q78 84 90 90","M110 90 Q122 84 136 90"]),mouth:"M86 138 Q100 152 114 138"}),proud:Object.freeze({label:"Proud",brows:Object.freeze(["M64 86 Q78 80 90 86","M110 86 Q122 80 136 86"]),mouth:"M88 138 Q104 150 112 138"}),playful:Object.freeze({label:"Playful",brows:Object.freeze(["M64 88 Q78 80 90 88","M110 88 Q122 80 136 88"]),mouth:"M84 138 Q100 158 116 138",eyes:"arc"}),curious:Object.freeze({label:"Curious",brows:Object.freeze(["M64 82 Q78 76 90 88","M110 88 Q122 76 136 82"]),mouth:"M94 142 Q100 148 106 142"}),steady:Object.freeze({label:"Steady",brows:Object.freeze(["M64 90 Q78 86 90 90","M110 90 Q122 86 136 90"]),mouth:"M90 141 Q100 145 110 141"}),delighted:Object.freeze({label:"Delighted",brows:Object.freeze(["M62 86 Q78 78 92 86","M108 86 Q122 78 138 86"]),mouth:"M82 136 Q100 160 118 136",eyes:"arc"}),reverent:Object.freeze({label:"Reverent",brows:Object.freeze(["M64 94 Q78 88 90 94","M110 94 Q122 88 136 94"]),mouth:"M90 140 Q100 144 110 140",eyes:"closed"}),weary:Object.freeze({label:"Weary",brows:Object.freeze(["M62 92 Q78 96 92 100","M108 100 Q122 96 138 92"]),mouth:"M88 146 Q100 142 112 146"})}),d=Object.freeze({core:Object.freeze(["neutral","attentive","focused","waiting","happy","sleepy","concerned"]),trusted:Object.freeze(["warm","proud"]),companion:Object.freeze(["playful","curious"]),confidant:Object.freeze(["steady","delighted"]),archivist:Object.freeze(["reverent","weary"])}),O=Object.freeze({arc:Object.freeze([Object.freeze({kind:"path",d:"M66 108 Q78 96 90 108",role:"ink"}),Object.freeze({kind:"path",d:"M110 108 Q122 96 134 108",role:"ink"})]),closed:Object.freeze([Object.freeze({kind:"path",d:"M66 106 H90",role:"ink"}),Object.freeze({kind:"path",d:"M110 106 H134",role:"ink"})])}),i=Object.freeze({hoodie:Object.freeze({label:"Hoodie",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 174 144 192 V262 H56 Z"}),Object.freeze({kind:"path",d:"M78 178 Q100 196 122 178 L134 190 Q100 212 66 190 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M74 214 H126 V240 H74 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M96 196 V214 M104 196 V214",role:"metal"})])}),tshirt:Object.freeze({label:"T-shirt",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 176 144 192 V262 H56 Z",role:"accent"}),Object.freeze({kind:"path",d:"M84 182 Q100 194 116 182 L120 188 Q100 200 80 188 Z",role:"clothShade"})])}),flannel:Object.freeze({label:"Flannel",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M56 192 Q100 176 144 192 V262 H56 Z"}),Object.freeze({kind:"path",d:"M70 196 V262 M88 194 V262 M112 194 V262 M130 196 V262",role:"clothShade"}),Object.freeze({kind:"path",d:"M56 214 H144 M56 236 H144",role:"accent"}),Object.freeze({kind:"path",d:"M84 182 L100 200 L116 182 L124 190 L100 214 L76 190 Z",role:"clothShade"})])}),jacket:Object.freeze({label:"Jacket",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M54 190 Q100 172 146 190 V262 H54 Z"}),Object.freeze({kind:"path",d:"M54 190 L100 214 L146 190 L146 200 L100 224 L54 200 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M100 214 V262",role:"metal"})])}),headphones:Object.freeze({label:"Headphones",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M46 96 Q46 30 100 30 Q154 30 154 96",role:"metal"}),Object.freeze({kind:"rect",x:34,y:88,width:22,height:34,rx:8}),Object.freeze({kind:"rect",x:144,y:88,width:22,height:34,rx:8}),Object.freeze({kind:"circle",cx:45,cy:105,r:6,role:"accent"}),Object.freeze({kind:"circle",cx:155,cy:105,r:6,role:"accent"})]),accessory:!0}),glasses:Object.freeze({label:"Glasses",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"rect",x:60,y:96,width:40,height:26,rx:8,role:"metal"}),Object.freeze({kind:"rect",x:100,y:96,width:40,height:26,rx:8,role:"metal"}),Object.freeze({kind:"path",d:"M100 106 H100 M60 104 L44 100 M140 104 L156 100",role:"metal"})]),accessory:!0}),scarf:Object.freeze({label:"Scarf",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M72 172 Q100 190 128 172 L134 190 Q100 208 66 190 Z",role:"accent"}),Object.freeze({kind:"path",d:"M112 190 L128 236 L112 240 L98 194 Z",role:"accent"})])}),apron:Object.freeze({label:"Apron",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M74 200 H126 V262 H74 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M80 190 L92 200 M120 190 L108 200",role:"metal"}),Object.freeze({kind:"path",d:"M80 228 H120",role:"accent"})])}),"seasonal-winter":Object.freeze({label:"Winter set",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M44 74 Q100 44 156 74 L156 88 Q100 60 44 88 Z",role:"accent"}),Object.freeze({kind:"circle",cx:100,cy:40,r:12,role:"accent"}),Object.freeze({kind:"path",d:"M72 172 Q100 190 128 172 L134 190 Q100 208 66 190 Z",role:"clothShade"})])}),"archive-coat":Object.freeze({label:"Archive coat",under:Object.freeze([]),over:Object.freeze([Object.freeze({kind:"path",d:"M50 188 Q100 168 150 188 V262 H50 Z"}),Object.freeze({kind:"path",d:"M50 188 L100 216 L150 188 L150 200 L100 228 L50 200 Z",role:"clothShade"}),Object.freeze({kind:"path",d:"M56 222 H144 V234 H56 Z",role:"metal"}),Object.freeze({kind:"path",d:"M100 228 V262",role:"metal"})])})}),j=Object.freeze({frame:Object.freeze({A:"Round",B:"Square",C:"Oval"}),hair:Object.freeze(Object.fromEntries(Object.entries(a).map((([e,r])=>[e,r.label])))),eyes:Object.freeze(Object.fromEntries(Object.entries(l).map((([e,r])=>[e,r.label])))),outfit:Object.freeze(Object.fromEntries(Object.entries(i).map((([e,r])=>[e,r.label])))),palette:Object.freeze({amber:"Amber",slate:"Slate",moss:"Moss",plum:"Plum",mono:"Mono",sunset:"Sunset"}),expressionPack:Object.freeze({core:"Core",trusted:"Trusted",companion:"Companion",confidant:"Confidant",archivist:"Archivist"}),skin:Object.freeze({0:"Tone 1",1:"Tone 2",2:"Tone 3",3:"Tone 4",4:"Tone 5",5:"Tone 6"})}),z=e?e.PARTS:Object.freeze({});function h(){if(!e)throw new Error("avatar/parts.js: the shared persona module is not loaded");return e.defaultPersona()}const s=Object.freeze({LAYERS:r,IDS:z,SKIN_TONES:t,PALETTES:c,FRAMES:b,BODY:f,HAIR:a,EYES:l,FACE:n,EXPRESSIONS:o,EXPRESSION_PACKS:d,EYE_OVERRIDES:O,OUTFITS:i,LABELS:j,defaultPersona:h,motionFor:function(r,t){if(!e)return t?"minimal":"full";const c=r&&r.appearance?r:h();return e.appliesMotion(c,Boolean(t))},expressionsFor:function(e){const r=e&&e.expressions&&e.expressions.pack,t=d[r]||[],c=d.core.slice();for(const e of t)c.includes(e)||c.push(e);return c}});"undefined"!=typeof module&&module.exports?module.exports=s:"undefined"!=typeof globalThis&&(globalThis.AegisAvatarParts=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";const COMMANDS=[{id:"new-chat",label:"New chat",hint:"Start a fresh conversation",keywords:"new chat conversation thread start clear",action:"newChat"},{id:"search",label:"Search conversations and memory",hint:"One sheet over both stores",keywords:"search find filter sessions memory history lookup",action:"search"},{id:"find",label:"Find in this conversation",hint:"⌘F — scoped to what is on screen",keywords:"find search transcript message match text within conversation locate",action:"find"},{id:"go-back",label:"Go back",hint:"Alt+← — return to the previous place",keywords:"back previous history navigate return undo go",action:"go-back"},{id:"go-forward",label:"Go forward",hint:"Alt+→ — return to where you came from",keywords:"forward next history navigate return redo go",action:"go-forward"},{id:"settings",label:"Settings",hint:"Providers, approvals, the key, customizations",keywords:"settings preferences options config configure providers approvals rules sandbox",action:"settings"},{id:"customizations",label:"Customizations",hint:"Tool approvals, plan mode, the companion",keywords:"customize customization persona appearance companion avatar theme identity approvals plan",action:"customizations"},{id:"automations",label:"Automations",hint:"The autonomous queue and its cadence",keywords:"automations queue autonomous background schedule cadence fanout effort",action:"automations"},{id:"cli",label:"Open aegis in a terminal",hint:"The terminal face of this install",keywords:"cli terminal shell console tui aegiscode one",action:"cli",when:"cliFace"},{id:"import",label:"Import session",hint:"Scan other AI tools for sessions and memory",keywords:"import migrate foreign sessions memory other tools bring",action:"import"},{id:"export-markdown",label:"Save as…",hint:"The current session as Markdown",keywords:"save export markdown md download file current session",action:"exportMarkdown"},{id:"export-json",label:"Export session…",hint:"The current session as a round-trippable record",keywords:"export json record backup raw session",action:"exportJson"},{id:"memory",label:"Memory inspector",hint:"What this install remembers about you",keywords:"memory inspector stored facts recall profile what do you know",action:"memory"},{id:"fingerprint",label:"Authorship panel",hint:"How this session was written",keywords:"authorship fingerprint provenance panel contribute",action:"fingerprint"},{id:"shortcuts",label:"Keyboard shortcuts",hint:"Every chord this build answers, and where each one lives",keywords:"keys shortcuts keyboard chords help bindings hotkeys accelerators",action:"shortcuts"},{id:"api-keys",label:"AEGIS key & BYOK key",hint:"Which keys this install has, and how to add the missing one",keywords:"keys api key byok provider account connect set up onboarding",action:"keys"},{id:"credits",label:"Credits & licence",hint:"Vendored code, fonts and the AGPL notice",keywords:"credits licence license agpl about legal notice fonts vendored",action:"credits"},{id:"toggle-sidebar",label:"Toggle sidebar",hint:"Hide or show the left rail",keywords:"sidebar rail hide show collapse expand toggle panel",action:"toggleSidebar"}];function availableCommands(e,o){const t=o||{};return e.filter((e=>!e.when||Boolean(t[e.when])))}!function(){const e={COMMANDS:COMMANDS,availableCommands:availableCommands};"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.AegisCommands=e}();
|
|
@@ -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";const TRIGGERS=new Set(["/","@"]);function activeTrigger(e,t){if("string"!=typeof e||!e)return null;const r=Number.isInteger(t)?t:e.length;if(r<0||r>e.length)return null;let s=r-1;for(;s>=0&&!/\s/.test(e[s]);)s-=1;const n=s+1;if(n>=r)return null;const o=e[n];if(!TRIGGERS.has(o))return null;const i=e.slice(n+1,r);return i.includes("/")||i.includes("@")?null:{kind:"/"===o?"slash":"mention",query:i,start:n,end:r}}function rankRows(e,t){const r=Array.isArray(e)?e.filter(Boolean):[],s="string"==typeof t?t.trim().toLowerCase().replace(/^[/@]/,""):"";if(!s)return r.slice();const n=[];for(let e=0;e<r.length;e+=1){const t=r[e],i=(o=t.label,String(o||"").toLowerCase().replace(/^[/@]/,"")),l=String(t.keywords||"").toLowerCase();let u=0;i.startsWith(s)?u=100:i.split(/\s+/).some((e=>e.startsWith(s)))?u=80:i.includes(s)?u=60:l.split(/\s+/).some((e=>e.startsWith(s)))?u=40:l.includes(s)&&(u=20),u>0&&n.push({row:t,score:u,i:e})}var o;return n.sort(((e,t)=>t.score-e.score||e.i-t.i)),n.map((e=>e.row))}function stepRow(e,t,r){const s=Number.isInteger(e)&&e>0?e:0;if(!s)return-1;const n=Number.isInteger(t)?t:-1;if(n<0)return r>0?0:s-1;const o=n+(Number.isInteger(r)?r:0);return o<0?s-1:o>=s?0:o}!function(){const e={activeTrigger:activeTrigger,rankRows:rankRows,stepRow:stepRow};"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.AegisComposerTriggers=e}();
|
|
@@ -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 findMatches(e,t,n){const r="string"==typeof t?t:"";if(!r||!Array.isArray(e))return[];const s=!(!n||!n.caseSensitive),o=s?r:r.toLowerCase(),i=[];for(let t=0;t<e.length;t+=1){const n=null==e[t]?"":String(e[t]);if(!n)continue;const r=s?n:n.toLowerCase();let c=0;for(;;){const e=r.indexOf(o,c);if(e<0)break;i.push({textIndex:t,start:e,end:e+o.length}),c=e+o.length}}return i}function stepMatch(e,t,n){if(!Number.isInteger(t)||t<=0)return-1;const r=Number.isInteger(e)?e:-1;if(r<0)return n>0?0:t-1;const s=r+(Number.isInteger(n)?n:0);return s<0?t-1:s>=t?0:s}function matchLabel(e,t){return!Number.isInteger(t)||t<=0?"0 of 0":`${Number.isInteger(e)&&e>=0?e+1:1} of ${t}`}!function(){const e={findMatches:findMatches,stepMatch:stepMatch,matchLabel:matchLabel};"undefined"!=typeof module&&module.exports&&(module.exports=e),globalThis.AegisFindInConversation=e}();
|
|
@@ -373,3 +373,45 @@
|
|
|
373
373
|
src: url(./4iCv6KVjbNBYlgoCxCvjsGyN.woff2) format('woff2');
|
|
374
374
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
375
375
|
}
|
|
376
|
+
|
|
377
|
+
/* ── Variable Ubuntu (parity pass 3) ───────────────────────────────────────
|
|
378
|
+
*
|
|
379
|
+
* WHY THIS EXISTS. Everything above is static: 44 `@font-face` blocks each
|
|
380
|
+
* pinned to a single weight, because that is what Google Fonts' CSS hands back.
|
|
381
|
+
* The reference asks for 250/350/450/550/650/850, and against this bundle every
|
|
382
|
+
* one of those silently resolves to the nearest pinned face — 350 renders as
|
|
383
|
+
* 400, so the weight ramp the tokens describe is a no-op and the type reads
|
|
384
|
+
* blunter than the design it was matched to.
|
|
385
|
+
*
|
|
386
|
+
* WHAT CHANGED. The system's Ubuntu is a genuine variable font
|
|
387
|
+
* (`wght 100-800`, `wdth 75-100`); it was subset to the Latin/IPA ranges this
|
|
388
|
+
* app actually sets and converted to woff2. Two files, ~185KB total, replacing
|
|
389
|
+
* the ~12 pinned Ubuntu URLs for `normal`/`italic` at 400. The `wdth` axis is
|
|
390
|
+
* pinned at 100 in `font-stretch` rather than exposed, because nothing in the
|
|
391
|
+
* sheet asks for a condensed face and an unpinned axis invites accidental
|
|
392
|
+
* narrowing from inherited `font-stretch`.
|
|
393
|
+
*
|
|
394
|
+
* PLACED LAST ON PURPOSE. These blocks must win over the static faces, and
|
|
395
|
+
* `@font-face` resolution for the same family/style takes the last declared
|
|
396
|
+
* match. Being below them is what retires the pinned ones without deleting a
|
|
397
|
+
* generated file by hand.
|
|
398
|
+
*
|
|
399
|
+
* `font-weight: 100 800` is the range, not a value — that single line is what
|
|
400
|
+
* makes every intermediate weight render as itself instead of snapping.
|
|
401
|
+
*/
|
|
402
|
+
@font-face {
|
|
403
|
+
font-family: 'Ubuntu';
|
|
404
|
+
font-style: normal;
|
|
405
|
+
font-weight: 100 800;
|
|
406
|
+
font-stretch: 100%;
|
|
407
|
+
font-display: swap;
|
|
408
|
+
src: url(./ubuntu-vf.woff2) format('woff2-variations');
|
|
409
|
+
}
|
|
410
|
+
@font-face {
|
|
411
|
+
font-family: 'Ubuntu';
|
|
412
|
+
font-style: italic;
|
|
413
|
+
font-weight: 100 800;
|
|
414
|
+
font-stretch: 100%;
|
|
415
|
+
font-display: swap;
|
|
416
|
+
src: url(./ubuntu-vf-italic.woff2) format('woff2-variations');
|
|
417
|
+
}
|
|
Binary file
|
|
Binary file
|