fix(webui): cut help text to the facts a label cannot carry

Drops every page subtitle and the hints that restated their label; the
rest become a few words ('Empty: truncate.', '0 = no limit.'). Empty states
and notes shrink the same way.
This commit is contained in:
sam committed 2026-09-25 17:42:29 +10:00
1 parent f923b5cfed
commit 8278e76266
21 files changed
+86 -111

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scrollbar-thumb:#0000;--tw-scrollbar-track:#0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--scroll-fade-t:0;--scroll-fade-b:0;--scroll-fade-s:0;--scroll-fade-e:0;--scroll-fade-mask:initial;--shimmer-image:initial;--shimmer-text-fill:initial}}}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-cyrillic-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-ext-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-400-normal.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-400-normal.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-vietnamese-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-400-normal.woff)fLine truncated
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scrollbar-thumb:#0000;--tw-scrollbar-track:#0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--scroll-fade-t:0;--scroll-fade-b:0;--scroll-fade-s:0;--scroll-fade-e:0;--scroll-fade-mask:initial;--shimmer-image:initial;--shimmer-text-fill:initial}}}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-cyrillic-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-cyrillic-wght-normal.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-greek-wght-normal.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-vietnamese-wght-normal.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-latin-ext-wght-normal.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(/assets/ibm-plex-sans-latin-wght-normal.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-ext-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-400-normal.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-400-normal.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-vietnamese-400-normal.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-400-normal.woff)fLine truncated
+3 -3
View File
@@ -15,6 +15,6 @@ var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],en
Defaulting to \`null\`.`),null)}function kS(e){return DS(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wS}\`.`),wS)}var AS=j({__name:`ProgressRoot`,props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:wS},getValueLabel:{type:Function,required:!1,default:(e,t)=>DS(e)?`${Math.round(e/t*wS)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`,`update:max`],setup(e,{emit:t}){let n=e,r=t;J();let i=Kh(n,`modelValue`,r,{passive:n.modelValue===void 0}),a=Kh(n,`max`,r,{passive:n.max===void 0});A(()=>i.value,async e=>{let t=OS(e,n.max);t!==e&&(await or(),i.value=t)},{immediate:!0}),A(()=>n.max,e=>{let t=kS(n.max);t!==e&&(a.value=t)},{immediate:!0});let o=U(()=>sh(i.value)?`indeterminate`:i.value===a.value?`complete`:`loading`);return ES({modelValue:i,max:a,progressState:o}),(e,t)=>(F(),L(O(Y),{"as-child":e.asChild,as:e.as,"aria-valuemax":O(a),"aria-valuemin":0,"aria-valuenow":DS(O(i))?O(i):void 0,"aria-valuetext":e.getValueText?.(O(i),O(a)),"aria-label":e.getValueLabel(O(i),O(a)),role:`progressbar`,"data-state":o.value,"data-value":O(i)??void 0,"data-max":O(a)},{default:k(()=>[N(e.$slots,`default`,{modelValue:O(i)})]),_:3},8,[`as-child`,`as`,`aria-valuemax`,`aria-valuenow`,`aria-valuetext`,`aria-label`,`data-state`,`data-value`,`data-max`]))}}),jS=j({__name:`ProgressIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=TS();return J(),(e,r)=>(F(),L(O(Y),H(t,{"data-state":O(n).progressState.value,"data-value":O(n).modelValue?.value??void 0,"data-max":O(n).max.value}),{default:k(()=>[N(e.$slots,`default`)]),_:3},16,[`data-state`,`data-value`,`data-max`]))}}),MS=`radio.select`;function NS(e,t,n){oh(MS,n,{originalEvent:e,value:t})}var PS=j({inheritAttrs:!1,__name:`Radio`,props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:checked`,`select`],setup(e,{emit:t}){let n=e,r=t,i=Kh(n,`checked`,r,{passive:n.checked===void 0}),{value:a}=Dn(n),{forwardRef:o,currentElement:s}=J(),c=_g(s),l=bg(),u=U(()=>n.id&&s.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);function d(e){n.disabled||NS(e,n.value,e=>{r(`select`,e),!e?.defaultPrevented&&(i.value=!0,c.value&&e.stopPropagation())})}return(e,t)=>(F(),I(P,null,[z(O(Y),H({id:e.id,ref:O(o),role:`radio`,type:e.as===`button`?`button`:void 0,as:e.as,"aria-checked":O(i)??!1,"aria-label":u.value,"as-child":e.asChild,disabled:e.disabled?``:void 0,"data-state":O(i)?`checked`:`unchecked`,"data-disabled":e.disabled?``:void 0,value:O(a),required:e.required,name:e.name},{...O(l),...e.$attrs},{onClick:uu(d,[`stop`])}),{default:k(()=>[N(e.$slots,`default`,{checked:O(i)})]),_:3},16,[`id`,`type`,`as`,`aria-checked`,`aria-label`,`as-child`,`disabled`,`data-state`,`data-disabled`,`value`,`required`,`name`]),O(c)&&e.name?(F(),L(O(mv),H({key:0,type:`radio`,tabindex:`-1`,value:O(a),checked:!!O(i),name:e.name,disabled:e.disabled,required:e.required},O(l)),null,16,[`value`,`checked`,`name`,`disabled`,`required`])):V(`v-if`,!0)],64))}}),[FS,IS]=ih(`RadioGroupRoot`),LS=j({__name:`RadioGroupRoot`,props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=J(),o=Kh(n,`modelValue`,r,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:s,loop:c,orientation:l,name:u,required:d,dir:f}=Dn(n),p=fg(f),m=_g(a);return IS({modelValue:o,changeModelValue:e=>{o.value=e},disabled:s,loop:c,orientation:l,name:u?.value,required:d}),(e,t)=>(F(),L(O(Xb),{"as-child":``,orientation:O(l),dir:O(p),loop:O(c)},{default:k(()=>[z(O(Y),{ref:O(i),role:`radiogroup`,"data-disabled":O(s)?``:void 0,"as-child":e.asChild,as:e.as,"aria-orientation":O(l),"aria-required":O(d),dir:O(p)},{default:k(()=>[N(e.$slots,`default`,{modelValue:O(o)}),O(m)&&O(u)?(F(),L(O(mv),{key:0,required:O(d),disabled:O(s),value:O(o),name:O(u)},null,8,[`required`,`disabled`,`value`,`name`])):V(`v-if`,!0)]),_:3},8,[`data-disabled`,`as-child`,`as`,`aria-orientation`,`aria-required`,`dir`])]),_:3},8,[`orientation`,`dir`,`loop`]))}}),[RS,zS]=ih(`RadioGroupItem`),BS=j({inheritAttrs:!1,__name:`RadioGroupItem`,props:{id:{type:String,required:!1},value:{type:null,reLine truncated
`),r=[],i=null,a=null,o=()=>{r.length&&(t.push({kind:`p`,inline:jE(r.join(` `))}),r=[])},s=()=>{i&&=(t.push({kind:i.tag,items:i.items.map(e=>jE(e))}),null)};for(let e=0;e<n.length;e++){let c=n[e];if(c.startsWith("```")){o(),s(),a?(t.push({kind:`pre`,code:a.join(`
`)}),a=null):a=[];continue}if(a){a.push(c);continue}let l=NE(c),u=e+1<n.length?NE(n[e+1]):null;if(l&&u&&PE(u)&&l.length===u.length){o(),s();let r=[];for(e+=2;e<n.length;e++){let t=NE(n[e]);if(!t||t.length!==l.length){e--;break}r.push(t)}t.push({kind:`table`,head:l.map(e=>jE(e)),rows:r.map(e=>e.map(e=>jE(e)))});continue}if(!c.trim()){o(),s();continue}let d=c.match(/^(#{1,3})\s+(.+)$/);if(d){o(),s(),t.push({kind:`h${d[1].length}`,inline:jE(d[2])});continue}let f=c.match(/^\s*[-*]\s+(.+)$/),p=c.match(/^\s*\d+[.)]\s+(.+)$/);if(f||p){o();let e=p?`ol`:`ul`;(!i||i.tag!==e)&&(s(),i={tag:e,items:[]}),i.items.push((f||p)[1]);continue}if(c.startsWith(`>`)){o(),s(),t.push({kind:`blockquote`,inline:jE(c.replace(/^>\s?/,``))});continue}r.push(c)}return o(),s(),a&&t.push({kind:`pre`,code:a.join(`
`)}),t}function NE(e){let t=String(e||``).trim();if(!t.includes(`|`))return null;let n=t.replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim());return n.length>1&&n.every(e=>e!==``)?n:null}function PE(e){return e.every(e=>/^:?-{3,}:?$/.test(e))}var FE={class:`[overflow-wrap:anywhere]`},IE={key:0,class:`my-2 overflow-auto rounded-md border border-border bg-background/60 p-3`},LE={class:`font-mono text-[0.85em]`},RE={key:1,class:`my-3 w-full border-collapse text-[0.92em]`},zE={key:2,class:`my-2 border-l-[3px] border-primary pl-3 text-fg-muted`},BE={key:3,class:`mt-1 mb-2 text-xl leading-tight font-semibold tracking-[-0.02em]`},VE={key:4,class:`mt-1 mb-2 text-lg leading-tight font-semibold tracking-[-0.02em]`},HE={key:5,class:`mt-1 mb-2 text-base leading-tight font-semibold tracking-[-0.02em]`},UE={key:6,class:`my-2.5 flex list-disc flex-col gap-1 pl-5`},WE={key:7,class:`my-2.5 flex list-decimal flex-col gap-1 pl-5`},GE={key:8,class:`mb-2.5 last:mb-0`},KE=j({__name:`ChatMarkdown`,props:{text:{}},setup(e){let t=e,n=U(()=>ME(t.text));return(e,t)=>(F(),I(`div`,FE,[(F(!0),I(P,null,M(n.value,(e,t)=>(F(),I(P,{key:t},[e.kind===`pre`?(F(),I(`pre`,IE,[R(`code`,LE,E(e.code),1)])):e.kind===`table`?(F(),I(`table`,RE,[R(`thead`,null,[R(`tr`,null,[(F(!0),I(P,null,M(e.head,(e,t)=>(F(),I(`th`,{key:t,class:`border border-border bg-muted px-2 py-1.5 text-left font-semibold`},[z(kE,{inline:e},null,8,[`inline`])]))),128))])]),R(`tbody`,null,[(F(!0),I(P,null,M(e.rows,(e,t)=>(F(),I(`tr`,{key:t},[(F(!0),I(P,null,M(e,(e,t)=>(F(),I(`td`,{key:t,class:`border border-border px-2 py-1.5 text-left`},[z(kE,{inline:e},null,8,[`inline`])]))),128))]))),128))])])):e.kind===`blockquote`?(F(),I(`blockquote`,zE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h1`?(F(),I(`h1`,BE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h2`?(F(),I(`h2`,VE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h3`?(F(),I(`h3`,HE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`ul`?(F(),I(`ul`,UE,[(F(!0),I(P,null,M(e.items,(e,t)=>(F(),I(`li`,{key:t},[z(kE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`ol`?(F(),I(`ol`,WE,[(F(!0),I(P,null,M(e.items,(e,t)=>(F(),I(`li`,{key:t},[z(kE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`p`?(F(),I(`p`,GE,[z(kE,{inline:e.inline},null,8,[`inline`])])):V(``,!0)],64))),128))]))}}),qE={class:`truncate`},JE=j({__name:`ChatNavChip`,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=ha(`RouterLink`);return F(),L(r,{to:e.path,title:`Go to ${e.label||e.path}`,class:`inline-flex max-w-full items-center gap-1.5 rounded-full border border-primary/45 bg-primary-soft px-2.5 py-1 text-xs font-semibold text-link transition-colors hover:border-primary hover:bg-primary/15 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`},{default:k(()=>[z(O(xd),{"aria-hidden":`true`,class:`size-3.5 shrink-0`}),R(`span`,qE,E(e.label||e.path),1)]),_:1},8,[`to`,`title`])}}}),YE={key:1,class:`flex items-baseline gap-1.5 [overflow-wrap:anywhere]`},XE={class:`font-semibold text-foreground`},ZE={key:0,class:`font-mono text-[0.95em] text-fg-subtle`},QE=j({__name:`ChatToolCall`,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=U(()=>t.tool.name||t.tool.Name||t.tool.tool||`tool`),r=U(()=>t.tool.parameters||t.tool.Parameters||``),i=U(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=U(()=>t.tool.summary||t.tool.Summary||t.tool.text||t.tool.err||t.tool.Err||(t.streaming?i.value?`failed`:`running…`:`done`));return(t,o)=>e.tool.path?(F(),L(JE,{key:0,path:e.tool.path,label:e.tool.label},null,8,[`path`,`label`])):(F(),I(`div`,YE,[z(O(lf),{"aria-hidden":`true`,class:`size-3.5 shrink-0 self-center text-fg-subtle`}),R(`span`,XE,E(n.value),1),r.value?(F(),I(`code`,ZE,E(r.value),1)):V(``,!0),R(`span`,{class:T(O(K)(`text-fg-muted`,i.value&&`text-danger`))},E(a.value),3)]))}}),$E={key:0,class:`mb-2 grid gap-0.5 text-xs`},eD={key:2,class:`whitespace-pre-wrap`},tD=j({__name:`ChatBubble`,props:{text:{},tools:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(F(),I(`div`,{class:T([`flex`,e.assistant?`justify-start`:`justify-end`])},[R(`div`,{class:T(O(K)(`max-w-[min(78ch,86%)] rounded-[0.85rem] px-4 py-3 leading-normal [overflow-wrap:anywhere]`,e.assistant?`bg-muted`:`bg-primary/15`))},[e.assistant&&e.tools.length?(F(),I(`div`,$E,[(F(!0),I(P,null,M(e.tools,(t,n)=>(F(),L(QE,{key:n,tool:t,streaming:e.streaming},null,8,[`tool`,`streaming`]))),128))])):V(``,!0),e.assistant?(F(),L(KE,{key:1,text:e.text},null,8,[`text`])):(F(),I(`div`,eD,E(e.text),1)),N(t.$slots,`default`)],2)],2))}}),nD={class:`w-full self-center justify-self-center py-6 text-center`},rD={class:`grid gap-2`},iD=[`onClick`],aD=j({__name:`ChatEmptyState`,emits:[`prompt`],setup(e,{emit:t}){let n=t,r=[`Summarise active tasks`,`Show running agents`,`Check system status`];return(e,t)=>(F(),I(`div`,nD,[t[0]||=R(`span`,{"aria-hidden":`true`,class:`mx-auto mb-3 grid size-9 placLine truncated
`).map(e=>e.trim()).find(Boolean)||``,r=n.length>hM?`${n.slice(0,hM).trimEnd()}…`:n;return{text:r,full:t,truncated:r!==t}}var _M=[`title`],vM=j({__name:`ActivityRow`,props:{event:{}},emits:[`open`],setup(e,{emit:t}){let n=e,r=t,i=U(()=>Jj(n.event)),a=U(()=>gM(n.event));function o(){i.value>0&&r(`open`,i.value)}let s=U(()=>n.event.at?ij(n.event.at):`—`);return(e,t)=>(F(),L(O(fM),{class:T(i.value>0?`cursor-pointer`:``),role:i.value>0?`link`:void 0,tabindex:i.value>0?0:void 0,title:i.value>0?`Open task details`:void 0,onClick:o,onKeydown:[fu(uu(o,[`prevent`]),[`enter`]),fu(uu(o,[`prevent`]),[`space`])]},{default:k(()=>[z(O($),{class:`font-medium`},{default:k(()=>[B(E(n.event.kind||n.event.type||`event`),1)]),_:1}),z(O($),{class:`font-mono`},{default:k(()=>[B(E(i.value>0?`#${i.value}`:`—`),1)]),_:1}),z(O($),{class:`w-[55%] max-w-0`},{default:k(()=>[R(`span`,{class:`block truncate`,title:a.value.truncated?a.value.full:void 0},E(a.value.text),9,_M)]),_:1}),z(O($),null,{default:k(()=>[B(E(s.value),1)]),_:1})]),_:1},8,[`class`,`role`,`tabindex`,`title`,`onKeydown`]))}});function yM(e,t){return`${e}:${t??0}`}function bM(e){let t=[];for(let n of e){let e=n.kind||n.type||`event`,r=Number(n.task_id)||0,i=yM(gM(n).text,r),a=t[t.length-1];if(a&&a.key===i){a.count+=1,a.events.push(n);continue}t.push({key:i,label:e,taskID:r,count:1,representative:n,events:[n]})}return t}var xM={role:`region`,"aria-label":`Live activity`,"aria-live":`polite`},SM={class:`max-h-[28rem] overflow-y-auto`},CM=[`aria-expanded`,`aria-label`,`onClick`],wM=[`title`],TM=j({__name:`LiveActivityCard`,setup(e){let t=OD(),{activity:n,streamKind:r,streamState:i}=od(dA()),a=rn(new Set),o=U(()=>bM(n.value));function s(e){a.has(e)?a.delete(e):a.add(e)}function c(e){return a.has(e.key)}function l(e){return gM(e.representative)}function u(e){return e.representative.at?ij(e.representative.at):`—`}function d(e){t.push(`/tasks?task=${encodeURIComponent(e)}`)}return(e,t)=>(F(),L(O(ZA),null,{default:k(()=>[z(O(nj),null,{default:k(()=>[z(O(rj),null,{default:k(()=>[...t[0]||=[B(`Live activity`,-1)]]),_:1}),z(O(QA),null,{default:k(()=>[z(O(JA),{variant:O(r)},{default:k(()=>[B(E(O(i)),1)]),_:1},8,[`variant`])]),_:1})]),_:1}),z(O($A),null,{default:k(()=>[R(`div`,xM,[R(`div`,SM,[z(O(uM),null,{default:k(()=>[z(O(mM),{class:`sticky top-0 z-10 bg-card`},{default:k(()=>[z(O(fM),null,{default:k(()=>[z(O(pM),null,{default:k(()=>[...t[1]||=[B(`Event`,-1)]]),_:1}),z(O(pM),null,{default:k(()=>[...t[2]||=[B(`Task`,-1)]]),_:1}),z(O(pM),null,{default:k(()=>[...t[3]||=[B(`Detail`,-1)]]),_:1}),z(O(pM),null,{default:k(()=>[...t[4]||=[B(`When`,-1)]]),_:1})]),_:1})]),_:1}),z(O(dM),null,{default:k(()=>[O(n).length?V(``,!0):(F(),L(O(fM),{key:0},{default:k(()=>[z(O($),{colspan:`4`},{default:k(()=>[z(O(BA),null,{default:k(()=>[z(O(UA),null,{default:k(()=>[z(O(KA),null,{default:k(()=>[...t[5]||=[B(`Waiting for activity`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),O(n).length?(F(!0),I(P,{key:1},M(o.value,e=>(F(),I(P,{key:e.key},[e.count===1?(F(),L(vM,{key:0,event:e.representative,onOpen:d},null,8,[`event`])):(F(),I(P,{key:1},[z(O(fM),{class:T(e.taskID>0?`cursor-pointer`:``),role:e.taskID>0?`link`:void 0,tabindex:e.taskID>0?0:void 0,title:e.taskID>0?`Open task details`:void 0,onClick:t=>e.taskID>0&&d(e.taskID),onKeydown:[fu(uu(t=>e.taskID>0&&d(e.taskID),[`prevent`]),[`enter`]),fu(uu(t=>e.taskID>0&&d(e.taskID),[`prevent`]),[`space`])]},{default:k(()=>[z(O($),{class:`font-medium`},{default:k(()=>[R(`button`,{type:`button`,class:`inline-flex items-center gap-1 rounded hover:opacity-80`,"aria-expanded":c(e),"aria-label":`${c(e)?`Hide`:`Show`} ${e.count} ${e.label} events`,onClick:uu(t=>s(e.key),[`stop`])},[c(e)?(F(),L(O(Td),{key:0,class:`size-3.5 shrink-0 text-fg-subtle`})):(F(),L(O(Ed),{key:1,class:`size-3.5 shrink-0 text-fg-subtle`})),B(` `+E(e.label)+` `,1),z(O(JA),{variant:`idle`},{default:k(()=>[B(`×`+E(e.count),1)]),_:2},1024)],8,CM)]),_:2},1024),z(O($),{class:`font-mono`},{default:k(()=>[B(E(e.taskID>0?`#${e.taskID}`:`—`),1)]),_:2},1024),z(O($),{class:`w-[55%] max-w-0`},{default:k(()=>[R(`span`,{class:`block truncate`,title:l(e).truncated?l(e).full:void 0},E(l(e).text),9,wM)]),_:2},1024),z(O($),null,{default:k(()=>[B(E(u(e)),1)]),_:2},1024)]),_:2},1032,[`class`,`role`,`tabindex`,`title`,`onClick`,`onKeydown`]),c(e)?(F(!0),I(P,{key:0},M(e.events,(t,n)=>(F(),L(vM,{key:`${e.key}:${n}`,event:t,onOpen:d},null,8,[`event`]))),128)):V(``,!0)],64))],64))),128)):V(``,!0)]),_:1})]),_:1})])])]),_:1})]),_:1}))}}),EM=j({__name:`Alert`,props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){let t=e;return(n,r)=>(F(),I(`div`,{"data-slot":`alert`,class:T(O(K)(O(AM)({variant:e.variant}),t.class)),role:`alert`},[N(n.$slots,`default`)],2))}}),DM=j({__name:`AlertAction`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(F(),I(`div`,{"data-slot":`alert-action`,class:T(O(K)(`absolute top-2 right-2`,t.class))},[N(e.$slots,`default`)],2))}}),OM=j( Line truncated
`)){let e=n.indexOf(`:`);if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function DN(e,t){if(!e.event_type)return{label:`Unidentified`,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name:`Deleted type`,identified:!0}}function ON(e,t){if(!e)return`No event type`;let n=t.find(t=>t.id===e);return n?`${n.source} / ${n.name}`:`Deleted type`}function kN(e){let t=[...(e.headers||[]).map(e=>`${e.name} = ${e.value}`),...(e.payload||[]).map(e=>e.op===`present`?`${e.path} present`:`${e.path} = ${e.value??``}`)];return t.length?t.join(` · `):`any event`}function AN(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!==``).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!==``).map(e=>e.op===`present`?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value??``})}}var jN=D([]),MN=D([]),NN=D(!0),PN=D(null),FN=D(null),IN=D(!1),LN=D(null);async function RN(){try{let e=await q.eventTypes();NN.value=e.enabled!==!1,jN.value=e.event_types||[],MN.value=e.proposals||[],PN.value=null}catch(e){PN.value=e.message||String(e)}}function zN(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function BN(e){LN.value=null,FN.value=e}function VN(e){let t=YN.value.find(t=>String(t.id)===e.sample_id);BN({mode:`proposal`,id:null,source:e.source,name:``,rule:zN(e.rule),headersText:``,body:t?.body||``,exampleHeaders:e.headers||{}})}function HN(e=``){BN({mode:`paste`,id:null,source:e,name:``,rule:{headers:[],payload:[]},headersText:``,body:``,exampleHeaders:{}})}function UN(e){BN({mode:`edit`,id:e.id,source:e.source,name:e.name,rule:zN(e.rule),headersText:``,body:``,exampleHeaders:{}})}function WN(){FN.value=null}async function GN(){let e=FN.value;if(e){IN.value=!0;try{if(e.mode===`edit`&&e.id)await q.eventTypeUpdate(e.id,{name:e.name,rule:AN(e.rule)});else{let t=e.mode===`paste`?EN(e.headersText):e.exampleHeaders;await q.eventTypeCreate({source:e.source,name:e.name,rule:e.mode===`paste`?void 0:AN(e.rule),example:{headers:t,body:e.body}})}FN.value=null,await RN()}catch(e){LN.value=e.message||String(e)}finally{IN.value=!1}}}var KN=D(null);async function qN(){let e=KN.value;if(KN.value=null,e)try{await q.eventTypeDelete(e.id),await RN()}catch(e){PN.value=e.message||String(e)}}var JN=100,YN=D([]),XN=D(!0),ZN=D(null),QN=D(!0),$N=D(null);async function eP(){try{let e=await q.captures(JN);XN.value=e.enabled!==!1,YN.value=e.captures||[],ZN.value=null}catch(e){ZN.value=e.message||String(e)}finally{QN.value=!1}}function tP(e){let t=YN.value.find(t=>t.id===e);return t&&($N.value=t),!!t}function nP(){YN.value.length&&($N.value=YN.value[0])}function rP(){fA(`captures`,()=>{eP(),RN()})}var iP=j({__name:`Tabs`,props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=yg(Cw(n,`class`),r);return(e,t)=>(F(),L(O(AC),H({"data-slot":`tabs`,"data-orientation":O(i).orientation||`horizontal`},O(i),{class:O(K)(`gap-2 group/tabs flex data-horizontal:flex-col`,n.class)}),{default:k(t=>[N(e.$slots,`default`,we(Os(t)))]),_:3},16,[`data-orientation`,`class`]))}}),aP=j({__name:`TabsContent`,props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=Cw(t,`class`);return(e,r)=>(F(),L(O(NC),H({"data-slot":`tabs-content`,class:O(K)(`text-sm flex-1 outline-none`,t.class)},O(n)),{default:k(()=>[N(e.$slots,`default`)]),_:3},16,[`class`]))}}),oP=j({__name:`TabsList`,props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},variant:{default:`default`}},setup(e){let t=e,n=Cw(t,`class`,`variant`);return(r,i)=>(F(),L(O(PC),H({"data-slot":`tabs-list`,"data-variant":e.variant},O(n),{class:O(K)(O(cP)({variant:e.variant}),t.class)}),{default:k(()=>[N(r.$slots,`default`)]),_:3},16,[`data-variant`,`class`]))}}),sP=j({__name:`TabsTrigger`,props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=vg(Cw(t,`class`));return(e,r)=>(F(),L(O(FC),H({"data-slot":`tabs-trigger`,class:O(K)(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*=size-])]:size-4 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabledLine truncated
`)}),t}function NE(e){let t=String(e||``).trim();if(!t.includes(`|`))return null;let n=t.replace(/^\|/,``).replace(/\|$/,``).split(`|`).map(e=>e.trim());return n.length>1&&n.every(e=>e!==``)?n:null}function PE(e){return e.every(e=>/^:?-{3,}:?$/.test(e))}var FE={class:`[overflow-wrap:anywhere]`},IE={key:0,class:`my-2 overflow-auto rounded-md border border-border bg-background/60 p-3`},LE={class:`font-mono text-[0.85em]`},RE={key:1,class:`my-3 w-full border-collapse text-[0.92em]`},zE={key:2,class:`my-2 border-l-[3px] border-primary pl-3 text-fg-muted`},BE={key:3,class:`mt-1 mb-2 text-xl leading-tight font-semibold tracking-[-0.02em]`},VE={key:4,class:`mt-1 mb-2 text-lg leading-tight font-semibold tracking-[-0.02em]`},HE={key:5,class:`mt-1 mb-2 text-base leading-tight font-semibold tracking-[-0.02em]`},UE={key:6,class:`my-2.5 flex list-disc flex-col gap-1 pl-5`},WE={key:7,class:`my-2.5 flex list-decimal flex-col gap-1 pl-5`},GE={key:8,class:`mb-2.5 last:mb-0`},KE=j({__name:`ChatMarkdown`,props:{text:{}},setup(e){let t=e,n=U(()=>ME(t.text));return(e,t)=>(F(),I(`div`,FE,[(F(!0),I(P,null,M(n.value,(e,t)=>(F(),I(P,{key:t},[e.kind===`pre`?(F(),I(`pre`,IE,[R(`code`,LE,E(e.code),1)])):e.kind===`table`?(F(),I(`table`,RE,[R(`thead`,null,[R(`tr`,null,[(F(!0),I(P,null,M(e.head,(e,t)=>(F(),I(`th`,{key:t,class:`border border-border bg-muted px-2 py-1.5 text-left font-semibold`},[z(kE,{inline:e},null,8,[`inline`])]))),128))])]),R(`tbody`,null,[(F(!0),I(P,null,M(e.rows,(e,t)=>(F(),I(`tr`,{key:t},[(F(!0),I(P,null,M(e,(e,t)=>(F(),I(`td`,{key:t,class:`border border-border px-2 py-1.5 text-left`},[z(kE,{inline:e},null,8,[`inline`])]))),128))]))),128))])])):e.kind===`blockquote`?(F(),I(`blockquote`,zE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h1`?(F(),I(`h1`,BE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h2`?(F(),I(`h2`,VE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`h3`?(F(),I(`h3`,HE,[z(kE,{inline:e.inline},null,8,[`inline`])])):e.kind===`ul`?(F(),I(`ul`,UE,[(F(!0),I(P,null,M(e.items,(e,t)=>(F(),I(`li`,{key:t},[z(kE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`ol`?(F(),I(`ol`,WE,[(F(!0),I(P,null,M(e.items,(e,t)=>(F(),I(`li`,{key:t},[z(kE,{inline:e},null,8,[`inline`])]))),128))])):e.kind===`p`?(F(),I(`p`,GE,[z(kE,{inline:e.inline},null,8,[`inline`])])):V(``,!0)],64))),128))]))}}),qE={class:`truncate`},JE=j({__name:`ChatNavChip`,props:{path:{},label:{}},setup(e){return(t,n)=>{let r=ha(`RouterLink`);return F(),L(r,{to:e.path,title:`Go to ${e.label||e.path}`,class:`inline-flex max-w-full items-center gap-1.5 rounded-full border border-primary/45 bg-primary-soft px-2.5 py-1 text-xs font-semibold text-link transition-colors hover:border-primary hover:bg-primary/15 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary`},{default:k(()=>[z(O(xd),{"aria-hidden":`true`,class:`size-3.5 shrink-0`}),R(`span`,qE,E(e.label||e.path),1)]),_:1},8,[`to`,`title`])}}}),YE={key:1,class:`flex items-baseline gap-1.5 [overflow-wrap:anywhere]`},XE={class:`font-semibold text-foreground`},ZE={key:0,class:`font-mono text-[0.95em] text-fg-subtle`},QE=j({__name:`ChatToolCall`,props:{tool:{},streaming:{type:Boolean}},setup(e){let t=e,n=U(()=>t.tool.name||t.tool.Name||t.tool.tool||`tool`),r=U(()=>t.tool.parameters||t.tool.Parameters||``),i=U(()=>!!(t.tool.err||t.tool.Err||t.tool.failed)),a=U(()=>t.tool.summary||t.tool.Summary||t.tool.text||t.tool.err||t.tool.Err||(t.streaming?i.value?`failed`:`running…`:`done`));return(t,o)=>e.tool.path?(F(),L(JE,{key:0,path:e.tool.path,label:e.tool.label},null,8,[`path`,`label`])):(F(),I(`div`,YE,[z(O(lf),{"aria-hidden":`true`,class:`size-3.5 shrink-0 self-center text-fg-subtle`}),R(`span`,XE,E(n.value),1),r.value?(F(),I(`code`,ZE,E(r.value),1)):V(``,!0),R(`span`,{class:T(O(K)(`text-fg-muted`,i.value&&`text-danger`))},E(a.value),3)]))}}),$E={key:0,class:`mb-2 grid gap-0.5 text-xs`},eD={key:2,class:`whitespace-pre-wrap`},tD=j({__name:`ChatBubble`,props:{text:{},tools:{default:()=>[]},assistant:{type:Boolean,default:!1},streaming:{type:Boolean,default:!1}},setup(e){return(t,n)=>(F(),I(`div`,{class:T([`flex`,e.assistant?`justify-start`:`justify-end`])},[R(`div`,{class:T(O(K)(`max-w-[min(78ch,86%)] rounded-[0.85rem] px-4 py-3 leading-normal [overflow-wrap:anywhere]`,e.assistant?`bg-muted`:`bg-primary/15`))},[e.assistant&&e.tools.length?(F(),I(`div`,$E,[(F(!0),I(P,null,M(e.tools,(t,n)=>(F(),L(QE,{key:n,tool:t,streaming:e.streaming},null,8,[`tool`,`streaming`]))),128))])):V(``,!0),e.assistant?(F(),L(KE,{key:1,text:e.text},null,8,[`text`])):(F(),I(`div`,eD,E(e.text),1)),N(t.$slots,`default`)],2)],2))}}),nD={class:`w-full self-center justify-self-center py-6 text-center`},rD={class:`grid gap-2`},iD=[`onClick`],aD=j({__name:`ChatEmptyState`,emits:[`prompt`],setup(e,{emit:t}){let n=t,r=[`Summarise active tasks`,`Show running agents`,`Check system status`];return(e,t)=>(F(),I(`div`,nD,[t[0]||=R(`span`,{"aria-hidden":`true`,class:`mx-auto mb-3 grid size-9 placLine truncated
`).map(e=>e.trim()).find(Boolean)||``,r=n.length>mM?`${n.slice(0,mM).trimEnd()}…`:n;return{text:r,full:t,truncated:r!==t}}var gM=[`title`],_M=j({__name:`ActivityRow`,props:{event:{}},emits:[`open`],setup(e,{emit:t}){let n=e,r=t,i=U(()=>qj(n.event)),a=U(()=>hM(n.event));function o(){i.value>0&&r(`open`,i.value)}let s=U(()=>n.event.at?rj(n.event.at):`—`);return(e,t)=>(F(),L(O(dM),{class:T(i.value>0?`cursor-pointer`:``),role:i.value>0?`link`:void 0,tabindex:i.value>0?0:void 0,title:i.value>0?`Open task details`:void 0,onClick:o,onKeydown:[fu(uu(o,[`prevent`]),[`enter`]),fu(uu(o,[`prevent`]),[`space`])]},{default:k(()=>[z(O($),{class:`font-medium`},{default:k(()=>[B(E(n.event.kind||n.event.type||`event`),1)]),_:1}),z(O($),{class:`font-mono`},{default:k(()=>[B(E(i.value>0?`#${i.value}`:`—`),1)]),_:1}),z(O($),{class:`w-[55%] max-w-0`},{default:k(()=>[R(`span`,{class:`block truncate`,title:a.value.truncated?a.value.full:void 0},E(a.value.text),9,gM)]),_:1}),z(O($),null,{default:k(()=>[B(E(s.value),1)]),_:1})]),_:1},8,[`class`,`role`,`tabindex`,`title`,`onKeydown`]))}});function vM(e,t){return`${e}:${t??0}`}function yM(e){let t=[];for(let n of e){let e=n.kind||n.type||`event`,r=Number(n.task_id)||0,i=vM(hM(n).text,r),a=t[t.length-1];if(a&&a.key===i){a.count+=1,a.events.push(n);continue}t.push({key:i,label:e,taskID:r,count:1,representative:n,events:[n]})}return t}var bM={role:`region`,"aria-label":`Live activity`,"aria-live":`polite`},xM={class:`max-h-[28rem] overflow-y-auto`},SM=[`aria-expanded`,`aria-label`,`onClick`],CM=[`title`],wM=j({__name:`LiveActivityCard`,setup(e){let t=OD(),{activity:n,streamKind:r,streamState:i}=od(dA()),a=rn(new Set),o=U(()=>yM(n.value));function s(e){a.has(e)?a.delete(e):a.add(e)}function c(e){return a.has(e.key)}function l(e){return hM(e.representative)}function u(e){return e.representative.at?rj(e.representative.at):`—`}function d(e){t.push(`/tasks?task=${encodeURIComponent(e)}`)}return(e,t)=>(F(),L(O(XA),null,{default:k(()=>[z(O(tj),null,{default:k(()=>[z(O(nj),null,{default:k(()=>[...t[0]||=[B(`Live activity`,-1)]]),_:1}),z(O(ZA),null,{default:k(()=>[z(O(qA),{variant:O(r)},{default:k(()=>[B(E(O(i)),1)]),_:1},8,[`variant`])]),_:1})]),_:1}),z(O(QA),null,{default:k(()=>[R(`div`,bM,[R(`div`,xM,[z(O(lM),null,{default:k(()=>[z(O(pM),{class:`sticky top-0 z-10 bg-card`},{default:k(()=>[z(O(dM),null,{default:k(()=>[z(O(fM),null,{default:k(()=>[...t[1]||=[B(`Event`,-1)]]),_:1}),z(O(fM),null,{default:k(()=>[...t[2]||=[B(`Task`,-1)]]),_:1}),z(O(fM),null,{default:k(()=>[...t[3]||=[B(`Detail`,-1)]]),_:1}),z(O(fM),null,{default:k(()=>[...t[4]||=[B(`When`,-1)]]),_:1})]),_:1})]),_:1}),z(O(uM),null,{default:k(()=>[O(n).length?V(``,!0):(F(),L(O(dM),{key:0},{default:k(()=>[z(O($),{colspan:`4`},{default:k(()=>[z(O(zA),null,{default:k(()=>[z(O(HA),null,{default:k(()=>[z(O(GA),null,{default:k(()=>[...t[5]||=[B(`Waiting for activity`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})),O(n).length?(F(!0),I(P,{key:1},M(o.value,e=>(F(),I(P,{key:e.key},[e.count===1?(F(),L(_M,{key:0,event:e.representative,onOpen:d},null,8,[`event`])):(F(),I(P,{key:1},[z(O(dM),{class:T(e.taskID>0?`cursor-pointer`:``),role:e.taskID>0?`link`:void 0,tabindex:e.taskID>0?0:void 0,title:e.taskID>0?`Open task details`:void 0,onClick:t=>e.taskID>0&&d(e.taskID),onKeydown:[fu(uu(t=>e.taskID>0&&d(e.taskID),[`prevent`]),[`enter`]),fu(uu(t=>e.taskID>0&&d(e.taskID),[`prevent`]),[`space`])]},{default:k(()=>[z(O($),{class:`font-medium`},{default:k(()=>[R(`button`,{type:`button`,class:`inline-flex items-center gap-1 rounded hover:opacity-80`,"aria-expanded":c(e),"aria-label":`${c(e)?`Hide`:`Show`} ${e.count} ${e.label} events`,onClick:uu(t=>s(e.key),[`stop`])},[c(e)?(F(),L(O(Td),{key:0,class:`size-3.5 shrink-0 text-fg-subtle`})):(F(),L(O(Ed),{key:1,class:`size-3.5 shrink-0 text-fg-subtle`})),B(` `+E(e.label)+` `,1),z(O(qA),{variant:`idle`},{default:k(()=>[B(`×`+E(e.count),1)]),_:2},1024)],8,SM)]),_:2},1024),z(O($),{class:`font-mono`},{default:k(()=>[B(E(e.taskID>0?`#${e.taskID}`:`—`),1)]),_:2},1024),z(O($),{class:`w-[55%] max-w-0`},{default:k(()=>[R(`span`,{class:`block truncate`,title:l(e).truncated?l(e).full:void 0},E(l(e).text),9,CM)]),_:2},1024),z(O($),null,{default:k(()=>[B(E(u(e)),1)]),_:2},1024)]),_:2},1032,[`class`,`role`,`tabindex`,`title`,`onClick`,`onKeydown`]),c(e)?(F(!0),I(P,{key:0},M(e.events,(t,n)=>(F(),L(_M,{key:`${e.key}:${n}`,event:t,onOpen:d},null,8,[`event`]))),128)):V(``,!0)],64))],64))),128)):V(``,!0)]),_:1})]),_:1})])])]),_:1})]),_:1}))}}),TM=j({__name:`Alert`,props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){let t=e;return(n,r)=>(F(),I(`div`,{"data-slot":`alert`,class:T(O(K)(O(kM)({variant:e.variant}),t.class)),role:`alert`},[N(n.$slots,`default`)],2))}}),EM=j({__name:`AlertAction`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(F(),I(`div`,{"data-slot":`alert-action`,class:T(O(K)(`absolute top-2 right-2`,t.class))},[N(e.$slots,`default`)],2))}}),DM=j( Line truncated
`)){let e=n.indexOf(`:`);if(e<=0)continue;let r=n.slice(0,e).trim();r&&(t[r]=n.slice(e+1).trim())}return t}function EN(e,t){if(!e.event_type)return{label:`Unidentified`,identified:!1};let n=t.find(t=>t.id===e.event_type);return{label:n?n.name:`Deleted type`,identified:!0}}function DN(e,t){if(!e)return`No event type`;let n=t.find(t=>t.id===e);return n?`${n.source} / ${n.name}`:`Deleted type`}function ON(e){let t=[...(e.headers||[]).map(e=>`${e.name} = ${e.value}`),...(e.payload||[]).map(e=>e.op===`present`?`${e.path} present`:`${e.path} = ${e.value??``}`)];return t.length?t.join(` · `):`any event`}function kN(e){return{headers:(e.headers||[]).filter(e=>e.name.trim()!==``).map(e=>({name:e.name.trim(),value:e.value})),payload:(e.payload||[]).filter(e=>e.path.trim()!==``).map(e=>e.op===`present`?{path:e.path.trim(),op:e.op}:{path:e.path.trim(),op:e.op,value:e.value??``})}}var AN=D([]),jN=D([]),MN=D(!0),NN=D(null),PN=D(null),FN=D(!1),IN=D(null);async function LN(){try{let e=await q.eventTypes();MN.value=e.enabled!==!1,AN.value=e.event_types||[],jN.value=e.proposals||[],NN.value=null}catch(e){NN.value=e.message||String(e)}}function RN(e){return{headers:(e.headers||[]).map(e=>({...e})),payload:(e.payload||[]).map(e=>({...e}))}}function zN(e){IN.value=null,PN.value=e}function BN(e){let t=JN.value.find(t=>String(t.id)===e.sample_id);zN({mode:`proposal`,id:null,source:e.source,name:``,rule:RN(e.rule),headersText:``,body:t?.body||``,exampleHeaders:e.headers||{}})}function VN(e=``){zN({mode:`paste`,id:null,source:e,name:``,rule:{headers:[],payload:[]},headersText:``,body:``,exampleHeaders:{}})}function HN(e){zN({mode:`edit`,id:e.id,source:e.source,name:e.name,rule:RN(e.rule),headersText:``,body:``,exampleHeaders:{}})}function UN(){PN.value=null}async function WN(){let e=PN.value;if(e){FN.value=!0;try{if(e.mode===`edit`&&e.id)await q.eventTypeUpdate(e.id,{name:e.name,rule:kN(e.rule)});else{let t=e.mode===`paste`?TN(e.headersText):e.exampleHeaders;await q.eventTypeCreate({source:e.source,name:e.name,rule:e.mode===`paste`?void 0:kN(e.rule),example:{headers:t,body:e.body}})}PN.value=null,await LN()}catch(e){IN.value=e.message||String(e)}finally{FN.value=!1}}}var GN=D(null);async function KN(){let e=GN.value;if(GN.value=null,e)try{await q.eventTypeDelete(e.id),await LN()}catch(e){NN.value=e.message||String(e)}}var qN=100,JN=D([]),YN=D(!0),XN=D(null),ZN=D(!0),QN=D(null);async function $N(){try{let e=await q.captures(qN);YN.value=e.enabled!==!1,JN.value=e.captures||[],XN.value=null}catch(e){XN.value=e.message||String(e)}finally{ZN.value=!1}}function eP(e){let t=JN.value.find(t=>t.id===e);return t&&(QN.value=t),!!t}function tP(){JN.value.length&&(QN.value=JN.value[0])}function nP(){fA(`captures`,()=>{$N(),LN()})}var rP=j({__name:`Tabs`,props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=yg(Cw(n,`class`),r);return(e,t)=>(F(),L(O(AC),H({"data-slot":`tabs`,"data-orientation":O(i).orientation||`horizontal`},O(i),{class:O(K)(`gap-2 group/tabs flex data-horizontal:flex-col`,n.class)}),{default:k(t=>[N(e.$slots,`default`,we(Os(t)))]),_:3},16,[`data-orientation`,`class`]))}}),iP=j({__name:`TabsContent`,props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=Cw(t,`class`);return(e,r)=>(F(),L(O(NC),H({"data-slot":`tabs-content`,class:O(K)(`text-sm flex-1 outline-none`,t.class)},O(n)),{default:k(()=>[N(e.$slots,`default`)]),_:3},16,[`class`]))}}),aP=j({__name:`TabsList`,props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},variant:{default:`default`}},setup(e){let t=e,n=Cw(t,`class`,`variant`);return(r,i)=>(F(),L(O(PC),H({"data-slot":`tabs-list`,"data-variant":e.variant},O(n),{class:O(K)(O(sP)({variant:e.variant}),t.class)}),{default:k(()=>[N(r.$slots,`default`)]),_:3},16,[`data-variant`,`class`]))}}),oP=j({__name:`TabsTrigger`,props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=vg(Cw(t,`class`));return(e,r)=>(F(),L(O(FC),H({"data-slot":`tabs-trigger`,class:O(K)(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*=size-])]:size-4 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabledLine truncated
+1 -1
View File
@@ -160,7 +160,7 @@ function fieldCount(schema: Record<string, string> | null | undefined): number {
>
<p class="text-sm font-medium">No event types yet</p>
<p class="mt-1 max-w-md text-sm text-fg-muted">
Create an event type to map incoming events.
Create one from a captured event.
</p>
</div>
</CardContent>
+19 -21
View File
@@ -97,9 +97,9 @@ const opened = reactive({ telegram: false, email: false, webhook: false });
const shown = (id: keyof typeof opened) => configured.value[id] || opened[id];
const channels = [
{ id: "telegram", title: "Telegram", icon: Send, purpose: "Talk to Archie and approve its work from your phone." },
{ id: "email", title: "Email", icon: Mail, purpose: "Email Archie a task and get replies over SMTP." },
{ id: "webhook", title: "Webhook", icon: Globe, purpose: "Another service pushes messages to Archie over HTTP." },
{ id: "telegram", title: "Telegram", icon: Send },
{ id: "email", title: "Email", icon: Mail },
{ id: "webhook", title: "Webhook", icon: Globe },
] as const;
const allowedUsers = computed({
@@ -127,7 +127,6 @@ const replyModes = [
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Where people can talk to Archie, and how those chats run.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
@@ -146,7 +145,6 @@ const replyModes = [
</span>
<div class="min-w-0 flex-1">
<h2 :id="`ch-${channel.id}`" class="text-[15px] font-medium">{{ channel.title }}</h2>
<p class="truncate text-xs text-fg-subtle">{{ channel.purpose }}</p>
</div>
<StatusPill v-if="statusOf(channel.id)" :tone="statusOf(channel.id)!.tone" :dot="statusOf(channel.id)!.dot">
{{ statusOf(channel.id)!.label }}
@@ -161,13 +159,13 @@ const replyModes = [
<div v-if="shown(channel.id)" class="px-5 pb-2">
<template v-if="channel.id === 'telegram'">
<SettingRow label="Bot token" hint="From @BotFather. Empty turns Telegram off.">
<SettingRow label="Bot token" hint="Empty disables Telegram.">
<SecretRefField
v-model="chat.telegram.token_ref"
id-prefix="tg-token"
/>
</SettingRow>
<SettingRow label="Allowed users" hint="Telegram user IDs. Everyone else is ignored.">
<SettingRow label="Allowed users" hint="Everyone else is ignored.">
<TagsInput v-model="allowedUsers" aria-label="Allowed users" class="font-mono">
<TagsInputItem v-for="id in allowedUsers" :key="id" :value="id">
<TagsInputItemText />
@@ -179,30 +177,30 @@ const replyModes = [
</template>
<template v-else-if="channel.id === 'email'">
<SettingRow label="Listen address" for="em-listen" hint="host:port for inbound SMTP. Empty turns email off.">
<SettingRow label="Listen address" for="em-listen" hint="Empty disables email.">
<Input id="em-listen" v-model="chat.email.listen_addr" class="max-w-sm font-mono" placeholder=":2525" />
</SettingRow>
<SettingRow label="Relay address" for="em-relay" hint="SMTP relay replies are sent through.">
<SettingRow label="Relay address" for="em-relay">
<Input id="em-relay" v-model="chat.email.relay_addr" class="max-w-sm font-mono" />
</SettingRow>
</template>
<template v-else>
<SettingRow label="Listen address" for="wh-addr" hint="host:port the webhook gateway listens on. Empty turns it off.">
<SettingRow label="Listen address" for="wh-addr" hint="Empty disables the webhook.">
<Input id="wh-addr" v-model="chat.webhook_addr" class="max-w-sm font-mono" placeholder=":8686" />
</SettingRow>
<SettingRow label="Path" for="wh-path" hint="Empty means /webhook.">
<SettingRow label="Path" for="wh-path">
<Input id="wh-path" v-model="chat.webhook.path" class="max-w-sm font-mono" placeholder="/webhook" />
</SettingRow>
<SettingRow label="Message field" for="wh-template" hint="Dot path to the message text in the JSON body. Empty uses the whole body.">
<SettingRow label="Message field" for="wh-template" hint="Dot path. Empty: whole body.">
<Input id="wh-template" v-model="chat.webhook.template" class="max-w-sm font-mono" placeholder="issue.title" />
</SettingRow>
<SettingRow label="Replies" hint="Where Archie's answer goes.">
<SettingRow label="Replies">
<SegmentedControl v-model="chat.webhook.deliver_to" label="Replies" :options="replyModes" />
</SettingRow>
<SettingRow
label="Signing secret"
hint="HMAC-SHA256 secret. Unset accepts any unsigned POST."
hint="Unset accepts unsigned requests."
:tone="chat.webhook.secret_ref.key ? 'default' : 'danger'"
>
<SecretRefField
@@ -218,20 +216,20 @@ const replyModes = [
<h2 id="ch-defaults" class="text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">
Chat session defaults · all channels
</h2>
<SettingRow label="Workspace" for="cs-workspace" hint="Where the chat agent's file and shell tools work. Empty turns those tools off.">
<SettingRow label="Workspace" for="cs-workspace" hint="Empty disables file tools.">
<Input id="cs-workspace" v-model="chat.workspace" class="max-w-md font-mono" />
</SettingRow>
<SettingRow
label="Unrestricted filesystem"
hint="On: file tools can read and write anywhere this user can, not just the workspace."
hint="File tools can write anywhere."
:tone="chat.unrestricted_filesystem ? 'danger' : 'default'"
>
<Switch v-model="chat.unrestricted_filesystem" aria-label="Unrestricted filesystem" />
</SettingRow>
<SettingRow label="Show tool calls" hint="Narrate each tool call in the chat.">
<SettingRow label="Show tool calls">
<Switch v-model="chat.show_tool_calls" aria-label="Show tool calls" />
</SettingRow>
<SettingRow label="Max steps" hint="Model and tool round-trips per chat turn. 0 uses the default (100).">
<SettingRow label="Max steps" hint="0 = default (100).">
<NumberField v-model="chat.max_steps" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
@@ -240,7 +238,7 @@ const replyModes = [
</NumberFieldContent>
</NumberField>
</SettingRow>
<SettingRow label="Rate limit" hint="Per sender, per channel. Off unless both are above zero.">
<SettingRow label="Rate limit" hint="Per sender. Off while either is 0.">
<div class="flex flex-wrap items-center gap-2 text-sm text-fg-muted">
<NumberField v-model="chat.rate_limit.max_requests" :min="0" class="w-28">
<NumberFieldContent>
@@ -251,7 +249,7 @@ const replyModes = [
<DurationInput v-model="chat.rate_limit.window" :units="['s', 'm', 'h']" />
</div>
</SettingRow>
<SettingRow label="Models" hint="Models offered in chat. Empty offers the ones assigned to workflow roles.">
<SettingRow label="Models" hint="Empty: role models.">
<TagsInput v-model="models" aria-label="Models" class="font-mono">
<TagsInputItem v-for="model in models" :key="model" :value="model">
<TagsInputItemText />
@@ -260,7 +258,7 @@ const replyModes = [
<TagsInputInput placeholder="provider/model" />
</TagsInput>
</SettingRow>
<SettingRow label="Operator" for="cs-operator" hint="The name of the person Archie works for, told to the chat agent.">
<SettingRow label="Operator" for="cs-operator">
<Input id="cs-operator" v-model="chat.operator" class="max-w-sm" />
</SettingRow>
</section>
+1 -1
View File
@@ -30,7 +30,7 @@ function meta(task: AttentionTask): string {
<RouterLink to="/tasks?status=needs_you" class="ml-auto text-xs text-fg-muted hover:text-foreground">All tasks</RouterLink>
</header>
<p v-if="tasks === null" class="px-5 py-6 text-sm text-fg-subtle">Not loaded.</p>
<p v-else-if="!waiting.length" class="px-5 py-6 text-sm text-fg-muted">Nothing is waiting on you.</p>
<p v-else-if="!waiting.length" class="px-5 py-6 text-sm text-fg-muted">Nothing waiting.</p>
<ul v-else class="divide-y divide-border">
<li v-for="task in waiting" :key="task.id" class="flex flex-wrap items-center gap-3 px-5 py-3">
<StatusPill tone="warn" class="shrink-0">{{ statusLabel(task.status ?? "") }}</StatusPill>
+8 -10
View File
@@ -77,18 +77,17 @@ function addProfile() {
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">The containers agents run in.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
<template v-if="runtime">
<SettingRow label="Image" for="cr-image" hint="The agent image tasks run in by default.">
<SettingRow label="Image" for="cr-image">
<Input id="cr-image" v-model="runtime.Image" class="font-mono" />
</SettingRow>
<SettingRow label="Pull policy" hint="If missing pulls only when the image is not present locally.">
<SettingRow label="Pull policy">
<SegmentedControl v-model="pullPolicy" label="Pull policy" :options="pullPolicies" />
</SettingRow>
<SettingRow label="Max concurrency" hint="Tasks and containers at once. Tasks in one repository still run one at a time. 0 means no limit.">
<SettingRow label="Max concurrency" hint="0 = no limit.">
<NumberField v-model="runtime.MaxConcurrency" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
@@ -97,18 +96,17 @@ function addProfile() {
</NumberFieldContent>
</NumberField>
</SettingRow>
<SettingRow label="Max uptime" for="cr-uptime" hint="A container is recycled after running this long.">
<SettingRow label="Max uptime" for="cr-uptime">
<DurationInput id="cr-uptime" v-model="runtime.MaxUptime" :units="['m', 'h']" />
</SettingRow>
<SettingRow label="Volume retention" for="cr-ttl" hint="Per-repository storage and the Git object cache are cleaned up after this long.">
<SettingRow label="Volume retention" for="cr-ttl">
<DurationInput id="cr-ttl" v-model="runtime.VolumeTTL" :units="['h']" />
</SettingRow>
<SettingRow label="Network" for="cr-network" hint="Docker network agents join. Empty uses the daemon's own network, then the default bridge.">
<SettingRow label="Network" for="cr-network" hint="Empty: auto-detect.">
<Input id="cr-network" v-model="runtime.Network" class="max-w-sm font-mono" />
</SettingRow>
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Profiles</h2>
<p class="mb-3 text-xs text-fg-subtle">Named environments a workflow picks with <span class="font-mono">profile:</span>.</p>
<section
v-for="(profile, name) in runtime.Profiles ?? {}"
:key="name"
@@ -119,10 +117,10 @@ function addProfile() {
<h3 class="flex-1 font-mono text-sm font-medium">{{ name }}</h3>
<Button variant="ghost" size="icon" :aria-label="`Remove profile ${name}`" @click="delete runtime.Profiles![name]"><Trash2 /></Button>
</header>
<SettingRow label="Image" :for="`prof-${name}-image`" hint="Empty uses the default image.">
<SettingRow label="Image" :for="`prof-${name}-image`" hint="Empty: default image.">
<Input :id="`prof-${name}-image`" v-model="profile.Image" class="font-mono" />
</SettingRow>
<SettingRow label="Tools" hint="MCP servers, repository scripts and skills allowed by name. Empty allows all.">
<SettingRow label="Tools" hint="Empty allows all.">
<TagsInput
:model-value="profile.Tools ?? []"
class="font-mono"
+1 -2
View File
@@ -104,7 +104,6 @@ async function restoreBefore(entry: AuditEntry): Promise<void> {
<template>
<div>
<PageHeader title="History" />
<p class="-mt-4 mb-6 text-sm text-fg-muted">Every settings change, newest first.</p>
<div class="mb-4 flex flex-wrap gap-2">
<Select v-model="section">
@@ -189,7 +188,7 @@ async function restoreBefore(entry: AuditEntry): Promise<void> {
</tr>
<tr v-if="!rows.length">
<td colspan="7" class="px-4 py-8 text-center text-sm text-fg-muted">
{{ entries.length ? "No changes match these filters." : "No changes recorded yet." }}
{{ entries.length ? "No matching changes." : "No changes recorded yet." }}
</td>
</tr>
</tbody>
+1 -1
View File
@@ -106,7 +106,7 @@ const args = computed({
Parallel tool calls
</label>
<span v-if="server.headers_configured" class="text-xs text-fg-subtle">
Request headers come from config.toml, matched by this name
Headers set in config.toml
</span>
</div>
</div>
+2 -3
View File
@@ -67,7 +67,6 @@ function rename(name: string | number) {
<PageHeader title="Personas">
<HistoryLink :kinds="resources.map((r) => r.kind)" />
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">The system prompts chat can run under. One is the default.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
@@ -117,10 +116,10 @@ function rename(name: string | number) {
><Trash2 data-icon="inline-start" /> Delete</Button
>
</header>
<SettingRow label="Name" for="persona-name" hint="How chat refers to it.">
<SettingRow label="Name" for="persona-name">
<Input id="persona-name" :model-value="current.name" class="max-w-sm font-mono" @update:model-value="rename" />
</SettingRow>
<SettingRow label="Default persona" hint="Used when a chat does not pick one. Exactly one is the default.">
<SettingRow label="Default persona">
<Switch
:model-value="isDefault"
:disabled="isDefault"
+4 -5
View File
@@ -33,21 +33,20 @@ const error = computed(() => store.stateFor(KIND).error);
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Directories Archie loads extensions from at startup.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
<template v-if="dirs">
<SettingRow label="Plugin directory" for="pl-plugins" hint="Daemon plugins. Empty loads none.">
<SettingRow label="Plugin directory" for="pl-plugins">
<Input id="pl-plugins" v-model="dirs.plugin_dir" class="max-w-md font-mono" />
</SettingRow>
<SettingRow label="Module directory" for="pl-modules" hint="Workflow modules. Empty loads none.">
<SettingRow label="Module directory" for="pl-modules">
<Input id="pl-modules" v-model="dirs.module_dir" class="max-w-md font-mono" />
</SettingRow>
<SettingRow label="Secret engine directory" for="pl-secrets" hint="Secret engine plugins. Empty uses the built-in engines only.">
<SettingRow label="Secret engine directory" for="pl-secrets" hint="Empty: built-in engines only.">
<Input id="pl-secrets" v-model="dirs.secret_engine_dir" class="max-w-md font-mono" />
</SettingRow>
<SettingRow label="Skills directory" for="pl-skills" hint="Shared SKILL.md skills. Empty uses the work directory.">
<SettingRow label="Skills directory" for="pl-skills" hint="Empty: work directory.">
<Input id="pl-skills" v-model="dirs.skills_dir" class="max-w-md font-mono" />
</SettingRow>
</template>
+1 -1
View File
@@ -25,7 +25,7 @@ const pending = computed(() =>
>
<p class="font-medium text-warn">Restart pending</p>
<p class="mt-0.5 text-fg-muted">
{{ pending.join(", ") }} saved; running processes pick them up when archied restarts.
{{ pending.join(", ") }}
</p>
</div>
</template>
+5 -7
View File
@@ -77,7 +77,6 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<Button v-if="jobs?.length" size="sm" @click="add"><Plus data-icon="inline-start" /> Add schedule</Button>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Work Archie starts on its own, on a timetable.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
@@ -89,7 +88,6 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
<CalendarClock class="size-5" aria-hidden="true" />
</span>
<p class="font-medium">No schedules yet</p>
<p class="mt-1 mb-4 text-sm text-fg-muted">A schedule starts a task on an interval, a cron line, or once.</p>
<Button size="sm" @click="add"><Plus data-icon="inline-start" /> Add schedule</Button>
</div>
@@ -104,16 +102,16 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
<span v-if="job.next_run" class="text-xs text-fg-subtle">Next run {{ new Date(job.next_run).toLocaleString() }}</span>
<Button variant="ghost" size="icon" aria-label="Delete schedule" @click="jobs.splice(i, 1)"><Trash2 /></Button>
</header>
<SettingRow label="ID" :for="`job-${i}-id`" hint="Unique. Runs are recorded against it.">
<SettingRow label="ID" :for="`job-${i}-id`">
<Input :id="`job-${i}-id`" v-model="job.id" class="max-w-sm font-mono" :aria-invalid="!job.id.trim() || undefined" />
</SettingRow>
<SettingRow label="Task title" :for="`job-${i}-title`" hint="The title of each task it starts. Empty uses the ID.">
<SettingRow label="Task title" :for="`job-${i}-title`" hint="Empty: the ID.">
<Input :id="`job-${i}-title`" v-model="job.detail" class="max-w-md" />
</SettingRow>
<SettingRow label="Instructions" :for="`job-${i}-text`" hint="What the task is asked to do.">
<SettingRow label="Instructions" :for="`job-${i}-text`">
<Textarea :id="`job-${i}-text`" v-model="job.payload.text" :rows="3" />
</SettingRow>
<SettingRow label="When" hint="An interval, a five-field cron line, or a single time.">
<SettingRow label="When">
<div class="flex flex-wrap items-center gap-3">
<SegmentedControl
:model-value="whenKind(job)"
@@ -139,7 +137,7 @@ const whenKind = (job: Job) => job.schedule.kind || "interval";
/>
</div>
</SettingRow>
<SettingRow label="Overlap" hint="Sequential waits for the previous run to finish.">
<SettingRow label="Overlap">
<SegmentedControl :model-value="job.pool ?? ''" label="Overlap" :options="pools" @update:model-value="(p: string) => (job.pool = p)" />
</SettingRow>
</section>
+5 -9
View File
@@ -67,9 +67,6 @@ const labelMissing = computed(
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">
How Archie finds issues to work on and marks their state on the forge.
</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
@@ -77,14 +74,13 @@ const labelMissing = computed(
<template v-if="policy">
<h2 class="mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Dispatch</h2>
<SettingRow label="Trigger" hint="Which open issues Archie picks up.">
<SettingRow label="Trigger">
<SegmentedControl v-model="policy.dispatch.trigger" label="Trigger" :options="triggers" />
</SettingRow>
<SettingRow
v-if="policy.dispatch.trigger !== 'assignee'"
label="Label"
for="sp-label"
hint="Issues carrying this label are picked up."
>
<Input
id="sp-label"
@@ -97,12 +93,12 @@ const labelMissing = computed(
Required: an empty label matches every open issue.
</p>
</SettingRow>
<SettingRow label="Ack reaction" for="sp-ack" hint="Reaction posted when an issue is picked up. Empty posts none.">
<SettingRow label="Ack reaction" for="sp-ack" hint="Empty: none.">
<Input id="sp-ack" v-model="policy.dispatch.ack_reaction" class="max-w-xs font-mono" />
</SettingRow>
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">State labels</h2>
<SettingRow label="Forge labels" hint="The label Archie sets on an issue in each state.">
<SettingRow label="Forge labels">
<table class="w-full max-w-lg text-sm">
<tbody>
<tr v-for="state in states" :key="state.key" class="border-b border-border last:border-0">
@@ -126,7 +122,7 @@ const labelMissing = computed(
</SettingRow>
<h2 class="mt-10 mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle uppercase">Retries and polling</h2>
<SettingRow label="Max retries" hint="Times a parked task is retried before it is marked dead.">
<SettingRow label="Max retries" hint="Then marked dead.">
<NumberField v-model="policy.max_retries" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
@@ -135,7 +131,7 @@ const labelMissing = computed(
</NumberFieldContent>
</NumberField>
</SettingRow>
<SettingRow label="Poll interval" for="sp-poll" hint="How often the forge is checked for new issues.">
<SettingRow label="Poll interval" for="sp-poll">
<DurationInput id="sp-poll" v-model="policy.poll_interval" :units="['s', 'm', 'h']" />
<p v-if="intervalInvalid" class="mt-1.5 text-xs text-danger">Must be longer than zero.</p>
</SettingRow>
+2 -2
View File
@@ -75,7 +75,7 @@ async function save() {
<SheetTitle>Review {{ count }} {{ count === 1 ? "change" : "changes" }}</SheetTitle>
<SheetDescription>
{{ sections.length }} {{ sections.length === 1 ? "section" : "sections" }},
each saved as its own version, in this order. A failure stops the rest.
saved in order; a failure stops the rest.
</SheetDescription>
</SheetHeader>
<div class="flex-1 space-y-3 overflow-y-auto px-4 pb-4">
@@ -83,7 +83,7 @@ async function save() {
v-if="needsRestart"
class="rounded-md border border-warn/40 bg-warn-soft px-3 py-2 text-sm text-warn"
>
Some of these apply after archied restarts.
Some changes apply after restart.
</p>
<section
v-for="section in sections"
+1 -2
View File
@@ -65,7 +65,6 @@ const lifecycle = {
<template>
<div>
<PageHeader title="Identities" />
<p class="-mt-4 mb-8 text-sm text-fg-muted">The actors Archie acts as and on behalf of. Changes apply at once.</p>
<p v-if="store.error" role="alert" class="mb-4 text-sm text-danger">{{ store.error }}</p>
@@ -129,7 +128,7 @@ const lifecycle = {
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Retire {{ retiring?.display_name }}?</AlertDialogTitle>
<AlertDialogDescription>A retired identity cannot act again, and this cannot be undone.</AlertDialogDescription>
<AlertDialogDescription>This cannot be undone.</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
+4 -6
View File
@@ -65,7 +65,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Which model plays each role, and the providers that serve them.</p>
<p v-for="e in [catalogError, ...errors].filter(Boolean)" :key="String(e)" class="mb-4 text-sm text-danger" role="alert">
{{ e }}
@@ -112,16 +111,15 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
/>
<Button variant="ghost" size="icon" class="ml-auto" :aria-label="`Remove provider ${name}`" @click="delete providers[name]"><Trash2 /></Button>
</header>
<SettingRow label="Class" :for="`prov-${name}-class`" hint="The provider API it speaks (openai, anthropic, gemini, ollama, ...).">
<SettingRow label="Class" :for="`prov-${name}-class`">
<Input :id="`prov-${name}-class`" v-model="provider.class" class="max-w-56 font-mono" />
</SettingRow>
<SettingRow label="Base URL" :for="`prov-${name}-url`" hint="Empty uses the provider's own endpoint.">
<SettingRow label="Base URL" :for="`prov-${name}-url`">
<Input :id="`prov-${name}-url`" v-model="provider.base_url" class="max-w-md font-mono" />
</SettingRow>
<SettingRow label="API key" hint="Where Archie reads the key from.">
<SettingRow label="API key">
<p v-if="provider.api_key_env && !provider.api_key_ref.key" class="mb-2 text-xs text-fg-muted">
Passed to agents as <span class="font-mono text-foreground">{{ provider.api_key_env }}</span>; no secret
reference is stored for it.
Key passed as <span class="font-mono text-foreground">{{ provider.api_key_env }}</span>.
</p>
<SecretRefField v-model="provider.api_key_ref" :id-prefix="`prov-${name}-key`" />
</SettingRow>
+12 -13
View File
@@ -79,7 +79,6 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Repositories Archie works in, and the checks each one must pass.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
@@ -94,10 +93,10 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
<h2 class="min-w-0 flex-1 truncate font-mono text-[15px] font-medium">{{ repo.owner }}/{{ repo.name }}</h2>
<Button variant="ghost" size="icon" :aria-label="`Remove ${repo.owner}/${repo.name}`" @click="repos.splice(i, 1)"><Trash2 /></Button>
</header>
<SettingRow label="Base branch" :for="`repo-${i}-base`" hint="The branch pull requests target.">
<SettingRow label="Base branch" :for="`repo-${i}-base`">
<Input :id="`repo-${i}-base`" v-model="repo.base" class="max-w-56 font-mono" />
</SettingRow>
<SettingRow label="Ecosystem" hint="Picks the default preflight check and test file pattern.">
<SettingRow label="Ecosystem">
<Select v-model="repo.ecosystem">
<SelectTrigger class="w-40 font-mono" :aria-label="`Ecosystem for ${repo.name}`"><SelectValue /></SelectTrigger>
<SelectContent>
@@ -105,16 +104,16 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
</SelectContent>
</Select>
</SettingRow>
<SettingRow label="Quality gate" hint="Run in order after each change. The last command is the test runner.">
<CommandListEditor v-model="repo.gate" label="Gate" empty-text="No gate: changes are not checked." />
<SettingRow label="Quality gate" hint="Last command runs the tests.">
<CommandListEditor v-model="repo.gate" label="Gate" empty-text="No gate." />
</SettingRow>
<SettingRow label="Preflight" hint="Checks run before work starts. Empty uses the ecosystem's default.">
<CommandListEditor v-model="repo.preflight" label="Preflight" empty-text="Using the ecosystem default." />
<SettingRow label="Preflight" hint="Empty: ecosystem default.">
<CommandListEditor v-model="repo.preflight" label="Preflight" empty-text="Ecosystem default." />
</SettingRow>
<SettingRow label="Test files" :for="`repo-${i}-glob`" hint="Pattern for test files. Empty uses the ecosystem's default.">
<SettingRow label="Test files" :for="`repo-${i}-glob`" hint="Empty: ecosystem default.">
<Input :id="`repo-${i}-glob`" v-model="repo.test_glob" class="max-w-56 font-mono" placeholder="*_test.go" />
</SettingRow>
<SettingRow label="Protected paths" hint="Path endings agents must never write, such as generated files.">
<SettingRow label="Protected paths" hint="Suffixes agents never write.">
<TagsInput
:model-value="protectOf(repo)"
class="font-mono"
@@ -128,7 +127,7 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
<TagsInputInput placeholder="_templ.go" />
</TagsInput>
</SettingRow>
<SettingRow label="Max retries" hint="Times a parked task is retried before it is marked dead. 0 uses the scheduling policy's value.">
<SettingRow label="Max retries" hint="0 = scheduling policy value.">
<NumberField v-model="repo.max_retries" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
@@ -137,15 +136,15 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
</NumberFieldContent>
</NumberField>
</SettingRow>
<SettingRow label="Adversarial review" hint="A fresh reviewer checks each change after the gate passes and before the PR opens.">
<SettingRow label="Adversarial review">
<Switch v-model="repo.review_enabled" :aria-label="`Adversarial review for ${repo.name}`" />
</SettingRow>
<SettingRow label="Persistent storage" hint="A Docker volume kept across tasks, for expensive build caches.">
<SettingRow label="Persistent storage" hint="Kept across tasks.">
<Switch v-model="repo.persistent_storage" :aria-label="`Persistent storage for ${repo.name}`" />
</SettingRow>
<SettingRow
label="Concurrent tasks"
hint="On: several tasks run in this repository at once. Only safe when their worktrees cannot collide."
hint="Only if worktrees cannot collide."
:tone="repo.allow_concurrent ? 'danger' : 'default'"
>
<Switch v-model="repo.allow_concurrent" :aria-label="`Concurrent tasks for ${repo.name}`" />
+4 -5
View File
@@ -51,20 +51,19 @@ const taskRuntime = seconds("max_task_runtime_seconds");
<PageHeader title="Task execution">
<HistoryLink :kinds="resources.map((r) => r.kind)" />
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">Limits every task runs under. Zero turns a limit off.</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
</p>
<template v-if="limits">
<SettingRow label="Task time limit" for="te-task" hint="A task still running after this long is parked.">
<SettingRow label="Task time limit" for="te-task" hint="Parked after this. 0 disables.">
<DurationInput id="te-task" v-model="taskRuntime" :units="['m', 'h']" />
</SettingRow>
<SettingRow label="Agent call time limit" for="te-call" hint="The longest one agent call inside a stage may run.">
<SettingRow label="Agent call time limit" for="te-call" hint="0 disables.">
<DurationInput id="te-call" v-model="callRuntime" :units="['s', 'm', 'h']" />
</SettingRow>
<SettingRow label="Model tool steps" hint="Model and tool round-trips one agent call may take.">
<SettingRow label="Model tool steps" hint="Per agent call. 0 disables.">
<NumberField v-model="limits.max_model_tool_steps" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
@@ -73,7 +72,7 @@ const taskRuntime = seconds("max_task_runtime_seconds");
</NumberFieldContent>
</NumberField>
</SettingRow>
<SettingRow label="Gate failures in a row" hint="Consecutive failed quality gates before the task is parked.">
<SettingRow label="Gate failures in a row" hint="In a row, then parked.">
<NumberField v-model="limits.max_consecutive_gate_failures" :min="0" class="w-32">
<NumberFieldContent>
<NumberFieldDecrement />
+9 -12
View File
@@ -65,9 +65,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
<HistoryLink :kinds="resources.map((r) => r.kind)" />
<StatusPill tone="warn">Applies after restart</StatusPill>
</PageHeader>
<p class="-mt-4 mb-8 text-sm text-fg-muted">
The tools agents can call, and the MCP servers that add more.
</p>
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
{{ catalogError || error }}
@@ -83,7 +80,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
@remove="tools.mcp_servers.splice(i, 1)"
/>
<p v-if="!tools.mcp_servers.length" class="text-sm text-fg-muted">
No MCP servers. Add one by the way it is reached.
No MCP servers.
</p>
<div class="flex flex-wrap gap-2">
<Button variant="outline" size="sm" @click="addServer('stdio')">
@@ -99,10 +96,10 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
</div>
<h2 :class="[eyebrow, 'mt-10']">MiniMax</h2>
<SettingRow label="Enabled" hint="Offers the MiniMax tools to agents.">
<SettingRow label="Enabled">
<Switch v-model="tools.minimax.enabled" aria-label="MiniMax enabled" />
</SettingRow>
<SettingRow label="API key" hint="Where Archie reads the key from.">
<SettingRow label="API key">
<SecretRefField
v-model="tools.minimax.api_key_ref"
id-prefix="minimax-key"
@@ -111,18 +108,18 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
</SettingRow>
<h2 :class="[eyebrow, 'mt-10']">Web fetch</h2>
<SettingRow label="Enabled" hint="Lets agents fetch a URL.">
<SettingRow label="Enabled">
<Switch v-model="webFetchOn" aria-label="Web fetch enabled" />
</SettingRow>
<SettingRow label="Max download" for="wf-bytes" hint="How much of a response body is read.">
<SettingRow label="Max download" for="wf-bytes">
<ByteSizeInput id="wf-bytes" v-model="tools.web_fetch.max_bytes" :disabled="!webFetchOn" />
</SettingRow>
<SettingRow label="Timeout" for="wf-timeout" hint="One fetch, redirects included.">
<SettingRow label="Timeout" for="wf-timeout">
<DurationInput id="wf-timeout" v-model="tools.web_fetch.timeout" :units="['s', 'm']" :disabled="!webFetchOn" />
</SettingRow>
<SettingRow
label="Allow private networks"
hint="On: agents can fetch loopback and LAN addresses, including this daemon's own dashboard and the Docker API."
hint="Reaches this host's dashboard and Docker API."
:tone="tools.web_fetch.allow_private_networks ? 'danger' : 'default'"
>
<Switch
@@ -133,7 +130,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
</SettingRow>
<h2 :class="[eyebrow, 'mt-10']">Tool output</h2>
<SettingRow label="Max result length" for="tp-chars" :hint="`About ${Math.round(tools.policy.max_result_chars / 4).toLocaleString()} tokens per tool call.`">
<SettingRow label="Max result length" for="tp-chars" :hint="`≈ ${Math.round(tools.policy.max_result_chars / 4).toLocaleString()} tokens`">
<InputGroup class="w-48">
<InputGroupInput id="tp-chars" v-model.number="tools.policy.max_result_chars" type="number" min="0" class="font-mono" />
<InputGroupAddon align="inline-end">
@@ -141,7 +138,7 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
</InputGroupAddon>
</InputGroup>
</SettingRow>
<SettingRow label="Spill directory" for="tp-spill" hint="Longer results are written here and the agent gets the path. Empty truncates instead.">
<SettingRow label="Spill directory" for="tp-spill" hint="Empty: truncate.">
<Input id="tp-spill" v-model="tools.policy.spill_dir" class="max-w-md font-mono" />
</SettingRow>
</template>
-2
View File
@@ -7,7 +7,6 @@ import { Button } from "@/components/ui/button";
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
@@ -31,7 +30,6 @@ function started(taskId: number) {
<DialogContent class="sm:max-w-[640px]">
<DialogHeader>
<DialogTitle>New task</DialogTitle>
<DialogDescription>Enters Archie's admitted task queue.</DialogDescription>
</DialogHeader>
<NewTaskForm v-if="open" @started="started" @cancel="open = false" />
</DialogContent>
+2 -4
View File
@@ -97,7 +97,6 @@ const rate = (merged = 0, total = 0) => (total ? merged / total : 0);
</Button>
<Button size="sm" @click="create"><Plus data-icon="inline-start" /> New workflow</Button>
</PageHeader>
<p class="-mt-4 mb-6 text-sm text-fg-muted">How work runs. Success is merged tasks over all runs.</p>
<p v-if="error" class="mb-4 text-sm text-danger" role="alert">Cannot reach archied: {{ error }}</p>
@@ -127,7 +126,6 @@ const rate = (merged = 0, total = 0) => (total ? merged / total : 0);
<section v-if="!selected" class="min-w-0 rounded-lg border border-border bg-card px-5 py-10 text-center" aria-label="Workflow">
<p class="font-medium">No workflows</p>
<p class="mt-1 text-sm text-fg-muted">Create one, or restore the shipped set.</p>
</section>
<section v-else class="min-w-0 rounded-lg border border-border bg-card px-5 py-4" aria-label="Workflow">
<header class="mb-2 flex flex-wrap items-center gap-2">
@@ -145,14 +143,14 @@ const rate = (merged = 0, total = 0) => (total ? merged / total : 0);
<WorkflowEditor v-model:selected="selected" />
</TabsContent>
<TabsContent value="performance" class="grid gap-4 pt-4">
<p v-if="!stages.length" class="text-sm text-fg-muted">No stage timings recorded for this workflow yet.</p>
<p v-if="!stages.length" class="text-sm text-fg-muted">No stage timings yet.</p>
<template v-else>
<SlowestStagesCard :stages="stages" />
<StageFailuresCard :stages="stages" />
</template>
</TabsContent>
<TabsContent value="runs" class="pt-4">
<p v-if="!workflowRuns.length" class="text-sm text-fg-muted">No tasks have run this workflow.</p>
<p v-if="!workflowRuns.length" class="text-sm text-fg-muted">No runs yet.</p>
<ul v-else class="divide-y divide-border">
<li v-for="t in workflowRuns" :key="t.id" class="flex items-center gap-3 py-2 text-sm">
<RouterLink :to="`/tasks/${t.id}`" class="min-w-0 flex-1 truncate hover:underline">{{ t.title || `Task ${t.id}` }}</RouterLink>