2026-10-23 10:09:18 -07:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< meta http-equiv = "Content-Security-Policy" content = "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' ipc: http://ipc.localhost; frame-src http://127.0.0.1:*; object-src 'none'; base-uri 'none'" >
< title > Plan2Code</ title >
2026-11-17 18:07:59 -08:00
< script src = "theme-early.js" ></ script >
2026-10-23 10:09:18 -07:00
< link rel = "stylesheet" href = "vendor/xterm.css" >
2026-11-17 18:07:59 -08:00
< link rel = "stylesheet" href = "vendor/tokens.css" >
2026-10-23 10:09:18 -07:00
< style >
2026-11-17 18:07:59 -08:00
/* The colors, type, radii and layers come from the console's own
tokens.css (copied into vendor/ by scripts/vendor.mjs), so the shell and the
page cannot drift apart. That file also sets a few global rules (box
sizing and thin scrollbars on everything, text selection, a focus ring):
the shell keeps those and sets its own body below. data-theme on <html>
is set by theme-early.js before the first paint and by app.js when the
console says the theme changed; the accent custom properties are set the
same way. */
html , body { margin : 0 ; height : 100 % ; }
body { display : flex ; flex-direction : column ; overflow : hidden ; min-height : 0 ; background : var ( -- bg ); color : var ( -- ink ); font : var ( -- fs - sm ) / var ( -- lh - ui ) var ( -- sans ); }
/* The one keyboard focus ring for the whole shell, in the highlight color.
A part that wears another color (the loop banner) sets --focus-ring. */
: is ( button , select , input , [ role = "menu" ], [ role = "separator" ]) : focus-visible { outline : 2 px solid var ( -- focus - ring , var ( -- accent )); outline-offset : 2 px ; }
/* A command named in a message (meter.js commandSegments). */
: is ( # agent-status , # next-step-text , . first-run-detail , # launch-missing ) code { color : var ( -- ink ); font-size : 0.95 em ; }
2026-10-23 10:09:18 -07:00
2026-11-17 18:07:59 -08:00
# bar { flex : none ; border-bottom : 1 px solid var ( -- rule ); }
/* The console's top bar buttons (.btn sm ghost), sized to this bar:
2026-10-25 12:50:11 -07:00
quiet until hovered, then in the highlight color. New Session is the
one that is often the next step, so it wears the highlight outline at
rest, like the console's standby buttons. */
# bar button {
appearance : none ; font : inherit ; font-size : 12 px ; font-weight : 600 ; line-height : 1.2 ;
2026-11-17 18:07:59 -08:00
padding : 4 px 10 px ; border-radius : var ( -- radius - md ); cursor : pointer ;
2026-10-25 12:50:11 -07:00
border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); color : var ( -- ink -2 );
2026-11-17 18:07:59 -08:00
transition : background var ( -- dur -1 ), border-color var ( -- dur -1 ), color var ( -- dur -1 );
2026-10-25 12:50:11 -07:00
}
# bar button : hover : not ( : disabled ) { color : var ( -- accent ); border-color : var ( -- accent - line ); background : var ( -- panel -2 ); }
# bar button : disabled { opacity : 0.45 ; cursor : not-allowed ; }
# bar # agent-restart { background : transparent ; border-color : var ( -- accent - line ); color : var ( -- accent ); }
# bar # agent-restart : hover : not ( : disabled ) { background : var ( -- accent - soft ); border-color : var ( -- accent ); }
2026-11-17 18:07:59 -08:00
# bar-row { height : 34 px ; flex : none ; display : flex ; align-items : center ; gap : 10 px ; padding : 0 10 px ; font-size : 12 px ; white-space : nowrap ; overflow : hidden ; }
# bar-row > * { flex : none ; }
2026-10-25 12:50:11 -07:00
# bar [ hidden ] { display : none !important ; }
2026-11-17 18:07:59 -08:00
/* A narrow window drops parts instead of scrolling (app.js fitBar, meter.js
barFit): the model text first, then the status line; the agent menu holds
both then. */
# bar-row . no-model # agent-model , # bar-row . no-status # agent-status { display : none ; }
# agent-menu-more { margin : 0 ; padding : 0 8 px 6 px ; color : var ( -- ink -3 ); line-height : 1.45 ; overflow-wrap : anywhere ; }
# agent-menu-more : empty { display : none ; }
2026-10-25 12:50:11 -07:00
/* The project and agent menus' triggers: plain text until hovered, a
caret saying there is more behind them. */
# bar . bar-menu { display : inline-flex ; align-items : center ; gap : 6 px ; flex : none ; border-color : transparent ; background : transparent ; color : var ( -- ink ); padding : 4 px 8 px ; }
# bar . bar-menu : hover : not ( : disabled ), # bar . bar-menu [ aria-expanded = "true" ] { background : var ( -- panel -2 ); border-color : transparent ; color : var ( -- ink ); }
. bar-caret { color : var ( -- ink -3 ); font-size : 10 px ; }
# project-name { max-width : 220 px ; overflow : hidden ; text-overflow : ellipsis ; }
2026-11-17 18:07:59 -08:00
. agent-dot { flex : none ; width : 8 px ; height : 8 px ; border-radius : 50 % ; background : var ( -- ink -3 ); }
. agent-dot . is-ok { background : var ( -- ok ); }
. agent-dot . is-warn { background : var ( -- stage ); }
2026-11-09 15:05:12 -08:00
# agent-ended , # agent-model { color : var ( -- ink -3 ); font-weight : 400 ; }
# agent-model { max-width : 220 px ; overflow : hidden ; text-overflow : ellipsis ; white-space : nowrap ; }
2026-11-17 18:07:59 -08:00
# agent-bypass { flex : none ; font-size : 11 px ; font-weight : 600 ; line-height : 1.3 ; padding : 0 7 px ; border-radius : var ( -- radius - pill ); border : 1 px solid var ( -- stage ); color : var ( -- stage ); }
2026-10-25 12:50:11 -07:00
# agent-none { color : var ( -- ink -3 ); }
# agent-status { color : var ( -- ink -3 ); overflow : hidden ; text-overflow : ellipsis ; min-width : 0 ; max-width : 320 px ; }
2026-11-17 18:07:59 -08:00
# agent-status . is-error { color : var ( -- warn ); }
2026-11-02 12:00:10 -08:00
/* The Implementation Loop, for as long as one runs: the loudest thing in the
window on purpose. The accent says it is working; amber says it needs you. */
# loop-banner {
2026-11-17 18:07:59 -08:00
--banner-color : var ( -- accent ); --banner-bg : var ( -- accent - soft ); --banner-line : var ( -- accent - line ); --focus-ring : var ( -- banner - color );
2026-11-02 12:00:10 -08:00
flex : none ; display : flex ; flex-wrap : wrap ; align-items : center ; gap : 8 px 20 px ;
padding : 10 px 14 px 10 px 16 px ; font-size : 13 px ; color : var ( -- ink );
background : var ( -- banner - bg ); border-bottom : 1 px solid var ( -- banner - line ); box-shadow : inset 4 px 0 0 var ( -- banner - color );
}
# loop-banner [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# loop-banner [ data-tone = "waiting" ] { --banner-color : var ( -- stage ); --banner-bg : var ( -- stage - soft ); --banner-line : color-mix ( in srgb , var ( -- stage ) 45 % , var ( -- panel )); }
2026-11-02 12:00:10 -08:00
# loop-now { flex : 1 1 320 px ; min-width : 0 ; display : grid ; gap : 3 px ; }
# loop-headline { display : flex ; align-items : center ; gap : 9 px ; }
# loop-dot { flex : none ; width : 10 px ; height : 10 px ; border-radius : 50 % ; background : var ( -- banner - color ); animation : loop-pulse 1.8 s ease-in-out infinite ; }
# loop-banner [ data-tone = "waiting" ] # loop-dot { animation-duration : 0.9 s ; }
@ keyframes loop-pulse { 0 %, 100 % { box-shadow : 0 0 0 0 transparent ; opacity : 1 ; } 50 % { box-shadow : 0 0 0 5 px color-mix ( in srgb , var ( -- banner - color ) 30 % , transparent ); opacity : 0.75 ; } }
# loop-title { margin : 0 ; font-size : 15 px ; font-weight : 700 ; line-height : 1.25 ; }
# loop-detail { margin : 0 ; color : var ( -- ink -2 ); overflow-wrap : anywhere ; }
# loop-progress { display : flex ; flex-wrap : wrap ; align-items : center ; gap : 4 px 10 px ; margin-top : 3 px ; color : var ( -- ink -3 ); font-size : 12 px ; }
# loop-pips { display : flex ; flex-wrap : wrap ; gap : 3 px ; }
. loop-pip { width : 16 px ; height : 5 px ; border-radius : 3 px ; background : var ( -- rule -2 ); }
. loop-pip . done { background : var ( -- banner - color ); }
. loop-pip . current { background : var ( -- banner - color ); animation : loop-pip 1.8 s ease-in-out infinite ; }
@ keyframes loop-pip { 50 % { opacity : 0.4 ; } }
# loop-spec { color : var ( -- ink -2 ); font-weight : 600 ; }
# loop-elapsed { font-variant-numeric : tabular-nums ; }
2026-11-17 18:07:59 -08:00
# loop-retries { color : var ( -- warn ); }
2026-11-02 12:00:10 -08:00
# loop-actions { flex : none ; display : flex ; flex-wrap : wrap ; gap : 8 px ; }
# loop-actions button {
appearance : none ; font : inherit ; font-size : 12.5 px ; font-weight : 600 ; line-height : 1.2 ;
2026-11-17 18:07:59 -08:00
padding : 6 px 12 px ; border-radius : var ( -- radius - md ); cursor : pointer ;
2026-11-02 12:00:10 -08:00
border : 1 px solid var ( -- banner - line ); background : var ( -- panel ); color : var ( -- ink );
}
# loop-actions button : hover : not ( : disabled ) { border-color : var ( -- banner - color ); background : var ( -- panel -2 ); }
# loop-actions button : disabled { cursor : default ; opacity : 0.65 ; }
2026-11-17 18:07:59 -08:00
# loop-actions # loop-error { align-self : center ; max-width : 320 px ; color : var ( -- warn ); font-size : 12.5 px ; overflow-wrap : anywhere ; }
2026-11-02 12:00:10 -08:00
# loop-actions [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# loop-actions # loop-stop-now { color : var ( -- warn ); }
# loop-actions # loop-stop-now : hover : not ( : disabled ) { border-color : var ( -- warn ); }
2026-11-02 12:00:10 -08:00
@ media ( prefers-reduced-motion : reduce ) { # loop-dot , . loop-pip . current { animation : none ; } }
2026-10-25 12:50:11 -07:00
# bar-grow { flex : 1 ; min-width : 0 ; }
/* The one next step for the console or the skills, at the right end. */
# next-step { display : flex ; align-items : center ; gap : 8 px ; flex : none ; }
# next-step-text { overflow : hidden ; text-overflow : ellipsis ; max-width : 320 px ; }
2026-11-17 18:07:59 -08:00
# next-step-text . is-ok { color : var ( -- ok ); }
# next-step-text . is-warn { color : var ( -- stage ); }
# next-step-text . is-err { color : var ( -- warn ); }
2026-10-25 12:50:11 -07:00
# next-step-text . is-busy :: before {
content : "" ; display : inline-block ; width : 8 px ; height : 8 px ; margin-right : 6 px ; vertical-align : -1 px ;
border : 2 px solid currentColor ; border-right-color : transparent ; border-radius : 50 % ; animation : bar-spin 0.8 s linear infinite ;
}
@ keyframes bar-spin { to { transform : rotate ( 360 deg ); } }
# bar # next-step-button { background : var ( -- accent ); border-color : var ( -- accent ); color : var ( -- accent - ink ); }
# bar # next-step-button : hover : not ( : disabled ) { background : var ( -- accent ); border-color : var ( -- accent ); color : var ( -- accent - ink ); filter : brightness ( 1.12 ); }
2026-11-17 18:07:59 -08:00
/* "+N more": a button that opens the list of the other pending steps. */
# bar # next-step-more { font-size : var ( -- fs -2 xs ); font-weight : 600 ; padding : 2 px 8 px ; border-radius : var ( -- radius - pill ); color : var ( -- ink -2 ); }
# more-menu { min-width : 280 px ; }
. more-step { padding : 6 px 8 px ; display : grid ; gap : 4 px ; }
. more-step + . more-step { border-top : 1 px solid var ( -- rule ); }
. more-step p { margin : 0 ; color : var ( -- ink -2 ); line-height : 1.45 ; overflow-wrap : anywhere ; }
. more-step p . is-ok { color : var ( -- ok ); }
. more-step p . is-warn { color : var ( -- stage ); }
. more-step p . is-err { color : var ( -- warn ); }
# bar . more-step button { justify-self : start ; width : auto ; padding : 4 px 10 px ; border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); }
2026-10-25 12:50:11 -07:00
/* The menus sit outside the scrolling row (fixed, placed under their
trigger by app.js), so the row's overflow never clips them. */
. bar-dropdown {
2026-11-17 18:07:59 -08:00
position : fixed ; z-index : var ( -- z - menu ); min-width : 240 px ; max-width : 380 px ; padding : 6 px ; box-sizing : border-box ;
font-size : 12 px ; background : var ( -- panel ); border : 1 px solid var ( -- rule -2 ); border-radius : var ( -- radius - md ); box-shadow : var ( -- shadow -2 );
2026-10-25 12:50:11 -07:00
}
. bar-dropdown-head { margin : 0 ; padding : 4 px 8 px 8 px ; color : var ( -- ink -3 ); line-height : 1.45 ; overflow-wrap : anywhere ; }
. bar-dropdown-head b { color : var ( -- ink ); font-weight : 600 ; }
2026-11-17 18:07:59 -08:00
. bar-dropdown-head . is-warn { color : var ( -- stage ); }
2026-10-25 12:50:11 -07:00
# bar . bar-dropdown button {
2026-11-17 18:07:59 -08:00
display : block ; width : 100 % ; text-align : left ; font-weight : 400 ; padding : 6 px 8 px ; border : 0 ; border-radius : var ( -- radius - sm );
2026-10-25 12:50:11 -07:00
background : transparent ; color : var ( -- ink );
}
# bar . bar-dropdown button : hover : not ( : disabled ), # bar . bar-dropdown button : focus-visible { background : var ( -- panel -2 ); color : var ( -- accent ); }
2026-10-23 10:09:18 -07:00
# workspace { flex : 1 ; min-height : 0 ; display : flex ; flex-direction : column ; }
# workspace . dock-right { flex-direction : row ; }
# dashboard { flex : 1 ; min-height : 0 ; min-width : 0 ; position : relative ; }
2026-11-02 12:00:10 -08:00
/* An Activities game in full screen: the console's frame over the whole
window, the bar and the terminal left as they are underneath. */
2026-11-17 18:07:59 -08:00
body . console-full # console-frame { position : fixed ; inset : 0 ; width : 100 vw ; height : 100 vh ; z-index : var ( -- z - overlay ); }
# console-frame { position : absolute ; inset : 0 ; width : 100 % ; height : 100 % ; border : 0 ; background : var ( -- bg ); }
# dashboard-state { position : absolute ; inset : 0 ; z-index : 1 ; display : flex ; flex-direction : column ; align-items : center ; justify-content : center ; gap : 12 px ; background : var ( -- bg ); text-align : center ; padding : 16 px ; box-sizing : border-box ; }
2026-10-23 10:09:18 -07:00
# dashboard-state [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# dashboard-state-text { margin : 0 ; max-width : 60 ch ; overflow-wrap : anywhere ; color : var ( -- ink -2 ); }
2026-10-25 12:51:21 -07:00
# dashboard-state-planny [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
/* The plain Planny (no mug) is the first frame's "Starting Plan2Code"; the coffee break adds the mug and the reaching arm. */
# dashboard-state-planny . is-plain . ps-reach , # dashboard-state-planny : not ( . is-plain ) . ps-rest { display : none ; }
2026-10-26 06:36:45 -07:00
/* Drawn and colored like the console's own Planny (styles/planny.css):
2026-10-25 12:51:21 -07:00
an outlined shell, the star eye, a lip of a smile, round hands. */
# dashboard-state-planny { width : 104 px ; height : auto ; overflow : visible ; }
# dashboard-state-planny : is ( . ps-shell , . ps-smile , . ps-arm path , . ps-mug , . ps-handle ) {
fill : none ; stroke : var ( -- ink -2 ); stroke-width : 1.3 ; stroke-linecap : round ; stroke-linejoin : round ;
}
# dashboard-state-planny . ps-shell { fill : var ( -- panel -2 ); }
# dashboard-state-planny . ps-smile { stroke-width : 0.9 ; }
# dashboard-state-planny . ps-arm path { stroke-width : 1.2 ; }
# dashboard-state-planny : is ( . ps-arm circle , . ps-foot ) { fill : var ( -- ink -2 ); stroke : none ; }
# dashboard-state-planny . ps-eye { fill : var ( -- ink ); }
# dashboard-state-planny . ps-mug { fill : var ( -- panel -2 ); stroke-width : 1 ; }
# dashboard-state-planny . ps-handle { stroke-width : 0.9 ; }
2026-11-17 18:07:59 -08:00
# dashboard-state-planny . ps-coffee { fill : var ( -- stage ); }
2026-10-25 12:51:21 -07:00
# dashboard-state-planny . ps-steam path {
fill : none ; stroke : var ( -- ink -3 ); stroke-width : 0.7 ; stroke-linecap : round ;
animation : ps-steam 2.4 s ease-in-out infinite ; opacity : 0 ;
}
# dashboard-state-planny . ps-steam path : nth-child ( 2 ) { animation-delay : 0.8 s ; }
# dashboard-state-planny . ps-steam path : nth-child ( 3 ) { animation-delay : 1.6 s ; }
@ keyframes ps-steam {
0 % { opacity : 0 ; transform : translateY ( 1 px ); }
35 % { opacity : 0.9 ; }
100 % { opacity : 0 ; transform : translateY ( -2.4 px ); }
}
@ media ( prefers-reduced-motion : reduce ) {
# dashboard-state-planny . ps-steam path { animation : none ; opacity : 0.8 ; }
}
/* The console's buttons (.btn, with .primary for the way forward): the
one action wears the highlight, Cancel is a plain button. */
# dashboard-state-actions { display : flex ; gap : 10 px ; flex-wrap : wrap ; justify-content : center ; }
# dashboard-state-actions button {
appearance : none ; font : inherit ; font-size : 13.5 px ; font-weight : 600 ; line-height : 1.2 ;
2026-11-17 18:07:59 -08:00
padding : 7 px 13 px ; border-radius : var ( -- radius - md ); cursor : pointer ;
2026-10-25 12:51:21 -07:00
border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); color : var ( -- ink );
2026-11-17 18:07:59 -08:00
transition : filter var ( -- dur -1 ), background var ( -- dur -1 );
2026-10-25 12:51:21 -07:00
}
# dashboard-state-actions button : hover { background : var ( -- panel -2 ); }
# dashboard-state-actions # dashboard-state-button { background : var ( -- accent ); border-color : var ( -- accent ); color : var ( -- accent - ink ); }
# dashboard-state-actions # dashboard-state-button : hover { background : var ( -- accent ); filter : brightness ( 1.08 ); }
# dashboard-state-actions button [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
/* What a bug report needs (the session URL, the last health check), quiet under the buttons. */
# dashboard-state-details { margin : 0 ; max-width : 60 ch ; font-size : 12 px ; color : var ( -- ink -3 ); overflow-wrap : anywhere ; user-select : text ; }
# dashboard-state-details [ hidden ] { display : none ; }
/* "Details": the raw text of an error, behind a plain link-style button. */
# dashboard-state-toggle { appearance : none ; border : 0 ; background : transparent ; font : inherit ; font-size : 12 px ; color : var ( -- ink -3 ); text-decoration : underline ; cursor : pointer ; padding : 2 px 4 px ; }
# dashboard-state-toggle : hover { color : var ( -- ink ); }
# dashboard-state-toggle [ hidden ] { display : none ; }
/* One busy style for every wait: the bar's spinner, above the words. */
# dashboard-state-busy { width : 18 px ; height : 18 px ; border : 2 px solid var ( -- ink -3 ); border-right-color : transparent ; border-radius : 50 % ; animation : bar-spin 0.8 s linear infinite ; }
# dashboard-state-busy [ hidden ] { display : none ; }
@ media ( prefers-reduced-motion : reduce ) { # dashboard-state-busy { animation : none ; border-right-color : var ( -- ink -3 ); opacity : 0.6 ; } }
/* The one confirm modal, drawn here and not in the page, so the page cannot spoof it. */
# confirm-modal { position : fixed ; inset : 0 ; z-index : var ( -- z - overlay ); display : flex ; align-items : center ; justify-content : center ; padding : 16 px ; background : var ( -- scrim ); }
# confirm-modal [ hidden ] { display : none ; }
# confirm-panel { width : min ( 460 px , 100 % ); max-height : 100 % ; overflow : auto ; box-sizing : border-box ; padding : 18 px 20 px ; background : var ( -- panel ); color : var ( -- ink ); border : 1 px solid var ( -- rule -2 ); border-radius : var ( -- radius ); box-shadow : var ( -- shadow -3 ); }
# confirm-panel : focus { outline : none ; }
# confirm-title { margin : 0 0 10 px ; font-size : 16 px ; line-height : 1.3 ; }
# confirm-body { display : grid ; gap : 8 px ; color : var ( -- ink -2 ); font-size : 13.5 px ; line-height : 1.5 ; overflow-wrap : anywhere ; }
# confirm-body p { margin : 0 ; }
# confirm-body pre { margin : 0 ; padding : 8 px 10 px ; background : var ( -- field ); border : 1 px solid var ( -- rule ); border-radius : var ( -- radius - sm ); font-family : var ( -- mono ); font-size : 12.5 px ; color : var ( -- ink ); white-space : pre-wrap ; user-select : text ; }
# confirm-body . confirm-callout { padding : 8 px 10 px ; border-radius : var ( -- radius - sm ); border : 1 px solid color-mix ( in srgb , var ( -- stage ) 45 % , transparent ); background : var ( -- stage - soft ); color : var ( -- ink ); }
# confirm-actions { display : flex ; gap : 10 px ; justify-content : flex-end ; flex-wrap : wrap ; margin-top : 16 px ; }
# confirm-actions button { appearance : none ; font : inherit ; font-size : 13.5 px ; font-weight : 600 ; line-height : 1.2 ; padding : 7 px 14 px ; border-radius : var ( -- radius - md ); cursor : pointer ; border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); color : var ( -- ink ); }
# confirm-actions button : hover { background : var ( -- panel -2 ); }
# confirm-actions button . is-primary { background : var ( -- accent ); border-color : var ( -- accent ); color : var ( -- accent - ink ); }
# confirm-actions button . is-danger { border-color : var ( -- warn ); color : var ( -- warn ); }
# confirm-actions button . is-primary . is-danger { background : var ( -- warn ); color : var ( -- panel ); }
/* The terminal's right-click menu: Copy, Paste, Clear, and the copy-on-select switch. */
# term-menu { position : fixed ; z-index : var ( -- z - menu ); min-width : 210 px ; padding : 4 px ; box-sizing : border-box ; font-size : 12.5 px ; background : var ( -- panel ); border : 1 px solid var ( -- rule -2 ); border-radius : var ( -- radius - md ); box-shadow : var ( -- shadow -2 ); }
# term-menu [ hidden ] { display : none ; }
# term-menu button { appearance : none ; display : flex ; justify-content : space-between ; gap : 18 px ; width : 100 % ; text-align : left ; font : inherit ; padding : 6 px 8 px ; border : 0 ; border-radius : var ( -- radius - sm ); background : transparent ; color : var ( -- ink ); cursor : pointer ; }
# term-menu button : hover : not ( : disabled ), # term-menu button : focus-visible { background : var ( -- panel -2 ); color : var ( -- accent ); }
# term-menu button : disabled { color : var ( -- ink -3 ); cursor : default ; }
# term-menu . term-menu-key { color : var ( -- ink -3 ); }
# term-menu hr { border : 0 ; border-top : 1 px solid var ( -- rule ); margin : 4 px 0 ; }
/* The bar's "..." menu, at the right. */
# bar # app-menu-button { flex : none ; font-weight : 700 ; letter-spacing : 1 px ; padding : 2 px 9 px ; }
# app-menu-button [ hidden ] { display : none ; }
# app-menu . menu-key { float : right ; margin-left : 18 px ; color : var ( -- ink -3 ); }
2026-10-23 10:09:18 -07:00
# launch-card {
position : absolute ; inset : 0 ; z-index : 1 ; display : flex ; flex-direction : column ;
2026-11-17 18:07:59 -08:00
align-items : stretch ; justify-content : center ; gap : 10 px ; background : var ( -- bg );
2026-10-23 10:09:18 -07:00
padding : 24 px ; box-sizing : border-box ; width : min ( 360 px , 100 % ); margin : 0 auto ;
}
# launch-card [ hidden ] { display : none ; }
# launch-card h2 { margin : 0 0 6 px ; font-size : 17 px ; text-align : center ; }
2026-11-17 18:07:59 -08:00
# launch-card label { font-size : 12 px ; color : var ( -- ink -2 ); }
2026-10-23 10:09:18 -07:00
# launch-card select , # launch-card input [ type = "text" ] {
width : 100 % ; box-sizing : border-box ; margin : 4 px 0 2 px ; padding : 6 px 8 px ;
2026-11-17 18:07:59 -08:00
background : var ( -- field ); color : var ( -- ink ); border : 1 px solid var ( -- rule -2 ); border-radius : var ( -- radius - sm ); font : inherit ;
2026-10-23 10:09:18 -07:00
}
2026-11-17 18:07:59 -08:00
# launch-missing { margin : 0 ; font-size : 12 px ; color : var ( -- stage ); }
# launch-notice { margin : 0 ; font-size : 12 px ; color : var ( -- ink -2 ); }
2026-11-03 04:08:27 -08:00
# launch-notice [ hidden ] { display : none ; }
/* Set up an agent, shown wherever the app says "no agent". */
. setup-agent-btn { font : inherit ; font-size : 12 px ; margin-top : 4 px ; padding : 3 px 10 px ; cursor : pointer ;
2026-11-17 18:07:59 -08:00
background : var ( -- accent ); color : var ( -- accent - ink ); border : 1 px solid var ( -- accent ); border-radius : var ( -- radius - sm ); }
2026-11-07 12:23:45 -08:00
/* The way out of the setup page: a bar button, so it never covers the page. */
2026-11-03 04:08:27 -08:00
# setup-close [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# launch-agents-warning { margin : 0 ; font-size : 12 px ; color : var ( -- stage ); white-space : pre-line ; }
2026-10-26 06:36:45 -07:00
# launch-agents-warning [ hidden ] { display : none ; }
2026-10-25 21:26:08 -07:00
. agent-explainer { margin : 0 ; font-size : 12 px ; line-height : 1.5 ; }
. agent-explainer ul { margin : 4 px 0 ; padding-left : 18 px ; }
2026-11-17 18:07:59 -08:00
. agent-explainer code { color : var ( -- ink ); }
2026-10-25 21:26:08 -07:00
. agent-explainer button , # launch-missing button { font : inherit ; font-size : 12 px ; margin-left : 6 px ; padding : 1 px 8 px ; cursor : pointer ; }
2026-11-17 18:07:59 -08:00
. agent-explainer . agent-link , # launch-missing . agent-link { background : none ; border : 0 ; padding : 0 ; color : var ( -- accent ); text-decoration : underline ; }
2026-11-03 04:08:27 -08:00
# launch-effort-row [ hidden ], # launch-model-row [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# launch-bypass-row { display : flex ; align-items : center ; gap : 8 px ; color : var ( -- ink ); font-size : 13 px ; cursor : pointer ; }
2026-10-23 10:09:18 -07:00
# launch-bypass-row input { margin : 0 ; }
2026-11-17 18:07:59 -08:00
# launch-bypass-warning { margin : 0 ; font-size : 12 px ; color : var ( -- stage ); }
2026-10-23 10:09:18 -07:00
# launch-bypass-warning [ hidden ] { display : none ; }
# launch-start {
2026-11-17 18:07:59 -08:00
margin-top : 6 px ; padding : 8 px ; background : var ( -- accent ); color : var ( -- accent - ink ); border : 0 ; border-radius : var ( -- radius - sm );
2026-10-23 10:09:18 -07:00
font : inherit ; font-weight : 600 ; cursor : pointer ;
}
2026-11-17 18:07:59 -08:00
# launch-start : hover : not ( : disabled ) { filter : brightness ( 1.08 ); }
# launch-start : disabled { background : var ( -- rule ); color : var ( -- ink -3 ); cursor : not-allowed ; }
2026-10-23 10:09:18 -07:00
2026-11-15 11:22:58 -08:00
/* The folder picker: full screen on a bare start, a dialog over the page
(with Cancel) from Change project. Choose a folder comes first; each
recent folder shows its name with the full path muted under it. */
# folder-picker {
position : absolute ; inset : 0 ; z-index : 2 ; display : flex ; align-items : center ; justify-content : center ;
2026-11-17 18:07:59 -08:00
background : var ( -- bg ); padding : 24 px ; box-sizing : border-box ;
2026-11-15 11:22:58 -08:00
}
# folder-picker [ hidden ] { display : none ; }
2026-11-17 18:07:59 -08:00
# folder-picker . is-dialog { background : var ( -- scrim ); }
2026-11-15 11:22:58 -08:00
# folder-picker-panel { display : flex ; flex-direction : column ; gap : 12 px ; width : min ( 440 px , 100 % ); max-height : 100 % ; }
# folder-picker . is-dialog # folder-picker-panel {
2026-11-17 18:07:59 -08:00
background : var ( -- panel ); border : 1 px solid var ( -- rule -2 ); border-radius : var ( -- radius ); padding : 18 px ; box-sizing : border-box ;
2026-11-15 11:22:58 -08:00
}
# folder-picker h2 { margin : 0 ; font-size : 17 px ; text-align : center ; }
# folder-picker-list { list-style : none ; margin : 0 ; padding : 0 ; display : flex ; flex-direction : column ; gap : 6 px ; overflow-y : auto ; }
. folder-picker-row {
appearance : none ; width : 100 % ; text-align : left ; font : inherit ; cursor : pointer ;
2026-11-17 18:07:59 -08:00
display : flex ; flex-direction : column ; gap : 2 px ; padding : 8 px 12 px ; border-radius : var ( -- radius - md );
2026-11-15 11:22:58 -08:00
border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); color : var ( -- ink );
}
. folder-picker-row : hover : not ( : disabled ) { background : var ( -- panel -2 ); border-color : var ( -- accent - line ); }
. folder-picker-row : disabled { opacity : 0.6 ; cursor : default ; }
. folder-picker-row . is-browse { font-weight : 600 ; background : var ( -- accent ); border-color : var ( -- accent ); color : var ( -- accent - ink ); }
. folder-picker-row . is-browse : hover : not ( : disabled ) { background : var ( -- accent ); border-color : var ( -- accent ); filter : brightness ( 1.08 ); }
. folder-picker-label { font-size : 13.5 px ; }
. folder-picker-detail { font-size : 12 px ; color : var ( -- ink -3 ); overflow-wrap : anywhere ; }
2026-11-17 18:07:59 -08:00
# folder-picker-error { margin : 0 ; font-size : 12 px ; color : var ( -- stage ); }
2026-11-15 11:22:58 -08:00
# folder-picker-error [ hidden ], # folder-picker-cancel [ hidden ] { display : none ; }
# folder-picker-cancel {
align-self : center ; appearance : none ; font : inherit ; font-size : 13.5 px ; font-weight : 600 ; padding : 7 px 13 px ;
2026-11-17 18:07:59 -08:00
border-radius : var ( -- radius - md ); cursor : pointer ; border : 1 px solid var ( -- rule -2 ); background : var ( -- panel ); color : var ( -- ink );
2026-11-15 11:22:58 -08:00
}
# folder-picker-cancel : hover { background : var ( -- panel -2 ); }
2026-10-23 10:09:18 -07:00
# first-run {
position : absolute ; inset : 0 ; z-index : 1 ; display : flex ; flex-direction : column ;
2026-11-17 18:07:59 -08:00
align-items : stretch ; justify-content : center ; gap : 14 px ; background : var ( -- bg );
2026-10-23 10:09:18 -07:00
padding : 24 px ; box-sizing : border-box ; width : min ( 420 px , 100 % ); margin : 0 auto ;
}
# first-run [ hidden ] { display : none ; }
# first-run h2 { margin : 0 ; font-size : 17 px ; text-align : center ; }
# first-run-list { list-style : none ; margin : 0 ; padding : 0 ; display : flex ; flex-direction : column ; gap : 10 px ; }
. first-run-row { display : flex ; align-items : flex-start ; gap : 8 px ; font-size : 13 px ; }
. first-run-mark { flex : none ; width : 16 px ; text-align : center ; font-weight : 700 ; }
2026-11-17 18:07:59 -08:00
. first-run-row . is-pass . first-run-mark { color : var ( -- ok ); }
. first-run-row . is-fail . first-run-mark { color : var ( -- stage ); }
2026-10-23 10:09:18 -07:00
. first-run-body { flex : 1 ; min-width : 0 ; }
2026-11-17 18:07:59 -08:00
. first-run-title { color : var ( -- ink ); }
. first-run-detail { color : var ( -- ink -2 ); font-size : 12 px ; margin-top : 2 px ; }
2026-10-23 10:09:18 -07:00
. first-run-row button {
2026-11-17 18:07:59 -08:00
margin-top : 4 px ; background : none ; border : 1 px solid var ( -- rule -2 ); color : var ( -- ink ); border-radius : var ( -- radius - xs );
2026-10-23 10:09:18 -07:00
font : inherit ; font-size : 12 px ; padding : 3 px 8 px ; cursor : pointer ;
}
2026-11-17 18:07:59 -08:00
. first-run-row button : hover { background : var ( -- panel -2 ); }
2026-10-23 10:09:18 -07:00
# first-run-start {
2026-11-17 18:07:59 -08:00
margin-top : 6 px ; padding : 8 px ; background : var ( -- accent ); color : var ( -- accent - ink ); border : 0 ; border-radius : var ( -- radius - sm );
2026-10-23 10:09:18 -07:00
font : inherit ; font-weight : 600 ; cursor : pointer ;
}
2026-11-17 18:07:59 -08:00
# first-run-start : hover : not ( : disabled ) { filter : brightness ( 1.08 ); }
# first-run-start : disabled { background : var ( -- rule ); color : var ( -- ink -3 ); cursor : not-allowed ; }
2026-10-23 10:09:18 -07:00
2026-11-17 18:07:59 -08:00
/* The splitter between the console and the terminal: a 6px hit area with a
1px line, in the highlight color on hover, keyboard focus and drag (and the
shell's one focus ring, above, on keyboard focus). */
# term-handle { flex : none ; position : relative ; touch-action : none ; }
# term-handle :: after { content : "" ; position : absolute ; background : var ( -- rule ); transition : background var ( -- dur -1 ); }
# term-handle : hover :: after , # term-handle : focus-visible :: after , # term-handle . is-dragging :: after { background : var ( -- accent ); }
2026-10-23 10:09:18 -07:00
# term-handle [ hidden ] { display : none ; }
# workspace : not ( . dock-right ) # term-handle { height : 6 px ; cursor : row-resize ; }
2026-11-17 18:07:59 -08:00
# workspace : not ( . dock-right ) # term-handle :: after { left : 0 ; right : 0 ; top : 2 px ; height : 1 px ; }
2026-10-23 10:09:18 -07:00
# workspace . dock-right # term-handle { width : 6 px ; cursor : col-resize ; }
2026-11-17 18:07:59 -08:00
# workspace . dock-right # term-handle :: after { top : 0 ; bottom : 0 ; left : 2 px ; width : 1 px ; }
2026-10-23 10:09:18 -07:00
2026-11-17 18:07:59 -08:00
# term-panel { flex : none ; display : flex ; flex-direction : column ; min-height : 0 ; min-width : 0 ; background : var ( -- panel ); }
# workspace : not ( . dock-right ) # term-panel . collapsed { border-top : 1 px solid var ( -- rule ); }
# workspace . dock-right # term-panel . collapsed { border-left : 1 px solid var ( -- rule ); }
2026-10-23 10:09:18 -07:00
# term-panel . collapsed { height : 28 px !important ; }
# workspace . dock-right # term-panel . collapsed { width : 28 px !important ; height : auto !important ; }
# term-panel . collapsed # term { display : none ; }
2026-11-17 18:07:59 -08:00
/* The terminal's own bar: a title on the left, the quiet pill, then three
icon buttons (dock, maximize, collapse) that name themselves by label. */
# term-toolbar { flex : none ; display : flex ; align-items : center ; gap : 6 px ; padding : 2 px 6 px ; min-height : 28 px ; box-sizing : border-box ; background : var ( -- panel -2 ); border-bottom : 1 px solid var ( -- rule ); font-size : var ( -- fs - xs ); }
# term-title { color : var ( -- ink -2 ); font-weight : 600 ; white-space : nowrap ; overflow : hidden ; text-overflow : ellipsis ; min-width : 0 ; flex : 0 3 auto ; }
2026-10-23 10:09:18 -07:00
# term-toolbar-spacer { flex : 1 ; min-height : 0 ; }
2026-11-17 18:07:59 -08:00
# term-toolbar . term-icon {
appearance : none ; display : inline-flex ; align-items : center ; justify-content : center ; flex : none ;
width : 24 px ; height : 24 px ; padding : 0 ; border-radius : var ( -- radius - sm ); cursor : pointer ;
border : 1 px solid transparent ; background : transparent ; color : var ( -- ink -2 ); font : inherit ;
transition : background var ( -- dur -1 ), color var ( -- dur -1 ), border-color var ( -- dur -1 );
2026-10-23 10:09:18 -07:00
}
2026-11-17 18:07:59 -08:00
# term-toolbar . term-icon : hover { background : var ( -- panel ); border-color : var ( -- rule -2 ); color : var ( -- ink ); }
# term-toolbar . term-icon [ aria-pressed = "true" ] { background : var ( -- accent - soft ); border-color : var ( -- accent - line ); color : var ( -- accent ); }
# term-toolbar . term-icon svg { width : 14 px ; height : 14 px ; fill : none ; stroke : currentColor ; stroke-width : 1.5 ; stroke-linecap : round ; stroke-linejoin : round ; }
/* One icon per state, shown by the button's own attributes. */
# term-dock . ic-bottom , # term-dock [ data-dock = "right" ] . ic-right { display : none ; }
# term-dock [ data-dock = "right" ] . ic-bottom { display : block ; }
# term-maximize . ic-restore , # term-maximize [ aria-pressed = "true" ] . ic-max { display : none ; }
# term-maximize [ aria-pressed = "true" ] . ic-restore { display : block ; }
# term-collapse svg { transition : transform var ( -- dur -2 ) var ( -- ease-out ); }
# workspace . dock-right # term-collapse svg { transform : rotate ( -90 deg ); }
# term-collapse [ aria-pressed = "true" ] svg { transform : rotate ( 180 deg ); }
# workspace . dock-right # term-collapse [ aria-pressed = "true" ] svg { transform : rotate ( 90 deg ); }
2026-10-23 10:09:18 -07:00
# term-panel . collapsed # term-dock , # term-panel . collapsed # term-maximize { display : none ; }
2026-11-17 18:07:59 -08:00
/* Docked right and collapsed, the panel is a 28px-wide strip: only the
expand button and the pill fit, the pill reading top to bottom. */
# workspace . dock-right # term-panel . collapsed # term-toolbar { flex-direction : column ; padding : 4 px 2 px ; align-items : center ; border-bottom : 0 ; }
# workspace . dock-right # term-panel . collapsed # term-title { display : none ; }
# workspace . dock-right # term-panel . collapsed # term-badge { writing-mode : vertical - rl ; padding : 6 px 2 px ; }
/* A pill in words where a bare dot sat: the agent has been quiet while the
panel is small or collapsed. Pressing it opens the terminal. */
# term-badge {
appearance : none ; flex : 0 1 auto ; min-width : 0 ; overflow : hidden ; text-overflow : ellipsis ; font : inherit ; font-size : var ( -- fs -2 xs ); font-weight : 600 ; line-height : 1.3 ; white-space : nowrap ;
padding : 1 px 9 px ; border-radius : var ( -- radius - pill ); cursor : pointer ;
border : 1 px solid color-mix ( in srgb , var ( -- stage ) 45 % , transparent ); background : var ( -- stage - soft ); color : var ( -- stage );
2026-10-25 12:51:01 -07:00
}
2026-11-17 18:07:59 -08:00
# term-badge : hover { border-color : var ( -- stage ); }
2026-10-23 10:09:18 -07:00
# term-badge [ hidden ] { display : none ; }
# term { flex : 1 ; min-height : 0 ; min-width : 0 ; padding : 4 px ; }
</ style >
</ head >
< body >
< header id = "bar" >
2026-10-23 15:56:51 -07:00
< div id = "bar-row" >
2026-10-25 12:50:11 -07:00
< button id = "project-menu-button" class = "bar-menu" aria-haspopup = "menu" aria-expanded = "false" aria-controls = "project-menu" hidden >< span id = "project-name" ></ span >< span class = "bar-caret" aria-hidden = "true" > ▾ </ span ></ button >
<!-- Whenever an agent exists, running or ended, just left of its menu. -->
< button id = "agent-restart" hidden > New Session</ button >
2026-11-09 15:05:12 -08:00
< button id = "agent-menu-button" class = "bar-menu" aria-haspopup = "menu" aria-expanded = "false" aria-controls = "agent-menu" hidden >< span id = "agent-dot" class = "agent-dot" aria-hidden = "true" ></ span >< span id = "agent-name" ></ span >< span id = "agent-model" title = "The model and effort this agent was started with" hidden ></ span >< span id = "agent-ended" hidden > ended</ span >< span id = "agent-bypass" title = "Permission checks are off: the agent runs commands and changes files without asking" hidden > checks off</ span >< span class = "bar-caret" aria-hidden = "true" > ▾ </ span ></ button >
2026-10-25 12:50:11 -07:00
< span id = "agent-none" > No agent</ span >
2026-10-23 10:09:18 -07:00
< span id = "agent-status" role = "status" ></ span >
2026-10-25 12:50:11 -07:00
< span id = "bar-grow" ></ span >
2026-11-07 12:23:45 -08:00
<!-- Shown only on the agent setup page, in the bar rather than over its frame. -->
< button id = "setup-close" type = "button" hidden > Back</ button >
2026-10-25 12:50:11 -07:00
<!-- The console's or the skills' one next step (meter.js barNextSteps), when there is one. -->
< span id = "next-step" role = "status" hidden >
< span id = "next-step-text" ></ span >
< button id = "next-step-button" hidden ></ button >
2026-11-17 18:07:59 -08:00
< button id = "next-step-more" type = "button" aria-haspopup = "menu" aria-expanded = "false" aria-controls = "more-menu" hidden ></ button >
< button id = "next-step-notes" type = "button" hidden > What's new</ button >
2026-10-23 10:09:18 -07:00
</ span >
2026-11-17 18:07:59 -08:00
<!-- The compact menu at the right end: About, Check for updates, Help, Quit. -->
< button id = "app-menu-button" class = "bar-menu" type = "button" aria-haspopup = "menu" aria-expanded = "false" aria-controls = "app-menu" aria-label = "Plan2Code menu" title = "Plan2Code menu" > ⋯ </ button >
2026-10-25 12:50:11 -07:00
</ div >
2026-11-17 18:07:59 -08:00
< div id = "project-menu" class = "bar-dropdown" role = "menu" aria-label = "Project" tabindex = "-1" hidden >
2026-10-25 12:50:11 -07:00
< p class = "bar-dropdown-head" > Project< br >< b id = "project-path" ></ b ></ p >
< button id = "change-project" role = "menuitem" > Change project...</ button >
</ div >
2026-11-17 18:07:59 -08:00
< div id = "agent-menu" class = "bar-dropdown" role = "menu" aria-label = "Agent" tabindex = "-1" hidden >
2026-10-25 12:50:11 -07:00
< p id = "agent-menu-head" class = "bar-dropdown-head" ></ p >
2026-11-17 18:07:59 -08:00
< p id = "agent-menu-more" ></ p >
2026-10-25 12:50:11 -07:00
< button id = "change-agent" role = "menuitem" hidden > Change agent...</ button >
2026-10-23 10:09:18 -07:00
</ div >
2026-11-17 18:07:59 -08:00
< div id = "app-menu" class = "bar-dropdown" role = "menu" aria-label = "Plan2Code" tabindex = "-1" hidden >
< button id = "app-about" role = "menuitem" > About Plan2Code</ button >
< button id = "app-check-updates" role = "menuitem" > Check for updates</ button >
< button id = "app-help" role = "menuitem" > Help</ button >
< button id = "app-quit" role = "menuitem" > Quit</ button >
</ div >
< div id = "more-menu" class = "bar-dropdown" role = "menu" aria-label = "More steps" tabindex = "-1" hidden ></ div >
2026-10-23 10:09:18 -07:00
</ header >
2026-11-02 12:00:10 -08:00
<!-- The Implementation Loop, while one runs (app.js loop-state, meter.js loopBanner). -->
< section id = "loop-banner" aria-label = "Implementation Loop" hidden >
< div id = "loop-now" >
< div role = "status" aria-live = "polite" >
< div id = "loop-headline" >< span id = "loop-dot" aria-hidden = "true" ></ span >< p id = "loop-title" ></ p ></ div >
< p id = "loop-detail" ></ p >
</ div >
< div id = "loop-progress" >
< span id = "loop-pips" aria-hidden = "true" ></ span >
< span id = "loop-spec" ></ span >
< span id = "loop-elapsed" ></ span >
< span id = "loop-retries" hidden ></ span >
< span id = "loop-hint" ></ span >
</ div >
</ div >
< div id = "loop-actions" >
< button id = "loop-stop-after" type = "button" > Stop after this phase</ button >
< button id = "loop-stop-now" type = "button" > Stop now</ button >
< span id = "loop-error" role = "alert" hidden ></ span >
< button id = "loop-retry" type = "button" hidden > Retry</ button >
</ div >
</ section >
2026-10-23 10:09:18 -07:00
< div id = "workspace" >
< main id = "dashboard" >
2026-10-26 17:05:36 -07:00
< iframe id = "console-frame" title = "Plan2Code console dashboard" allow = "clipboard-write" ></ iframe >
2026-11-17 18:07:59 -08:00
< div id = "dashboard-state" >
2026-10-25 12:51:21 -07:00
<!-- Planny on a coffee break: shown only before a New Session press,
the one state here that is a question rather than a status. The
console's own Planny (shell, star eye, smile, feet, resting left
arm) with the right arm reaching out to a steaming mug. -->
2026-11-17 18:07:59 -08:00
< svg id = "dashboard-state-planny" class = "is-plain" viewBox = "0 7 22 23" aria-hidden = "true" focusable = "false" >
2026-10-25 12:51:21 -07:00
< rect class = "ps-foot" x = "5.7" y = "27.1" width = "3.6" height = "1.7" rx = "0.85" />
< rect class = "ps-foot" x = "12.7" y = "27.1" width = "3.6" height = "1.7" rx = "0.85" />
< rect class = "ps-shell" x = "3" y = "7" width = "16" height = "20" rx = "3.2" />
< path class = "ps-eye" d = "M11 10.95 L11.79 12.91 L13.9 13.06 L12.28 14.42 L12.79 16.47 L11 15.35 L9.21 16.47 L9.72 14.42 L8.1 13.06 L10.21 12.91 Z" />
< path class = "ps-smile" d = "M8.3 18.4 Q11 21 13.7 18.4" />
< g class = "ps-arm" >< path d = "M3 18 L1.3 21" />< circle cx = "1.3" cy = "21" r = "0.85" /></ g >
2026-11-17 18:07:59 -08:00
< g class = "ps-steam ps-reach" >
2026-10-25 12:51:21 -07:00
< path d = "M23 17.3 q-0.6 -0.9 0 -1.8 t0 -1.8" />
< path d = "M24.4 17.1 q0.6 -0.9 0 -1.8 t0 -1.8" />
< path d = "M25.8 17.3 q-0.6 -0.9 0 -1.8 t0 -1.8" />
</ g >
2026-11-17 18:07:59 -08:00
< g class = "ps-arm ps-rest" >< path d = "M19 18 L20.7 21" />< circle cx = "20.7" cy = "21" r = "0.85" /></ g >
< g class = "ps-arm ps-reach" >< path d = "M19 18 L21.6 20.6" />< circle cx = "21.6" cy = "20.6" r = "0.85" /></ g >
< path class = "ps-handle ps-reach" d = "M26.7 19.6 h0.3 a1.15 1.15 0 0 1 0 2.3 h-0.3" />
< rect class = "ps-mug ps-reach" x = "22.4" y = "18.4" width = "4.3" height = "4.6" rx = "0.8" />
< rect class = "ps-coffee ps-reach" x = "23" y = "19" width = "3.1" height = "0.8" rx = "0.35" />
2026-10-25 12:51:21 -07:00
</ svg >
2026-11-17 18:07:59 -08:00
< span id = "dashboard-state-busy" role = "presentation" hidden ></ span >
< p id = "dashboard-state-text" > Starting Plan2Code</ p >
2026-10-25 12:51:21 -07:00
< span id = "dashboard-state-actions" >
2026-10-23 10:09:18 -07:00
< button id = "dashboard-state-button" hidden ></ button >
2026-11-17 18:07:59 -08:00
< button id = "dashboard-state-secondary" hidden ></ button >
2026-10-23 10:09:18 -07:00
< button id = "dashboard-state-cancel" hidden > Cancel</ button >
</ span >
2026-11-17 18:07:59 -08:00
< button id = "dashboard-state-toggle" type = "button" aria-expanded = "false" aria-controls = "dashboard-state-details" hidden > Details</ button >
< p id = "dashboard-state-details" hidden ></ p >
2026-10-23 10:09:18 -07:00
</ div >
2026-11-15 11:22:58 -08:00
< div id = "folder-picker" hidden >
< div id = "folder-picker-panel" role = "dialog" aria-labelledby = "folder-picker-title" >
< h2 id = "folder-picker-title" > Open a project</ h2 >
< ul id = "folder-picker-list" ></ ul >
< p id = "folder-picker-error" role = "alert" hidden ></ p >
< button id = "folder-picker-cancel" type = "button" hidden > Cancel</ button >
</ div >
</ div >
2026-10-23 10:09:18 -07:00
< div id = "first-run" hidden >
< h2 > Before you start</ h2 >
< ul id = "first-run-list" ></ ul >
< button id = "first-run-start" type = "button" disabled > Start</ button >
</ div >
< form id = "launch-card" hidden >
< h2 > Start an agent</ h2 >
< label for = "launch-agent" > Agent</ label >
< select id = "launch-agent" >
< option value = "claude" > Claude Code</ option >
< option value = "devin" > Devin</ option >
< option value = "codex" > Codex</ option >
</ select >
2026-11-03 04:08:27 -08:00
< p id = "launch-notice" hidden ></ p >
2026-10-23 10:09:18 -07:00
< p id = "launch-missing" hidden ></ p >
2026-10-26 06:36:45 -07:00
< p id = "launch-agents-warning" hidden ></ p >
2026-11-03 04:08:27 -08:00
< div id = "launch-model-row" >
< label for = "launch-model" > Model</ label >
< select id = "launch-model" ></ select >
</ div >
2026-10-23 10:09:18 -07:00
< div id = "launch-effort-row" >
< label for = "launch-effort" > Effort</ label >
< select id = "launch-effort" ></ select >
</ div >
< label id = "launch-bypass-row" >
2026-10-25 12:51:13 -07:00
< input id = "launch-bypass" type = "checkbox" checked >
2026-10-23 10:09:18 -07:00
Turn permission checks off for this agent
</ label >
2026-10-25 12:51:13 -07:00
< p id = "launch-bypass-warning" > Permission checks will be off: the agent can run commands and change files without asking first.</ p >
2026-10-23 10:09:18 -07:00
< button id = "launch-start" type = "submit" > Start agent</ button >
</ form >
</ main >
2026-11-17 18:07:59 -08:00
<!-- The splitter: arrow keys, Home and End, and a double-click that returns it to the default (app.js). -->
< div id = "term-handle" role = "separator" aria-orientation = "horizontal" aria-label = "Terminal size" aria-controls = "term-panel" aria-valuemin = "10" aria-valuemax = "60" aria-valuenow = "25" tabindex = "0" title = "Drag to resize the terminal. Arrow keys also work; double-click resets it." ></ div >
< section id = "term-panel" aria-label = "Terminal" >
2026-10-23 10:09:18 -07:00
< div id = "term-toolbar" >
2026-11-17 18:07:59 -08:00
< span id = "term-title" > Terminal</ span >
< button id = "term-badge" type = "button" title = "The agent has been quiet a while. Open the terminal to check." hidden > Agent may need you</ button >
2026-10-23 10:09:18 -07:00
< span id = "term-toolbar-spacer" ></ span >
2026-11-17 18:07:59 -08:00
< button id = "term-dock" class = "term-icon" type = "button" data-dock = "bottom" aria-label = "Dock the terminal on the right" title = "Dock on the right" >
< svg class = "ic-right" viewBox = "0 0 16 16" aria-hidden = "true" focusable = "false" >< rect x = "2" y = "3" width = "12" height = "10" rx = "1.5" />< path d = "M10 3v10" /></ svg >
< svg class = "ic-bottom" viewBox = "0 0 16 16" aria-hidden = "true" focusable = "false" >< rect x = "2" y = "3" width = "12" height = "10" rx = "1.5" />< path d = "M2 9h12" /></ svg >
</ button >
< button id = "term-maximize" class = "term-icon" type = "button" aria-pressed = "false" aria-label = "Make the terminal larger" title = "Make it larger" >
< svg class = "ic-max" viewBox = "0 0 16 16" aria-hidden = "true" focusable = "false" >< rect x = "3" y = "3" width = "10" height = "10" rx = "1.5" /></ svg >
< svg class = "ic-restore" viewBox = "0 0 16 16" aria-hidden = "true" focusable = "false" >< rect x = "3" y = "5.5" width = "7.5" height = "7.5" rx = "1.2" />< path d = "M6 5.5V4.2c0-.7.5-1.2 1.2-1.2h5.1c.7 0 1.2.5 1.2 1.2v5.1c0 .7-.5 1.2-1.2 1.2h-1.8" /></ svg >
</ button >
< button id = "term-collapse" class = "term-icon" type = "button" aria-pressed = "false" aria-label = "Collapse the terminal" title = "Collapse" >
< svg viewBox = "0 0 16 16" aria-hidden = "true" focusable = "false" >< path d = "M4 6l4 4 4-4" /></ svg >
</ button >
2026-10-23 10:09:18 -07:00
</ div >
< div id = "term" ></ div >
</ section >
</ div >
2026-11-17 18:07:59 -08:00
< div id = "term-menu" role = "menu" aria-label = "Terminal" hidden ></ div >
<!-- The one confirm dialog (app.js confirmModal): outside the page's frame, so the page cannot spoof it. -->
< div id = "confirm-modal" hidden >
< div id = "confirm-panel" role = "alertdialog" aria-modal = "true" aria-labelledby = "confirm-title" aria-describedby = "confirm-body" tabindex = "-1" >
< h2 id = "confirm-title" ></ h2 >
< div id = "confirm-body" ></ div >
< div id = "confirm-actions" >
< button id = "confirm-cancel" type = "button" ></ button >
< button id = "confirm-primary" type = "button" class = "is-primary" ></ button >
</ div >
</ div >
</ div >
2026-10-23 10:09:18 -07:00
< script src = "vendor/xterm.js" ></ script >
< script src = "vendor/addon-fit.js" ></ script >
2026-11-17 18:07:59 -08:00
< script src = "vendor/addon-web-links.js" ></ script >
2026-10-23 10:09:18 -07:00
< script type = "module" src = "app.js" ></ script >
</ body >
</ html >