kaizen-agent 1.82.0 → 1.83.0
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/cli/accounts.ts +1 -1
- package/cli/add-project.ts +4 -1
- package/cli/computer.ts +2 -2
- package/cli/conpty.ts +9 -4
- package/cli/install.ts +10 -2
- package/cli/keep-awake.ts +1 -1
- package/cli/pty.ts +68 -11
- package/cli/settings.ts +2 -2
- package/cli/setup.ts +2 -2
- package/cli/skills.ts +1 -1
- package/cli/state.ts +17 -6
- package/cli/web.ts +7 -1
- package/cli/whatsapp-bridge.ts +198 -0
- package/cli/whatsapp.ts +95 -17
- package/cli/worktree.ts +28 -2
- package/package.json +1 -1
- package/skills/kaizen-help/SKILL.md +1 -1
- package/web/board/task-page.ts +15 -1
- package/web/board/task-results.ts +2 -0
- package/web/board/whatsapp-setup.ts +7 -1
- package/web/board/workspace.ts +24 -4
- package/web/board.html +1 -0
- package/web/board.js +122 -122
- package/web/notebook.js +129 -129
- package/web/term.js +1 -1
- package/web/video.js +160 -160
package/web/term.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* kaizen terminal
|
|
1
|
+
/* kaizen terminal a438553e8f8d3a37 -- generated by bun run build:web from web/term.ts; do not edit */
|
|
2
2
|
(()=>{var ko=0,Lo=()=>{};function pc(e,t,i,s){return s&&Math.abs(i-1)<0.05&&t-e>100?Math.round(e):null}function Eo(){if(ko++===0){let e=window.visualViewport,t=()=>{let s=document.activeElement,r=s instanceof HTMLElement&&!!s.closest(".term, .termkeys"),n=e&&matchMedia("(max-width:640px)").matches?pc(e.height,window.innerHeight,e.scale,r):null;if(document.body.classList.toggle("term-keyboard",n!==null),n!==null)document.documentElement.style.setProperty("--term-viewport-height",`${n}px`);else document.documentElement.style.removeProperty("--term-viewport-height")},i=()=>requestAnimationFrame(t);e?.addEventListener("resize",t),e?.addEventListener("scroll",t),window.addEventListener("resize",t),document.addEventListener("focusin",i),document.addEventListener("focusout",i),t(),Lo=()=>{e?.removeEventListener("resize",t),e?.removeEventListener("scroll",t),window.removeEventListener("resize",t),document.removeEventListener("focusin",i),document.removeEventListener("focusout",i),document.body.classList.remove("term-keyboard"),document.documentElement.style.removeProperty("--term-viewport-height")}}return()=>{if(--ko===0)Lo()}}var{defineProperty:Aa,getOwnPropertyDescriptor:vc}=Object,mc=(e,t)=>{for(var i in t)Aa(e,i,{get:t[i],enumerable:!0})},_e=(e,t,i,s)=>{for(var r=s>1?void 0:s?vc(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&Aa(t,i,r),r},I=(e,t)=>(i,s)=>t(i,s,e),Mo="Terminal input",Nr={get:()=>Mo,set:(e)=>Mo=e},Do="Too much output to announce, navigate to rows manually to read",Fr={get:()=>Do,set:(e)=>Do=e};function wc(e){return e.replace(/\r?\n/g,"\r")}function Sc(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function bc(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function yc(e,t,i,s){if(e.stopPropagation(),e.clipboardData){let r=e.clipboardData.getData("text/plain");Ta(r,t,i,s)}}function Ta(e,t,i,s){e=wc(e),e=Sc(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function Ba(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function Ro(e,t,i,s,r){Ba(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function jt(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Hs(e,t=0,i=e.length){let s="";for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}var Cc=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let n=e.charCodeAt(r++);56320<=n&&n<=57343?t[s++]=(this._interim-55296)*1024+n-56320+65536:(t[s++]=this._interim,t[s++]=n),this._interim=0}for(let n=r;n<i;++n){let o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return this._interim=o,s;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[s++]=(o-55296)*1024+a-56320+65536:(t[s++]=o,t[s++]=a);continue}o!==65279&&(t[s++]=o)}return s}},xc=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r,n,o,a,l=0,h=0;if(this.interim[0]){let f=!1,p=this.interim[0];p&=(p&224)===192?31:(p&240)===224?15:7;let w=0,y;for(;(y=this.interim[++w]&63)&&w<4;)p<<=6,p|=y;let E=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,B=E-w;for(;h<B;){if(h>=i)return 0;if(y=e[h++],(y&192)!==128){h--,f=!0;break}else this.interim[w++]=y,p<<=6,p|=y&63}f||(E===2?p<128?h--:t[s++]=p:E===3?p<2048||p>=55296&&p<=57343||p===65279||(t[s++]=p):p<65536||p>1114111||(t[s++]=p)),this.interim.fill(0)}let d=i-4,c=h;for(;c<i;){for(;c<d&&!((r=e[c])&128)&&!((n=e[c+1])&128)&&!((o=e[c+2])&128)&&!((a=e[c+3])&128);)t[s++]=r,t[s++]=n,t[s++]=o,t[s++]=a,c+=4;if(r=e[c++],r<128)t[s++]=r;else if((r&224)===192){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(l=(r&31)<<6|n&63,l<128){c--;continue}t[s++]=l}else if((r&240)===224){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(l=(r&15)<<12|(n&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[s++]=l}else if((r&248)===240){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,s;if(a=e[c++],(a&192)!==128){c--;continue}if(l=(r&7)<<18|(n&63)<<12|(o&63)<<6|a&63,l<65536||l>1114111)continue;t[s++]=l}}return s}},Pa="",Gt=" ",ss=class e{constructor(){this.fg=0,this.bg=0,this.extended=new Ts}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Ts=class e{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},lt=class e extends ss{constructor(){super(...arguments);this.content=0,this.fg=0,this.bg=0,this.extended=new Ts,this.combinedData=""}static fromCharData(t){let i=new e;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?jt(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let s=t[1].charCodeAt(0);if(55296<=s&&s<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(s-55296)*1024+r-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},Ao="di$target",Wr="di$dependencies",br=new Map;function kc(e){return e[Wr]||[]}function Ae(e){if(br.has(e))return br.get(e);let t=function(i,s,r){if(arguments.length!==3)throw Error("@IServiceName-decorator can only be used to decorate a parameter");Lc(t,i,r)};return t._id=e,br.set(e,t),t}function Lc(e,t,i){t[Ao]===t?t[Wr].push({id:e,index:i}):(t[Wr]=[{id:e,index:i}],t[Ao]=t)}var $e=Ae("BufferService"),Oa=Ae("CoreMouseService"),ui=Ae("CoreService"),Ec=Ae("CharsetService"),fn=Ae("InstantiationService"),Ia=Ae("LogService"),Ue=Ae("OptionsService"),Na=Ae("OscLinkService"),Mc=Ae("UnicodeService"),rs=Ae("DecorationService"),zr=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let s=[],r=this._optionsService.rawOptions.linkHandler,n=new lt,o=i.getTrimmedLength(),a=-1,l=-1,h=!1;for(let d=0;d<o;d++)if(!(l===-1&&!i.hasContent(d))){if(i.loadCell(d,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=d,a=n.extended.urlId;continue}else h=n.extended.urlId!==a;else l!==-1&&(h=!0);if(h||l!==-1&&d===o-1){let c=this._oscLinkService.getLinkData(a)?.uri;if(c){let f={start:{x:l+1,y:e},end:{x:d+(!h&&d===o-1?1:0),y:e}},p=!1;if(!r?.allowNonHttpProtocols)try{let w=new URL(c);["http:","https:"].includes(w.protocol)||(p=!0)}catch{p=!0}p||s.push({text:c,range:f,activate:(w,y)=>r?r.activate(w,y,f):Dc(w,y),hover:(w,y)=>r?.hover?.(w,y,f),leave:(w,y)=>r?.leave?.(w,y,f)})}h=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=d,a=n.extended.urlId):(l=-1,a=-1)}}t(s)}};zr=_e([I(0,$e),I(1,Ue),I(2,Na)],zr);function Dc(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
3
3
|
|
|
4
4
|
WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var $s=Ae("CharSizeService"),Rt=Ae("CoreBrowserService"),gn=Ae("MouseService"),At=Ae("RenderService"),Rc=Ae("SelectionService"),Fa=Ae("CharacterJoinerService"),Si=Ae("ThemeService"),Wa=Ae("LinkProviderService"),Ac=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?To.isErrorNoTelemetry(e)?new To(e.message+`
|