@alisio/server 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridges/interaction-bridge.d.ts +6 -1
- package/dist/bridges/interaction-bridge.js +3 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -1
- package/dist/web/assets/{AgentPicker-CgYzrrsh.js → AgentPicker-C5M3zhkN.js} +1 -1
- package/dist/web/assets/{AgentsModal-DQQp4Vj3.js → AgentsModal-Ch7YC2uD.js} +1 -1
- package/dist/web/assets/{ArtifactPanel-BlquuMsN.js → ArtifactPanel-DMOcpaY-.js} +3 -3
- package/dist/web/assets/{BtwPanel-C06cCwXF.js → BtwPanel-BR7xe6jg.js} +1 -1
- package/dist/web/assets/{ChangelogDialog-Cv0qoFca.js → ChangelogDialog-B6MU9I3m.js} +1 -1
- package/dist/web/assets/{CopyButton-B3PSPdbl.js → CopyButton-CdjQWDdP.js} +1 -1
- package/dist/web/assets/{GoalBar-DBE7KAva.js → GoalBar-BOrqFnDZ.js} +1 -1
- package/dist/web/assets/{MemoryTab-CV92e7zF.js → MemoryTab-BwTC5AEV.js} +1 -1
- package/dist/web/assets/{PermissionsMenu-3Sh9Bg_o.js → PermissionsMenu-5uLdd4-D.js} +1 -1
- package/dist/web/assets/{PlanReviewPanel-DKwsj33w.js → PlanReviewPanel-B1vLznqN.js} +1 -1
- package/dist/web/assets/{PlanViewer-lPO-NnSI.js → PlanViewer-B1dV2xaQ.js} +1 -1
- package/dist/web/assets/SettingsModal-DlSMRUrr.js +1 -0
- package/dist/web/assets/{SpreadsheetPanel-C3BQhxhv.js → SpreadsheetPanel-R2T5eZPf.js} +1 -1
- package/dist/web/assets/{TasksTab-DRXDn0fv.js → TasksTab-Dq4vHSNq.js} +1 -1
- package/dist/web/assets/{TrajectoryTab-DkhyGR15.js → TrajectoryTab-Drd3pkz-.js} +1 -1
- package/dist/web/assets/{agents.module-YUJKpT3J.js → agents.module-CY4BAyF6.js} +1 -1
- package/dist/web/assets/{app-D6BT6vS-.js → app-BDtuK3C1.js} +3 -3
- package/dist/web/assets/{es-Bz5daKQI.js → es-CBJKqUo2.js} +1 -1
- package/dist/web/assets/{goal-BaR-xr88.js → goal-BtlSAOLg.js} +1 -1
- package/dist/web/assets/{i18n-UlAtkmCh.js → i18n-BuAQCQ6_.js} +2 -2
- package/dist/web/assets/{icons-BED7nKDs.js → icons-BYOa5Fwi.js} +1 -1
- package/dist/web/assets/{index-6Mwi6jsI.js → index-CdtQoFcj.js} +5 -5
- package/dist/web/assets/{jsxRuntime-BPMqVzHG.js → jsxRuntime-DsrurnQE.js} +1 -1
- package/dist/web/assets/{panel-gdIaUKxh.js → panel-B0xr087v.js} +1 -1
- package/dist/web/assets/{shared-BLXABM7S.js → shared-D9w7tADb.js} +1 -1
- package/dist/web/assets/{strings-qELPogvu.js → strings-DG5mwXIk.js} +1 -1
- package/dist/web/assets/{tasks-bt4HCPLT.js → tasks-C_oaY2-i.js} +1 -1
- package/dist/web/assets/{view-DT0FGd26.js → view-0n1a7-uY.js} +1 -1
- package/dist/web/assets/{view-Bfc2kNBy.js → view-6JqOEUNA.js} +1 -1
- package/dist/web/assets/{view-DlDHrSuL.js → view-B6etPTDd.js} +1 -1
- package/dist/web/assets/{view-DfL_xTXC.js → view-BYQQpVpY.js} +1 -1
- package/dist/web/assets/{view-CqbEmEgS.js → view-CWA9DOsm.js} +1 -1
- package/dist/web/assets/view-Cb9e2tfo.js +1 -0
- package/dist/web/assets/{view-rB_-ym6G.js → view-DD8ytU4W.js} +1 -1
- package/dist/web/assets/{view-Btnrsoez.js → view-k486JCDH.js} +1 -1
- package/dist/web/assets/{view-DzDdFmEy.js → view-yn3iFUpc.js} +1 -1
- package/dist/web/index.html +7 -7
- package/package.json +4 -4
- package/dist/web/assets/SettingsModal-BeXY_Zhe.js +0 -1
- package/dist/web/assets/view-Dl6IXP2u.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t}from"./i18n-
|
|
1
|
+
import{_ as e,a as t}from"./i18n-BuAQCQ6_.js";import{t as n}from"./jsxRuntime-DsrurnQE.js";import{t as r}from"./CopyButton-CdjQWDdP.js";import{t as i}from"./purify.es--06brOip.js";var a=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},o=/([A-Z])/g,s=e=>e.replace(o,`-$1`).toLowerCase(),c={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},l=/[&><"']/g,u=e=>String(e).replace(l,e=>c[e]),d=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?d(e.body[0]):e:e.type===`font`?d(e.body):e,f=new Set([`mathord`,`textord`,`atom`]),p=e=>f.has(d(e).type),m=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},h={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function g(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function _(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:g(Array.isArray(e.type)?e.type[0]:e.type)}function v(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?_(r):a?a(i):i}var y=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(h)){var n=h[t];n&&v(this,t,e,n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r==`function`&&(r=r(e,t,n)),r&&r!==`ignore`){if(r===!0||r===`error`)throw new a(`LaTeX-incompatible input and strict mode is set to 'error': `+(t+` [`+e+`]`),n);r===`warn`?typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)):typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r==`function`)try{r=r(e,t,n)}catch{r=`error`}return!r||r===`ignore`?!1:r===!0||r===`error`?!0:r===`warn`?(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(t+` [`+e+`]`)),!1):(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to `+(`unrecognized '`+r+`': `+t+` [`+e+`]`)),!1)}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=m(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},b=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ne[re[this.id]]}sub(){return ne[ie[this.id]]}fracNum(){return ne[ae[this.id]]}fracDen(){return ne[oe[this.id]]}cramp(){return ne[se[this.id]]}text(){return ne[ce[this.id]]}isTight(){return this.size>=2}},x=0,S=1,C=2,w=3,ee=4,T=5,te=6,E=7,ne=[new b(x,0,!1),new b(S,0,!0),new b(C,1,!1),new b(w,1,!0),new b(ee,2,!1),new b(T,2,!0),new b(te,3,!1),new b(E,3,!0)],re=[ee,T,ee,T,te,E,te,E],ie=[T,T,T,T,E,E,E,E],ae=[C,w,ee,T,te,E,te,E],oe=[w,w,T,T,E,E,E,E],se=[S,S,w,w,T,T,E,E],ce=[x,S,C,w,C,w,C,w],D={DISPLAY:ne[x],TEXT:ne[C],SCRIPT:ne[ee],SCRIPTSCRIPT:ne[te]},le=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function ue(e){for(var t=0;t<le.length;t++)for(var n=le[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var de=[];le.forEach(e=>e.blocks.forEach(e=>de.push(...e)));function fe(e){for(var t=0;t<de.length;t+=2)if(e>=de[t]&&e<=de[t+1])return!0;return!1}var pe=e=>e+` `+e,me=80,he=function(e,t){return`M95,`+(622+e+t)+`
|
|
2
2
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
3
3
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
4
4
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as e,_ as t,a as n,y as r}from"./i18n-
|
|
1
|
+
import{T as e,_ as t,a as n,y as r}from"./i18n-BuAQCQ6_.js";import{t as i}from"./jsxRuntime-DsrurnQE.js";import{t as a}from"./CopyButton-CdjQWDdP.js";var o=/\x1b\[([0-9;:?<=>]*)([ -/]*)([@-~])|\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)?|\x1b[@-_]?/g,s=[0,95,135,175,215,255];function c(e){if(!Number.isInteger(e)||e<0||e>255)return;if(e<16)return e;if(e>=232){let t=8+(e-232)*10;return`rgb(${t},${t},${t})`}let t=e-16;return`rgb(${s[Math.floor(t/36)]},${s[Math.floor(t/6)%6]},${s[t%6]})`}function l(e,t){let n=t===``?[0]:t.split(/[;:]/).map(e=>e===``?0:Number(e)),r={...e};for(let e=0;e<n.length;e++){let t=n[e];if(t===0)r={};else if(t===1)r.bold=!0;else if(t===2)r.dim=!0;else if(t===3)r.italic=!0;else if(t===4)r.underline=!0;else if(t===7)r.inverse=!0;else if(t===22)delete r.bold,delete r.dim;else if(t===23)delete r.italic;else if(t===24)delete r.underline;else if(t===27)delete r.inverse;else if(t>=30&&t<=37)r.fg=t-30;else if(t>=90&&t<=97)r.fg=t-90+8;else if(t===39)delete r.fg;else if(t>=40&&t<=47)r.bg=t-40;else if(t>=100&&t<=107)r.bg=t-100+8;else if(t===49)delete r.bg;else if(t===38||t===48){let i=t===38?`fg`:`bg`,a;if(n[e+1]===5)a=c(n[e+2]),e+=2;else if(n[e+1]===2){let[t,r,i]=[n[e+2],n[e+3],n[e+4]].map(e=>Math.max(0,Math.min(255,Number(e??0))));a=`rgb(${t},${r},${i})`,e+=4}a!==void 0&&(r[i]=a)}}return r}function u(e){let t=[],n={},r=0,i=e=>{if(!e)return;let r=t.at(-1);r&&f(r,n)?r.text+=e:t.push({text:e,...n})};for(let t of e.matchAll(o))i(e.slice(r,t.index)),r=(t.index??0)+t[0].length,t[3]===`m`&&!t[2]&&!t[1]?.startsWith(`?`)&&(n=l(n,t[1]??``));return i(e.slice(r)),t}var d=[`fg`,`bg`,`bold`,`dim`,`italic`,`underline`,`inverse`],f=(e,t)=>d.every(n=>e[n]===t[n]);function p(e){return e.includes(`\r`)?e.replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(e=>e.split(`\r`).findLast(e=>e!==``)??``).join(`
|
|
4
4
|
`):e}function m(e,t){let n=e.split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{T as e,_ as t,a as n,y as r}from"./i18n-
|
|
1
|
+
import{T as e,_ as t,a as n,y as r}from"./i18n-BuAQCQ6_.js";import{Kt as i}from"./app-BDtuK3C1.js";import{t as a}from"./jsxRuntime-DsrurnQE.js";import{t as o}from"./CopyButton-CdjQWDdP.js";var s={block:`_block_jmwvo_1`,bar:`_bar_jmwvo_10`,fileHead:`_fileHead_jmwvo_11`,title:`_title_jmwvo_20`,actions:`_actions_jmwvo_24`,action:`_action_jmwvo_24`,nav:`_nav_jmwvo_45`,file:`_file_jmwvo_11`,path:`_path_jmwvo_63`,status:`_status_jmwvo_77`,stat:`_stat_jmwvo_77`,plus:`_plus_jmwvo_101`,minus:`_minus_jmwvo_105`,scroll:`_scroll_jmwvo_109`,table:`_table_jmwvo_114`,no:`_no_jmwvo_126`,sign:`_sign_jmwvo_134`,code:`_code_jmwvo_140`,add:`_add_jmwvo_145`,del:`_del_jmwvo_149`,note:`_note_jmwvo_153`,empty:`_empty_jmwvo_160`,hunkRow:`_hunkRow_jmwvo_164`,hunkToggle:`_hunkToggle_jmwvo_169`,plainText:`_plainText_jmwvo_180`},c=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)$/,l=e=>e.replace(/^[ab]\//,``).replace(/\t.*$/,``);function u(e,t=``){let n=[],r,i,a=0,o=0,s=0,u=0,d,f=()=>{let e={path:t,status:`modified`,hunks:[],added:0,removed:0};return n.push(e),i=void 0,e};for(let t of e.replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`)){if(i&&r&&(s>0||u>0)){let e=t[0],n=t.slice(1);if(e===`+`){i.lines.push({type:`add`,text:n,newNo:o++}),r.added++,u--;continue}if(e===`-`){i.lines.push({type:`del`,text:n,oldNo:a++}),r.removed++,s--;continue}if(e===` `||t===``){i.lines.push({type:`ctx`,text:n,oldNo:a++,newNo:o++}),s--,u--;continue}if(e===`\\`){i.lines.push({type:`note`,text:t.slice(2)});continue}s=u=0}if(i&&t.startsWith(`\\`)){i.lines.push({type:`note`,text:t.slice(2)});continue}if(t.startsWith(`diff --git `)){r=f();let e=/ b\/(.+)$/.exec(t);e?.[1]&&(r.path=e[1]),d=void 0;continue}if(t.startsWith(`--- `)){(!r||r.hunks.length)&&(r=f()),d=t.slice(4).trim();continue}if(t.startsWith(`+++ `)&&r&&d!==void 0){let e=t.slice(4).trim();d===`/dev/null`&&(r.status=`added`),e===`/dev/null`?(r.status=`deleted`,r.path=l(d)):(r.path=l(e),d!==`/dev/null`&&l(d)!==r.path&&(r.status=`renamed`)),d=void 0;continue}let e=c.exec(t);if(e){r??=f(),a=Number(e[1]),s=e[2]===void 0?1:Number(e[2]),o=Number(e[3]),u=e[4]===void 0?1:Number(e[4]),i={header:t,lines:[]},r.hunks.push(i);continue}i=void 0,r&&/^(new|deleted) file mode/.test(t)?r.status=t.startsWith(`new`)?`added`:`deleted`:r&&/^Binary files .* differ$/.test(t)&&(r.binary=!0)}return n}function d(e,t,n){let r=e.length,i=t.length;if(!r)return t.map(()=>2);if(!i)return e.map(()=>1);let a=r+i,o=a+1,s=new Int32Array(2*a+3),c=[];for(let l=0;l<=Math.min(a,n);l++){c.push(s.slice(o-l-1,o+l+2));for(let n=-l;n<=l;n+=2){let a=n===-l||n!==l&&s[o+n-1]<s[o+n+1]?s[o+n+1]:s[o+n-1]+1,u=a-n;for(;a<r&&u<i&&e[a]===t[u];)a++,u++;if(s[o+n]=a,a>=r&&u>=i)return f(c,r,i)}}}function f(e,t,n){let r=[],i=t,a=n;for(let t=e.length-1;t>0;t--){let n=e[t],o=e=>n[e+t+1],s=i-a,c=s===-t||s!==t&&o(s-1)<o(s+1)?s+1:s-1,l=o(c),u=l-c;for(;i>l&&a>u;)r.push(0),i--,a--;r.push(i===l?2:1),i=l,a=u}for(;i>0&&a>0;)r.push(0),i--,a--;return r.reverse()}function p(e,t,n=2e3){let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];)r++;let i=e.length,a=t.length;for(;i>r&&a>r&&e[i-1]===t[a-1];)i--,a--;let o=e.slice(r,i),s=t.slice(r,a),c=d(o,s,n)??[...o.map(()=>1),...s.map(()=>2)];return[...Array(r).fill(0),...c,...Array(e.length-i).fill(0)]}var m=e=>{if(!e)return[];let t=e.replace(/\r\n/g,`
|
|
4
4
|
`).split(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./jsxRuntime-DsrurnQE.js";import{s as t}from"./index-CdtQoFcj.js";function n({block:n}){return n.kind===`artifact`?e(t,{artifact:n.artifact,compact:!0}):null}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,y as t}from"./i18n-
|
|
1
|
+
import{a as e,y as t}from"./i18n-BuAQCQ6_.js";import{t as n}from"./jsxRuntime-DsrurnQE.js";function r(e){let t={passed:0,failed:0,skipped:0,todo:0,total:0};for(let n of e.suites)for(let e of n.cases)t[e.status]++,t.total++;return t}function i(e){return e.map(e=>({...e,cases:e.cases.filter(e=>e.status===`failed`)})).filter(e=>e.cases.length>0)}var a={block:`_block_17dx6_1`,header:`_header_17dx6_9`,framework:`_framework_17dx6_19`,passed:`_passed_17dx6_23`,mark:`_mark_17dx6_24`,failed:`_failed_17dx6_28`,name:`_name_17dx6_30`,filter:`_filter_17dx6_34`,body:`_body_17dx6_49`,suiteName:`_suiteName_17dx6_55`,cases:`_cases_17dx6_60`,file:`_file_17dx6_79`,time:`_time_17dx6_80`,error:`_error_17dx6_90`},o={passed:`✓`,failed:`✗`,skipped:`○`,todo:`○`};function s({block:s}){let c=r(s),[l,u]=t(!1),d=l?i(s.suites):s.suites;return n(`figure`,{class:a.block,children:[n(`figcaption`,{class:a.header,children:[s.framework?n(`span`,{class:a.framework,children:s.framework}):null,n(`span`,{class:a.passed,children:e(`tests.passed`,{count:c.passed})}),n(`span`,{class:a.failed,children:e(`tests.failed`,{count:c.failed})}),n(`span`,{children:e(`tests.skipped`,{count:c.skipped+c.todo})}),s.durationMs===void 0?null:n(`span`,{children:e(`tool.duration`,{ms:s.durationMs})}),c.failed?n(`button`,{type:`button`,class:a.filter,"aria-pressed":l,onClick:()=>u(!l),children:e(`tests.onlyFailed`)}):null]}),n(`div`,{class:a.body,children:d.map((t,r)=>n(`section`,{class:a.suite,children:[n(`p`,{class:a.suiteName,children:[t.name,t.file?n(`span`,{class:a.file,children:t.file}):null]}),n(`ul`,{class:a.cases,children:t.cases.map((r,i)=>n(`li`,{"data-status":r.status,children:[n(`span`,{class:a.mark,"aria-label":e(`tests.status.${r.status}`),children:o[r.status]}),n(`span`,{class:a.name,children:r.name}),t.file&&r.line!==void 0?n(`span`,{class:a.file,children:[t.file,`:`,r.line]}):null,r.durationMs===void 0?null:n(`span`,{class:a.time,children:[r.durationMs,` ms`]}),r.error?n(`details`,{class:a.error,open:r.status===`failed`&&t.cases.length<=20,children:[n(`summary`,{children:e(`tests.error`)}),n(`pre`,{children:r.error})]}):null]},i))})]},r))})]})}export{s as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/engine--BEjnAq8.js","assets/preload-helper-B3nfOi5I.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-B6xuSHsQ.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-DU6HZSFF-CMLEkaIG.js","assets/purify.es--06brOip.js","assets/chunk-75Z2AOVW-Chht6Xhu.js","assets/dist-v5Q1xZ2K.js","assets/chunk-PWAF6VOD-yOR4r5Wg.js","assets/chunk-GMAD6QVW-Df-qsmXX.js","assets/chunk-P2QGCYS3-T_PO2L1c.js","assets/chunk-4HAMMTFA-390Mn_il.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-GVQU2GXP-7PgapOOA.js","assets/chunk-OSK3NFVY-B1GP22y4.js","assets/line-5g6gTA1Q.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/graphlib-DS17s2tU.js","assets/chunk-L3NEJ4N5-3E0ssqUP.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{T as e,a as t,b as n,g as r,y as i}from"./i18n-
|
|
2
|
+
import{T as e,a as t,b as n,g as r,y as i}from"./i18n-BuAQCQ6_.js";import{t as a}from"./preload-helper-B3nfOi5I.js";import{t as o}from"./jsxRuntime-DsrurnQE.js";import{t as s}from"./icons-BYOa5Fwi.js";import{t as c}from"./CopyButton-CdjQWDdP.js";import{t as l}from"./visible-DLChI0F-.js";import{f as u}from"./index-CdtQoFcj.js";var d={block:`_block_1smqo_1`,header:`_header_1smqo_9`,label:`_label_1smqo_21`,actions:`_actions_1smqo_28`,action:`_action_1smqo_28`,viewport:`_viewport_1smqo_58`,canvas:`_canvas_1smqo_64`,source:`_source_1smqo_75`,error:`_error_1smqo_87`,overlay:`_overlay_1smqo_96`,overlayBody:`_overlayBody_1smqo_106`,overlayClose:`_overlayClose_1smqo_115`},f=[.5,.75,1,1.25,1.5,2,3];function p(e,t){let n=URL.createObjectURL(new Blob([e],{type:`image/svg+xml`})),r=document.createElement(`a`);r.href=n,r.download=`${t}.svg`,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function m(e){return o(`div`,{class:d.canvas,style:{width:`${e.zoom*100}%`},dangerouslySetInnerHTML:{__html:e.svg}})}function h(h){let g=h.block.kind===`mermaid`?h.block.source:``,_=h.block.kind===`mermaid`?h.block.title:void 0,v=r(null),[y,b]=i(),[x,S]=i(!1),[C,w]=i(2),[T,E]=i(!1),D=r(null),O=u.value;n(()=>{if(b(void 0),h.live||!v.current||!g.trim())return;let e=!1,t=l(v.current,()=>{a(()=>import(`./engine--BEjnAq8.js`).then(e=>e.render(g,O,h.themed)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20])).catch(e=>({error:e instanceof Error?e.message:String(e)})).then(t=>{e||b(t)})});return()=>{e=!0,t()}},[g,O,h.live,h.themed]),n(()=>{if(!T)return;D.current?.focus();let e=e=>{e.key===`Escape`&&E(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[T]);let k=y&&`svg`in y?y.svg:void 0,A=y&&`error`in y?y.error:void 0,j=f[C]??1,M=o(`pre`,{class:d.source,children:g});return o(`figure`,{class:d.block,ref:v,children:[o(`figcaption`,{class:d.header,children:[o(`span`,{class:d.label,children:_??`mermaid`}),o(`span`,{class:d.actions,children:[k?o(e,{children:[o(`button`,{type:`button`,class:d.action,"aria-pressed":x,onClick:()=>S(!x),children:t(x?`mermaid.diagram`:`mermaid.source`)}),o(`button`,{type:`button`,class:d.action,"aria-label":t(`mermaid.zoomOut`),title:t(`mermaid.zoomOut`),disabled:C===0,onClick:()=>w(Math.max(0,C-1)),children:`−`}),o(`button`,{type:`button`,class:d.action,title:t(`mermaid.zoomReset`),onClick:()=>w(2),children:[Math.round(j*100),`%`]}),o(`button`,{type:`button`,class:d.action,"aria-label":t(`mermaid.zoomIn`),title:t(`mermaid.zoomIn`),disabled:C===f.length-1,onClick:()=>w(Math.min(f.length-1,C+1)),children:`+`}),o(`button`,{type:`button`,class:d.action,onClick:()=>p(k,_?.replace(/[^\w-]+/g,`-`)||`diagram`),children:t(`mermaid.export`)}),o(`button`,{type:`button`,class:d.action,"aria-label":t(`mermaid.fullscreen`),title:t(`mermaid.fullscreen`),onClick:()=>E(!0),children:o(s,{name:`expand`,size:14})})]}):null,o(c,{text:()=>g,class:d.action,showText:!0})]})]}),A?o(`div`,{role:`note`,children:[o(`p`,{class:d.error,children:t(`mermaid.error`,{message:A})}),M]}):k&&!x?o(`div`,{class:d.viewport,tabIndex:0,children:o(m,{svg:k,zoom:j})}):M,T&&k?o(`div`,{class:d.overlay,role:`dialog`,"aria-modal":`true`,"aria-label":_??t(`mermaid.diagram`),onMouseDown:e=>{e.target===e.currentTarget&&E(!1)},children:[o(`button`,{type:`button`,ref:D,class:`icon-btn ${d.overlayClose}`,"aria-label":t(`common.close`),onClick:()=>E(!1),children:o(s,{name:`x`,size:18})}),o(`div`,{class:d.overlayBody,children:o(m,{svg:k,zoom:1})})]}):null]})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsxRuntime-
|
|
1
|
+
import{t as e}from"./jsxRuntime-DsrurnQE.js";import{_ as t,x as n}from"./index-CdtQoFcj.js";function r({block:t}){return e(`div`,{class:n.scroll,children:[t.caption?e(`p`,{class:n.caption,children:t.caption}):null,e(`table`,{class:n.table,children:[e(`thead`,{children:e(`tr`,{children:t.columns.map(t=>e(`th`,{scope:`col`,children:t},t))})}),e(`tbody`,{children:t.rows.map((t,n)=>e(`tr`,{children:t.map((t,n)=>e(`td`,{children:t},n))},n))})]})]})}function i({block:t}){return e(`div`,{class:n.scroll,children:[t.caption?e(`p`,{class:n.caption,children:t.caption}):null,e(`table`,{class:n.table,children:e(`tbody`,{children:t.entries.map(([t,n],r)=>e(`tr`,{children:[e(`th`,{scope:`row`,children:t}),e(`td`,{children:n})]},r))})})]})}function a({nodes:t}){return e(`ul`,{class:n.tree,children:t.map((t,r)=>e(`li`,{children:[t.label,t.meta?e(`span`,{class:n.meta,children:t.meta}):null,t.children?.length?e(a,{nodes:t.children}):null]},r))})}var o={table:r,"key-value":i,tree:({block:t})=>e(a,{nodes:t.nodes}),markdown:({block:n})=>e(t,{text:n.text})};export{o as views};
|
package/dist/web/index.html
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
|
9
9
|
<link rel="apple-touch-icon" href="/favicon.png" />
|
|
10
10
|
<script>(function(){var p="dark";try{p=localStorage.getItem("alisio.theme")||"dark"}catch(e){}var d=p==="system"?(matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"):p==="light"?"light":"dark";document.documentElement.setAttribute("data-theme",d)})()</script>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-CdtQoFcj.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-B3nfOi5I.js">
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/i18n-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/app-
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/jsxRuntime-
|
|
16
|
-
<link rel="modulepreload" crossorigin href="/assets/icons-
|
|
17
|
-
<link rel="modulepreload" crossorigin href="/assets/panel-
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/i18n-BuAQCQ6_.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/app-BDtuK3C1.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/jsxRuntime-DsrurnQE.js">
|
|
16
|
+
<link rel="modulepreload" crossorigin href="/assets/icons-BYOa5Fwi.js">
|
|
17
|
+
<link rel="modulepreload" crossorigin href="/assets/panel-B0xr087v.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/assets/clipboard-hOiC7lD8.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/CopyButton-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/CopyButton-CdjQWDdP.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/visible-DLChI0F-.js">
|
|
21
21
|
<link rel="stylesheet" crossorigin href="/assets/index-BTLOG0A7.css">
|
|
22
22
|
</head>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alisio/server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Local HTTP + SSE server behind `alisio serve`: multi-workspace, multi-session web access to the Alisio agent core with a launch-token cookie, strict Host/Origin checks and fail-closed approvals. node:http only; runs on Node >=22.16 and Bun.",
|
|
5
5
|
"author": "Gustavo Gutiérrez",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"node": ">=22.16"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@alisio/core": "0.2.
|
|
43
|
-
"@alisio/sdk": "0.2.
|
|
42
|
+
"@alisio/core": "0.2.1",
|
|
43
|
+
"@alisio/sdk": "0.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@alisio/web": "0.2.
|
|
46
|
+
"@alisio/web": "0.2.1"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as e,a as t,b as n,g as r,i,r as a,t as o,y as s}from"./i18n-UlAtkmCh.js";import{G as c,O as l,d as u,f as d,lt as f,ut as p}from"./app-D6BT6vS-.js";import{t as m}from"./jsxRuntime-BPMqVzHG.js";import{t as h}from"./icons-BED7nKDs.js";import{t as g}from"./CopyButton-B3PSPdbl.js";import{d as _,h as v,m as y,p as b}from"./index-6Mwi6jsI.js";import{t as x}from"./settings.module-DoTtRfeo.js";import{a as S,c as C,i as w,l as T,n as E,o as D,r as O,s as k,t as A}from"./shared-BLXABM7S.js";var j=`https://github.com/GustavoGutierrez/alisio`;function M(){return m(`section`,{class:x.about,children:[m(E,{title:t(`settings.about`)}),m(`img`,{class:x.aboutLogo,src:`/alisio-wordmark.png`,alt:`Alisio`,width:320,height:150}),m(`p`,{class:x.aboutVersion,children:d.value?t(`about.version`,{version:d.value}):t(`about.versionUnknown`)}),m(`p`,{class:x.aboutDescription,children:t(`about.description`)}),m(`p`,{class:x.aboutAttribution,children:`Gustavo Gutiérrez · Bogotá, Colombia`}),m(`a`,{class:x.aboutLink,href:j,target:`_blank`,rel:`noopener noreferrer`,"aria-label":t(`about.repositoryLabel`),children:[m(h,{name:`github`,size:19}),t(`about.repository`)]})]})}function N(){let n=C(),[r,i]=s(),a=T(n?()=>u.agents(n.id):void 0,[n?.id],[`agents`,`plugins`]),o=l.value,d=o?.agent??a.data?.find(e=>e.default)?.id;return m(e,{children:[m(E,{title:t(`settings.agents`),body:t(`agents.lead`),workspace:n?.path}),m(S,{loading:a.loading&&!a.data,error:a.error,empty:n?void 0:`settings.noWorkspace`}),m(`ul`,{class:x.rows,children:(a.data??[]).map(n=>m(`li`,{class:x.row,"data-current":n.id===d,children:[m(`div`,{class:x.rowMain,children:[m(`div`,{class:x.rowTitle,children:[m(`span`,{class:x.cardName,children:n.name}),m(O,{tone:`off`,children:t(`agents.source.${n.source}`)}),n.readOnly?m(O,{tone:`warn`,children:t(`agents.readOnly`)}):null,n.default?m(O,{tone:`ok`,children:t(`agents.default`)}):null]}),m(`p`,{class:x.cardText,children:n.description}),n.model?m(`p`,{class:x.meta,children:t(`agents.model`,{model:n.model})}):null,n.instructions?m(e,{children:[m(`button`,{type:`button`,class:x.linkButton,"aria-expanded":r===n.id,onClick:()=>i(r===n.id?void 0:n.id),children:[m(h,{name:r===n.id?`chevronDown`:`chevronRight`,size:14}),t(`agents.instructions`)]}),r===n.id?m(`pre`,{class:x.instructions,children:n.instructions}):null]}):null]}),m(`div`,{class:x.rowActions,children:o&&!o.parentId?n.id===d?m(`span`,{class:x.meta,children:t(`agents.inUse`)}):m(`button`,{type:`button`,class:x.secondary,onClick:()=>void c({agent:n.id}),children:t(`agents.use`)}):null})]},n.id))})]})}var P={min:1,max:900},F={min:0,max:3650};function I(e,t,n){let r=e.trim();if(!/^\d+$/.test(r))return;let i=Number(r);return i>=t&&i<=n?i:void 0}function L(e){let t=I(e,P.min,P.max);return t===void 0?void 0:t*1e3}var ee=e=>Math.round(e/1e3);function R(e,t){return e.find(e=>e.key===t)?.value}function z(e){return e.join(`, `)}function B(e){let[t,n]=s(),[r,i]=s(!1),a=async()=>{if(t===void 0)return;let r=e.parse?e.parse(t):I(t,e.min,e.max);if(n(void 0),r!==void 0){i(!0);try{await e.onSave(r)}catch{}finally{i(!1)}}};return m(`li`,{class:x.settingRow,children:[m(`label`,{class:x.settingLabel,for:e.id,children:[m(`span`,{children:e.label}),m(`code`,{class:x.settingKey,children:e.keyName})]}),m(`input`,{id:e.id,class:x.input,type:`number`,inputMode:`numeric`,min:e.min,max:e.max,step:1,disabled:e.disabled||r,value:t??String(e.value),onInput:e=>n(e.target.value),onBlur:()=>void a(),onKeyDown:e=>{e.key===`Enter`&&a(),e.key===`Escape`&&t!==void 0&&(e.stopPropagation(),n(void 0))}})]})}function V(n){let{status:r}=n,{python:i,oci:a}=r;return m(e,{children:[m(`h4`,{class:x.sectionTitle,children:t(`settings.analysis.status`)}),m(`dl`,{class:x.facts,"data-testid":`analysis-status`,children:[m(`dt`,{children:t(`settings.analysis.mode`)}),m(`dd`,{children:m(O,{tone:r.mode===`oci`?`ok`:`warn`,children:t(r.mode===`oci`?`settings.analysis.mode.oci`:`settings.analysis.mode.managed`)})}),m(`dt`,{children:t(`settings.analysis.runtime`)}),m(`dd`,{children:i.found?t(`settings.analysis.detected`,{version:i.version,path:i.path}):m(`span`,{children:t(`settings.analysis.notFound`)})}),i.found&&i.runtimeVersion?m(e,{children:[m(`dt`,{children:t(`settings.analysis.runtimeVersion`)}),m(`dd`,{children:m(`code`,{children:i.runtimeVersion})})]}):null,m(`dt`,{children:t(`settings.analysis.extras`)}),m(`dd`,{children:i.found&&i.extras.length?t(`settings.analysis.extras.installed`,{extras:z(i.extras)}):t(`settings.analysis.extras.none`)}),m(`dt`,{children:t(`settings.analysis.oci`)}),m(`dd`,{children:r.mode===`managed`&&!a.image&&a.available===void 0?t(`settings.analysis.oci.unused`):m(e,{children:[m(`span`,{children:[a.engine,` ·`,` `,t(`settings.analysis.oci.limits`,{memory:a.memoryMb,cpus:a.cpus})]}),m(`br`,{}),a.image?m(`code`,{children:a.image}):t(`settings.analysis.oci.noImage`),a.available===void 0?null:m(e,{children:[m(`br`,{}),a.available?t(`settings.analysis.oci.available`,{version:a.version??``}):t(`settings.analysis.oci.unavailable`,{reason:a.reason??``})]})]})})]}),m(`p`,{class:x.note,role:`note`,children:t(r.mode===`oci`?`settings.analysis.containerNote`:`settings.analysis.managedNote`)}),i.found?m(`p`,{class:x.note,children:t(`settings.analysis.extras.hint`)}):m(`div`,{role:`group`,"aria-label":t(`settings.analysis.installHint.title`),children:[m(`h4`,{class:x.sectionTitle,children:t(`settings.analysis.installHint.title`)}),m(`p`,{class:x.note,children:[i.hints.system,i.hints.heading?` · ${i.hints.heading}`:``]}),m(`pre`,{class:x.note,children:m(`code`,{children:i.hints.primary})}),i.hints.alternatives.map(e=>m(`p`,{class:x.note,children:e},e)),i.hints.notes.map(e=>m(`p`,{class:x.note,children:e},e)),m(`p`,{class:x.note,children:t(`settings.analysis.installHint.afterInstall`)})]})]})}function H(){let n=C(),r=T(n?()=>u.analysis(n.id):void 0,[n?.id]),i=T(n?()=>u.settings(n.id):void 0,[n?.id]),[a,o]=s(!1),c=!!i.data?.readOnly,l=i.data?.settings??[],d=async(e,t)=>{if(n&&i.data)try{await u.setSetting(n.id,e,t),i.set({...i.data,settings:i.data.settings.map(n=>n.key===e?{...n,value:t}:n)}),r.reload()}catch(e){throw p(k(e)),e}},f=R(l,`analysis.enabled`),h=(e,t)=>{let n=R(l,e);return typeof n==`number`?n:t},g=r.data?.retention.lastSweep;return m(e,{children:[m(E,{title:t(`settings.analysis.title`),body:t(`settings.analysis.lead`)}),m(S,{loading:i.loading&&!i.data||r.loading&&!r.data,error:i.error??r.error,empty:n?void 0:`settings.noWorkspace`}),r.data?.readOnly?m(`p`,{class:x.note,children:t(`settings.analysis.readOnlyRuntime`)}):f===!1?m(`p`,{class:x.note,children:t(`settings.analysis.disabled`)}):null,r.data?m(V,{status:r.data}):null,i.data?m(e,{children:[c?m(`p`,{class:x.note,children:t(`settings.readOnly`)}):null,m(`ul`,{class:x.settingList,children:[m(`li`,{class:x.settingRow,children:[m(`label`,{class:x.settingLabel,for:`analysis-enabled`,children:[m(`span`,{children:t(`settings.analysis.enabled`)}),m(`code`,{class:x.settingKey,children:`analysis.enabled`})]}),m(D,{checked:f!==!1,label:t(`settings.analysis.enabled`),disabled:c,busy:a,onChange:e=>{o(!0),d(`analysis.enabled`,e).catch(()=>void 0).finally(()=>o(!1))}})]}),m(B,{id:`analysis-timeout`,label:t(`settings.analysis.timeout`),keyName:`analysis.limits.timeoutMs`,value:ee(h(`analysis.limits.timeoutMs`,12e4)),min:P.min,max:P.max,disabled:c,parse:L,onSave:e=>d(`analysis.limits.timeoutMs`,e)})]}),m(`p`,{class:x.note,children:t(`settings.analysis.enabledHint`)}),m(`h4`,{class:x.sectionTitle,children:t(`settings.analysis.retention`)}),m(`p`,{class:x.note,children:t(`settings.analysis.retention.lead`)}),m(`ul`,{class:x.settingList,children:[[`analysis.retention.jobsDays`,`settings.analysis.retention.jobs`,30],[`analysis.retention.intermediateDays`,`settings.analysis.retention.intermediate`,7],[`analysis.retention.artifactsDays`,`settings.analysis.retention.artifacts`,0]].map(([e,n,r])=>m(B,{id:`analysis-${e}`,label:t(n),keyName:e,value:h(e,r),min:F.min,max:F.max,disabled:c,onSave:t=>d(e,t)},e))}),m(`p`,{class:x.note,children:g===void 0?t(`settings.analysis.retention.never`):t(`settings.analysis.retention.lastSweep`,{time:new Date(g).toLocaleString()})})]}):null]})}function U(){return m(e,{children:[m(E,{title:t(`settings.appearance`),body:t(`appearance.lead`)}),m(A,{legend:t(`settings.theme`),value:v.value,options:[`dark`,`light`,`system`].map(e=>({id:e,label:t(`theme.${e}`)})),onChange:y}),m(A,{legend:t(`settings.density`),value:_.value,options:[`compact`,`detailed`].map(e=>({id:e,label:t(`density.${e}`)})),onChange:b})]})}var W={en:{"compaction.auto":`Compact the context automatically`,"compaction.threshold":`Compaction threshold (fraction of the window)`,"compaction.keepTurns":`Recent turns kept verbatim`,"compaction.maxOutputTokens":`Summary length (tokens)`,"context.claudeMdFallback":`Read CLAUDE.md when there is no AGENTS.md`,"context.maxBytes":`Project instructions limit (bytes)`,"limits.maxTurns":`Turns per run`,"limits.maxOutputTokens":`Output tokens per turn`,"limits.maxContextChars":`Context characters sent`,"limits.timeoutMs":`Provider request timeout (ms)`,"limits.firstTokenTimeoutMs":`First-token timeout (ms)`,"limits.firstTokenRetries":`Retries when the model stays silent`,"limits.truncationRecoveries":`Recoveries from truncated output`,"pluginHooks.timeoutMs":`Plugin hook timeout (ms)`,"websearch.provider":`Web search provider`,"tui.paddingX":`Terminal horizontal padding`,"tui.contentPaddingX":`Terminal content padding`,"tui.skillSlashCommands":`Skills as slash commands (terminal)`,"agents.active":`Active agent`,"agents.effort":`Agent reasoning effort`,"analysis.enabled":`Data analysis`,"analysis.limits.timeoutMs":`Analysis run timeout (ms)`,"analysis.retention.jobsDays":`Keep analysis jobs (days)`,"analysis.retention.intermediateDays":`Keep intermediate files (days)`,"analysis.retention.artifactsDays":`Keep artifacts (days)`,"tasks.enabled":`Background tasks`,"tasks.maxPerSession":`Live background tasks per session`,"tasks.maxRunMs":`Background task time limit (ms)`,"tasks.maxOutputBytes":`Background task log size (bytes)`,"tasks.retentionDays":`Keep finished tasks (days)`,"goal.enabled":`Session goals (/goal)`,"goal.maxTurns":`Goal turn limit`,"goal.maxMinutes":`Goal time limit (minutes)`,"goal.repeatedReplyLimit":`Pause a goal after identical replies`,"goal.noToolTurnsLimit":`Pause a goal after turns without tools`,"goal.blockedRepeats":`Turns the agent must report a blocker`,"plan.diagrams":`Plan diagrams`,"plan.maxDiagrams":`Most diagrams per plan`},es:{"compaction.auto":`Compactar el contexto automáticamente`,"compaction.threshold":`Umbral de compactación (fracción de la ventana)`,"compaction.keepTurns":`Turnos recientes conservados literalmente`,"compaction.maxOutputTokens":`Longitud del resumen (tokens)`,"context.claudeMdFallback":`Leer CLAUDE.md si no hay AGENTS.md`,"context.maxBytes":`Límite de instrucciones del proyecto (bytes)`,"limits.maxTurns":`Turnos por run`,"limits.maxOutputTokens":`Tokens de salida por turno`,"limits.maxContextChars":`Caracteres de contexto enviados`,"limits.timeoutMs":`Tiempo máximo de petición al proveedor (ms)`,"limits.firstTokenTimeoutMs":`Tiempo máximo al primer token (ms)`,"limits.firstTokenRetries":`Reintentos cuando el modelo no responde`,"limits.truncationRecoveries":`Recuperaciones de salida truncada`,"pluginHooks.timeoutMs":`Tiempo máximo de hooks de plugins (ms)`,"websearch.provider":`Proveedor de búsqueda web`,"tui.paddingX":`Margen horizontal del terminal`,"tui.contentPaddingX":`Margen del contenido del terminal`,"tui.skillSlashCommands":`Skills como comandos slash (terminal)`,"agents.active":`Agente activo`,"agents.effort":`Esfuerzo de razonamiento del agente`,"analysis.enabled":`Análisis de datos`,"analysis.limits.timeoutMs":`Tiempo máximo de una ejecución de análisis (ms)`,"analysis.retention.jobsDays":`Conservar trabajos de análisis (días)`,"analysis.retention.intermediateDays":`Conservar archivos intermedios (días)`,"analysis.retention.artifactsDays":`Conservar artefactos (días)`,"tasks.enabled":`Tareas en segundo plano`,"tasks.maxPerSession":`Tareas en segundo plano activas por sesión`,"tasks.maxRunMs":`Tiempo máximo de una tarea en segundo plano (ms)`,"tasks.maxOutputBytes":`Tamaño del registro de una tarea (bytes)`,"tasks.retentionDays":`Conservar tareas terminadas (días)`,"goal.enabled":`Objetivos de sesión (/goal)`,"goal.maxTurns":`Límite de turnos de un objetivo`,"goal.maxMinutes":`Límite de tiempo de un objetivo (minutos)`,"goal.repeatedReplyLimit":`Pausar un objetivo tras respuestas idénticas`,"goal.noToolTurnsLimit":`Pausar un objetivo tras turnos sin herramientas`,"goal.blockedRepeats":`Turnos en que el agente debe reportar un bloqueo`,"plan.diagrams":`Diagramas del plan`,"plan.maxDiagrams":`Máximo de diagramas por plan`}},G=(e,t)=>W[t][e]??W.en[e]??e,K=/^(tui|agents|analysis)\./;function q(e){let{setting:n}=e,[r,i]=s(),[o,c]=s(!1),l=async t=>{c(!0);try{await e.onSave(t),i(void 0)}finally{c(!1)}},u=G(n.key,a.value),d=`setting-${n.key}`,f=()=>{if(r!==void 0){if(n.kind===`number`){let e=Number(r);if(r.trim()===``||!Number.isFinite(e))return i(void 0);l(e)}else l(r.trim()===``?null:r)}};return m(`li`,{class:x.settingRow,children:[m(`label`,{class:x.settingLabel,for:d,children:[m(`span`,{children:u}),m(`code`,{class:x.settingKey,children:n.key})]}),n.kind===`boolean`?m(D,{checked:n.value===!0,label:u,disabled:e.disabled,busy:o,onChange:e=>void l(e)}):n.kind===`enum`?m(`select`,{id:d,class:x.input,disabled:e.disabled||o,value:typeof n.value==`string`?n.value:``,onChange:e=>{let t=e.target.value;l(t===``?null:t)},children:[m(`option`,{value:``,children:t(`settings.default`)}),(n.options??[]).map(e=>m(`option`,{value:e,children:e},e))]}):m(`input`,{id:d,class:x.input,type:n.kind===`number`?`number`:`text`,disabled:e.disabled||o,value:r??(n.value===void 0?``:String(n.value)),onInput:e=>i(e.target.value),onBlur:f,onKeyDown:e=>{e.key===`Enter`&&f(),e.key===`Escape`&&r!==void 0&&(e.stopPropagation(),i(void 0))}})]})}function J(){let n=C(),r=T(n?()=>u.settings(n.id):void 0,[n?.id]),s=async(e,t)=>{if(n&&r.data)try{await u.setSetting(n.id,e,t),r.set({...r.data,settings:r.data.settings.map(n=>n.key===e?{...n,...t===null?{value:void 0}:{value:t}}:n)})}catch(e){throw p(k(e)),e}},c=(r.data?.settings??[]).filter(e=>!K.test(e.key));return m(e,{children:[m(E,{title:t(`settings.general`)}),m(A,{legend:t(`settings.language`),value:a.value,options:o.map(e=>({id:e,label:t(`language.${e}`)})),onChange:i}),m(`h4`,{class:x.sectionTitle,children:t(`settings.agentSettings`)}),m(`p`,{class:x.note,children:[t(`settings.agentSettingsLead`),r.data?m(e,{children:[` `,m(`code`,{children:r.data.settingsPath})]}):null]}),m(S,{loading:r.loading&&!r.data,error:r.error,empty:n?void 0:`settings.noWorkspace`}),r.data?.readOnly?m(`p`,{class:x.note,children:t(`settings.readOnly`)}):null,m(`ul`,{class:x.settingList,children:c.map(e=>m(q,{setting:e,disabled:!!r.data?.readOnly,onSave:t=>s(e.key,t)},e.key))})]})}var Y={connected:`ok`,connecting:`warn`,failed:`danger`,"needs-authentication":`warn`,"restart-required":`warn`};function X(e){let[n,r]=s(!1);return m(`div`,{class:x.confirm,role:`alertdialog`,"aria-labelledby":`mcp-consent-title`,children:[m(`h4`,{id:`mcp-consent-title`,class:x.confirmTitle,children:[m(h,{name:`alert`,size:17}),t(`mcp.consentTitle`)]}),m(`p`,{class:x.cardText,children:t(`mcp.consentBody`)}),m(`label`,{class:x.checkRow,children:[m(`input`,{type:`checkbox`,checked:n,onChange:e=>r(e.target.checked)}),m(`span`,{children:t(`mcp.remember`)})]}),m(`div`,{class:x.actions,children:[m(`button`,{type:`button`,class:x.secondary,onClick:e.onCancel,children:t(`common.cancel`)}),m(`button`,{type:`button`,class:x.primary,onClick:()=>e.onGrant(n),children:t(`mcp.grant`)})]})]})}function Z(){let n=C(),[r,i]=s(!1),[a,o]=s(),c=T(n?()=>u.mcp(n.id):void 0,[n?.id],[`mcp`]),l=c.data,d=e=>{l&&c.set({...l,servers:l.servers.map(t=>t.name===e.name?e:t)})},f=async(e,t,r)=>{if(n){o(e.name);try{let i=await u.setMcp(n.id,e.name,t,r);d(i),r&&i.status!==`connected`&&i.diagnostic&&p(i.diagnostic)}catch(e){p(k(e))}finally{o(void 0)}}},h=async e=>{if(n){i(!1);try{c.set(await u.mcpConsent(n.id,e))}catch(e){p(k(e))}}},g=l?.permission===`granted`;return m(e,{children:[m(E,{title:t(`settings.mcp`),body:t(`mcp.lead`),workspace:n?.path}),l?m(`div`,{class:x.banner,"data-tone":g?`ok`:`warn`,children:[m(`span`,{children:l.permission===`read-only`?t(`mcp.readOnly`):g?l.persisted?t(`mcp.grantedPersisted`):t(`mcp.granted`):t(`mcp.notGranted`)}),l.permission===`not-granted`&&!r?m(`button`,{type:`button`,class:x.primary,onClick:()=>i(!0),children:t(`mcp.grant`)}):null]}):null,r?m(X,{onCancel:()=>i(!1),onGrant:e=>void h(e)}):null,m(S,{loading:c.loading&&!l,error:c.error,empty:n?l&&!l.servers.length?`mcp.none`:void 0:`settings.noWorkspace`}),m(`ul`,{class:x.rows,children:(l?.servers??[]).map(e=>m(`li`,{class:x.row,children:[m(`div`,{class:x.rowMain,children:[m(`div`,{class:x.rowTitle,children:[m(`span`,{class:x.cardName,children:e.displayName}),m(O,{tone:Y[e.status]??`off`,children:t(`mcp.status`,{status:e.status})})]}),m(`p`,{class:x.meta,children:t(`mcp.meta`,{transport:e.transport,source:e.source,tools:e.counts.tools,resources:e.counts.resources,prompts:e.counts.prompts})}),e.diagnostic?m(`p`,{class:x.diagnostic,children:e.diagnostic}):null]}),m(`div`,{class:x.rowActions,children:[e.enabled&&e.status!==`connected`?m(`button`,{type:`button`,class:x.secondary,disabled:!g||a===e.name,title:g?void 0:t(`mcp.needsGrant`),onClick:()=>void f(e,!0,!0),children:t(`mcp.connect`)}):null,m(D,{checked:e.enabled,label:t(`plugins.enableNamed`,{name:e.displayName}),disabled:l?.permission===`read-only`,busy:a===e.name,onChange:t=>void f(e,t,!1)})]})]},e.name))})]})}var Q={apiKey:`API key`,bearerToken:`Bearer token`};function te(e){return e.configured?e.source===`env`?t(`models.credential.env`):e.tail?t(`models.credential.storedTail`,{tail:e.tail}):t(`models.credential.stored`):t(`models.credential.missing`)}function ne(e){let[n,r]=s(``),[i,a]=s(!1),o=Q[e.field]??e.field,c=`cred-${e.profile}-${e.field}`,l=async()=>{let i=n.trim();if(i){a(!0);try{let n=await u.setCredentials(e.profile,{[e.field]:i});e.onChange({...n,source:`file`}),r(``),p(t(`models.credential.saved`))}catch(e){p(k(e))}finally{a(!1)}}},d=async()=>{a(!0);try{await u.deleteCredentials(e.profile),e.onChange({configured:!1})}catch(e){p(k(e))}finally{a(!1)}};return m(`div`,{class:x.credential,children:[m(`label`,{for:c,class:x.settingLabel,children:[m(`span`,{children:o}),m(`span`,{class:x.meta,"data-configured":e.status.configured,children:te(e.status)})]}),m(`form`,{class:x.credentialForm,onSubmit:e=>{e.preventDefault(),l()},children:[m(`input`,{id:c,class:x.input,type:`password`,autocomplete:`off`,spellcheck:!1,placeholder:e.status.configured?t(`models.credential.replace`):t(`models.credential.enter`),value:n,disabled:i,onInput:e=>r(e.target.value)}),m(`button`,{type:`submit`,class:x.primary,disabled:i||!n.trim(),children:t(`models.credential.save`)}),e.status.configured&&e.status.source===`file`?m(`button`,{type:`button`,class:x.secondary,disabled:i,onClick:()=>void d(),children:t(`models.credential.remove`)}):null]})]})}function $(e){let[n,r]=s(e.initial?.name??``),[i,a]=s(e.initial?.provider??e.types[0]?.id??``),[o,c]=s(e.initial?.model??``),[l,d]=s(e.initial?.values??{}),[f,h]=s(!1),g=(e.types.find(e=>e.id===i)?.fields??[]).filter(e=>e.kind!==`secret`),_=(e,t)=>l[e]??t,v=async()=>{h(!0);try{let t={};for(let e of g){let n=_(e.key,e.defaultValue);n!==void 0&&n!==``&&(t[e.key]=n)}e.onSaved(await u.saveProfile(e.workspace,n.trim(),{provider:i,values:t,model:o}))}catch(e){p(k(e))}finally{h(!1)}};return m(`form`,{class:x.profileForm,onSubmit:e=>{e.preventDefault(),v()},children:[m(`label`,{class:x.formRow,children:[m(`span`,{children:t(`models.form.name`)}),m(`input`,{class:x.input,required:!0,pattern:`[A-Za-z0-9][A-Za-z0-9._\\-]{0,63}`,disabled:!!e.initial,value:n,onInput:e=>r(e.target.value)})]}),m(`label`,{class:x.formRow,children:[m(`span`,{children:t(`models.form.type`)}),m(`select`,{class:x.input,value:i,onChange:e=>a(e.target.value),children:e.types.map(e=>m(`option`,{value:e.id,children:e.name},e.id))})]}),g.map(e=>m(`label`,{class:x.formRow,title:e.description,children:[m(`span`,{children:e.label}),e.kind===`select`?m(`select`,{class:x.input,value:String(_(e.key,e.defaultValue)??``),onChange:t=>d({...l,[e.key]:t.target.value}),children:(e.options??[]).map(e=>m(`option`,{value:e.value,children:e.label},e.value))}):e.kind===`boolean`?m(`input`,{type:`checkbox`,checked:_(e.key,e.defaultValue)===!0,onChange:t=>d({...l,[e.key]:t.target.checked})}):m(`input`,{class:x.input,type:e.kind===`url`?`url`:`text`,required:e.required,value:String(_(e.key,e.defaultValue)??``),onInput:t=>d({...l,[e.key]:t.target.value})})]},e.key)),m(`label`,{class:x.formRow,children:[m(`span`,{children:t(`models.form.model`)}),m(`input`,{class:x.input,required:!0,value:o,onInput:e=>c(e.target.value)})]}),m(`p`,{class:x.note,children:t(`models.form.secretsNote`)}),m(`div`,{class:x.actions,children:[m(`button`,{type:`button`,class:x.secondary,onClick:e.onCancel,children:t(`common.cancel`)}),m(`button`,{type:`submit`,class:x.primary,disabled:f,children:t(`models.form.save`)})]})]})}function re(n){let{profile:r,overview:i}=n,[a,o]=s(!1),[c,l]=s(r.model),[d,f]=s(!1),g=i.types.find(e=>e.id===r.provider),_=i.current?.profile===r.name,v=async()=>{f(!0);try{let{changed:e}=await u.activateProvider(n.workspace,r.name,c);p(e?t(`models.activated`,{name:r.name}):t(`models.unchanged`)),n.onActivated()}catch(e){p(k(e))}finally{f(!1)}},y=n.catalog?.models??[];return m(`li`,{class:x.row,"data-current":_,children:m(`div`,{class:x.rowMain,children:[m(`div`,{class:x.rowTitle,children:[m(`span`,{class:x.cardName,children:r.name}),m(O,{tone:`off`,children:g?.name??r.provider}),r.active?m(O,{tone:`ok`,children:t(`models.activeGlobal`)}):null,_?m(O,{tone:`ok`,children:t(`models.current`)}):null,m(`button`,{type:`button`,class:x.linkButton,"aria-expanded":a,onClick:()=>o(!a),children:[m(h,{name:`edit`,size:14}),t(`models.edit`)]})]}),a?m($,{types:i.types,initial:r,workspace:n.workspace,onCancel:()=>o(!1),onSaved:e=>{o(!1),n.onChange(e)}}):m(`dl`,{class:x.facts,children:[m(`dt`,{children:t(`models.form.model`)}),m(`dd`,{children:r.model}),Object.entries(r.values).map(([t,n])=>m(e,{children:[m(`dt`,{children:g?.fields.find(e=>e.key===t)?.label??t}),m(`dd`,{children:String(n)})]},t))]}),Object.entries(r.credentials).map(([e,t])=>m(ne,{profile:r.name,field:e,status:t,onChange:t=>n.onChange({...r,credentials:{...r.credentials,[e]:t}})},e)),m(`form`,{class:x.credentialForm,onSubmit:e=>{e.preventDefault(),v()},children:[y.length?m(`select`,{class:x.input,"aria-label":t(`models.form.model`),value:c,onChange:e=>l(e.target.value),children:[y.some(e=>e.id===c)?null:m(`option`,{value:c,children:c}),y.map(e=>m(`option`,{value:e.id,children:e.name??e.id},e.id))]}):m(`input`,{class:x.input,"aria-label":t(`models.form.model`),value:c,onInput:e=>l(e.target.value)}),m(`button`,{type:`submit`,class:x.secondary,disabled:d||!c.trim(),children:t(`models.activate`)}),n.catalog?.unavailable?m(`span`,{class:x.meta,children:t(`composer.modelsUnavailable`)}):null]})]})})}function ie(){let n=C(),[r,i]=s(!1),a=T(n?()=>u.providers(n.id):void 0,[n?.id],[`models`]),o=T(n?()=>u.providerModels(n.id).catch(()=>[]):void 0,[n?.id],[`models`]),c=a.data,l=e=>{if(!c)return;let t=c.profiles.some(t=>t.name===e.name);a.set({...c,profiles:t?c.profiles.map(t=>t.name===e.name?e:t):[...c.profiles,e]})};return m(e,{children:[m(E,{title:t(`settings.models`),body:t(`models.lead`),workspace:n?.path}),c?.current?m(`p`,{class:x.banner,"data-tone":`ok`,children:t(`models.running`,{provider:c.current.provider,model:c.current.model,profile:c.current.profile??`—`})}):null,m(S,{loading:a.loading&&!c,error:a.error,empty:n?c&&!c.profiles.length?`models.none`:void 0:`settings.noWorkspace`}),m(`ul`,{class:x.rows,children:(c?.profiles??[]).map(e=>m(re,{profile:e,overview:c,catalog:o.data?.find(t=>t.profile===e.name),workspace:n?.id??``,onChange:l,onActivated:()=>a.reload()},e.name))}),n&&c?.types.length?r?m($,{types:c.types,workspace:n.id,onCancel:()=>i(!1),onSaved:e=>{i(!1),l(e)}}):m(`button`,{type:`button`,class:`${x.secondary} ${x.addButton}`,onClick:()=>i(!0),children:t(`models.add`)}):null]})}var ae={active:`ok`,inactive:`off`,failed:`danger`,"restart-required":`warn`};function oe(e){return e.status===`failed`?t(`plugins.status.failed`):e.status===`restart-required`?t(`plugins.status.restart`):e.enabled?t(`plugins.status.enabled`):t(`plugins.status.disabled`)}function se(n){let{plugin:r}=n,[i,a]=s(!1),o=`plugin-${r.id}`;return m(`li`,{class:x.card,"data-open":i,children:[m(`button`,{type:`button`,class:x.cardHead,"aria-expanded":i,"aria-controls":o,onClick:()=>a(!i),children:[m(`span`,{class:x.cardName,title:r.name,children:r.name}),m(O,{tone:ae[r.status],children:oe(r)}),m(h,{name:i?`chevronDown`:`chevronRight`,size:16,class:x.chevron})]}),i?m(`div`,{id:o,class:x.cardBody,children:[r.description?m(`p`,{class:x.cardText,children:r.description}):null,m(`dl`,{class:x.facts,children:[m(`dt`,{children:t(`plugins.id`)}),m(`dd`,{children:m(`code`,{children:r.id})}),r.version?m(e,{children:[m(`dt`,{children:t(`plugins.version`)}),m(`dd`,{children:r.version})]}):null,m(`dt`,{children:t(`plugins.source`)}),m(`dd`,{children:r.builtin?t(`plugins.builtin`):r.source}),r.categories.length?m(e,{children:[m(`dt`,{children:t(`plugins.categories`)}),m(`dd`,{children:r.categories.join(`, `)})]}):null,m(`dt`,{children:t(`plugins.tools`)}),m(`dd`,{children:r.tools.length?r.tools.join(`, `):`—`}),m(`dt`,{children:t(`plugins.commands`)}),m(`dd`,{children:r.commands.length?r.commands.map(e=>`/${e}`).join(`, `):`—`})]}),r.diagnostic?m(`p`,{class:x.diagnostic,children:r.diagnostic}):null,m(`div`,{class:x.toggleRow,children:[m(`span`,{children:t(`plugins.enable`)}),m(D,{checked:r.enabled,label:t(`plugins.enableNamed`,{name:r.name}),disabled:!r.manageable,busy:n.busy,onChange:n.onToggle})]})]}):null]})}function ce(){let n=C(),[r,i]=s(`list`),[a,o]=s(``),[c,l]=s(),d=T(n?()=>u.plugins(n.id):void 0,[n?.id],[`plugins`]),f=T(n&&r===`configuration`?()=>u.settings(n.id):void 0,[n?.id,r]),g=async(e,r)=>{if(n){l(e.id);try{let i=await u.setPlugin(n.id,e.id,r);d.set((d.data??[]).map(e=>e.id===i.id?i:e)),i.status===`restart-required`&&p(t(`plugins.deferred`))}catch(e){p(k(e))}finally{l(void 0)}}},_=a.trim().toLowerCase(),v=(d.data??[]).filter(e=>!_||e.name.toLowerCase().includes(_)||e.id.toLowerCase().includes(_)||e.description.toLowerCase().includes(_));return m(e,{children:[m(E,{title:t(`settings.plugins`),body:t(`plugins.lead`),workspace:n?.path}),m(`div`,{class:x.tabs,role:`tablist`,children:[`configuration`,`list`].map(e=>m(`button`,{type:`button`,role:`tab`,class:x.tab,"aria-selected":r===e,onClick:()=>i(e),children:t(e===`list`?`plugins.tab.list`:`plugins.tab.configuration`)},e))}),r===`configuration`?m(`div`,{class:x.stack,children:[m(`p`,{class:x.callout,children:[m(h,{name:`shield`,size:16}),m(`span`,{children:t(`plugins.notSandboxed`)})]}),m(`p`,{class:x.note,children:t(`plugins.howToInstall`)}),m(`p`,{class:x.note,children:t(`plugins.applyNote`)}),f.data?m(`p`,{class:x.note,children:[t(`plugins.projectFile`),` `,m(`code`,{children:f.data.configPath})]}):null]}):m(e,{children:[m(w,{value:a,label:t(`plugins.search`),onInput:o}),m(`h4`,{class:x.listTitle,children:[t(`plugins.tab.list`),` `,m(`span`,{class:x.count,children:v.length})]}),m(S,{loading:d.loading&&!d.data,error:d.error,empty:n?d.data&&!v.length?`plugins.none`:void 0:`settings.noWorkspace`}),m(`ul`,{class:x.grid,children:v.map(e=>m(se,{plugin:e,busy:c===e.id,onToggle:t=>void g(e,t)},e.id))})]})]})}function le(){let n=C(),[r,i]=s(``),[a,o]=s(),c=T(n?()=>u.skills(n.id):void 0,[n?.id],[`skills`]),l=async(e,t)=>{if(n){o(e.id);try{let r=await u.setSkill(n.id,e.id,t);c.set((c.data??[]).map(e=>e.id===r.id&&e.effective?r:e))}catch(e){p(k(e))}finally{o(void 0)}}},d=r.trim().toLowerCase(),f=(c.data??[]).filter(e=>!d||e.displayId.toLowerCase().includes(d)||e.description.toLowerCase().includes(d));return m(e,{children:[m(E,{title:t(`settings.skills`),body:t(`skills.lead`),workspace:n?.path}),m(w,{value:r,label:t(`skills.search`),onInput:i}),m(S,{loading:c.loading&&!c.data,error:c.error,empty:n?c.data&&!f.length?`skills.none`:void 0:`settings.noWorkspace`}),m(`ul`,{class:x.rows,children:f.map(e=>m(`li`,{class:x.row,"data-muted":!e.effective,children:[m(`div`,{class:x.rowMain,children:[m(`div`,{class:x.rowTitle,children:[m(`span`,{class:x.cardName,children:e.displayId}),m(O,{tone:e.enabled&&e.effective?`ok`:`off`,children:e.effective?e.enabled?t(`plugins.status.enabled`):t(`plugins.status.disabled`):t(`skills.shadowed`)})]}),m(`p`,{class:x.cardText,children:e.description}),m(`p`,{class:x.meta,children:[t(`skills.meta`,{scope:e.owner?`${e.scope} · ${e.owner.name}`:e.scope,tokens:e.approximateTokens}),e.shadowedBy?` · ${t(`skills.shadowedBy`,{id:e.shadowedBy})}`:``,e.locked?` · ${t(`skills.locked`)}`:``]})]}),m(D,{checked:e.enabled,label:t(`plugins.enableNamed`,{name:e.displayId}),disabled:!e.effective||!e.manageable||e.locked,busy:a===e.id,onChange:t=>void l(e,t)})]},`${e.id}:${e.source}`))})]})}var ue=[{id:`general`,icon:`settings`},{id:`models`,icon:`database`},{id:`plugins`,icon:`sliders`},{id:`skills`,icon:`book`},{id:`mcp`,icon:`plug`},{id:`agents`,icon:`users`},{id:`analysis`,icon:`fileChart`},{id:`appearance`,icon:`palette`},{id:`about`,icon:`info`}],de=`button:not(:disabled), input:not(:disabled), select:not(:disabled), [tabindex='0']`;function fe(e){let n=C(),r=T(n?()=>u.settings(n.id):void 0,[n?.id]),i=r.data?[{label:t(`config.effective`),path:r.data.configPath},{label:t(`config.settings`),path:r.data.settingsPath},{label:t(`config.providers`),path:r.data.providersPath}]:[];return m(`div`,{class:x.popover,role:`dialog`,"aria-label":t(`config.open`),children:[m(`div`,{class:x.popoverHead,children:[m(`strong`,{children:t(`config.open`)}),m(`button`,{type:`button`,class:`icon-btn`,"aria-label":t(`common.close`),onClick:e.onClose,children:m(h,{name:`x`,size:16})})]}),m(`p`,{class:x.note,children:t(`config.lead`)}),n?null:m(`p`,{class:x.note,children:t(`settings.noWorkspace`)}),r.error?m(`p`,{class:x.errorText,children:r.error}):null,m(`ul`,{class:x.paths,children:i.map(e=>m(`li`,{children:[m(`span`,{class:x.meta,children:e.label}),m(`span`,{class:x.pathRow,children:[m(`code`,{class:x.path,children:e.path}),m(g,{text:()=>e.path,label:t(`config.copy`)})]})]},e.label))}),r.data&&!r.data.trusted?m(`p`,{class:x.note,children:t(`config.untrusted`)}):null]})}function pe(){let[e,i]=s(`general`),[a,o]=s(!1),c=r(null);n(()=>{let e=document.activeElement;return c.current?.querySelector(`nav button`)?.focus(),()=>e?.focus()},[]);let l=()=>{f.value=!1};return m(`div`,{class:x.backdrop,onMouseDown:e=>{e.target===e.currentTarget&&l()},children:m(`div`,{ref:c,class:x.dialog,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`settings-title`,onKeyDown:e=>{if(e.key===`Escape`&&(a?o(!1):l()),e.key===`Tab`){let t=[...c.current?.querySelectorAll(de)??[]],n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())}},children:[m(`nav`,{class:x.nav,"aria-label":t(`settings.title`),children:[m(`h2`,{id:`settings-title`,class:x.heading,children:t(`settings.title`)}),ue.map(({id:n,icon:r})=>m(`button`,{type:`button`,class:x.navItem,"aria-current":e===n?`page`:void 0,onClick:()=>i(n),children:[m(h,{name:r,size:17}),t(`settings.${n}`)]},n))]}),m(`div`,{class:x.content,children:[m(`div`,{class:x.topBar,children:[m(`button`,{type:`button`,class:x.outline,"aria-expanded":a,onClick:()=>o(!a),children:t(`config.open`)}),m(`button`,{type:`button`,class:`icon-btn`,"aria-label":t(`common.close`),onClick:l,children:m(h,{name:`x`,size:18})})]}),a?m(fe,{onClose:()=>o(!1)}):null,m(e===`general`?J:e===`models`?ie:e===`plugins`?ce:e===`skills`?le:e===`mcp`?Z:e===`agents`?N:e===`analysis`?H:e===`appearance`?U:M,{})]})]})})}export{pe as SettingsModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsxRuntime-BPMqVzHG.js";import{s as t}from"./index-6Mwi6jsI.js";function n({block:n}){return n.kind===`artifact`?e(t,{artifact:n.artifact,compact:!0}):null}export{n as default};
|