@jmfederico/pi-web 1.202610.5 → 1.202610.6

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.
@@ -204,14 +204,17 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
204
204
  .pin-button[aria-pressed="true"] svg { color: var(--pi-accent); }
205
205
  .mobile-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
206
206
  }
207
- `]}};K([T({attribute:!1})],IL.prototype,`tabs`,void 0),K([T({attribute:!1})],IL.prototype,`pinUniverse`,void 0),K([T({attribute:!1})],IL.prototype,`preferences`,void 0),K([T({attribute:!1})],IL.prototype,`selectedTab`,void 0),K([T({attribute:!1})],IL.prototype,`onSelect`,void 0),K([T({attribute:!1})],IL.prototype,`onPreferencesChange`,void 0),K([T({attribute:!1})],IL.prototype,`onClose`,void 0),K([E()],IL.prototype,`query`,void 0),K([E()],IL.prototype,`selectedIndex`,void 0),IL=K([w(`navigation-dialog`)],IL);var LL=class{constructor(e,t){this.host=e,this.getTarget=t,this.style=``,this.cleanups=[],this.scheduleRefresh=()=>{this.frame??=requestAnimationFrame(this.onFrame)},this.onFrame=()=>{this.frame=void 0,this.refresh()},e.addController(this)}hostConnected(){this.host.requestUpdate()}hostUpdated(){let e=this.getTarget();e!==this.target&&(this.stopTracking(),e?.isConnected===!0&&this.startTracking(e)),this.refresh()}hostDisconnected(){this.stopTracking()}startTracking(e){this.target=e;let t=(e,t,n=!1)=>{e.addEventListener(t,this.scheduleRefresh,{capture:n,passive:!0}),this.cleanups.push(()=>{e.removeEventListener(t,this.scheduleRefresh,n)})};t(window,`resize`),t(window,`scroll`,!0);let n=window.visualViewport;n&&(t(n,`resize`),t(n,`scroll`));let r=typeof ResizeObserver>`u`?void 0:new ResizeObserver(this.scheduleRefresh);r&&this.cleanups.push(()=>{r.disconnect()}),r?.observe(e);let i=e;for(;;){let e=i.getRootNode();if(!(e instanceof ShadowRoot))break;t(e,`scroll`,!0),r?.observe(e.host),i=e.host}}stopTracking(){for(let e of this.cleanups.splice(0))e();this.frame!==void 0&&cancelAnimationFrame(this.frame),this.frame=void 0,this.target=void 0}refresh(){let e=this.target;if(e?.isConnected!==!0){this.stopTracking();return}let t=BL(e,{constrainTo:`viewport`});t!==this.style&&(this.style=t,this.host.requestUpdate())}},RL=0,zL=120;function BL(e,t={}){if(typeof HTMLElement>`u`||typeof window>`u`||!(e instanceof HTMLElement))return``;let n=e.getBoundingClientRect(),r=t.constrainTo===`viewport`?HL():VL(e),i=window.innerWidth,a=window.innerHeight,o=HL(),s=Math.max(o.left,r.left),c=Math.min(o.right,r.right),l=Math.max(o.top,r.top),u=Math.min(o.bottom,r.bottom),d=UL(n.right,s,c),f=UL(n.top,l,u),p=UL(n.bottom,l,u),m=u-p-RL,h=f-l-RL;return[...m<zL&&h>m?[`bottom: ${WL(a-f+RL)};`,`max-height: ${WL(Math.max(0,h))};`]:[`top: ${WL(p+RL)};`,`max-height: ${WL(Math.max(0,m))};`],`right: ${WL(Math.max(0,i-d))};`,`max-width: ${WL(Math.max(0,d-s))};`].join(` `)}function VL(e){let t=e.getRootNode();return typeof ShadowRoot<`u`&&t instanceof ShadowRoot&&t.host instanceof HTMLElement?t.host.getBoundingClientRect():HL()}function HL(){let e=window.visualViewport,t=e?.offsetLeft??0,n=e?.offsetTop??0;return{top:n,right:t+(e?.width??window.innerWidth),bottom:n+(e?.height??window.innerHeight),left:t}}function UL(e,t,n){return Math.min(n,Math.max(t,e))}function WL(e){return`${String(Math.round(e))}px`}function GL(e,t=`Active`,n){if(e===void 0)return n===void 0?void 0:x`<span class="activity-indicator unread" role="img" aria-label=${n} title=${n}></span>`;if(n===void 0)return x`<span class=${`activity-indicator ${e}`} role="img" aria-label=${t} title=${t}></span>`;let r=`${n} · ${t}`;return x`<span class="unread-ring" role="img" aria-label=${r} title=${r}><span class=${`activity-indicator ${e}`} aria-hidden="true"></span></span>`}function KL(e){if(e!==void 0)return e[rn.working]===!0?`session`:e[rn.terminal]===!0?`terminal`:Object.entries(e).some(([e,t])=>t&&e!==rn.unread)?`session`:void 0}function qL(e){return e?.[rn.unread]===!0}function JL(e,t=`Active`,n){let r=GL(e,t,n);if(r!==void 0)return x`<span class="action-activity">${r}</span>`}var YL=[`a[href]`,`button`,`input`,`select`,`textarea`,`summary`,`[role='button']`,`[role='link']`,`[contenteditable='true']`].join(`,`);function XL(e){return e.composedPath().some(e=>ZL(e,YL))}function ZL(e,t){if(typeof Element<`u`&&e instanceof Element)return e.matches(t);if(!(`matches`in e))return!1;let{matches:n}=e;return typeof n==`function`&&n.call(e,t)===!0}function QL(e,t){XL(e)||t()}function $L(e,t){return XL(e)?!1:e.key===`Enter`||e.key===` `?(e.preventDefault(),t.activate(),!0):e.key===`ArrowUp`?tR(e,()=>{nR(e.currentTarget,-1)}):e.key===`ArrowDown`?tR(e,()=>{nR(e.currentTarget,1)}):e.key===`Home`?tR(e,()=>{rR(e.currentTarget,0)}):e.key===`End`?tR(e,()=>{rR(e.currentTarget,-1)}):e.key===`ArrowLeft`&&t.previousSection!==void 0?tR(e,t.previousSection):e.key===`ArrowRight`&&t.nextSection!==void 0?tR(e,t.nextSection):e.key===`Escape`&&t.cancel!==void 0&&tR(e,t.cancel)}function eR(e,t={}){let n=e.querySelector(`.action-row.selected`)??e.querySelector(`.action-row`)??(t.fallbackSelector===void 0?void 0:e.querySelector(t.fallbackSelector));return n!=null&&(n.focus(),n.scrollIntoView({block:`nearest`}),!0)}function tR(e,t){return e.preventDefault(),e.stopPropagation?.(),t(),!0}function nR(e,t){let n=aR(e),r=sR(e);if(r===void 0||n.length===0)return;let i=n.indexOf(r);i<0||iR(n,i+t)}function rR(e,t){let n=aR(e);n.length!==0&&iR(n,t<0?n.length-1:t)}function iR(e,t){let n=e[Math.min(Math.max(t,0),e.length-1)];n?.focus(),n?.scrollIntoView({block:`nearest`})}function aR(e){let t=sR(e)?.getRootNode();return t===void 0||!oR(t)?[]:Array.from(t.querySelectorAll(`.action-row`))}function oR(e){return typeof Document<`u`&&e instanceof Document||typeof DocumentFragment<`u`&&e instanceof DocumentFragment}function sR(e){if(typeof HTMLElement<`u`&&e instanceof HTMLElement)return e.closest(`.action-row`)??void 0}var cR=gA(`.chat-jumps{gap:0;display:flex}.chat-jumps button{box-sizing:border-box;width:28px;height:28px;color:var(--pi-muted);font:14px/1 var(--pi-font,system-ui, sans-serif);cursor:pointer;background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:inline-grid}.chat-jumps button.following{color:var(--pi-accent)}.chat-jumps button:hover,.chat-jumps button:focus-visible{color:var(--pi-text-bright);background:var(--pi-selection-bg)}.chat-jumps button:focus-visible{outline:2px solid var(--pi-accent);outline-offset:-2px}.chat-follow-state{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`),lR=b`
207
+ `]}};K([T({attribute:!1})],IL.prototype,`tabs`,void 0),K([T({attribute:!1})],IL.prototype,`pinUniverse`,void 0),K([T({attribute:!1})],IL.prototype,`preferences`,void 0),K([T({attribute:!1})],IL.prototype,`selectedTab`,void 0),K([T({attribute:!1})],IL.prototype,`onSelect`,void 0),K([T({attribute:!1})],IL.prototype,`onPreferencesChange`,void 0),K([T({attribute:!1})],IL.prototype,`onClose`,void 0),K([E()],IL.prototype,`query`,void 0),K([E()],IL.prototype,`selectedIndex`,void 0),IL=K([w(`navigation-dialog`)],IL);var LL=class{constructor(e,t){this.host=e,this.getTarget=t,this.style=``,this.cleanups=[],this.scheduleRefresh=()=>{this.frame??=requestAnimationFrame(this.onFrame)},this.onFrame=()=>{this.frame=void 0,this.refresh()},e.addController(this)}hostConnected(){this.host.requestUpdate()}hostUpdated(){let e=this.getTarget();e!==this.target&&(this.stopTracking(),e?.isConnected===!0&&this.startTracking(e)),this.refresh()}hostDisconnected(){this.stopTracking()}startTracking(e){this.target=e;let t=(e,t,n=!1)=>{e.addEventListener(t,this.scheduleRefresh,{capture:n,passive:!0}),this.cleanups.push(()=>{e.removeEventListener(t,this.scheduleRefresh,n)})};t(window,`resize`),t(window,`scroll`,!0);let n=window.visualViewport;n&&(t(n,`resize`),t(n,`scroll`));let r=typeof ResizeObserver>`u`?void 0:new ResizeObserver(this.scheduleRefresh);r&&this.cleanups.push(()=>{r.disconnect()}),r?.observe(e);let i=e;for(;;){let e=i.getRootNode();if(!(e instanceof ShadowRoot))break;t(e,`scroll`,!0),r?.observe(e.host),i=e.host}}stopTracking(){for(let e of this.cleanups.splice(0))e();this.frame!==void 0&&cancelAnimationFrame(this.frame),this.frame=void 0,this.target=void 0}refresh(){let e=this.target;if(e?.isConnected!==!0){this.stopTracking();return}let t=BL(e,{constrainTo:`viewport`});t!==this.style&&(this.style=t,this.host.requestUpdate())}},RL=0,zL=120;function BL(e,t={}){if(typeof HTMLElement>`u`||typeof window>`u`||!(e instanceof HTMLElement))return``;let n=e.getBoundingClientRect(),r=t.constrainTo===`viewport`?HL():VL(e),i=window.innerWidth,a=window.innerHeight,o=HL(),s=Math.max(o.left,r.left),c=Math.min(o.right,r.right),l=Math.max(o.top,r.top),u=Math.min(o.bottom,r.bottom),d=UL(n.right,s,c),f=UL(n.top,l,u),p=UL(n.bottom,l,u),m=u-p-RL,h=f-l-RL;return[...m<zL&&h>m?[`bottom: ${WL(a-f+RL)};`,`max-height: ${WL(Math.max(0,h))};`]:[`top: ${WL(p+RL)};`,`max-height: ${WL(Math.max(0,m))};`],`right: ${WL(Math.max(0,i-d))};`,`max-width: ${WL(Math.max(0,d-s))};`].join(` `)}function VL(e){let t=e.getRootNode();return typeof ShadowRoot<`u`&&t instanceof ShadowRoot&&t.host instanceof HTMLElement?t.host.getBoundingClientRect():HL()}function HL(){let e=window.visualViewport,t=e?.offsetLeft??0,n=e?.offsetTop??0;return{top:n,right:t+(e?.width??window.innerWidth),bottom:n+(e?.height??window.innerHeight),left:t}}function UL(e,t,n){return Math.min(n,Math.max(t,e))}function WL(e){return`${String(Math.round(e))}px`}function GL(e,t=`Active`,n){if(e===void 0)return n===void 0?void 0:x`<span class="activity-indicator unread" role="img" aria-label=${n} title=${n}></span>`;if(n===void 0)return x`<span class=${`activity-indicator ${e}`} role="img" aria-label=${t} title=${t}></span>`;let r=`${n} · ${t}`;return x`<span class="unread-ring" role="img" aria-label=${r} title=${r}><span class=${`activity-indicator ${e}`} aria-hidden="true"></span></span>`}function KL(e){if(e!==void 0)return e[rn.working]===!0?`session`:e[rn.terminal]===!0?`terminal`:Object.entries(e).some(([e,t])=>t&&e!==rn.unread)?`session`:void 0}function qL(e){return e?.[rn.unread]===!0}function JL(e,t=`Active`,n){let r=GL(e,t,n);if(r!==void 0)return x`<span class="action-activity">${r}</span>`}var YL=[`a[href]`,`button`,`input`,`select`,`textarea`,`summary`,`[role='button']`,`[role='link']`,`[contenteditable='true']`].join(`,`);function XL(e){return e.composedPath().some(e=>ZL(e,YL))}function ZL(e,t){if(typeof Element<`u`&&e instanceof Element)return e.matches(t);if(!(`matches`in e))return!1;let{matches:n}=e;return typeof n==`function`&&n.call(e,t)===!0}function QL(e,t){XL(e)||t()}function $L(e,t){return XL(e)?!1:e.key===`Enter`||e.key===` `?(e.preventDefault(),t.activate(),!0):e.key===`ArrowUp`?tR(e,()=>{nR(e.currentTarget,-1)}):e.key===`ArrowDown`?tR(e,()=>{nR(e.currentTarget,1)}):e.key===`Home`?tR(e,()=>{rR(e.currentTarget,0)}):e.key===`End`?tR(e,()=>{rR(e.currentTarget,-1)}):e.key===`ArrowLeft`&&t.previousSection!==void 0?tR(e,t.previousSection):e.key===`ArrowRight`&&t.nextSection!==void 0?tR(e,t.nextSection):e.key===`Escape`&&t.cancel!==void 0&&tR(e,t.cancel)}function eR(e,t={}){let n=e.querySelector(`.action-row.selected`)??e.querySelector(`.action-row`)??(t.fallbackSelector===void 0?void 0:e.querySelector(t.fallbackSelector));return n!=null&&(n.focus(),n.scrollIntoView({block:`nearest`}),!0)}function tR(e,t){return e.preventDefault(),e.stopPropagation?.(),t(),!0}function nR(e,t){let n=aR(e),r=sR(e);if(r===void 0||n.length===0)return;let i=n.indexOf(r);i<0||iR(n,i+t)}function rR(e,t){let n=aR(e);n.length!==0&&iR(n,t<0?n.length-1:t)}function iR(e,t){let n=e[Math.min(Math.max(t,0),e.length-1)];n?.focus(),n?.scrollIntoView({block:`nearest`})}function aR(e){let t=sR(e)?.getRootNode();return t===void 0||!oR(t)?[]:Array.from(t.querySelectorAll(`.action-row`))}function oR(e){return typeof Document<`u`&&e instanceof Document||typeof DocumentFragment<`u`&&e instanceof DocumentFragment}function sR(e){if(typeof HTMLElement<`u`&&e instanceof HTMLElement)return e.closest(`.action-row`)??void 0}var cR=gA(`.chat-jumps{gap:0;display:flex}.chat-jumps button{box-sizing:border-box;width:28px;height:28px;color:var(--pi-muted);font:14px/1 var(--pi-font,system-ui, sans-serif);cursor:pointer;background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:inline-grid;position:relative}.chat-jumps button.following{color:var(--pi-accent)}.chat-jumps button.following:after{content:"";pointer-events:none;background:currentColor;border-radius:50%;width:3px;height:3px;position:absolute;bottom:3px;left:calc(50% - 1.5px)}.chat-jumps button:hover,.chat-jumps button:focus-visible{color:var(--pi-text-bright);background:var(--pi-selection-bg)}.chat-jumps button:focus-visible{outline:2px solid var(--pi-accent);outline-offset:-2px}.chat-follow-state{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`),lR=b`
208
208
  .editor-input:has(.editor-chat-navigation) .cm-content { min-height: max(50px, 2.8em); padding-right: 66px; }
209
209
  .markdown-editor .cm-editor { box-sizing: border-box; width: 100%; min-height: 54px; max-height: 220px; resize: none; overflow: hidden; border-radius: 0; border: 0; background: var(--pi-bg); color: var(--pi-text); font: var(--pi-control-font-size, 16px)/1.4 var(--pi-control-font-family, var(--pi-font, system-ui, sans-serif)); padding-block: 12px; }
210
210
  .markdown-editor .cm-scroller { max-height: 196px; overflow-y: auto; font-family: var(--pi-control-font-family, var(--pi-font, system-ui, sans-serif)); line-height: 1.4; }
211
211
  .markdown-editor .cm-content { min-height: 2.8em; padding: 0 52px 0 16px; caret-color: var(--pi-text); text-align: start; unicode-bidi: plaintext; }
212
212
  .markdown-editor .cm-line { padding: 0; unicode-bidi: plaintext; }
213
213
  .markdown-editor .cm-placeholder { color: var(--pi-dim); }
214
- .markdown-editor .prompt-placeholder::before { content: attr(data-placeholder); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
214
+ /* CodeMirror measures this element for the empty-document caret. Keep the
215
+ layout box here, not on its pseudo-element, so the caret has a height. */
216
+ .markdown-editor .prompt-placeholder { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
217
+ .markdown-editor .prompt-placeholder::before { content: attr(data-placeholder); }
215
218
  .markdown-editor .cm-argument-hint { color: var(--pi-dim); pointer-events: none; }
216
219
  .markdown-editor .cm-focused { outline: none; }
217
220
  /* drawSelection() supplies its own caret/selection; match the selected palette
@@ -299,6 +302,8 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
299
302
  /* Let the non-interactive activity badge straddle the composer border. */
300
303
  chat-view { flex: 1 1 auto; min-height: 0; overflow: visible; z-index: 6; }
301
304
  .composer-area { position: relative; z-index: 5; flex: 0 0 auto; display: grid; min-width: 0; background: var(--pi-bg); }
305
+ /* Completion menus must clear the transcript and its overhanging activity badge. */
306
+ .composer-area:has(> prompt-editor[completion-menu-open]) { z-index: 7; }
302
307
  /* Share a grid cell instead of adding banner height; allow long notices to grow the area rather than clip their controls. */
303
308
  .composer-area > prompt-editor, .composer-activity-notice { grid-area: 1 / 1; min-width: 0; }
304
309
  .composer-area > prompt-editor[inert] { visibility: hidden; }
@@ -2302,7 +2307,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
2302
2307
  </button>
2303
2308
  `)}
2304
2309
  </div>
2305
- `:null}static{this.styles=hR}};K([T({attribute:!1})],IH.prototype,`items`,void 0),K([T({type:Number})],IH.prototype,`selectedIndex`,void 0),K([T({attribute:!1})],IH.prototype,`onPick`,void 0),IH=K([w(`autocomplete-menu`)],IH);var LH=`Message pi... Use / for commands, @ for tracked files, @ space for all files, # for models`;function RH(){let e=document.createElement(`span`);return e.className=`prompt-placeholder`,e.dataset.placeholder=LH,e}var X=class extends C{constructor(){super(),this.disabled=!1,this.shortcuts={},this.defaultStreamingBehavior=`steer`,this.machineId=`local`,this.attachmentsFolder=jc,this.canSteer=!1,this.isCompacting=!1,this.canStop=!1,this.sending=!1,this.promptChips=[],this.availableThinkingLevels=[],this.draft=``,this.currentInputMode={kind:`normal`},this.completions=[],this.selectedIndex=0,this.attachments=[],this.attachmentDelivery=yH(),this.attachmentError=void 0,this.chipSendingKey=void 0,this.chipError=void 0,this.attachmentSeq=0,this.requestVersion=0,this.editableCompartment=new a,this.readOnlyCompartment=new a,this.mobilePromptEnterMedia=CH(),this.explicitShiftKeyActive=!1,U.createController(this)}willUpdate(e){if(!e.has(`sessionId`)&&!e.has(`machineId`))return;let t=e.has(`sessionId`)?e.get(`sessionId`):this.sessionId,n=BH(e.has(`machineId`)?e.get(`machineId`):this.machineId,t);n!==void 0&&(Dd(n,this.draft),Nd(n,this.attachments));let r=BH(this.machineId,this.sessionId);this.draft=r===void 0?``:Ed(r),this.attachments=r===void 0?[]:Md(r),this.attachmentError=void 0,this.chipError=void 0,this.currentInputMode=fp(this.draft),this.completions=[],this.selectedIndex=0}shouldUpdate(e){return e.has(`status`)&&e.size===1?!zH(e.get(`status`),this.status):!0}firstUpdated(){this.createEditor()}updated(e){e.has(`disabled`)&&this.updateEditorDisabledState(),(e.has(`sessionId`)||e.has(`machineId`))&&this.syncEditorDoc()}disconnectedCallback(){this.editor?.destroy(),this.editor=void 0,super.disconnectedCallback()}render(){let e=this.promptChips.length===0&&this.currentInputMode.kind===`shell`?this.currentInputMode:void 0,t=e!==void 0,n=this.canSteer||this.isCompacting,r=this.defaultSendBehavior()===`steer`,i=this.disabled||this.sending||this.chipSendingKey===this.composerKey();return x`
2310
+ `:null}static{this.styles=hR}};K([T({attribute:!1})],IH.prototype,`items`,void 0),K([T({type:Number})],IH.prototype,`selectedIndex`,void 0),K([T({attribute:!1})],IH.prototype,`onPick`,void 0),IH=K([w(`autocomplete-menu`)],IH);var LH=`Message pi... Use / for commands, @ for tracked files, @ space for all files, # for models`;function RH(){let e=document.createElement(`span`);return e.className=`prompt-placeholder`,e.dataset.placeholder=LH,e}var X=class extends C{constructor(){super(),this.disabled=!1,this.shortcuts={},this.defaultStreamingBehavior=`steer`,this.machineId=`local`,this.attachmentsFolder=jc,this.canSteer=!1,this.isCompacting=!1,this.canStop=!1,this.sending=!1,this.promptChips=[],this.availableThinkingLevels=[],this.draft=``,this.currentInputMode={kind:`normal`},this.completions=[],this.selectedIndex=0,this.attachments=[],this.attachmentDelivery=yH(),this.attachmentError=void 0,this.chipSendingKey=void 0,this.chipError=void 0,this.attachmentSeq=0,this.requestVersion=0,this.editableCompartment=new a,this.readOnlyCompartment=new a,this.mobilePromptEnterMedia=CH(),this.explicitShiftKeyActive=!1,U.createController(this)}willUpdate(e){if(!e.has(`sessionId`)&&!e.has(`machineId`))return;let t=e.has(`sessionId`)?e.get(`sessionId`):this.sessionId,n=BH(e.has(`machineId`)?e.get(`machineId`):this.machineId,t);n!==void 0&&(Dd(n,this.draft),Nd(n,this.attachments));let r=BH(this.machineId,this.sessionId);this.draft=r===void 0?``:Ed(r),this.attachments=r===void 0?[]:Md(r),this.attachmentError=void 0,this.chipError=void 0,this.currentInputMode=fp(this.draft),this.completions=[],this.selectedIndex=0}shouldUpdate(e){return e.has(`status`)&&e.size===1?!zH(e.get(`status`),this.status):!0}firstUpdated(){this.createEditor()}updated(e){e.has(`completions`)&&this.toggleAttribute(`completion-menu-open`,this.completions.length>0),e.has(`disabled`)&&this.updateEditorDisabledState(),(e.has(`sessionId`)||e.has(`machineId`))&&this.syncEditorDoc()}disconnectedCallback(){this.editor?.destroy(),this.editor=void 0,super.disconnectedCallback()}render(){let e=this.promptChips.length===0&&this.currentInputMode.kind===`shell`?this.currentInputMode:void 0,t=e!==void 0,n=this.canSteer||this.isCompacting,r=this.defaultSendBehavior()===`steer`,i=this.disabled||this.sending||this.chipSendingKey===this.composerKey();return x`
2306
2311
  <footer class=${t?`shell-mode`:``} @paste=${e=>{this.handlePaste(e)}} @dragover=${e=>{this.handleDragOver(e)}} @drop=${e=>{this.handleDrop(e)}}>
2307
2312
  <div class="editor-wrap">
2308
2313
  <div class="editor-input">
@@ -9,7 +9,7 @@
9
9
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
10
10
  <link rel="manifest" crossorigin="use-credentials" href="./manifest.webmanifest" />
11
11
  <style>:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--pi-control-font-size:16px;--pi-control-font-family:var(--pi-font,system-ui, sans-serif);--pi-control-monospace-font-family:var(--pi-mono,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);--pi-bg:#0d1117;--pi-surface:#161b22;--pi-surface-hover:#21262d;--pi-terminal-bg:#05070a;--pi-terminal-text:#e6edf3;--pi-border:#30363d;--pi-border-muted:#21262d;--pi-text:#e6edf3;--pi-text-secondary:#c9d1d9;--pi-text-bright:#f0f6fc;--pi-muted:#8b949e;--pi-dim:#6e7681;--pi-accent:#58a6ff;--pi-accent-border:#2f81f7;--pi-selection-bg:#0d2847;--pi-success:#3fb950;--pi-success-border:#238636;--pi-success-bg:#0f1b12;--pi-success-surface:#0f2a16;--pi-success-ring:#3fb95055;--pi-warning:#d29922;--pi-warning-border:#6e5200;--pi-warning-surface:#1f1a10;--pi-danger:#ff7b72;--pi-purple:#d2a8ff;--pi-purple-border:#a371f7;--pi-purple-surface:#21132f;--pi-overlay:#0008;--pi-shadow-soft:#0006;--pi-shadow:#0008;--pi-shadow-strong:#000b;--pi-bg-overlay-soft:#0d1117dd;--pi-bg-overlay:#0d1117e6;--pi-success-bg-overlay:#0f1b12ee;--pi-terminal-selection:#264f78}html,body{background:var(--pi-bg);height:100%;color:var(--pi-text);margin:0;overflow:hidden}body{min-height:100dvh}</style>
12
- <script type="module" crossorigin src="./assets/index-DPS1kTH7.js"></script>
12
+ <script type="module" crossorigin src="./assets/index-BAYF7oXL.js"></script>
13
13
  <link rel="modulepreload" crossorigin href="./assets/vendor-editor-core-C2PJX3uW.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/vendor-editor-languages-CS6n1J8n.js">
15
15
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmfederico/pi-web",
3
- "version": "1.202610.5",
3
+ "version": "1.202610.6",
4
4
  "description": "Web UI for persistent Pi Coding Agent sessions in real workspaces.",
5
5
  "license": "MIT",
6
6
  "author": "Federico Jaramillo Martinez",