lantern-harness 0.1.23 → 0.1.25

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.
Files changed (129) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/builtin/session/bash-session.mjs +91 -0
  3. package/builtin/session/lh-bash.mjs +67 -1
  4. package/builtin/session/lh-web.mjs +103 -52
  5. package/builtin/session/mcp-client.mjs +290 -0
  6. package/builtin/session/pwsh-session.mjs +90 -0
  7. package/builtin/session/session-runs.mjs +6 -1
  8. package/builtin/session/tool-run-policy.mjs +32 -0
  9. package/builtin/session/web-fetch-policy.mjs +79 -0
  10. package/cli/acp-server.mjs +19 -9
  11. package/cli/agent-policy.mjs +60 -0
  12. package/cli/headless.mjs +30 -6
  13. package/cli/jsonrpc-server.mjs +9 -3
  14. package/cli/lantern.mjs +40 -5
  15. package/cli/server.mjs +2 -0
  16. package/dist/500.html +4 -4
  17. package/dist/_astro/Base.COYvzmy5.css +1 -0
  18. package/dist/_astro/{Base.astro_astro_type_script_index_0_lang.CWRCetQl.js → Base.astro_astro_type_script_index_0_lang.Cb6ggViJ.js} +1 -1
  19. package/dist/_astro/{CaseExecBoard.Dnb8oP5i.js → CaseExecBoard.cl2Od7av.js} +1 -1
  20. package/dist/_astro/{CaseGenerateApp.ci_JowEk.js → CaseGenerateApp.nE3RR7bV.js} +5 -5
  21. package/dist/_astro/CasesLibrary.e3vlOqSQ.js +21 -0
  22. package/dist/_astro/ChatApp.CECImcJo.js +226 -0
  23. package/dist/_astro/ConfirmDialog.D5qXeML0.js +1 -0
  24. package/dist/_astro/{DashboardBoard.D-zHXRds.js → DashboardBoard.CmxqpmzI.js} +2 -2
  25. package/dist/_astro/{DocsFileBrowser.BM3nH4VD.js → DocsFileBrowser.BdpWp8zQ.js} +1 -1
  26. package/dist/_astro/DocsPager.D55FTK9d.js +1 -0
  27. package/dist/_astro/{KnowledgeLibrary.D9KnqXzr.js → KnowledgeLibrary.DKci9jN8.js} +1 -1
  28. package/dist/_astro/MultiSelectDropdown.BHxW9XLR.js +1 -0
  29. package/dist/_astro/NamePromptDialog.Csfnh5eM.js +1 -0
  30. package/dist/_astro/{NavLibraries.RH3Sinuh.js → NavLibraries.BybmHnXn.js} +1 -1
  31. package/dist/_astro/PluginsPage.B6dsHB44.js +1 -0
  32. package/dist/_astro/{PluginsPage.DBRfSxtq.js → PluginsPage.D5LXPMns.js} +2 -2
  33. package/dist/_astro/{PmBugsBoard.BnnaNP1y.js → PmBugsBoard.B6w50MHD.js} +1 -1
  34. package/dist/_astro/{PmIterationsBoard.phiyhQVA.js → PmIterationsBoard.Dk7JheCU.js} +1 -1
  35. package/dist/_astro/{PmProjectDetail.C8kRX5lu.js → PmProjectDetail.O44fnczN.js} +1 -1
  36. package/dist/_astro/{PmProjectsBoard.CFApEGPo.js → PmProjectsBoard.qgj9HAj8.js} +1 -1
  37. package/dist/_astro/PmRequirementsBoard.BKY3h4CQ.js +1 -0
  38. package/dist/_astro/{PmRequirementsBoard.DR9egcgA.js → PmRequirementsBoard.DTL_RFxq.js} +1 -1
  39. package/dist/_astro/{PmShared.BrBicDMN.js → PmShared.Bwphj4KH.js} +1 -1
  40. package/dist/_astro/{PromptsLibrary.sz6MivVn.js → PromptsLibrary.Dv5OABdK.js} +1 -1
  41. package/dist/_astro/{ReportsPage.CYZtpeiv.js → ReportsPage.B7MOskzc.js} +1 -1
  42. package/dist/_astro/ReqAnalysisBoard.nUp89z1s.js +39 -0
  43. package/dist/_astro/{RequirementsLibrary.R4dNZa9y.js → RequirementsLibrary._OviMClB.js} +1 -1
  44. package/dist/_astro/SearchableSelect.D3ODywC4.js +1 -0
  45. package/dist/_astro/SettingsDialog.D3f4EOwl.js +1 -0
  46. package/dist/_astro/SlideOverDrawer.CpQu7VMQ.js +1 -0
  47. package/dist/_astro/SpaceSwitcher.DQOG363O.js +7 -0
  48. package/dist/_astro/{TasksBoard.D0HwS5hd.js → TasksBoard.rwdPWLAh.js} +1 -1
  49. package/dist/_astro/{TemplatesLibrary.CVv5Ef30.js → TemplatesLibrary.CEVQPDDz.js} +1 -1
  50. package/dist/_astro/{TestStatsBoard._qNcNorG.js → TestStatsBoard.CO4JMh4N.js} +1 -1
  51. package/dist/_astro/{TodosBoard.CF5wbJy7.js → TodosBoard.CrZMl6Ei.js} +1 -1
  52. package/dist/_astro/UiAutoBoard.BRMCH1zB.js +9 -0
  53. package/dist/_astro/{app-config.CF1xVPmo.js → app-config.DAIyT--R.js} +1 -1
  54. package/dist/_astro/app-version.BPkgRlbu.js +1 -0
  55. package/dist/_astro/bash-tools.D4DBYc9k.js +27 -0
  56. package/dist/_astro/case-fields.Dqkws1iX.js +1 -0
  57. package/dist/_astro/case-gen-run.Byxy6M5X.js +22 -0
  58. package/dist/_astro/case-review.DlCarphW.js +3 -0
  59. package/dist/_astro/{case-types.DS1EQ5yP.js → case-types.B6MLX3iE.js} +1 -1
  60. package/dist/_astro/{hydrate-cache.CmC22o_H.js → hydrate-cache.C0F0L04c.js} +1 -1
  61. package/dist/_astro/i18n.ele1lM9e.js +7 -0
  62. package/dist/_astro/{llm.BuR7z55C.js → llm.DyweO-KK.js} +1 -1
  63. package/dist/_astro/open-docs-in-session.D608wzlx.js +1 -0
  64. package/dist/_astro/{plugins.CVM1IaoC.js → plugins.Di6uuouN.js} +1 -1
  65. package/dist/_astro/req-analysis.CIZ_cIJQ.js +23 -0
  66. package/dist/_astro/settings.DbhUT6Ao.js +2 -0
  67. package/dist/_astro/{spaces-client.DnS6MgGy.js → spaces-client.OuJPy3GP.js} +1 -1
  68. package/dist/_astro/{story-review.BbdIf5zg.js → story-review.BvgXBApZ.js} +6 -3
  69. package/dist/_astro/{view-prefs.D1snIG5o.js → view-prefs.DkS1ldnh.js} +1 -1
  70. package/dist/case-exec/index.html +5 -5
  71. package/dist/cases/generate/index.html +5 -5
  72. package/dist/cases/library/index.html +5 -5
  73. package/dist/dashboard/index.html +5 -5
  74. package/dist/docs/changelog/index.html +52 -5
  75. package/dist/docs/install/index.html +48 -4
  76. package/dist/docs/manual/index.html +40 -33
  77. package/dist/knowledge/index.html +5 -5
  78. package/dist/plugins/index.html +5 -5
  79. package/dist/pm/bugs/index.html +5 -5
  80. package/dist/pm/iterations/index.html +5 -5
  81. package/dist/pm/projects/detail/index.html +5 -5
  82. package/dist/pm/projects/index.html +5 -5
  83. package/dist/pm/requirements/index.html +5 -5
  84. package/dist/prompts/index.html +5 -5
  85. package/dist/reports/index.html +5 -5
  86. package/dist/requirement-analysis/index.html +5 -5
  87. package/dist/requirements/index.html +5 -5
  88. package/dist/tasks/index.html +5 -5
  89. package/dist/templates/index.html +5 -5
  90. package/dist/test-automation/index.html +5 -5
  91. package/dist/test-stats/index.html +5 -5
  92. package/dist/todos/index.html +5 -5
  93. package/dist/workbench/index.html +5 -5
  94. package/docs//344/274/232/350/257/235/346/217/222/344/273/266.md +9 -7
  95. package/docs//345/205/250/345/261/200/346/217/222/344/273/266.md +14 -2
  96. package/docs//345/256/211/350/243/205/346/211/213/345/206/214.md +23 -0
  97. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +35 -27
  98. package/lh-plugins/case-review-prompt.mjs +12 -106
  99. package/lh-plugins/lh-case-review.mjs +118 -34
  100. package/lh-plugins/lh-mcp.mjs +79 -0
  101. package/lh-plugins/lh-reports.mjs +11 -29
  102. package/lh-plugins/lh-req-analysis.mjs +59 -6
  103. package/lh-plugins/req-analysis-prompt.mjs +34 -44
  104. package/lh-plugins/story-review-prompt.mjs +8 -52
  105. package/lh-plugins/uiauto-prompt.mjs +9 -65
  106. package/package.json +3 -1
  107. package/dist/_astro/Base.GThhapKd.css +0 -1
  108. package/dist/_astro/CasesLibrary.CDjuLV_E.js +0 -21
  109. package/dist/_astro/ChatApp.Td2xCiQG.js +0 -216
  110. package/dist/_astro/ConfirmDialog.CsMwWevK.js +0 -1
  111. package/dist/_astro/DocsPager.B9VhI6E3.js +0 -1
  112. package/dist/_astro/NamePromptDialog.CS1pTTVl.js +0 -1
  113. package/dist/_astro/PluginsPage.DMDyUktn.js +0 -1
  114. package/dist/_astro/PmRequirementsBoard.B-AI9iZX.js +0 -1
  115. package/dist/_astro/ReqAnalysisBoard.CazI9SU-.js +0 -29
  116. package/dist/_astro/SearchableSelect.Cbb8jMnP.js +0 -1
  117. package/dist/_astro/SettingsDialog.Bs1I8b27.js +0 -1
  118. package/dist/_astro/SlideOverDrawer.DMWJPD_W.js +0 -1
  119. package/dist/_astro/SpaceSwitcher.Dw9LjKiJ.js +0 -7
  120. package/dist/_astro/UiAutoBoard.B-7mL3ez.js +0 -9
  121. package/dist/_astro/app-version.yT2l6J8H.js +0 -1
  122. package/dist/_astro/bash-tools.CPS0ZiKi.js +0 -25
  123. package/dist/_astro/case-fields.h0roo2br.js +0 -1
  124. package/dist/_astro/case-gen-run.D8DGX0mr.js +0 -19
  125. package/dist/_astro/case-review.C1hQRbQ2.js +0 -3
  126. package/dist/_astro/i18n.CjqQGCAI.js +0 -7
  127. package/dist/_astro/open-docs-in-session.Cj0J2-XT.js +0 -1
  128. package/dist/_astro/req-analysis.dhgy4p2f.js +0 -14
  129. package/dist/_astro/settings.B1yetppp.js +0 -2
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/i18n.CjqQGCAI.js","_astro/react.Blvh0GOs.js"])))=>i.map(i=>d[i]);
2
- import{c as e,l as t,o as n,r,s as i,t as a,u as o}from"./app-config.CF1xVPmo.js";var s=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),c=function(e){return`/`+e},l={},u=function(e){return e.pathname.endsWith(`.css`)},d=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},f=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function f(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=c(t,n);let r=f(t),i=u(r);return d(l,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:s,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},p=[{label:`DeepSeek`,baseURL:`https://api.deepseek.com/v1`,model:``},{label:`通义千问`,baseURL:`https://dashscope.aliyuncs.com/compatible-mode/v1`,model:`qwen-plus`},{label:`OpenAI`,baseURL:`https://api.openai.com/v1`,model:`gpt-4o-mini`},{label:`自定义`,baseURL:``,model:``}],m=`tw-settings-changed`,h=`tw-open-settings`;function g(){return t()}function _(){return n()}function v(){return r().model.activeId}function y(t){let n=r(),s=[...n.model.providers],c=n.model.activeId,l=s.findIndex(e=>e.id===c);if(l<0){let e=i();s.push({id:e,name:`默认`,baseURL:t.baseURL.trim(),apiKey:t.apiKey.trim()||void 0,model:t.model.trim(),availableModels:t.availableModels}),c=e}else s[l]={...s[l],baseURL:t.baseURL.trim(),apiKey:t.apiKey.trim()||void 0,model:t.model.trim(),availableModels:t.availableModels};e(t.apiKey),o({model:{...n.model,activeId:c,reasoningEffort:t.reasoningEffort??n.model.reasoningEffort,providers:s}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(m))}function b(e,t){let n=r(),i=[...n.model.providers],s=i.findIndex(t=>t.id===e.id),c={...e,name:e.name.trim()||`未命名提供商`,baseURL:e.baseURL.trim(),model:e.model.trim(),apiKey:e.apiKey?.trim()||void 0};s>=0?i[s]=c:i.push(c);let l=t?.activate===!1&&n.model.activeId||c.id;return o({model:{...n.model,providers:i,activeId:l}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(m)),i}function x(e){let t=r(),n=t.model.providers.filter(t=>t.id!==e),i=t.model.activeId;return i===e&&(i=n[0]?.id??``),o({model:{...t.model,providers:n,activeId:i}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(m)),n}function S(e){let t=r();t.model.providers.some(t=>t.id===e)&&(o({model:{...t.model,activeId:e}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(m)))}function C(e){let t=g();t&&y({...t,...e})}var w=`tw-access-changed`;function T(){return r().access}function E(e){o({access:e}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(w,{detail:e}))}function D(e){if(typeof window>`u`)return()=>{};let t=t=>{let n=t.detail;e(n??T())};return window.addEventListener(w,t),()=>window.removeEventListener(w,t)}function O(e){return window.addEventListener(m,e),()=>window.removeEventListener(m,e)}function k(e=`general`){window.dispatchEvent(new CustomEvent(h,{detail:{tab:e}}))}var A=`tw-general-prefs-changed`;function j(){return{...r().general}}function M(e){let t={...j(),...e};return t.sessionFontSize<12&&(t.sessionFontSize=12),t.sessionFontSize>22&&(t.sessionFontSize=22),o({general:t}),a(),L(t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(A,{detail:t})),t}function N(e){if(typeof window>`u`)return()=>{};let t=t=>{e(t.detail??j())};return window.addEventListener(A,t),()=>window.removeEventListener(A,t)}var P=null,F=null;function I(e){return e===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function L(e=j()){if(typeof document>`u`)return;let t=document.documentElement,n=I(e.appearance);t.dataset.theme=n,t.style.colorScheme=n,t.lang=e.language===`en`?`en`:`zh-CN`;let r=`${e.sessionFontSize}px`;t.style.setProperty(`--tw-ui-font-size`,r),t.style.setProperty(`--tw-session-font-size`,r),t.style.fontSize=``,P&&F&&(P.removeEventListener(`change`,F),P=null,F=null),e.appearance===`system`&&(P=window.matchMedia(`(prefers-color-scheme: dark)`),F=()=>{let e=I(`system`);t.dataset.theme=e,t.style.colorScheme=e},P.addEventListener(`change`,F));try{f(()=>import(`./i18n.CjqQGCAI.js`).then(e=>e.t).then(t=>t.applyDomI18n(e.language)),__vite__mapDeps([0,1]))}catch{}}export{S as _,v as a,_ as c,N as d,O as f,M as g,E as h,x as i,g as l,C as m,p as n,T as o,k as p,L as r,j as s,h as t,D as u,b as v,f as y};