kaizen-agent 1.79.1 → 1.80.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/hermes.ts +20 -0
- package/cli/install.ts +20 -1
- package/cli/localsend.ts +61 -4
- package/cli/report.ts +7 -4
- package/cli/settings.ts +2 -8
- package/cli/state.ts +19 -3
- package/cli/task-results.ts +133 -0
- package/cli/task-service.ts +180 -0
- package/cli/tasks.ts +201 -0
- package/cli/ui-audit.allow.json +6 -0
- package/cli/ui-audit.ts +427 -0
- package/cli/web.ts +72 -1
- package/cli/whatsapp.ts +112 -0
- package/package.json +2 -1
- package/skills/kaizen/SKILL.md +4 -0
- package/skills/kaizen/adapters.md +4 -0
- package/skills/kaizen/spec-build.md +5 -1
- package/skills/kaizen/spec-main.md +4 -0
- package/skills/kaizen/spec-plan.md +4 -0
- package/skills/kaizen/spec-review.md +4 -0
- package/skills/kaizen/spec.md +52 -0
- package/web/board/add-project.ts +1 -1
- package/web/board/badge.ts +70 -8
- package/web/board/cards.ts +4 -2
- package/web/board/dom.ts +10 -0
- package/web/board/icebox.ts +2 -2
- package/web/board/keys.ts +1 -1
- package/web/board/live.ts +9 -5
- package/web/board/phone.ts +4 -3
- package/web/board/rich.ts +4 -2
- package/web/board/run-view.ts +16 -14
- package/web/board/settings-automations.ts +2 -2
- package/web/board/settings-skills.ts +2 -2
- package/web/board/settings.ts +12 -14
- package/web/board/task-page.ts +672 -0
- package/web/board/task-results.ts +235 -0
- package/web/board/tasks.ts +214 -200
- package/web/board/terms.ts +17 -2
- package/web/board/views.ts +35 -9
- package/web/board/whatsapp-setup.ts +137 -0
- package/web/board/workspace.ts +24 -2
- package/web/board.html +57 -35
- package/web/board.js +403 -142
- package/web/notebook.js +388 -153
- package/web/notes.html +16 -11
- package/web/term.js +1 -1
- package/web/video.html +22 -11
- package/web/video.js +415 -180
- package/web/video.ts +5 -5
- package/web/board/new-agent.ts +0 -20
package/web/notes.html
CHANGED
|
@@ -39,8 +39,8 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
|
|
|
39
39
|
[hidden]{display:none!important}
|
|
40
40
|
|
|
41
41
|
/* side menu: the same lines in board.html and notes.html (a test holds them equal) */
|
|
42
|
-
.rail{width:280px;flex:none;display:flex;flex-direction:column;gap:2px;padding:
|
|
43
|
-
.rail .top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 18px
|
|
42
|
+
.rail{width:280px;flex:none;display:flex;flex-direction:column;gap:2px;padding:19px 12px 14px;overflow:hidden auto;transition:width .18s}
|
|
43
|
+
.rail .top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 18px 8px}
|
|
44
44
|
.rail .home{display:block;color:inherit;text-decoration:none}
|
|
45
45
|
.rail .top .mascot{display:none;width:28px;height:26px}
|
|
46
46
|
.rail a.it{display:flex;align-items:center;gap:var(--gap);height:var(--row);padding:0 var(--padx);border-radius:var(--r-s);font-size:var(--fs);font-weight:500;color:var(--dim);text-decoration:none;white-space:nowrap;transition:background .12s,color .12s}
|
|
@@ -96,7 +96,7 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
96
96
|
.rail a.it .srcs+.n{margin-left:8px}.rail a.it .srcs{margin-left:auto;display:flex;gap:4px;opacity:.75}.rail a.it .srcs svg,.rail a.it .srcs img{width:13px;height:13px}
|
|
97
97
|
.rail a.it,.rail .theme,.rail .theme button{border-radius:var(--r-s)}
|
|
98
98
|
.rail .psec{display:flex;align-items:center;gap:2px;margin:14px 0 2px;padding-left:var(--padx);font-size:var(--fs-xs);font-weight:600;color:var(--dim)}.rail .psec .lbl{flex:1}
|
|
99
|
-
.rail .psec button
|
|
99
|
+
.rail .psec button{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec button:hover{background:var(--hover);color:var(--ink)}.rail .psec button svg{width:var(--ico);height:var(--ico)}
|
|
100
100
|
.rail .psec button[aria-pressed=true]{color:var(--accent)}.rail .psec button{position:relative}.rail .psec button[aria-pressed=true]::after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
|
|
101
101
|
.rail .psec a.pbd{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec a.pbd:hover{background:var(--hover);color:var(--ink)}.rail .psec a.pbd[aria-current=page]{color:var(--accent)}
|
|
102
102
|
.pfpop{position:fixed;z-index:40;min-width:220px;max-width:280px;max-height:60vh;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:1px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-2);font-size:12.5px}
|
|
@@ -131,15 +131,15 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
131
131
|
@keyframes si-spin{to{transform:rotate(360deg)}}@keyframes si-ping{75%,100%{transform:scale(2.2);opacity:0}}
|
|
132
132
|
@media (prefers-reduced-motion:reduce){:root:not([data-motion=full]) .si{animation:none!important}}
|
|
133
133
|
:root[data-motion=reduce] .si{animation:none!important}
|
|
134
|
-
[data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .
|
|
134
|
+
[data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .ib.xs:not(.th),[data-rail=min] .plist .proj :not(.plogo),[data-rail=min] .plist .row div,[data-rail=min] .plist .wcount{display:none}
|
|
135
135
|
[data-rail=min] .rail .psec{padding:0;margin:12px 0 2px;flex-direction:column}[data-rail=min] .rail .rbot{flex-direction:column}
|
|
136
136
|
[data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px;padding:0}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:0}
|
|
137
|
-
@media(max-width:640px){.rail .psec,.rail .plist,.rail .
|
|
137
|
+
@media(max-width:640px){.rail .psec,.rail .plist,.rail .ib.xs{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=tasks]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
|
|
138
138
|
/* phones: Runs, Search, Home, Chat, Terminal (Settings and the Icebox are Search results). The board and Tasks are set up on a computer (web/board/phone.ts) */
|
|
139
139
|
@media(min-width:641px){.rail .rbot .lbl{display:none}.rail .rbot a.it{flex:none;width:var(--btn-xs);height:var(--btn-xs);padding:0;justify-content:center;margin-right:auto}[data-rail=min] .rail .rbot a.it{width:var(--btn-s);height:var(--btn-s);margin-right:0}}
|
|
140
140
|
.rail a.it.ponly,#phome{display:none}
|
|
141
141
|
@media(max-width:640px){
|
|
142
|
-
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .
|
|
142
|
+
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .ib.xs{display:none!important}
|
|
143
143
|
.rail a.it.ponly{display:flex}
|
|
144
144
|
.rail a.it[data-view=device]{order:1}.rail a.it.gs-it{order:2}.rail a.it[data-view=home]{order:3}.rail a.it[data-view=chat]{order:4}.rail a.it[data-view=terminal]{order:5}.rail a.it[data-view=settings]{display:none}
|
|
145
145
|
.rail,[data-rail=min] .rail{padding:8px 8px max(2px,calc(env(safe-area-inset-bottom) - 8px));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
|
|
@@ -165,7 +165,7 @@ html.desk .hdr{padding-right:calc(16px + var(--wco))}
|
|
|
165
165
|
html.desk #rbar{padding-right:calc(6px + var(--wco));-webkit-app-region:drag}
|
|
166
166
|
html.desk #rbar :is(button,summary,details,a,input,select,.rtab,[role=button]){-webkit-app-region:no-drag}
|
|
167
167
|
html.desk body.runv #panel>header{padding-right:calc(12px + var(--wco))}
|
|
168
|
-
html.desk body.runv .pstrip{padding-top:calc(
|
|
168
|
+
html.desk body.runv .pstrip{padding-top:calc(10px + var(--wch))}
|
|
169
169
|
html.desk.mac .rail>.top{padding-top:22px}
|
|
170
170
|
/* end side menu */
|
|
171
171
|
#kbd{display:none}
|
|
@@ -175,9 +175,13 @@ body.embed .rail,body.embed .hdr{display:none}body.embed .app{margin:0;border:0;
|
|
|
175
175
|
@media(max-width:640px){.app{margin:0;border:0;border-radius:0}html,body{background:var(--bg)}}
|
|
176
176
|
/* header: the board's */
|
|
177
177
|
.hdr{display:flex;align-items:center;gap:12px;padding:10px 20px 10px 28px;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);flex-wrap:wrap}
|
|
178
|
+
/* The board's header height on a computer, so the three pages share one top line. */
|
|
179
|
+
@media(min-width:641px){body .hdr{height:52px;min-height:52px;box-sizing:border-box;padding-top:0;padding-bottom:0;flex-wrap:nowrap}}
|
|
178
180
|
pre.mark{margin:0;font:700 5px/1 var(--mono)}
|
|
179
181
|
pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:color-mix(in srgb,var(--ink-hi),var(--accent))}pre.mark span:nth-child(3){color:var(--accent)}
|
|
180
|
-
.sel{border:1px solid var(--line);border-radius:var(--r-s);padding:
|
|
182
|
+
.sel{border:1px solid var(--line);border-radius:var(--r-s);padding:4px 10px;background-color:var(--bg-2);color:var(--ink);font-size:13px}
|
|
183
|
+
/* One line, one height: a select, a field and a picker button stand as tall as .ib and .btn. */
|
|
184
|
+
:is(input,select,button,summary).sel{height:var(--btn-s)}
|
|
181
185
|
select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px,100%);text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
|
|
182
186
|
.sel:hover{border-color:var(--dim)}
|
|
183
187
|
.hdr h1{display:none;margin:0;font-weight:600}
|
|
@@ -186,8 +190,9 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
186
190
|
.sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
|
|
187
191
|
.sel::placeholder{color:var(--dim)}
|
|
188
192
|
.sp{flex:1}
|
|
189
|
-
.ib{width:
|
|
193
|
+
.ib{width:var(--btn-s);height:var(--btn-s);display:grid;place-items:center;color:var(--dim);border-radius:var(--r-s);transition:background .12s,color .12s}
|
|
190
194
|
.ib:hover{color:var(--ink);background:var(--hover)}
|
|
195
|
+
.ib.xs{width:var(--btn-xs);height:var(--btn-xs);flex:none}.ib.xs svg{width:var(--ico);height:var(--ico)}
|
|
191
196
|
.btn{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--r-s);padding:4px 12px;color:var(--ink);background:var(--bg-2);min-height:30px;font-size:13px;font-weight:500;box-shadow:var(--shadow-1);transition:background .12s,border-color .12s,color .12s}
|
|
192
197
|
.btn:hover{border-color:var(--dim)}
|
|
193
198
|
.btn.pri{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.pri:hover{background:color-mix(in srgb,var(--accent) 88%,var(--ink))}
|
|
@@ -201,7 +206,7 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
201
206
|
|
|
202
207
|
/* sidebar: search, tags, the folder tree */
|
|
203
208
|
.wrap{flex:1;min-height:0;display:grid;grid-template-columns:260px 1fr}
|
|
204
|
-
.side{background:var(--bg);border-right:1px solid var(--line);overflow:auto;padding:16px 12px 32px;display:flex;flex-direction:column;gap:10px}
|
|
209
|
+
.side{background:var(--bg);border-right:1px solid var(--line);overflow:auto;padding:16px 12px 32px;display:flex;flex-direction:column;gap:10px}.side>#q{flex:none}
|
|
205
210
|
.side input.sel{width:100%}
|
|
206
211
|
.side h3,.links h3{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--dim);margin:10px 8px 0}
|
|
207
212
|
.tags{display:flex;flex-wrap:wrap;gap:6px;padding:0 4px}
|
|
@@ -372,7 +377,7 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
|
|
|
372
377
|
<a class="it" href="/?setup=1" id="rsetup" hidden title="Continue setup"><span class="ring"></span><span class="lbl">Setup</span></a>
|
|
373
378
|
<div class="psec"><span class="lbl">Projects</span><a class="pbd" href="/?view=board" data-view="board" title="Board" aria-label="Board"><svg><use href="#i-board"/></svg></a><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
|
|
374
379
|
<div class="plist" id="plist" aria-label="Tasks and runs by project"></div>
|
|
375
|
-
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="
|
|
380
|
+
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="ib xs" href="/issue" target="_blank" rel="noopener" title="Report an issue" aria-label="Report an issue"><svg><use href="#r-bug"/></svg></a><button class="ib xs" id="kbd" title="Keyboard shortcuts" aria-label="Keyboard shortcuts"><svg><use href="#r-kbd"/></svg></button><button class="ib xs th" id="themet" title="Theme" aria-label="Theme"><svg class="sun"><use href="#i-sun"/></svg><svg class="moon"><use href="#i-moon"/></svg></button></div>
|
|
376
381
|
</nav>
|
|
377
382
|
<script>
|
|
378
383
|
// Side menu: theme and collapse, the same lines in board.html and notes.html. Runs before
|
package/web/term.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* kaizen terminal
|
|
1
|
+
/* kaizen terminal 29e8a20eb695298d -- 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+`
|
package/web/video.html
CHANGED
|
@@ -39,8 +39,8 @@ svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke
|
|
|
39
39
|
[hidden]{display:none!important}
|
|
40
40
|
|
|
41
41
|
/* side menu: the same lines in board.html and notes.html (a test holds them equal) */
|
|
42
|
-
.rail{width:280px;flex:none;display:flex;flex-direction:column;gap:2px;padding:
|
|
43
|
-
.rail .top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 18px
|
|
42
|
+
.rail{width:280px;flex:none;display:flex;flex-direction:column;gap:2px;padding:19px 12px 14px;overflow:hidden auto;transition:width .18s}
|
|
43
|
+
.rail .top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 18px 8px}
|
|
44
44
|
.rail .home{display:block;color:inherit;text-decoration:none}
|
|
45
45
|
.rail .top .mascot{display:none;width:28px;height:26px}
|
|
46
46
|
.rail a.it{display:flex;align-items:center;gap:var(--gap);height:var(--row);padding:0 var(--padx);border-radius:var(--r-s);font-size:var(--fs);font-weight:500;color:var(--dim);text-decoration:none;white-space:nowrap;transition:background .12s,color .12s}
|
|
@@ -96,7 +96,7 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
96
96
|
.rail a.it .srcs+.n{margin-left:8px}.rail a.it .srcs{margin-left:auto;display:flex;gap:4px;opacity:.75}.rail a.it .srcs svg,.rail a.it .srcs img{width:13px;height:13px}
|
|
97
97
|
.rail a.it,.rail .theme,.rail .theme button{border-radius:var(--r-s)}
|
|
98
98
|
.rail .psec{display:flex;align-items:center;gap:2px;margin:14px 0 2px;padding-left:var(--padx);font-size:var(--fs-xs);font-weight:600;color:var(--dim)}.rail .psec .lbl{flex:1}
|
|
99
|
-
.rail .psec button
|
|
99
|
+
.rail .psec button{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec button:hover{background:var(--hover);color:var(--ink)}.rail .psec button svg{width:var(--ico);height:var(--ico)}
|
|
100
100
|
.rail .psec button[aria-pressed=true]{color:var(--accent)}.rail .psec button{position:relative}.rail .psec button[aria-pressed=true]::after{content:"";position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:var(--accent)}
|
|
101
101
|
.rail .psec a.pbd{width:var(--btn-xs);height:var(--btn-xs);display:grid;place-items:center;flex:none;border-radius:var(--r-s);color:var(--dim)}.rail .psec a.pbd:hover{background:var(--hover);color:var(--ink)}.rail .psec a.pbd[aria-current=page]{color:var(--accent)}
|
|
102
102
|
.pfpop{position:fixed;z-index:40;min-width:220px;max-width:280px;max-height:60vh;overflow:auto;padding:6px;display:flex;flex-direction:column;gap:1px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-2);font-size:12.5px}
|
|
@@ -131,15 +131,15 @@ body .rail a.upd::after{left:calc(50% + 6px);top:4px}body .toast{left:16px;botto
|
|
|
131
131
|
@keyframes si-spin{to{transform:rotate(360deg)}}@keyframes si-ping{75%,100%{transform:scale(2.2);opacity:0}}
|
|
132
132
|
@media (prefers-reduced-motion:reduce){:root:not([data-motion=full]) .si{animation:none!important}}
|
|
133
133
|
:root[data-motion=reduce] .si{animation:none!important}
|
|
134
|
-
[data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .
|
|
134
|
+
[data-rail=min] .rail a.it .n,[data-rail=min] .rail a.it .srcs,[data-rail=min] .rail .ib.xs:not(.th),[data-rail=min] .plist .proj :not(.plogo),[data-rail=min] .plist .row div,[data-rail=min] .plist .wcount{display:none}
|
|
135
135
|
[data-rail=min] .rail .psec{padding:0;margin:12px 0 2px;flex-direction:column}[data-rail=min] .rail .rbot{flex-direction:column}
|
|
136
136
|
[data-rail=min] .plist .proj{justify-content:center;margin:10px 0 4px;padding:0}[data-rail=min] .plist .row{grid-template-columns:14px;justify-content:center;padding:0}
|
|
137
|
-
@media(max-width:640px){.rail .psec,.rail .plist,.rail .
|
|
137
|
+
@media(max-width:640px){.rail .psec,.rail .plist,.rail .ib.xs{display:none}.rail .rbot,[data-rail=min] .rail .rbot{display:contents}.rail a.it[data-view=tasks]{order:3}.rail a.it[data-view=board]{order:4}.rail a.it .n,.rail a.it .srcs{display:none}}
|
|
138
138
|
/* phones: Runs, Search, Home, Chat, Terminal (Settings and the Icebox are Search results). The board and Tasks are set up on a computer (web/board/phone.ts) */
|
|
139
139
|
@media(min-width:641px){.rail .rbot .lbl{display:none}.rail .rbot a.it{flex:none;width:var(--btn-xs);height:var(--btn-xs);padding:0;justify-content:center;margin-right:auto}[data-rail=min] .rail .rbot a.it{width:var(--btn-s);height:var(--btn-s);margin-right:0}}
|
|
140
140
|
.rail a.it.ponly,#phome{display:none}
|
|
141
141
|
@media(max-width:640px){
|
|
142
|
-
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .
|
|
142
|
+
.rail a.it:is([data-view=board],[data-view=tasks],[data-view=sources]),#foot,#ctx-open,body .rail .rbot .ib.xs{display:none!important}
|
|
143
143
|
.rail a.it.ponly{display:flex}
|
|
144
144
|
.rail a.it[data-view=device]{order:1}.rail a.it.gs-it{order:2}.rail a.it[data-view=home]{order:3}.rail a.it[data-view=chat]{order:4}.rail a.it[data-view=terminal]{order:5}.rail a.it[data-view=settings]{display:none}
|
|
145
145
|
.rail,[data-rail=min] .rail{padding:8px 8px max(2px,calc(env(safe-area-inset-bottom) - 8px));border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
|
|
@@ -165,7 +165,7 @@ html.desk .hdr{padding-right:calc(16px + var(--wco))}
|
|
|
165
165
|
html.desk #rbar{padding-right:calc(6px + var(--wco));-webkit-app-region:drag}
|
|
166
166
|
html.desk #rbar :is(button,summary,details,a,input,select,.rtab,[role=button]){-webkit-app-region:no-drag}
|
|
167
167
|
html.desk body.runv #panel>header{padding-right:calc(12px + var(--wco))}
|
|
168
|
-
html.desk body.runv .pstrip{padding-top:calc(
|
|
168
|
+
html.desk body.runv .pstrip{padding-top:calc(10px + var(--wch))}
|
|
169
169
|
html.desk.mac .rail>.top{padding-top:22px}
|
|
170
170
|
/* end side menu */
|
|
171
171
|
#kbd{display:none}
|
|
@@ -173,6 +173,8 @@ html.desk.mac .rail>.top{padding-top:22px}
|
|
|
173
173
|
.app{flex:1;min-width:0;display:flex;flex-direction:column;margin:8px 8px 8px 0;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
|
|
174
174
|
@media(max-width:640px){.app{margin:0;border:0;border-radius:0}html,body{background:var(--bg)}}
|
|
175
175
|
.hdr{display:flex;align-items:center;gap:12px;padding:10px 20px 10px 28px;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent);flex-wrap:wrap}
|
|
176
|
+
/* The board's header height on a computer, so the three pages share one top line. */
|
|
177
|
+
@media(min-width:641px){body .hdr{height:52px;min-height:52px;box-sizing:border-box;padding-top:0;padding-bottom:0;flex-wrap:nowrap}}
|
|
176
178
|
pre.mark{margin:0;font:700 5px/1 var(--mono)}
|
|
177
179
|
pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:color-mix(in srgb,var(--ink-hi),var(--accent))}pre.mark span:nth-child(3){color:var(--accent)}
|
|
178
180
|
.skel{display:block;border-radius:var(--r-xs);background:linear-gradient(90deg,var(--line) 25%,color-mix(in srgb,var(--line) 45%,transparent) 50%,var(--line) 75%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite}@keyframes skel{from{background-position:200% 0}to{background-position:-200% 0}}
|
|
@@ -194,8 +196,16 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
|
|
|
194
196
|
.btn.pri{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.pri:hover{background:color-mix(in srgb,var(--accent) 88%,var(--ink))}
|
|
195
197
|
.btn.ghost{background:none;border-color:transparent;color:var(--dim);box-shadow:none}.btn.ghost:hover{color:var(--ink);background:var(--hover)}
|
|
196
198
|
.btn:disabled{opacity:.5;cursor:default}
|
|
197
|
-
.ib{width:
|
|
199
|
+
.ib{width:var(--btn-s);height:var(--btn-s);display:grid;place-items:center;color:var(--dim);border-radius:var(--r-s);transition:background .12s,color .12s}
|
|
198
200
|
.ib:hover{color:var(--ink);background:var(--hover)}
|
|
201
|
+
.ib.xs{width:var(--btn-xs);height:var(--btn-xs);flex:none}.ib.xs svg{width:var(--ico);height:var(--ico)}
|
|
202
|
+
/* Selects as on the board (board.html .sel). */
|
|
203
|
+
.sel{border:1px solid var(--line);border-radius:var(--r-s);padding:4px 10px;background-color:var(--bg-2);color:var(--ink);font-size:13px}
|
|
204
|
+
/* One line, one height: a select, a field and a picker button stand as tall as .ib and .btn. */
|
|
205
|
+
:is(input,select,button,summary).sel{height:var(--btn-s)}
|
|
206
|
+
select.sel,button.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:100%;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
|
|
207
|
+
.sel:hover{border-color:var(--dim)}
|
|
208
|
+
.sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
|
|
199
209
|
.page{flex:1;min-height:0;overflow:auto;padding-block:20px 40px;padding-left:max(16px,2.4vw);padding-right:max(16px,2.4vw)}
|
|
200
210
|
.note{color:var(--dim);font-size:12px;margin:8px 0 0}
|
|
201
211
|
.pill{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;font-size:11px;font-weight:600;padding:2px 8px;border-radius:var(--r-pill);background:var(--hover);color:var(--dim)}
|
|
@@ -291,7 +301,7 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
|
|
|
291
301
|
.sendp{margin-top:16px;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--r);padding:14px;display:grid;gap:12px;max-width:880px}
|
|
292
302
|
.sendp .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
|
|
293
303
|
.sendp h3{margin:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--dim)}
|
|
294
|
-
.sendp
|
|
304
|
+
.sendp textarea{border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg);color:var(--ink);padding:8px 10px;max-width:100%;min-width:0}.sendp .sel{min-width:0}
|
|
295
305
|
.sendp textarea{width:100%;min-height:64px;resize:vertical;font:inherit}
|
|
296
306
|
.sendp label{display:grid;gap:4px;color:var(--dim);font-size:12px}
|
|
297
307
|
.sendp .chip small{color:var(--dim);font-weight:400}
|
|
@@ -310,7 +320,8 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
|
|
|
310
320
|
.opt{border:1px solid var(--line);border-radius:var(--r-s);padding:14px;text-align:left;display:grid;gap:4px}
|
|
311
321
|
.opt small{color:var(--dim)}
|
|
312
322
|
.opt.on,.sty.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
|
|
313
|
-
.card
|
|
323
|
+
.card .sel{width:100%}
|
|
324
|
+
.card textarea,.card input[type=text]{width:100%;border:1px solid var(--line);border-radius:var(--r-s);background:var(--bg);color:var(--ink);padding:10px}
|
|
314
325
|
.card textarea{min-height:96px;resize:vertical}
|
|
315
326
|
.styles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
|
|
316
327
|
.sty{border:1px solid var(--line);border-radius:var(--r-s);padding:10px 12px;text-align:left;display:grid;gap:2px}
|
|
@@ -410,7 +421,7 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
|
|
|
410
421
|
<a class="it" href="/?setup=1" id="rsetup" hidden title="Continue setup"><span class="ring"></span><span class="lbl">Setup</span></a>
|
|
411
422
|
<div class="psec"><span class="lbl">Projects</span><a class="pbd" href="/?view=board" data-view="board" title="Board" aria-label="Board"><svg><use href="#i-board"/></svg></a><button id="pfilter" title="Show one project" aria-label="Show one project"><svg><use href="#r-filter"/></svg></button><button id="padd" title="Add project or workspace" aria-label="Add project or workspace"><svg><use href="#r-plus"/></svg></button></div>
|
|
412
423
|
<div class="plist" id="plist" aria-label="Tasks and runs by project"></div>
|
|
413
|
-
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="
|
|
424
|
+
<div class="rbot"><a class="it fold" href="/?view=settings" data-view="settings" title="Settings" aria-label="Settings"><svg><use href="#i-gear"/></svg><span class="lbl">Settings</span></a><a class="ib xs" href="/issue" target="_blank" rel="noopener" title="Report an issue" aria-label="Report an issue"><svg><use href="#r-bug"/></svg></a><button class="ib xs" id="kbd" title="Keyboard shortcuts" aria-label="Keyboard shortcuts"><svg><use href="#r-kbd"/></svg></button><button class="ib xs th" id="themet" title="Theme" aria-label="Theme"><svg class="sun"><use href="#i-sun"/></svg><svg class="moon"><use href="#i-moon"/></svg></button></div>
|
|
414
425
|
</nav>
|
|
415
426
|
<script>
|
|
416
427
|
// Side menu: theme and collapse, the same lines in board.html and notes.html. Runs before
|