@onescience/onecode-web 1.14.50-202609181347 → 1.14.50-202609181447

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 (53) hide show
  1. package/assets/{3Dmol-BdC7Rcrj.js → 3Dmol-Bs1pnqVz.js} +1 -1
  2. package/assets/{account-system-DiISuwDJ.js → account-system-CY4drCaX.js} +1 -1
  3. package/assets/{alert-04-Cqw0O3TJ.js → alert-01-z8dIq4Pc.js} +1 -1
  4. package/assets/{alert-05-DipDpbNF.js → alert-02-BxjsLEWa.js} +1 -1
  5. package/assets/{alert-01-DW-FwEf2.js → alert-04-BpFJU7N8.js} +1 -1
  6. package/assets/{alert-02-BLBJgtkC.js → alert-05-BuydbyJd.js} +1 -1
  7. package/assets/alert-06-CuSOt2Dy.js +1 -0
  8. package/assets/alert-07-DIS2_wBG.js +1 -0
  9. package/assets/alert-08-CurZtd5T.js +1 -0
  10. package/assets/alert-10-DcaR-mrX.js +1 -0
  11. package/assets/{bip-bop-03-Brf6Oqo2.js → bip-bop-03-xXRrhEML.js} +1 -1
  12. package/assets/{bip-bop-04-lBEl2GYK.js → bip-bop-04-BY8oGX5F.js} +1 -1
  13. package/assets/{bip-bop-06-vJJl77_m.js → bip-bop-06-e07_TLgR.js} +1 -1
  14. package/assets/{bip-bop-08-DkAQTj7_.js → bip-bop-08-52uFb4S7.js} +1 -1
  15. package/assets/bip-bop-09-BRNYR-7d.js +1 -0
  16. package/assets/{center-DRgF34Ze.js → center-B_6195N9.js} +1 -1
  17. package/assets/{dialog-fork-CiGr30aS.js → dialog-fork-YH7uYqAh.js} +1 -1
  18. package/assets/{dialog-project-upload-B2kVKJZX.js → dialog-project-upload-DUUZ-nFg.js} +1 -1
  19. package/assets/{dialog-select-file-BhhOUQJs.js → dialog-select-file-DUUmDLYd.js} +1 -1
  20. package/assets/{dialog-select-model-DER8hpwk.js → dialog-select-model-CIzoeE-Q.js} +2 -2
  21. package/assets/dialog-terminal-unavailable-kWfysTUw.js +3 -0
  22. package/assets/{docs-DtF5-3Dx.js → docs-CbRQBOtR.js} +1 -1
  23. package/assets/{ghostty-web-D5uDG1I2.js → ghostty-web-D18yiJJJ.js} +1 -1
  24. package/assets/index-BDK6SiBn.css +1 -0
  25. package/assets/{index-DjsAxbra.js → index-BHX3_77R.js} +48 -48
  26. package/assets/{intro-D4Ls5AZ5.js → intro-sNN_xMBN.js} +1 -1
  27. package/assets/{nope-02-fTdtLTBd.js → nope-02-DsVYOY-x.js} +1 -1
  28. package/assets/{nope-05-CdadKDgF.js → nope-05-DlguPUIK.js} +1 -1
  29. package/assets/{nope-08-DYEl8boe.js → nope-08-B83_GuMb.js} +1 -1
  30. package/assets/{nope-11-Cm5fzWeR.js → nope-11-Cg6OXyxp.js} +1 -1
  31. package/assets/nope-12-t7LTwK9I.js +1 -0
  32. package/assets/{onescience-Fu9gdX23.js → onescience-WBSMJCUv.js} +1 -1
  33. package/assets/{resources-BlKcxTgP.js → resources-BaCwF0IQ.js} +1 -1
  34. package/assets/{skills-BrE-BRpo.js → skills-Rqg7dzJH.js} +1 -1
  35. package/assets/{staplebops-03-SSiZbWtT.js → staplebops-03-CStalX2Z.js} +1 -1
  36. package/assets/{staplebops-04-CBAHzb5B.js → staplebops-04-DJy_48Rn.js} +1 -1
  37. package/assets/{staplebops-06-BHws5oXH.js → staplebops-06-Bzdbw7PP.js} +1 -1
  38. package/assets/{staplebops-07-CBbzE19M.js → staplebops-07-tfOMJj80.js} +1 -1
  39. package/assets/{wizard-m1Tm-C5p.js → wizard-Dv_Krw_W.js} +1 -1
  40. package/assets/{yup-01-BPkZC-1b.js → yup-01-k_226D31.js} +1 -1
  41. package/assets/{yup-03-mTFk0WyH.js → yup-03-2oPuxuHP.js} +1 -1
  42. package/assets/{yup-04-Dg7uchCl.js → yup-04-B5QBcYLS.js} +1 -1
  43. package/assets/{yup-05-Cpv5uubV.js → yup-05-DQ4vHRug.js} +1 -1
  44. package/index.html +11 -11
  45. package/package.json +2 -2
  46. package/assets/alert-06-BdeSHRX7.js +0 -1
  47. package/assets/alert-07-DfVptmqM.js +0 -1
  48. package/assets/alert-08-MJWtz0tU.js +0 -1
  49. package/assets/alert-10-CZgQfDha.js +0 -1
  50. package/assets/bip-bop-09-BcWeWnoD.js +0 -1
  51. package/assets/dialog-terminal-unavailable-Zx0OgBre.js +0 -3
  52. package/assets/index-BehFKl-V.css +0 -1
  53. package/assets/nope-12-Cbtz-bf4.js +0 -1
@@ -1 +1 @@
1
- import{co as N,O as Q,i,a as e,t as r,aA as n,S as p,F as o,aB as O,b as T,x as U,b0 as q,H as V,cp as X,cq as Y,g as Z}from"./index-DjsAxbra.js";var ii=r("<div class=os-client-capability-intro-overlay role=dialog aria-modal=true aria-label=能力介绍>"),ti=r("<section class=os-client-capability-intro-dialog><p>未找到该能力。"),ei=r("<p class=os-client-capability-unavailable-hint>暂无 OneScience 源码或魔搭映射,当前不可使用。"),li=r("<section class=os-client-capability-intro-scenarios aria-label=快捷场景><div class=os-client-capability-intro-scenarios-copy><h3></h3><p></p></div><div class=os-client-capability-intro-scenario-grid>"),ai=r("<section class=os-client-capability-intro-dialog><header class=os-client-capability-intro-head><div><span></span><h2></h2><p></p></div></header><div class=os-client-capability-intro-matrix><article class=os-client-capability-intro-block data-tone=suited><h3>适合解决</h3><div class=os-client-capability-intro-chips></div></article><article class=os-client-capability-intro-block data-tone=not-for><h3>不建议直接用在</h3><div class=os-client-capability-intro-chips></div></article><article class=os-client-capability-intro-block data-tone=prepare><h3>需要准备什么</h3><div class=os-client-capability-intro-chips></div></article></div><section class=os-client-capability-intro-flow aria-label=使用流程><h3>怎么用</h3><ol></ol></section><footer class=os-client-capability-intro-footer><a class=os-client-capability-intro-docs-link target=_blank rel=noreferrer>深入资料"),m=r("<span>"),ri=r("<li><span></span><strong>"),ni=r("<strong>"),si=r("<p>");function ci(b){return b==="hpc"?{title:"不用手写复杂作业脚本",body:"选择一个常见软件任务,系统会把输入文件、HPC 资源、运行脚本和审批步骤整理成可执行任务。"}:{title:"不用理解复杂模型细节",body:"选择一个常见能力,系统会把研究对象、输入数据、目标和运行偏好整理成可执行任务。"}}function di(){const b=N(),C=Q(),h=()=>Z(b.id??""),S=()=>Y(C.search),g=()=>X(C.search,{category:h()?.category??"onemodel",domain:h()?.domain??"materials"});return(()=>{var x=ii();return i(x,e(p,{get when(){return h()},get fallback(){return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return q()},"aria-label":"关闭介绍"}),(()=>{var t=ti();return t.firstChild,i(t,e(n,{get href(){return q()},children:"返回能力中心"}),null),t})()]},children:t=>{const k=()=>ci(t().category),_=()=>V(t());return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return g()},"aria-label":"关闭介绍"}),(()=>{var $=ai(),u=$.firstChild,w=u.firstChild,H=w.firstChild,A=H.nextSibling,B=A.nextSibling,F=u.nextSibling,R=F.firstChild,E=R.firstChild,I=E.nextSibling,z=R.nextSibling,L=z.firstChild,W=L.nextSibling,j=z.nextSibling,D=j.firstChild,G=D.nextSibling,P=F.nextSibling,J=P.firstChild,K=J.nextSibling,y=P.nextSibling,M=y.firstChild;return i(H,()=>t().intro.title||"30 秒看懂模型"),i(A,()=>t().name),i(B,()=>t().intro.subtitle),i(w,e(p,{get when(){return!_()},get children(){return ei()}}),null),i(u,e(n,{class:"os-client-capability-intro-close",get href(){return g()},"aria-label":"关闭",children:"×"}),null),i(I,e(o,{get each(){return t().intro.suited},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(W,e(o,{get each(){return t().intro.notFor},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(G,e(o,{get each(){return t().intro.prepare},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(K,e(o,{get each(){return t().intro.steps},children:(a,l)=>(()=>{var s=ri(),d=s.firstChild,f=d.nextSibling;return i(d,()=>l()+1),i(f,a),s})()})),i($,e(p,{get when(){return _()},get children(){var a=li(),l=a.firstChild,s=l.firstChild,d=s.nextSibling,f=l.nextSibling;return i(s,()=>k().title),i(d,()=>k().body),i(f,e(o,{get each(){return t().scenarios},children:v=>e(n,{class:"os-client-capability-intro-scenario-card",get href(){return O(t().id,v.id,S())},get children(){return[(()=>{var c=ni();return i(c,()=>v.title),c})(),(()=>{var c=si();return i(c,()=>v.summary),c})()]}})})),a}}),y),i(y,e(p,{get when(){return _()},get fallback(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return g()},children:"返回模型库"})},get children(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return O(t().id,void 0,S())},"data-primary":"true",children:"进入能力向导"})}}),null),T(()=>U(M,"href",t().docsHref)),$})()]}})),x})()}export{di as CapabilityIntroPage};
1
+ import{co as N,O as Q,i,a as e,t as r,aA as n,S as p,F as o,aB as O,b as T,x as U,b0 as q,H as V,cp as X,cq as Y,g as Z}from"./index-BHX3_77R.js";var ii=r("<div class=os-client-capability-intro-overlay role=dialog aria-modal=true aria-label=能力介绍>"),ti=r("<section class=os-client-capability-intro-dialog><p>未找到该能力。"),ei=r("<p class=os-client-capability-unavailable-hint>暂无 OneScience 源码或魔搭映射,当前不可使用。"),li=r("<section class=os-client-capability-intro-scenarios aria-label=快捷场景><div class=os-client-capability-intro-scenarios-copy><h3></h3><p></p></div><div class=os-client-capability-intro-scenario-grid>"),ai=r("<section class=os-client-capability-intro-dialog><header class=os-client-capability-intro-head><div><span></span><h2></h2><p></p></div></header><div class=os-client-capability-intro-matrix><article class=os-client-capability-intro-block data-tone=suited><h3>适合解决</h3><div class=os-client-capability-intro-chips></div></article><article class=os-client-capability-intro-block data-tone=not-for><h3>不建议直接用在</h3><div class=os-client-capability-intro-chips></div></article><article class=os-client-capability-intro-block data-tone=prepare><h3>需要准备什么</h3><div class=os-client-capability-intro-chips></div></article></div><section class=os-client-capability-intro-flow aria-label=使用流程><h3>怎么用</h3><ol></ol></section><footer class=os-client-capability-intro-footer><a class=os-client-capability-intro-docs-link target=_blank rel=noreferrer>深入资料"),m=r("<span>"),ri=r("<li><span></span><strong>"),ni=r("<strong>"),si=r("<p>");function ci(b){return b==="hpc"?{title:"不用手写复杂作业脚本",body:"选择一个常见软件任务,系统会把输入文件、HPC 资源、运行脚本和审批步骤整理成可执行任务。"}:{title:"不用理解复杂模型细节",body:"选择一个常见能力,系统会把研究对象、输入数据、目标和运行偏好整理成可执行任务。"}}function di(){const b=N(),C=Q(),h=()=>Z(b.id??""),S=()=>Y(C.search),g=()=>X(C.search,{category:h()?.category??"onemodel",domain:h()?.domain??"materials"});return(()=>{var x=ii();return i(x,e(p,{get when(){return h()},get fallback(){return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return q()},"aria-label":"关闭介绍"}),(()=>{var t=ti();return t.firstChild,i(t,e(n,{get href(){return q()},children:"返回能力中心"}),null),t})()]},children:t=>{const k=()=>ci(t().category),_=()=>V(t());return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return g()},"aria-label":"关闭介绍"}),(()=>{var $=ai(),u=$.firstChild,w=u.firstChild,H=w.firstChild,A=H.nextSibling,B=A.nextSibling,F=u.nextSibling,R=F.firstChild,E=R.firstChild,I=E.nextSibling,z=R.nextSibling,L=z.firstChild,W=L.nextSibling,j=z.nextSibling,D=j.firstChild,G=D.nextSibling,P=F.nextSibling,J=P.firstChild,K=J.nextSibling,y=P.nextSibling,M=y.firstChild;return i(H,()=>t().intro.title||"30 秒看懂模型"),i(A,()=>t().name),i(B,()=>t().intro.subtitle),i(w,e(p,{get when(){return!_()},get children(){return ei()}}),null),i(u,e(n,{class:"os-client-capability-intro-close",get href(){return g()},"aria-label":"关闭",children:"×"}),null),i(I,e(o,{get each(){return t().intro.suited},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(W,e(o,{get each(){return t().intro.notFor},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(G,e(o,{get each(){return t().intro.prepare},children:a=>(()=>{var l=m();return i(l,a),l})()})),i(K,e(o,{get each(){return t().intro.steps},children:(a,l)=>(()=>{var s=ri(),d=s.firstChild,f=d.nextSibling;return i(d,()=>l()+1),i(f,a),s})()})),i($,e(p,{get when(){return _()},get children(){var a=li(),l=a.firstChild,s=l.firstChild,d=s.nextSibling,f=l.nextSibling;return i(s,()=>k().title),i(d,()=>k().body),i(f,e(o,{get each(){return t().scenarios},children:v=>e(n,{class:"os-client-capability-intro-scenario-card",get href(){return O(t().id,v.id,S())},get children(){return[(()=>{var c=ni();return i(c,()=>v.title),c})(),(()=>{var c=si();return i(c,()=>v.summary),c})()]}})})),a}}),y),i(y,e(p,{get when(){return _()},get fallback(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return g()},children:"返回模型库"})},get children(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return O(t().id,void 0,S())},"data-primary":"true",children:"进入能力向导"})}}),null),T(()=>U(M,"href",t().docsHref)),$})()]}})),x})()}export{di as CapabilityIntroPage};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/nope-02-EygnDbCM.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/nope-02-EygnDbCM.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/nope-05-DZsXzrQW.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/nope-05-DZsXzrQW.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/nope-08-COPo0uNf.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/nope-08-COPo0uNf.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/nope-11-CVdXg8G-.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/nope-11-CVdXg8G-.aac";export{e as default};
@@ -0,0 +1 @@
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/nope-12-BJR1Ka3c.aac";export{e as default};
@@ -1,4 +1,4 @@
1
- import{d as At,a as n,aC as bt,i,aj as Ne,S as v,b as E,x as R,v as ne,c as P,z as ge,F as ce,t as o,u as mt,aD as ys,aE as er,aF as Da,aG as Wt,aH as Ja,m as ws,p as $s,n as Cs,aI as Ss,aJ as tr,aK as _s,A as je,aL as It,aA as Ze,ac as Ut,aM as Ps,D as W,B as pa,aN as ga,aO as Ua,K as ot,k as ft,a2 as ar,al as gt,aP as Gr,aQ as Br,aR as $i,aS as Ci,aT as ks,aU as Ds,aV as sa,aW as Si,aX as Hr,P as vt,O as Xt,L as Tt,N as fa,aY as As,C as qr,aZ as xs,a_ as Ms,a$ as Is,af as et,b0 as ir,b1 as Fs,b2 as zr,b3 as jr,b4 as Wr,ag as Vr,b5 as ni,b6 as Ts,b7 as Es,b8 as Ns,h as Kr,b9 as Os,ba as Rs,bb as rr,ak as ca,bc as Ls,bd as Aa,be as Ta,bf as Us,bg as ht,bh as xt,Q as _i,bi as Pi,bj as Gs,l as Xr,bk as Bs,bl as Hs,bm as qs,bn as zs,bo as js,bp as Ea,bq as la,br as Ws,bs as Qa,bt as Za,bu as Vs,bv as Ks,bw as ra,bx as Xs,by as Js,bz as Qs,bA as Zs,bB as ki,bC as Ys,bD as eo,bE as to,bF as Di,bG as Ai,bH as Jr,bI as Qr,bJ as si,bK as ao,bL as oi,bM as io,bN as ro,bO as no,bP as zt,bQ as so,bR as oo,bS as Zr,bT as Yr,bU as en,bV as tn,bW as an,bX as lo,ap as co,bY as uo,bZ as mo,b_ as ho,b$ as po,c0 as kt,c1 as go,c2 as fo,c3 as bo,c4 as vo,c5 as nr,c6 as yo,c7 as li,c8 as wo,c9 as rn,ca as nn,cb as $o,cc as sn,o as jt,cd as xi,j as Co,ce as So,cf as _o,r as Po,ah as ko,ai as Ya,cg as on,ch as Do,ci as Ao,w as xo,cj as Mo,ck as sr,cl as Io,cm as Fo,cn as To}from"./index-DjsAxbra.js";import{d as Eo}from"./onescience-docs-CH5KBTI9.js";var No=o("<div><div class=os-download-path-hint-title></div><ul class=os-download-path-hint-list>"),Oo=o("<li class=break-all>"),Ro=o("<div class=os-download-env-row><div class=os-download-env-field><span class=os-field-label-row><span class=os-field-label>下载到环境</span></span><div>"),Lo=o("<p class=os-section-copy>确认将 <strong></strong> <!>以下路径吗?"),Uo=o("<p class=os-section-copy data-testid=download-register-guide>下载完成不会自动登记。请到 OneData「原始数据」确认接入后再加工或训练。"),Go=o("<p class=os-section-copy>SCNet 侧无法直接访问 ModelScope。确认后将打开科研开发会话,由 Agent 使用 scnet MCP 工具完成下载与传输。"),Bo=o("<div class=os-dataset-download-info-row><span></span><strong>"),Ho=o("<div class=os-upload-error>可用空间不足,无法下载该数据集"),or=o("<div class=os-upload-error>"),qo=o("<div class=os-upload-error>无法从魔搭获取数据集大小,暂不可下载"),zo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow>数据集</div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><div class=os-dataset-download-info><div class=os-dataset-download-info-row><span>数据集大小(预估)</span><strong></strong></div></div><div class=os-upload-actions><button type=button class="os-button os-button-secondary">取消</button><button type=button class="os-button os-button-primary">'),jo=o("<label><span class=os-field-label-row><span class=os-field-label><span class=os-field-required aria-hidden=true> *</span></span></span><input>"),Wo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow>取消下载</div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><p class=os-section-copy>确认取消 <strong></strong> 的下载吗?已下载的部分文件将被保留,你可以稍后重新下载。</p><div class=os-upload-actions><button type=button class="os-button os-button-secondary">继续下载</button><button type=button class="os-button os-button-primary">'),Vo=o("<p class=os-section-copy>正在删除所选副本…"),Ko=o("<p class=os-section-copy>"),Xo=o("<button type=button class=os-download-copy-all>"),Jo=o("<div class=os-download-copy-list role=group aria-label=选择要删除的环境>"),Qo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow></div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><div class=os-upload-actions><button type=button class="os-button os-button-secondary">取消</button><button type=button class="os-button os-button-primary">'),lr=o("<strong>"),Zo=o("<span class=os-download-copy-partial> 未完成"),Yo=o("<button type=button class=os-download-copy-item><span class=os-download-copy-item-title></span><span class=os-download-copy-item-path>"),el=o('<span class="os-download-copy-path break-all">');function cr(e){const t=()=>e.paths.filter(a=>a.trim());return n(v,{get when(){return t().length>0},get children(){var a=No(),r=a.firstChild,s=r.nextSibling;return i(r,()=>e.confirmed?"数据集位置":"数据集实际位置(随 ModelScope 版本可能不同)"),i(s,n(ce,{get each(){return t()},children:c=>(()=>{var d=Oo();return i(d,c),d})()})),E(()=>mt(a,`os-download-path-hint ${e.class??""}`.trim())),a}})}function tl(e){const t=()=>e.actionLabel??"下载",a=()=>e.environment??{kind:"local"},r=()=>e.diskLoading?"加载中...":er(e.availableBytes),s=()=>e.sizeLoading?"加载中...":e.datasetBytes===void 0?"无法从魔搭获取数据集大小":er(e.datasetBytes),c=()=>{if(a().kind==="ssh")return e.remotePath??"";if(a().kind==="scnet")return e.remotePath?.trim()||"(SCNet 默认缓存目录)";const h=`/${e.datasetId}`;return e.targetPath.endsWith(h)?e.targetPath.slice(0,-h.length):e.targetPath},d=()=>{const h=(e.actualPaths??[]).map(f=>f.trim()).filter(Boolean);return h.length>0?{paths:[...new Set(h)],confirmed:!0}:{paths:ys(c(),e.datasetId),confirmed:!1}},l=()=>e.busy?a().kind==="ssh"?"正在提交到远端...":"正在提交下载...":a().kind==="scnet"?"创建下载任务":t()==="更新"?"确认更新":"确认下载",p=()=>!!e.sizeLoading||e.datasetBytes===void 0,y=()=>{if(a().kind==="scnet")return!1;const h=e.datasetBytes,f=e.availableBytes;return h===void 0||f===void 0||f<=0?!1:h>f},b=()=>a().kind==="scnet"||e.diskLoading?!1:e.availableBytes===void 0,u=()=>!!e.busy||!!e.confirmDisabled||a().kind==="ssh"&&!(e.remotePath??"").trim()||p()||!!e.diskLoading||b()||y();return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var h=zo(),f=h.firstChild,w=f.firstChild,C=w.firstChild,g=C.firstChild,M=g.firstChild,O=g.nextSibling,U=C.nextSibling,V=w.nextSibling,N=V.firstChild,H=N.firstChild,D=H.nextSibling,T=V.nextSibling,z=T.firstChild,L=z.nextSibling;return f.$$click=S=>S.stopPropagation(),i(g,t,M),i(O,()=>e.title),Ne(U,"click",e.onClose,!0),i(f,n(v,{get when(){return e.environmentSelector},get children(){var S=Ro(),I=S.firstChild,B=I.firstChild,re=B.nextSibling;return i(re,()=>e.environmentSelector),S}}),V),i(f,n(v,{get when(){return a().kind==="local"},get fallback(){return[(()=>{var S=jo(),I=S.firstChild,B=I.firstChild,re=B.firstChild,de=I.nextSibling;return i(B,()=>a().kind==="ssh"?"远端存储目录":"SCNet 目标目录",re),de.$$input=J=>e.onRemotePathChange?.(J.currentTarget.value),E(()=>R(de,"placeholder",a().kind==="ssh"?"/work/you/modelscope/hub/datasets":"modelscope/hub/datasets")),E(()=>de.value=e.remotePath??""),S})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]},get children(){return[(()=>{var S=Lo(),I=S.firstChild,B=I.nextSibling,re=B.nextSibling,de=re.nextSibling;return de.nextSibling,i(B,()=>e.datasetId),i(S,()=>t()==="更新"?"更新到":"下载到",de),S})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]}}),V),i(f,n(v,{get when(){return d().confirmed},get children(){return Uo()}}),V),i(f,n(v,{get when(){return a().kind==="scnet"},get children(){return Go()}}),V),i(D,s),i(V,n(v,{get when(){return a().kind!=="scnet"},get children(){var S=Bo(),I=S.firstChild,B=I.nextSibling;return i(I,()=>a().kind==="ssh"?"远端可用空间":"项目路径可用空间"),i(B,r),S}}),null),i(f,n(v,{get when(){return y()},get children(){return Ho()}}),T),i(f,n(v,{get when(){return b()},get children(){var S=or();return i(S,()=>a().kind==="ssh"?"无法获取远端可用空间,暂不可下载":"无法获取项目路径可用空间,暂不可下载"),S}}),T),i(f,n(v,{get when(){return ne(()=>!e.sizeLoading)()&&e.datasetBytes===void 0},get children(){return qo()}}),T),i(f,n(v,{get when(){return e.error},get children(){var S=or();return i(S,()=>e.error),S}}),T),Ne(z,"click",e.onClose,!0),Ne(L,"click",e.onConfirm,!0),i(L,l),E(S=>{var I=y()?"":void 0,B=b()?"":void 0,re=e.busy,de=u();return I!==S.e&&R(V,"data-insufficient",S.e=I),B!==S.t&&R(V,"data-unknown",S.t=B),re!==S.a&&(z.disabled=S.a=re),de!==S.o&&(L.disabled=S.o=de),S},{e:void 0,t:void 0,a:void 0,o:void 0}),h}})}})}function al(e){return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var t=Wo(),a=t.firstChild,r=a.firstChild,s=r.firstChild,c=s.firstChild,d=c.nextSibling,l=s.nextSibling,p=r.nextSibling,y=p.firstChild,b=y.nextSibling,u=p.nextSibling,h=u.firstChild,f=h.nextSibling;return a.$$click=w=>w.stopPropagation(),i(d,()=>e.title),Ne(l,"click",e.onClose,!0),i(b,()=>e.datasetId),Ne(h,"click",e.onClose,!0),Ne(f,"click",e.onConfirm,!0),i(f,()=>e.busy?"正在取消...":"确认取消"),E(w=>{var C=e.busy,g=e.busy;return C!==w.e&&(h.disabled=w.e=C),g!==w.t&&(f.disabled=w.t=g),w},{e:void 0,t:void 0}),t}})}})}function il(e){const[t,a]=P();ge(()=>{if(!e.open){a(void 0);return}e.busy||a(e.copies)});const r=()=>e.busy?t()??e.copies:e.copies,s=()=>new Set(e.selectedKeys),c=()=>r().filter(u=>s().has(u.key)),d=()=>r().length>0&&c().length===r().length,l=()=>{const u=c();return u.length>0&&u.every(h=>h.partial)},p=()=>!!e.busy||c().length===0,y=u=>{if(e.busy)return;const h=new Set(s());h.has(u)?h.delete(u):h.add(u),e.onSelectedKeysChange([...h])},b=()=>{e.busy||e.onSelectedKeysChange(d()?[]:r().map(u=>u.key))};return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var u=Qo(),h=u.firstChild,f=h.firstChild,w=f.firstChild,C=w.firstChild,g=C.nextSibling,M=w.nextSibling,O=f.nextSibling,U=O.firstChild,V=U.nextSibling;return h.$$click=N=>N.stopPropagation(),i(C,()=>l()?"清理残留文件":"删除数据集"),i(g,()=>e.title),Ne(M,"click",e.onClose,!0),i(h,n(v,{get when(){return e.busy},get children(){return Vo()}}),O),i(h,n(v,{get when(){return!e.busy},get children(){return[(()=>{var N=Ko();return i(N,(()=>{var H=ne(()=>r().length>1);return()=>H()?"该数据集已下载到多个环境。请选择要删除的副本,此操作不可恢复。":ne(()=>!!l())()?["确认清理 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 未完成的下载残留吗?请选择环境后继续。"]:["请选择要删除 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 的环境。此操作不可恢复。"]})()),N})(),n(v,{get when(){return r().length>1},get children(){var N=Xo();return N.$$click=b,i(N,()=>d()?"取消全选":"全选"),E(()=>N.disabled=e.busy),N}}),(()=>{var N=Jo();return i(N,n(ce,{get each(){return r()},children:H=>(()=>{var D=Yo(),T=D.firstChild,z=T.nextSibling;return D.$$click=()=>y(H.key),i(T,()=>H.label,null),i(T,n(v,{get when(){return H.partial},get children(){return Zo()}}),null),i(z,n(ce,{get each(){return H.paths},children:L=>(()=>{var S=el();return i(S,L),S})()})),E(L=>{var S=s().has(H.key)?"":void 0,I=s().has(H.key),B=e.busy;return S!==L.e&&R(D,"data-selected",L.e=S),I!==L.t&&R(D,"aria-pressed",L.t=I),B!==L.a&&(D.disabled=L.a=B),L},{e:void 0,t:void 0,a:void 0}),D})()})),N})()]}}),O),Ne(U,"click",e.onClose,!0),Ne(V,"click",e.onConfirm,!0),i(V,(()=>{var N=ne(()=>!!e.busy);return()=>N()?"正在删除...":l()?"确认清理":"确认删除"})()),E(N=>{var H=e.busy,D=e.busy,T=p();return H!==N.e&&(M.disabled=N.e=H),D!==N.t&&(U.disabled=N.t=D),T!==N.a&&(V.disabled=N.a=T),N},{e:void 0,t:void 0,a:void 0}),u}})}})}At(["click","input"]);const St=`请按照下面的内容,使用OneScience,进行后续工作。
1
+ import{d as At,a as n,aC as bt,i,aj as Ne,S as v,b as E,x as R,v as ne,c as P,z as ge,F as ce,t as o,u as mt,aD as ys,aE as er,aF as Da,aG as Wt,aH as Ja,m as ws,p as $s,n as Cs,aI as Ss,aJ as tr,aK as _s,A as je,aL as It,aA as Ze,ac as Ut,aM as Ps,D as W,B as pa,aN as ga,aO as Ua,K as ot,k as ft,a2 as ar,al as gt,aP as Gr,aQ as Br,aR as $i,aS as Ci,aT as ks,aU as Ds,aV as sa,aW as Si,aX as Hr,P as vt,O as Xt,L as Tt,N as fa,aY as As,C as qr,aZ as xs,a_ as Ms,a$ as Is,af as et,b0 as ir,b1 as Fs,b2 as zr,b3 as jr,b4 as Wr,ag as Vr,b5 as ni,b6 as Ts,b7 as Es,b8 as Ns,h as Kr,b9 as Os,ba as Rs,bb as rr,ak as ca,bc as Ls,bd as Aa,be as Ta,bf as Us,bg as ht,bh as xt,Q as _i,bi as Pi,bj as Gs,l as Xr,bk as Bs,bl as Hs,bm as qs,bn as zs,bo as js,bp as Ea,bq as la,br as Ws,bs as Qa,bt as Za,bu as Vs,bv as Ks,bw as ra,bx as Xs,by as Js,bz as Qs,bA as Zs,bB as ki,bC as Ys,bD as eo,bE as to,bF as Di,bG as Ai,bH as Jr,bI as Qr,bJ as si,bK as ao,bL as oi,bM as io,bN as ro,bO as no,bP as zt,bQ as so,bR as oo,bS as Zr,bT as Yr,bU as en,bV as tn,bW as an,bX as lo,ap as co,bY as uo,bZ as mo,b_ as ho,b$ as po,c0 as kt,c1 as go,c2 as fo,c3 as bo,c4 as vo,c5 as nr,c6 as yo,c7 as li,c8 as wo,c9 as rn,ca as nn,cb as $o,cc as sn,o as jt,cd as xi,j as Co,ce as So,cf as _o,r as Po,ah as ko,ai as Ya,cg as on,ch as Do,ci as Ao,w as xo,cj as Mo,ck as sr,cl as Io,cm as Fo,cn as To}from"./index-BHX3_77R.js";import{d as Eo}from"./onescience-docs-CH5KBTI9.js";var No=o("<div><div class=os-download-path-hint-title></div><ul class=os-download-path-hint-list>"),Oo=o("<li class=break-all>"),Ro=o("<div class=os-download-env-row><div class=os-download-env-field><span class=os-field-label-row><span class=os-field-label>下载到环境</span></span><div>"),Lo=o("<p class=os-section-copy>确认将 <strong></strong> <!>以下路径吗?"),Uo=o("<p class=os-section-copy data-testid=download-register-guide>下载完成不会自动登记。请到 OneData「原始数据」确认接入后再加工或训练。"),Go=o("<p class=os-section-copy>SCNet 侧无法直接访问 ModelScope。确认后将打开科研开发会话,由 Agent 使用 scnet MCP 工具完成下载与传输。"),Bo=o("<div class=os-dataset-download-info-row><span></span><strong>"),Ho=o("<div class=os-upload-error>可用空间不足,无法下载该数据集"),or=o("<div class=os-upload-error>"),qo=o("<div class=os-upload-error>无法从魔搭获取数据集大小,暂不可下载"),zo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow>数据集</div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><div class=os-dataset-download-info><div class=os-dataset-download-info-row><span>数据集大小(预估)</span><strong></strong></div></div><div class=os-upload-actions><button type=button class="os-button os-button-secondary">取消</button><button type=button class="os-button os-button-primary">'),jo=o("<label><span class=os-field-label-row><span class=os-field-label><span class=os-field-required aria-hidden=true> *</span></span></span><input>"),Wo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow>取消下载</div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><p class=os-section-copy>确认取消 <strong></strong> 的下载吗?已下载的部分文件将被保留,你可以稍后重新下载。</p><div class=os-upload-actions><button type=button class="os-button os-button-secondary">继续下载</button><button type=button class="os-button os-button-primary">'),Vo=o("<p class=os-section-copy>正在删除所选副本…"),Ko=o("<p class=os-section-copy>"),Xo=o("<button type=button class=os-download-copy-all>"),Jo=o("<div class=os-download-copy-list role=group aria-label=选择要删除的环境>"),Qo=o('<div class=os-modal-backdrop role=presentation><div class="os-upload-dialog os-download-dialog"><div class=os-upload-head><div><div class=os-eyebrow></div><h2></h2></div><button type=button class="os-button os-button-secondary os-button-square">×</button></div><div class=os-upload-actions><button type=button class="os-button os-button-secondary">取消</button><button type=button class="os-button os-button-primary">'),lr=o("<strong>"),Zo=o("<span class=os-download-copy-partial> 未完成"),Yo=o("<button type=button class=os-download-copy-item><span class=os-download-copy-item-title></span><span class=os-download-copy-item-path>"),el=o('<span class="os-download-copy-path break-all">');function cr(e){const t=()=>e.paths.filter(a=>a.trim());return n(v,{get when(){return t().length>0},get children(){var a=No(),r=a.firstChild,s=r.nextSibling;return i(r,()=>e.confirmed?"数据集位置":"数据集实际位置(随 ModelScope 版本可能不同)"),i(s,n(ce,{get each(){return t()},children:c=>(()=>{var d=Oo();return i(d,c),d})()})),E(()=>mt(a,`os-download-path-hint ${e.class??""}`.trim())),a}})}function tl(e){const t=()=>e.actionLabel??"下载",a=()=>e.environment??{kind:"local"},r=()=>e.diskLoading?"加载中...":er(e.availableBytes),s=()=>e.sizeLoading?"加载中...":e.datasetBytes===void 0?"无法从魔搭获取数据集大小":er(e.datasetBytes),c=()=>{if(a().kind==="ssh")return e.remotePath??"";if(a().kind==="scnet")return e.remotePath?.trim()||"(SCNet 默认缓存目录)";const h=`/${e.datasetId}`;return e.targetPath.endsWith(h)?e.targetPath.slice(0,-h.length):e.targetPath},d=()=>{const h=(e.actualPaths??[]).map(f=>f.trim()).filter(Boolean);return h.length>0?{paths:[...new Set(h)],confirmed:!0}:{paths:ys(c(),e.datasetId),confirmed:!1}},l=()=>e.busy?a().kind==="ssh"?"正在提交到远端...":"正在提交下载...":a().kind==="scnet"?"创建下载任务":t()==="更新"?"确认更新":"确认下载",p=()=>!!e.sizeLoading||e.datasetBytes===void 0,y=()=>{if(a().kind==="scnet")return!1;const h=e.datasetBytes,f=e.availableBytes;return h===void 0||f===void 0||f<=0?!1:h>f},b=()=>a().kind==="scnet"||e.diskLoading?!1:e.availableBytes===void 0,u=()=>!!e.busy||!!e.confirmDisabled||a().kind==="ssh"&&!(e.remotePath??"").trim()||p()||!!e.diskLoading||b()||y();return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var h=zo(),f=h.firstChild,w=f.firstChild,C=w.firstChild,g=C.firstChild,M=g.firstChild,O=g.nextSibling,U=C.nextSibling,V=w.nextSibling,N=V.firstChild,H=N.firstChild,D=H.nextSibling,T=V.nextSibling,z=T.firstChild,L=z.nextSibling;return f.$$click=S=>S.stopPropagation(),i(g,t,M),i(O,()=>e.title),Ne(U,"click",e.onClose,!0),i(f,n(v,{get when(){return e.environmentSelector},get children(){var S=Ro(),I=S.firstChild,B=I.firstChild,re=B.nextSibling;return i(re,()=>e.environmentSelector),S}}),V),i(f,n(v,{get when(){return a().kind==="local"},get fallback(){return[(()=>{var S=jo(),I=S.firstChild,B=I.firstChild,re=B.firstChild,de=I.nextSibling;return i(B,()=>a().kind==="ssh"?"远端存储目录":"SCNet 目标目录",re),de.$$input=J=>e.onRemotePathChange?.(J.currentTarget.value),E(()=>R(de,"placeholder",a().kind==="ssh"?"/work/you/modelscope/hub/datasets":"modelscope/hub/datasets")),E(()=>de.value=e.remotePath??""),S})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]},get children(){return[(()=>{var S=Lo(),I=S.firstChild,B=I.nextSibling,re=B.nextSibling,de=re.nextSibling;return de.nextSibling,i(B,()=>e.datasetId),i(S,()=>t()==="更新"?"更新到":"下载到",de),S})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]}}),V),i(f,n(v,{get when(){return d().confirmed},get children(){return Uo()}}),V),i(f,n(v,{get when(){return a().kind==="scnet"},get children(){return Go()}}),V),i(D,s),i(V,n(v,{get when(){return a().kind!=="scnet"},get children(){var S=Bo(),I=S.firstChild,B=I.nextSibling;return i(I,()=>a().kind==="ssh"?"远端可用空间":"项目路径可用空间"),i(B,r),S}}),null),i(f,n(v,{get when(){return y()},get children(){return Ho()}}),T),i(f,n(v,{get when(){return b()},get children(){var S=or();return i(S,()=>a().kind==="ssh"?"无法获取远端可用空间,暂不可下载":"无法获取项目路径可用空间,暂不可下载"),S}}),T),i(f,n(v,{get when(){return ne(()=>!e.sizeLoading)()&&e.datasetBytes===void 0},get children(){return qo()}}),T),i(f,n(v,{get when(){return e.error},get children(){var S=or();return i(S,()=>e.error),S}}),T),Ne(z,"click",e.onClose,!0),Ne(L,"click",e.onConfirm,!0),i(L,l),E(S=>{var I=y()?"":void 0,B=b()?"":void 0,re=e.busy,de=u();return I!==S.e&&R(V,"data-insufficient",S.e=I),B!==S.t&&R(V,"data-unknown",S.t=B),re!==S.a&&(z.disabled=S.a=re),de!==S.o&&(L.disabled=S.o=de),S},{e:void 0,t:void 0,a:void 0,o:void 0}),h}})}})}function al(e){return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var t=Wo(),a=t.firstChild,r=a.firstChild,s=r.firstChild,c=s.firstChild,d=c.nextSibling,l=s.nextSibling,p=r.nextSibling,y=p.firstChild,b=y.nextSibling,u=p.nextSibling,h=u.firstChild,f=h.nextSibling;return a.$$click=w=>w.stopPropagation(),i(d,()=>e.title),Ne(l,"click",e.onClose,!0),i(b,()=>e.datasetId),Ne(h,"click",e.onClose,!0),Ne(f,"click",e.onConfirm,!0),i(f,()=>e.busy?"正在取消...":"确认取消"),E(w=>{var C=e.busy,g=e.busy;return C!==w.e&&(h.disabled=w.e=C),g!==w.t&&(f.disabled=w.t=g),w},{e:void 0,t:void 0}),t}})}})}function il(e){const[t,a]=P();ge(()=>{if(!e.open){a(void 0);return}e.busy||a(e.copies)});const r=()=>e.busy?t()??e.copies:e.copies,s=()=>new Set(e.selectedKeys),c=()=>r().filter(u=>s().has(u.key)),d=()=>r().length>0&&c().length===r().length,l=()=>{const u=c();return u.length>0&&u.every(h=>h.partial)},p=()=>!!e.busy||c().length===0,y=u=>{if(e.busy)return;const h=new Set(s());h.has(u)?h.delete(u):h.add(u),e.onSelectedKeysChange([...h])},b=()=>{e.busy||e.onSelectedKeysChange(d()?[]:r().map(u=>u.key))};return n(v,{get when(){return e.open},get children(){return n(bt,{get children(){var u=Qo(),h=u.firstChild,f=h.firstChild,w=f.firstChild,C=w.firstChild,g=C.nextSibling,M=w.nextSibling,O=f.nextSibling,U=O.firstChild,V=U.nextSibling;return h.$$click=N=>N.stopPropagation(),i(C,()=>l()?"清理残留文件":"删除数据集"),i(g,()=>e.title),Ne(M,"click",e.onClose,!0),i(h,n(v,{get when(){return e.busy},get children(){return Vo()}}),O),i(h,n(v,{get when(){return!e.busy},get children(){return[(()=>{var N=Ko();return i(N,(()=>{var H=ne(()=>r().length>1);return()=>H()?"该数据集已下载到多个环境。请选择要删除的副本,此操作不可恢复。":ne(()=>!!l())()?["确认清理 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 未完成的下载残留吗?请选择环境后继续。"]:["请选择要删除 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 的环境。此操作不可恢复。"]})()),N})(),n(v,{get when(){return r().length>1},get children(){var N=Xo();return N.$$click=b,i(N,()=>d()?"取消全选":"全选"),E(()=>N.disabled=e.busy),N}}),(()=>{var N=Jo();return i(N,n(ce,{get each(){return r()},children:H=>(()=>{var D=Yo(),T=D.firstChild,z=T.nextSibling;return D.$$click=()=>y(H.key),i(T,()=>H.label,null),i(T,n(v,{get when(){return H.partial},get children(){return Zo()}}),null),i(z,n(ce,{get each(){return H.paths},children:L=>(()=>{var S=el();return i(S,L),S})()})),E(L=>{var S=s().has(H.key)?"":void 0,I=s().has(H.key),B=e.busy;return S!==L.e&&R(D,"data-selected",L.e=S),I!==L.t&&R(D,"aria-pressed",L.t=I),B!==L.a&&(D.disabled=L.a=B),L},{e:void 0,t:void 0,a:void 0}),D})()})),N})()]}}),O),Ne(U,"click",e.onClose,!0),Ne(V,"click",e.onConfirm,!0),i(V,(()=>{var N=ne(()=>!!e.busy);return()=>N()?"正在删除...":l()?"确认清理":"确认删除"})()),E(N=>{var H=e.busy,D=e.busy,T=p();return H!==N.e&&(M.disabled=N.e=H),D!==N.t&&(U.disabled=N.t=D),T!==N.a&&(V.disabled=N.a=T),N},{e:void 0,t:void 0,a:void 0}),u}})}})}At(["click","input"]);const St=`请按照下面的内容,使用OneScience,进行后续工作。
2
2
  ————————
3
3
  `,ln={training:{id:"training",label:"模型训练",description:"准备训练配置并做小规模验证"},inference:{id:"inference",label:"推理",description:"加载权重并完成推理验证"},"secondary-development":{id:"secondary-development",label:"二次开发",description:"改结构、做适配或扩展能力"},"parallel-expansion":{id:"parallel-expansion",label:"并行扩展",description:"改造为分布式或多卡训练"},"scientific-research":{id:"scientific-research",label:"科研开发",description:"选择论文或 GitHub 案例,复现并验证"}},rl=Object.values(ln),nl={training:`3)围绕 {title} 完成训练或微调准备与小规模验证:定位训练入口与配置方式,生成 training_config,优先 smoke training(小样本、少步数)。
4
4
  能跑则跑通并汇报;不能跑则列出阻塞项与最小补齐方案。
@@ -1 +1 @@
1
- import{cR as p,i as s,a as l,bc as g,aA as h,cS as u,t as b}from"./index-DjsAxbra.js";var v=b('<div class="os-client-capability-page os-client-resources-page"><header class=os-client-resources-head><div class=os-client-resources-head-copy><h2>资源配置</h2><p>SSH 连接配置</p></div></header><section class=os-client-capability-selector aria-label=资源配置><div class=os-client-capability-current-domain><span>当前配置:</span><strong>SSH 连接</strong><small></small></div></section><div class="os-client-capability-page-body os-client-resources-body">');function f(){const r=p();return(()=>{var a=v(),e=a.firstChild;e.firstChild;var i=e.nextSibling,t=i.firstChild,n=t.firstChild,c=n.nextSibling,o=c.nextSibling,d=i.nextSibling;return s(e,l(h,{get href(){return g()},class:"os-client-resources-close","aria-label":"关闭资源配置",children:"×"}),null),s(o,()=>r.t("dialog.ssh.description")),s(d,l(u,{variant:"page"})),a})()}export{f as WorkbenchResourcesPage};
1
+ import{cR as p,i as s,a as l,bc as g,aA as h,cS as u,t as b}from"./index-BHX3_77R.js";var v=b('<div class="os-client-capability-page os-client-resources-page"><header class=os-client-resources-head><div class=os-client-resources-head-copy><h2>资源配置</h2><p>SSH 连接配置</p></div></header><section class=os-client-capability-selector aria-label=资源配置><div class=os-client-capability-current-domain><span>当前配置:</span><strong>SSH 连接</strong><small></small></div></section><div class="os-client-capability-page-body os-client-resources-body">');function f(){const r=p();return(()=>{var a=v(),e=a.firstChild;e.firstChild;var i=e.nextSibling,t=i.firstChild,n=t.firstChild,c=n.nextSibling,o=c.nextSibling,d=i.nextSibling;return s(e,l(h,{get href(){return g()},class:"os-client-resources-close","aria-label":"关闭资源配置",children:"×"}),null),s(o,()=>r.t("dialog.ssh.description")),s(d,l(u,{variant:"page"})),a})()}export{f as WorkbenchResourcesPage};
@@ -1 +1 @@
1
- import{O as U,P as W,K as q,c as E,D as g,ac as I,i as a,a as o,t as v,cL as u,d as N,k as _,R as H,j as K,cM as y,cN as C,cO as L,A as Q,aA as z,cP as A,S as B,b as G,x as J,F as V,v as X,cQ as Y}from"./index-DjsAxbra.js";var Z=v("<p class=os-client-skills-login-hint>登录后可同步个人空间技能。 "),ee=v('<div class="os-client-capability-page os-client-skills-page"><section class=os-client-capability-selector aria-label=技能设置><div class=os-client-capability-current-domain><span>技能设置:</span><strong></strong><small></small></div><div class="os-client-capability-tabs os-client-skills-tabs"role=tablist aria-label=技能管理视图></div></section><div class=os-client-capability-page-body>'),te=v("<button type=button><strong></strong><small>");function ae(c){const s=new URLSearchParams(c).get("tab");if(s==="list"||s==="repo"||s==="upload")return s}function ne(){const c=U(),s=W(),P=q(),[b,x]=E(0),R=g(()=>(b(),!!_())),d=g(()=>!R()),[n,M]=E(ae(c.search)??"list"),T=g(()=>{b();const e=_();return e&&(H(e,P.projects.lastCode())||K(e))||""}),p=e=>{M(e),s(A(e),{replace:!0})};I(()=>{const e=()=>x(i=>i+1);window.addEventListener(y,e),window.addEventListener(C,e),window.addEventListener(L,e),Q(()=>{window.removeEventListener(y,e),window.removeEventListener(C,e),window.removeEventListener(L,e)})});const h=()=>u.find(e=>e.id===n())??u[0];return(()=>{var e=ee(),i=e.firstChild,m=i.firstChild,j=m.firstChild,f=j.nextSibling,D=f.nextSibling,w=m.nextSibling,F=i.nextSibling;return a(f,()=>h().label),a(D,()=>h().hint),a(i,o(B,{get when(){return d()},get children(){var t=Z();return t.firstChild,a(t,o(z,{get href(){return`/login?redirect=${encodeURIComponent(A(n()))}`},children:"去登录"}),null),t}}),w),a(w,o(V,{each:u,children:t=>(()=>{var r=te(),S=r.firstChild,O=S.nextSibling;return r.$$click=()=>p(t.id),a(S,()=>t.label),a(O,()=>t.hint),G(l=>{var $=n()===t.id,k=n()===t.id;return $!==l.e&&r.classList.toggle("is-active",l.e=$),k!==l.t&&J(r,"aria-pressed",l.t=k),l},{e:void 0,t:void 0}),r})()})),a(F,o(Y,{get directory(){return X(()=>!!d())()?void 0:T()||void 0},get loginRequired(){return d()},get tab(){return n()},onTabChange:p,variant:"page-body"})),e})()}N(["click"]);export{ne as WorkbenchSkillsPage};
1
+ import{O as U,P as W,K as q,c as E,D as g,ac as I,i as a,a as o,t as v,cL as u,d as N,k as _,R as H,j as K,cM as y,cN as C,cO as L,A as Q,aA as z,cP as A,S as B,b as G,x as J,F as V,v as X,cQ as Y}from"./index-BHX3_77R.js";var Z=v("<p class=os-client-skills-login-hint>登录后可同步个人空间技能。 "),ee=v('<div class="os-client-capability-page os-client-skills-page"><section class=os-client-capability-selector aria-label=技能设置><div class=os-client-capability-current-domain><span>技能设置:</span><strong></strong><small></small></div><div class="os-client-capability-tabs os-client-skills-tabs"role=tablist aria-label=技能管理视图></div></section><div class=os-client-capability-page-body>'),te=v("<button type=button><strong></strong><small>");function ae(c){const s=new URLSearchParams(c).get("tab");if(s==="list"||s==="repo"||s==="upload")return s}function ne(){const c=U(),s=W(),P=q(),[b,x]=E(0),R=g(()=>(b(),!!_())),d=g(()=>!R()),[n,M]=E(ae(c.search)??"list"),T=g(()=>{b();const e=_();return e&&(H(e,P.projects.lastCode())||K(e))||""}),p=e=>{M(e),s(A(e),{replace:!0})};I(()=>{const e=()=>x(i=>i+1);window.addEventListener(y,e),window.addEventListener(C,e),window.addEventListener(L,e),Q(()=>{window.removeEventListener(y,e),window.removeEventListener(C,e),window.removeEventListener(L,e)})});const h=()=>u.find(e=>e.id===n())??u[0];return(()=>{var e=ee(),i=e.firstChild,m=i.firstChild,j=m.firstChild,f=j.nextSibling,D=f.nextSibling,w=m.nextSibling,F=i.nextSibling;return a(f,()=>h().label),a(D,()=>h().hint),a(i,o(B,{get when(){return d()},get children(){var t=Z();return t.firstChild,a(t,o(z,{get href(){return`/login?redirect=${encodeURIComponent(A(n()))}`},children:"去登录"}),null),t}}),w),a(w,o(V,{each:u,children:t=>(()=>{var r=te(),S=r.firstChild,O=S.nextSibling;return r.$$click=()=>p(t.id),a(S,()=>t.label),a(O,()=>t.hint),G(l=>{var $=n()===t.id,k=n()===t.id;return $!==l.e&&r.classList.toggle("is-active",l.e=$),k!==l.t&&J(r,"aria-pressed",l.t=k),l},{e:void 0,t:void 0}),r})()})),a(F,o(Y,{get directory(){return X(()=>!!d())()?void 0:T()||void 0},get loginRequired(){return d()},get tab(){return n()},onTabChange:p,variant:"page-body"})),e})()}N(["click"]);export{ne as WorkbenchSkillsPage};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/staplebops-03-Aug82oH0.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/staplebops-03-Aug82oH0.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/staplebops-04-olyHi8qQ.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/staplebops-04-olyHi8qQ.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/staplebops-06-Cj_2vOI4.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/staplebops-06-Cj_2vOI4.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/staplebops-07-cqQEvbIf.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/staplebops-07-cqQEvbIf.aac";export{e as default};
@@ -1 +1 @@
1
- import{d as Ne,C as tt,ap as Je,cr as Oe,z as it,D as L,cs as at,ct as ke,cu as Ie,cv as ye,cw as Ae,cx as le,cy as lt,aj as Se,i as t,ay as Qe,a,b as w,F as X,x as U,S as g,v as Pe,cz as rt,cA as nt,cB as Ue,cC as st,cD as ct,t as n,cE as ot,co as dt,O as ut,cF as pt,P as gt,L as ht,N as bt,K as vt,c as $t,ac as mt,r as Fe,h as Te,j as Le,k as xe,l as je,m as qe,p as De,n as Re,o as We,w as He,cG as _t,cH as ft,ax as pe,cI as yt,cJ as St,g as Xe,H as Ye,cK as wt,au as xt,aA as Q,b0 as Ke,cp as Ct,az as zt,cq as kt,Q as It}from"./index-DjsAxbra.js";var Pt=n("<div class=os-client-capability-wizard-papers><h3>相关论文</h3><ul>"),Ft=n("<div class=os-client-capability-wizard-papers><h3>HPC 软件</h3><span>"),Tt=n("<p class=os-client-capability-wizard-note>工作目录与运行环境由系统自动识别,本步只需填写下列业务参数。"),Lt=n("<p class=os-client-capability-wizard-missing>本步还有 <!> 个必填参数未填写。"),jt=n("<p class=os-client-capability-wizard-missing>本步有 <!> 个参数类型不正确,请按标注类型修改。"),qt=n("<p class=os-client-capability-wizard-missing>其他步骤还有 <!> 个必填参数未填写,可点击左侧步骤继续补全。"),Dt=n("<p class=os-client-capability-wizard-missing>其他步骤还有 <!> 个参数类型不正确,可点击左侧步骤修改。"),Rt=n("<small>"),Wt=n("<ul class=os-client-capability-wizard-output-list>"),Ht=n("<div class=os-client-capability-wizard-quality><strong>质量门禁</strong><p>"),Et=n('<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=场景向导><button type=button class=os-client-capability-wizard-backdrop aria-label=关闭场景></button><section class=os-client-capability-wizard-dialog><header class=os-client-capability-wizard-head><button type=button class=os-client-capability-wizard-intro-back>返回场景列表</button><div class=os-client-capability-wizard-head-title><h2></h2><p></p></div><button type=button class=os-client-capability-wizard-close aria-label=关闭>×</button></header><div class=os-client-capability-wizard-columns><aside class=os-client-capability-wizard-column aria-label=工作流><h3>工作流</h3><p class=os-client-capability-wizard-note>点击步骤查看对应参数与产出;创建后将自动按序执行。</p><ol class=os-client-capability-wizard-workflow></ol></aside><section class=os-client-capability-wizard-column aria-label=补充信息><div class=os-client-capability-wizard-column-head><h3>本步参数</h3><small>/<!> · 已填 <!>/</small></div><div class=os-client-capability-wizard-fields></div><div class=os-client-capability-wizard-step-nav><button type=button>上一步</button><button type=button>下一步</button></div></section><section class=os-client-capability-wizard-column aria-label="本步产出与 Prompt"><div class=os-client-capability-wizard-outputs aria-label=本步产出><div class=os-client-capability-wizard-outputs-head><span>本步产出</span></div></div><div class=os-client-capability-wizard-column-head><h3>本步 Prompt</h3><small>第 <!> 步</small></div><textarea class=os-client-capability-wizard-prompt rows=12 readonly></textarea></section></div><footer class=os-client-capability-wizard-footer><button type=button>返回能力中心</button><button type=button data-primary=true>创建任务并自动逐步执行'),Mt=n("<li><button type=button class=os-client-capability-wizard-step><span></span><div><p>"),Ot=n('<li><a target=_blank rel="noopener noreferrer">'),At=n("<p>"),Ut=n("<div class=os-client-capability-wizard-step-banner><strong>"),Kt=n("<p class=os-client-capability-wizard-note>本步无需额外用户参数。"),Bt=n("<em>*"),Gt=n("<small class=os-client-capability-wizard-field-type>"),Vt=n("<textarea rows=3>"),Be=n("<em class=os-client-capability-wizard-field-error>"),Nt=n("<label class=os-client-capability-wizard-field><span>"),Jt=n("<input type=text>"),Qt=n("<p class=os-client-capability-wizard-outputs-empty>本步暂无结构化产出清单。"),Xt=n("<li>");function Yt(e){const d=tt(),[l,v]=Je({values:Oe(e.scenario),attempted:!1,activeStepIndex:0});it(()=>{v({values:Oe(e.scenario),attempted:!1,activeStepIndex:0})});const S=L(()=>at(e.scenario)),k=L(()=>S()[l.activeStepIndex]??S()[0]),K=L(()=>{const $=k();return $?ke(e.scenario,$):e.scenario.user_input}),j=L(()=>Ie(e.scenario,l.values)),ge=L(()=>ye(e.scenario.user_input,l.values)),B=L(()=>K().filter($=>Ae($)?!String(l.values[le($)]??"").trim():!1)),oe=L(()=>ye(K(),l.values)),I=L(()=>K().filter($=>String(l.values[le($)]??"").trim()).length),Y=L(()=>{const P=k()?.prompt||e.scenario.ai_prompt?.template||"";return lt(P,l.values)}),V=L(()=>k()?.outputs??[]),re=L(()=>(e.scenario.related_papers??[]).filter($=>!!String($.url??"").trim())),N=($,P)=>{v("values",$,P)},Z=$=>{v("activeStepIndex",$)},Ce=()=>{v("attempted",!0);const $=ye(e.scenario.user_input,l.values);if($.length>0){const q=le($[0]),C=S().findIndex(te=>ke(e.scenario,te).some(r=>le(r)===q));C>=0&&v("activeStepIndex",C);return}const P=Ie(e.scenario,l.values);if(P.length===0){e.onSubmit({values:{...l.values}});return}const de=le(P[0]),ee=S().findIndex(q=>ke(e.scenario,q).some(C=>le(C)===de));ee>=0&&v("activeStepIndex",ee),d.show(()=>a(ot,{title:"请补充必填参数",get reason(){return`还有 ${P.length} 个必填参数未填写,补充后即可创建任务并自动逐步执行。`},fields:P,get values(){return l.values},onConfirm:q=>{const C={...l.values,...q};v("values",C),!(ye(e.scenario.user_input,C).length>0||Ie(e.scenario,C).length>0)&&e.onSubmit({values:C})}}))};return(()=>{var $=Et(),P=$.firstChild,de=P.nextSibling,ee=de.firstChild,q=ee.firstChild,C=q.nextSibling,te=C.firstChild,r=te.nextSibling,h=C.nextSibling,m=ee.nextSibling,b=m.firstChild,D=b.firstChild,J=D.nextSibling,he=J.nextSibling,R=b.nextSibling,be=R.firstChild,ve=be.firstChild,G=ve.nextSibling,ue=G.firstChild,ne=ue.nextSibling,ze=ne.nextSibling,$e=ze.nextSibling;$e.nextSibling;var W=be.nextSibling,me=W.nextSibling,ie=me.firstChild,u=ie.nextSibling,p=R.nextSibling,_=p.firstChild,F=_.firstChild;F.firstChild;var T=_.nextSibling,E=T.firstChild,H=E.nextSibling,se=H.firstChild,M=se.nextSibling;M.nextSibling;var ae=T.nextSibling,ce=m.nextSibling,_e=ce.firstChild,fe=_e.nextSibling;return Se(P,"click",e.onClose,!0),Se(q,"click",e.onClose,!0),t(te,()=>e.scenario.name),t(r,()=>Qe(e.scenario.problem_and_applicability)),Se(h,"click",e.onClose,!0),t(he,a(X,{get each(){return S()},children:(i,s)=>(()=>{var c=Mt(),z=c.firstChild,O=z.firstChild,f=O.nextSibling,y=f.firstChild;return z.$$click=()=>Z(s()),t(O,()=>s()+1),t(y,()=>i.name),w(()=>c.classList.toggle("is-active",l.activeStepIndex===s())),c})()})),t(b,a(g,{get when(){return re().length>0},get children(){var i=Pt(),s=i.firstChild,c=s.nextSibling;return t(c,a(X,{get each(){return re()},children:z=>(()=>{var O=Ot(),f=O.firstChild;return t(f,()=>z.title),w(y=>{var A=z.url,o=z.title;return A!==y.e&&U(f,"href",y.e=A),o!==y.t&&U(f,"title",y.t=o),y},{e:void 0,t:void 0}),O})()})),i}}),null),t(b,a(g,{get when(){return e.scenario.HPC},get children(){var i=Ft(),s=i.firstChild,c=s.nextSibling;return t(c,()=>e.scenario.HPC),i}}),null),t(G,()=>l.activeStepIndex+1,ue),t(G,()=>S().length,ne),t(G,I,$e),t(G,()=>K().length,null),t(R,a(g,{get when(){return k()},children:i=>(()=>{var s=Ut(),c=s.firstChild;return t(c,()=>i().name),t(s,a(g,{get when(){return i().purpose?.trim()},get children(){var z=At();return t(z,()=>i().purpose),z}}),null),s})()}),W),t(R,a(g,{get when(){return e.scenario.system_auto_detection?.fields?.length},get children(){return Tt()}}),W),t(R,a(g,{get when(){return Pe(()=>!!l.attempted)()&&B().length>0},get children(){var i=Lt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>B().length,c),i}}),W),t(R,a(g,{get when(){return oe().length>0},get children(){var i=jt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>oe().length,c),i}}),W),t(R,a(g,{get when(){return Pe(()=>!!(l.attempted&&j().length>0))()&&B().length===0},get children(){var i=qt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>j().length,c),i}}),W),t(R,a(g,{get when(){return Pe(()=>!!(l.attempted&&ge().length>0))()&&oe().length===0},get children(){var i=Dt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>ge().length,c),i}}),W),t(W,a(g,{get when(){return K().length>0},get fallback(){return Kt()},get children(){return a(X,{get each(){return K()},children:i=>{const s=le(i),c=Ae(i),z=l.attempted&&c&&!String(l.values[s]??"").trim(),O=rt(i,l.values[s]??""),f=!!O&&(l.attempted||!!String(l.values[s]??"").trim());return(()=>{var y=Nt(),A=y.firstChild;return y.classList.toggle("is-required",!!c),y.classList.toggle("is-invalid",!!(z||f)),t(A,()=>nt(i),null),t(A,a(g,{when:c,get children(){return Bt()}}),null),t(A,a(g,{get when(){return i.input_type},get children(){var o=Gt();return t(o,()=>i.input_type),o}}),null),t(y,a(g,{get when(){return st(i)},get fallback(){return(()=>{var o=Jt();return o.$$input=x=>N(s,x.currentTarget.value),w(x=>{var Ee=i.input_type==="int"||i.input_type==="float"?"decimal":void 0,Me=Ue(i);return Ee!==x.e&&U(o,"inputmode",x.e=Ee),Me!==x.t&&U(o,"placeholder",x.t=Me),x},{e:void 0,t:void 0}),w(()=>o.value=l.values[s]??""),o})()},get children(){var o=Vt();return o.$$input=x=>N(s,x.currentTarget.value),w(()=>U(o,"placeholder",Ue(i))),w(()=>o.value=l.values[s]??""),o}}),null),t(y,a(g,{when:f,get children(){var o=Be();return t(o,O),o}}),null),t(y,a(g,{when:z&&!f,get children(){var o=Be();return t(o,()=>ct(i,"")),o}}),null),y})()}})}})),ie.$$click=()=>Z(Math.max(0,l.activeStepIndex-1)),u.$$click=()=>Z(Math.min(S().length-1,l.activeStepIndex+1)),t(F,a(g,{get when(){return k()?.result_subfolder},get children(){var i=Rt();return t(i,()=>k()?.result_subfolder),w(()=>U(i,"title",k()?.result_subfolder)),i}}),null),t(_,a(g,{get when(){return V().length>0},get fallback(){return Qt()},get children(){var i=Wt();return t(i,a(X,{get each(){return V()},children:s=>(()=>{var c=Xt();return t(c,s),c})()})),i}}),null),t(_,a(g,{get when(){return k()?.quality_gate},get children(){var i=Ht(),s=i.firstChild,c=s.nextSibling;return t(c,()=>k()?.quality_gate),i}}),null),t(H,()=>l.activeStepIndex+1,M),Se(_e,"click",e.onClose,!0),fe.$$click=Ce,w(i=>{var s=l.activeStepIndex<=0,c=l.activeStepIndex>=S().length-1;return s!==i.e&&(ie.disabled=i.e=s),c!==i.t&&(u.disabled=i.t=c),i},{e:void 0,t:void 0}),w(()=>ae.value=Y()),$})()}Ne(["click","input"]);function Zt(e,d){return e.replace(/\{\{(\w+)\}\}/g,(l,v)=>d[v]??"")}var ei=n("<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=能力向导>"),ti=n("<section class=os-client-capability-wizard-dialog><p>未找到该能力。"),ii=n("<div class=os-client-capability-wizard-scenario-group><span>完整工作流场景"),ai=n("<section class=os-client-capability-wizard-dialog><header class=os-client-capability-wizard-head><div class=os-client-capability-wizard-head-title><h2></h2></div></header><div class=os-client-capability-wizard-columns><aside class=os-client-capability-wizard-column aria-label=你想做什么?><h3>你想做什么?</h3><div class=os-client-capability-wizard-scenarios></div></aside><section class=os-client-capability-wizard-column aria-label=补充信息><h3>补充信息</h3></section><section class=os-client-capability-wizard-column aria-label=起始任务><div class=os-client-capability-wizard-column-head><h3>起始任务</h3><button type=button>重新生成</button></div><textarea class=os-client-capability-wizard-prompt rows=14></textarea></section></div><footer class=os-client-capability-wizard-footer><button type=button data-primary=true>创建任务"),li=n("<section class=os-client-capability-wizard-dialog><p>「<!>」暂无 OneScience 源码或魔搭映射,当前不可使用。"),ri=n("<button type=button><strong></strong><p>"),ni=n("<button type=button><strong></strong><p></p><small> · <!> 步"),Ge=n("<p class=os-client-capability-wizard-empty>请先选择任务场景。"),si=n("<div class=os-client-capability-wizard-required aria-label=该能力需要什么数据><h4>该能力需要什么数据</h4><ul>"),ci=n("<div class=os-client-capability-wizard-middle><div class=os-client-capability-wizard-fields></div><div class=os-client-capability-wizard-summary aria-label=当前能力配置><h4>当前能力配置</h4><dl><div><dt>当前能力</dt><dd></dd></div><div><dt>关键配置</dt><dd></dd></div><div><dt>运行资源</dt><dd></dd></div><div><dt>交付结果</dt><dd>"),oi=n("<textarea rows=3>"),di=n("<label class=os-client-capability-wizard-field><span>"),ui=n("<input type=text>"),pi=n("<li>"),gi=n("<div class=os-client-capability-wizard-right-head><strong></strong><p>"),hi=n("<div class=os-client-capability-wizard-outputs aria-label=预计产出><span>预计产出</span><p>");function bi(e){return e==="hpc"?"软件介绍":"模型介绍"}function vi(e){return`使用 ${e} 开始科研任务`}function $i(e){if(!Fe({navigate:e.navigate,action:{type:"prompt",prompt:e.prompt,title:e.title,workflow:e.workflow},isLoggedIn:e.isLoggedIn}))return!1;const d=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!d)return!1;const l=qe(d);return De(l,e.prompt),Re(l),e.openProject?.(d),e.touchCode?.(d),We({variant:"success",title:`已为你创建「${e.title}」任务`}),e.navigate(He(d)),!0}function Ze(e){const d=_t(e.scenario),l=d[0];if(!l?.promptTemplate.trim()||!Fe({navigate:e.navigate,action:{type:"scenario-run",scenarioId:e.scenario.id||e.scenario.scenario_id,values:e.values},isLoggedIn:e.isLoggedIn}))return!1;const v=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!v)return!1;const S=qe(v);return ft(S,{title:e.scenario.name,scenarioId:pe(e.scenario),values:e.values,steps:d}),yt("todo"),De(S,St(l,e.values)),Re(S),e.openProject?.(v),e.touchCode?.(v),We({variant:"success",title:`已创建「${e.scenario.name}」`,description:`将按 ${d.length} 步自动依次执行,缺参或失败时暂停`}),e.navigate(He(v)),!0}function et(e){if(!Fe({navigate:e.navigate,action:{type:"wizard",resourceId:e.resourceId,scenarioId:e.scenarioId,values:e.values,prompt:e.prompt},isLoggedIn:e.isLoggedIn}))return!1;const d=Xe(e.resourceId),l=d?.scenarios.find(k=>k.id===e.scenarioId);if(!d||!l||!Ye(d))return!1;const v=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!v)return!1;const S=qe(v);return De(S,e.prompt),Re(S),e.openProject?.(v),e.touchCode?.(v),We({variant:"success",title:`已为你创建 ${d.name}「${l.title}」任务`}),e.navigate(He(v)),!0}function we(e,d){return Zt(e.promptTemplate,d)}function Ve(e){return Object.fromEntries(e.fields.map(d=>[d.id,mi(d)]))}function mi(e){return e.default?.trim()?e.default:e.placeholder?.replace(/^例如[::]\s*/,"").trim()??""}function _i(){const e=dt(),d=ut(),[l]=pt(),v=gt(),S=ht(),k=bt(),K=vt(),j=()=>Xe(e.id??""),ge=()=>kt(d.search),B=()=>Ct(d.search,{category:j()?.category??"onemodel",domain:j()?.domain??"materials"}),oe=()=>zt(e.id??"",ge()),[I,Y]=Je({scenarioId:"",values:{},prompt:""}),[V,re]=$t(""),N=()=>j()?.scenarios.find(r=>r.id===I.scenarioId),Z=L(()=>{const r=j();return r?wt({domain:r.domain,name:r.name,id:r.id,category:r.category}):[]}),Ce=L(()=>{const r=V();if(r)return xt(r)??Z().find(h=>pe(h)===r)}),$=()=>({navigate:v,isLoggedIn:!!xe(),path:S.data.path,recent:It(S.data.project),lastCodeWorkspace:K.projects.lastCode(),openProject:r=>k.projects.open(r),touchCode:r=>K.projects.touchCode(r)}),P=()=>{const r=N();r&&Y("prompt",we(r,I.values))};mt(()=>{const r=j();if(!r?.scenarios.length)return;const h=l.scenario,b=(h?r.scenarios.find(J=>J.id===h):void 0)??r.scenarios[0],D=Ve(b);Y({scenarioId:b.id,values:D,prompt:we(b,D)})});const de=r=>{const m=j()?.scenarios.find(D=>D.id===r);if(!m)return;re("");const b=Ve(m);Y({scenarioId:m.id,values:b,prompt:we(m,b)})},ee=r=>{re(r)},q=(r,h)=>{const m=N();if(!m)return;const b={...I.values,[r]:h};Y({values:b,prompt:we(m,b)})},C=()=>{const r=j(),h=N();!r||!h||et({resourceId:r.id,scenarioId:h.id,values:{...I.values},prompt:I.prompt,...$()})},te=(r,h)=>{Ze({scenario:r,values:h.values,...$()})};return(()=>{var r=ei();return t(r,a(g,{get when(){return j()},get fallback(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return Ke()},"aria-label":"关闭向导"}),(()=>{var h=ti();return h.firstChild,t(h,a(Q,{get href(){return Ke()},children:"返回能力中心"}),null),h})()]},children:h=>a(g,{get when(){return Ye(h())},get fallback(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var m=li(),b=m.firstChild,D=b.firstChild,J=D.nextSibling;return J.nextSibling,t(b,()=>h().name,J),t(m,a(Q,{get href(){return B()},children:"返回模型库"}),null),m})()]},get children(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var m=ai(),b=m.firstChild,D=b.firstChild,J=D.firstChild,he=b.nextSibling,R=he.firstChild,be=R.firstChild,ve=be.nextSibling,G=R.nextSibling;G.firstChild;var ue=G.nextSibling,ne=ue.firstChild,ze=ne.firstChild,$e=ze.nextSibling,W=ne.nextSibling,me=he.nextSibling,ie=me.firstChild;return t(b,a(Q,{class:"os-client-capability-wizard-intro-back",get href(){return oe()},get children(){return bi(h().category)}}),D),t(J,()=>vi(h().name)),t(b,a(Q,{class:"os-client-capability-wizard-close",get href(){return B()},"aria-label":"关闭",children:"×"}),null),t(ve,a(X,{get each(){return h().scenarios},children:u=>(()=>{var p=ri(),_=p.firstChild,F=_.nextSibling;return p.$$click=()=>de(u.id),t(_,()=>u.title),t(F,()=>u.summary),w(T=>{var E=!V()&&I.scenarioId===u.id,H=!V()&&I.scenarioId===u.id;return E!==T.e&&p.classList.toggle("is-active",T.e=E),H!==T.t&&U(p,"aria-pressed",T.t=H),T},{e:void 0,t:void 0}),p})()}),null),t(ve,a(g,{get when(){return Z().length>0},get children(){var u=ii();return u.firstChild,t(u,a(X,{get each(){return Z()},children:p=>(()=>{var _=ni(),F=_.firstChild,T=F.nextSibling,E=T.nextSibling,H=E.firstChild,se=H.nextSibling;return se.nextSibling,_.$$click=()=>ee(pe(p)),t(F,()=>p.name),t(T,()=>Qe(p.problem_and_applicability)),t(E,()=>p.scenario_id,H),t(E,()=>p.workflow_steps?.length||p.workflow.length,se),w(M=>{var ae=V()===pe(p),ce=V()===pe(p);return ae!==M.e&&_.classList.toggle("is-active",M.e=ae),ce!==M.t&&U(_,"aria-pressed",M.t=ce),M},{e:void 0,t:void 0}),_})()}),null),u}}),null),t(G,a(g,{get when(){return N()},keyed:!0,get fallback(){return Ge()},children:u=>(()=>{var p=ci(),_=p.firstChild,F=_.nextSibling,T=F.firstChild,E=T.nextSibling,H=E.firstChild,se=H.firstChild,M=se.nextSibling,ae=H.nextSibling,ce=ae.firstChild,_e=ce.nextSibling,fe=ae.nextSibling,i=fe.firstChild,s=i.nextSibling,c=fe.nextSibling,z=c.firstChild,O=z.nextSibling;return t(_,a(X,{get each(){return u.fields},children:f=>(()=>{var y=di(),A=y.firstChild;return t(A,()=>f.label),t(y,a(g,{get when(){return f.multiline},get fallback(){return(()=>{var o=ui();return o.$$input=x=>q(f.id,x.currentTarget.value),w(()=>U(o,"placeholder",f.placeholder)),w(()=>o.value=I.values[f.id]??""),o})()},get children(){var o=oi();return o.$$input=x=>q(f.id,x.currentTarget.value),w(()=>U(o,"placeholder",f.placeholder)),w(()=>o.value=I.values[f.id]??""),o}}),null),y})()})),t(M,()=>u.capabilitySummary.current),t(_e,()=>u.capabilitySummary.keyConfig),t(s,()=>u.capabilitySummary.resources),t(O,()=>u.capabilitySummary.deliverables),t(p,a(g,{get when(){return u.requiredData?.length},get children(){var f=si(),y=f.firstChild,A=y.nextSibling;return t(A,a(X,{get each(){return u.requiredData},children:o=>(()=>{var x=pi();return t(x,o),x})()})),f}}),null),p})()}),null),t(ue,a(g,{get when(){return N()},keyed:!0,get fallback(){return Ge()},children:u=>[(()=>{var p=gi(),_=p.firstChild,F=_.nextSibling;return t(_,()=>u.title),t(F,()=>u.summary),p})(),(()=>{var p=hi(),_=p.firstChild,F=_.nextSibling;return t(F,()=>u.expectedOutputs),p})()]}),ne),$e.$$click=P,W.$$input=u=>Y("prompt",u.currentTarget.value),t(me,a(Q,{get href(){return B()},children:"返回能力中心"}),ie),ie.$$click=C,w(()=>ie.disabled=!I.prompt.trim()),w(()=>W.value=I.prompt),m})(),a(g,{get when(){return Ce()},children:m=>a(Yt,{get scenario(){return m()},onClose:()=>re(""),onSubmit:b=>te(m(),b)})})]}})})),r})()}Ne(["click","input"]);const yi=Object.freeze(Object.defineProperty({__proto__:null,CapabilityWizardPage:_i,startCapabilityPromptTask:$i,startCapabilityScenarioRunTask:Ze,startCapabilityWizardTask:et},Symbol.toStringTag,{value:"Module"}));export{Yt as S,Ze as a,et as b,$i as s,yi as w};
1
+ import{d as Ne,C as tt,ap as Je,cr as Oe,z as it,D as L,cs as at,ct as ke,cu as Ie,cv as ye,cw as Ae,cx as le,cy as lt,aj as Se,i as t,ay as Qe,a,b as w,F as X,x as U,S as g,v as Pe,cz as rt,cA as nt,cB as Ue,cC as st,cD as ct,t as n,cE as ot,co as dt,O as ut,cF as pt,P as gt,L as ht,N as bt,K as vt,c as $t,ac as mt,r as Fe,h as Te,j as Le,k as xe,l as je,m as qe,p as De,n as Re,o as We,w as He,cG as _t,cH as ft,ax as pe,cI as yt,cJ as St,g as Xe,H as Ye,cK as wt,au as xt,aA as Q,b0 as Ke,cp as Ct,az as zt,cq as kt,Q as It}from"./index-BHX3_77R.js";var Pt=n("<div class=os-client-capability-wizard-papers><h3>相关论文</h3><ul>"),Ft=n("<div class=os-client-capability-wizard-papers><h3>HPC 软件</h3><span>"),Tt=n("<p class=os-client-capability-wizard-note>工作目录与运行环境由系统自动识别,本步只需填写下列业务参数。"),Lt=n("<p class=os-client-capability-wizard-missing>本步还有 <!> 个必填参数未填写。"),jt=n("<p class=os-client-capability-wizard-missing>本步有 <!> 个参数类型不正确,请按标注类型修改。"),qt=n("<p class=os-client-capability-wizard-missing>其他步骤还有 <!> 个必填参数未填写,可点击左侧步骤继续补全。"),Dt=n("<p class=os-client-capability-wizard-missing>其他步骤还有 <!> 个参数类型不正确,可点击左侧步骤修改。"),Rt=n("<small>"),Wt=n("<ul class=os-client-capability-wizard-output-list>"),Ht=n("<div class=os-client-capability-wizard-quality><strong>质量门禁</strong><p>"),Et=n('<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=场景向导><button type=button class=os-client-capability-wizard-backdrop aria-label=关闭场景></button><section class=os-client-capability-wizard-dialog><header class=os-client-capability-wizard-head><button type=button class=os-client-capability-wizard-intro-back>返回场景列表</button><div class=os-client-capability-wizard-head-title><h2></h2><p></p></div><button type=button class=os-client-capability-wizard-close aria-label=关闭>×</button></header><div class=os-client-capability-wizard-columns><aside class=os-client-capability-wizard-column aria-label=工作流><h3>工作流</h3><p class=os-client-capability-wizard-note>点击步骤查看对应参数与产出;创建后将自动按序执行。</p><ol class=os-client-capability-wizard-workflow></ol></aside><section class=os-client-capability-wizard-column aria-label=补充信息><div class=os-client-capability-wizard-column-head><h3>本步参数</h3><small>/<!> · 已填 <!>/</small></div><div class=os-client-capability-wizard-fields></div><div class=os-client-capability-wizard-step-nav><button type=button>上一步</button><button type=button>下一步</button></div></section><section class=os-client-capability-wizard-column aria-label="本步产出与 Prompt"><div class=os-client-capability-wizard-outputs aria-label=本步产出><div class=os-client-capability-wizard-outputs-head><span>本步产出</span></div></div><div class=os-client-capability-wizard-column-head><h3>本步 Prompt</h3><small>第 <!> 步</small></div><textarea class=os-client-capability-wizard-prompt rows=12 readonly></textarea></section></div><footer class=os-client-capability-wizard-footer><button type=button>返回能力中心</button><button type=button data-primary=true>创建任务并自动逐步执行'),Mt=n("<li><button type=button class=os-client-capability-wizard-step><span></span><div><p>"),Ot=n('<li><a target=_blank rel="noopener noreferrer">'),At=n("<p>"),Ut=n("<div class=os-client-capability-wizard-step-banner><strong>"),Kt=n("<p class=os-client-capability-wizard-note>本步无需额外用户参数。"),Bt=n("<em>*"),Gt=n("<small class=os-client-capability-wizard-field-type>"),Vt=n("<textarea rows=3>"),Be=n("<em class=os-client-capability-wizard-field-error>"),Nt=n("<label class=os-client-capability-wizard-field><span>"),Jt=n("<input type=text>"),Qt=n("<p class=os-client-capability-wizard-outputs-empty>本步暂无结构化产出清单。"),Xt=n("<li>");function Yt(e){const d=tt(),[l,v]=Je({values:Oe(e.scenario),attempted:!1,activeStepIndex:0});it(()=>{v({values:Oe(e.scenario),attempted:!1,activeStepIndex:0})});const S=L(()=>at(e.scenario)),k=L(()=>S()[l.activeStepIndex]??S()[0]),K=L(()=>{const $=k();return $?ke(e.scenario,$):e.scenario.user_input}),j=L(()=>Ie(e.scenario,l.values)),ge=L(()=>ye(e.scenario.user_input,l.values)),B=L(()=>K().filter($=>Ae($)?!String(l.values[le($)]??"").trim():!1)),oe=L(()=>ye(K(),l.values)),I=L(()=>K().filter($=>String(l.values[le($)]??"").trim()).length),Y=L(()=>{const P=k()?.prompt||e.scenario.ai_prompt?.template||"";return lt(P,l.values)}),V=L(()=>k()?.outputs??[]),re=L(()=>(e.scenario.related_papers??[]).filter($=>!!String($.url??"").trim())),N=($,P)=>{v("values",$,P)},Z=$=>{v("activeStepIndex",$)},Ce=()=>{v("attempted",!0);const $=ye(e.scenario.user_input,l.values);if($.length>0){const q=le($[0]),C=S().findIndex(te=>ke(e.scenario,te).some(r=>le(r)===q));C>=0&&v("activeStepIndex",C);return}const P=Ie(e.scenario,l.values);if(P.length===0){e.onSubmit({values:{...l.values}});return}const de=le(P[0]),ee=S().findIndex(q=>ke(e.scenario,q).some(C=>le(C)===de));ee>=0&&v("activeStepIndex",ee),d.show(()=>a(ot,{title:"请补充必填参数",get reason(){return`还有 ${P.length} 个必填参数未填写,补充后即可创建任务并自动逐步执行。`},fields:P,get values(){return l.values},onConfirm:q=>{const C={...l.values,...q};v("values",C),!(ye(e.scenario.user_input,C).length>0||Ie(e.scenario,C).length>0)&&e.onSubmit({values:C})}}))};return(()=>{var $=Et(),P=$.firstChild,de=P.nextSibling,ee=de.firstChild,q=ee.firstChild,C=q.nextSibling,te=C.firstChild,r=te.nextSibling,h=C.nextSibling,m=ee.nextSibling,b=m.firstChild,D=b.firstChild,J=D.nextSibling,he=J.nextSibling,R=b.nextSibling,be=R.firstChild,ve=be.firstChild,G=ve.nextSibling,ue=G.firstChild,ne=ue.nextSibling,ze=ne.nextSibling,$e=ze.nextSibling;$e.nextSibling;var W=be.nextSibling,me=W.nextSibling,ie=me.firstChild,u=ie.nextSibling,p=R.nextSibling,_=p.firstChild,F=_.firstChild;F.firstChild;var T=_.nextSibling,E=T.firstChild,H=E.nextSibling,se=H.firstChild,M=se.nextSibling;M.nextSibling;var ae=T.nextSibling,ce=m.nextSibling,_e=ce.firstChild,fe=_e.nextSibling;return Se(P,"click",e.onClose,!0),Se(q,"click",e.onClose,!0),t(te,()=>e.scenario.name),t(r,()=>Qe(e.scenario.problem_and_applicability)),Se(h,"click",e.onClose,!0),t(he,a(X,{get each(){return S()},children:(i,s)=>(()=>{var c=Mt(),z=c.firstChild,O=z.firstChild,f=O.nextSibling,y=f.firstChild;return z.$$click=()=>Z(s()),t(O,()=>s()+1),t(y,()=>i.name),w(()=>c.classList.toggle("is-active",l.activeStepIndex===s())),c})()})),t(b,a(g,{get when(){return re().length>0},get children(){var i=Pt(),s=i.firstChild,c=s.nextSibling;return t(c,a(X,{get each(){return re()},children:z=>(()=>{var O=Ot(),f=O.firstChild;return t(f,()=>z.title),w(y=>{var A=z.url,o=z.title;return A!==y.e&&U(f,"href",y.e=A),o!==y.t&&U(f,"title",y.t=o),y},{e:void 0,t:void 0}),O})()})),i}}),null),t(b,a(g,{get when(){return e.scenario.HPC},get children(){var i=Ft(),s=i.firstChild,c=s.nextSibling;return t(c,()=>e.scenario.HPC),i}}),null),t(G,()=>l.activeStepIndex+1,ue),t(G,()=>S().length,ne),t(G,I,$e),t(G,()=>K().length,null),t(R,a(g,{get when(){return k()},children:i=>(()=>{var s=Ut(),c=s.firstChild;return t(c,()=>i().name),t(s,a(g,{get when(){return i().purpose?.trim()},get children(){var z=At();return t(z,()=>i().purpose),z}}),null),s})()}),W),t(R,a(g,{get when(){return e.scenario.system_auto_detection?.fields?.length},get children(){return Tt()}}),W),t(R,a(g,{get when(){return Pe(()=>!!l.attempted)()&&B().length>0},get children(){var i=Lt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>B().length,c),i}}),W),t(R,a(g,{get when(){return oe().length>0},get children(){var i=jt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>oe().length,c),i}}),W),t(R,a(g,{get when(){return Pe(()=>!!(l.attempted&&j().length>0))()&&B().length===0},get children(){var i=qt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>j().length,c),i}}),W),t(R,a(g,{get when(){return Pe(()=>!!(l.attempted&&ge().length>0))()&&oe().length===0},get children(){var i=Dt(),s=i.firstChild,c=s.nextSibling;return c.nextSibling,t(i,()=>ge().length,c),i}}),W),t(W,a(g,{get when(){return K().length>0},get fallback(){return Kt()},get children(){return a(X,{get each(){return K()},children:i=>{const s=le(i),c=Ae(i),z=l.attempted&&c&&!String(l.values[s]??"").trim(),O=rt(i,l.values[s]??""),f=!!O&&(l.attempted||!!String(l.values[s]??"").trim());return(()=>{var y=Nt(),A=y.firstChild;return y.classList.toggle("is-required",!!c),y.classList.toggle("is-invalid",!!(z||f)),t(A,()=>nt(i),null),t(A,a(g,{when:c,get children(){return Bt()}}),null),t(A,a(g,{get when(){return i.input_type},get children(){var o=Gt();return t(o,()=>i.input_type),o}}),null),t(y,a(g,{get when(){return st(i)},get fallback(){return(()=>{var o=Jt();return o.$$input=x=>N(s,x.currentTarget.value),w(x=>{var Ee=i.input_type==="int"||i.input_type==="float"?"decimal":void 0,Me=Ue(i);return Ee!==x.e&&U(o,"inputmode",x.e=Ee),Me!==x.t&&U(o,"placeholder",x.t=Me),x},{e:void 0,t:void 0}),w(()=>o.value=l.values[s]??""),o})()},get children(){var o=Vt();return o.$$input=x=>N(s,x.currentTarget.value),w(()=>U(o,"placeholder",Ue(i))),w(()=>o.value=l.values[s]??""),o}}),null),t(y,a(g,{when:f,get children(){var o=Be();return t(o,O),o}}),null),t(y,a(g,{when:z&&!f,get children(){var o=Be();return t(o,()=>ct(i,"")),o}}),null),y})()}})}})),ie.$$click=()=>Z(Math.max(0,l.activeStepIndex-1)),u.$$click=()=>Z(Math.min(S().length-1,l.activeStepIndex+1)),t(F,a(g,{get when(){return k()?.result_subfolder},get children(){var i=Rt();return t(i,()=>k()?.result_subfolder),w(()=>U(i,"title",k()?.result_subfolder)),i}}),null),t(_,a(g,{get when(){return V().length>0},get fallback(){return Qt()},get children(){var i=Wt();return t(i,a(X,{get each(){return V()},children:s=>(()=>{var c=Xt();return t(c,s),c})()})),i}}),null),t(_,a(g,{get when(){return k()?.quality_gate},get children(){var i=Ht(),s=i.firstChild,c=s.nextSibling;return t(c,()=>k()?.quality_gate),i}}),null),t(H,()=>l.activeStepIndex+1,M),Se(_e,"click",e.onClose,!0),fe.$$click=Ce,w(i=>{var s=l.activeStepIndex<=0,c=l.activeStepIndex>=S().length-1;return s!==i.e&&(ie.disabled=i.e=s),c!==i.t&&(u.disabled=i.t=c),i},{e:void 0,t:void 0}),w(()=>ae.value=Y()),$})()}Ne(["click","input"]);function Zt(e,d){return e.replace(/\{\{(\w+)\}\}/g,(l,v)=>d[v]??"")}var ei=n("<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=能力向导>"),ti=n("<section class=os-client-capability-wizard-dialog><p>未找到该能力。"),ii=n("<div class=os-client-capability-wizard-scenario-group><span>完整工作流场景"),ai=n("<section class=os-client-capability-wizard-dialog><header class=os-client-capability-wizard-head><div class=os-client-capability-wizard-head-title><h2></h2></div></header><div class=os-client-capability-wizard-columns><aside class=os-client-capability-wizard-column aria-label=你想做什么?><h3>你想做什么?</h3><div class=os-client-capability-wizard-scenarios></div></aside><section class=os-client-capability-wizard-column aria-label=补充信息><h3>补充信息</h3></section><section class=os-client-capability-wizard-column aria-label=起始任务><div class=os-client-capability-wizard-column-head><h3>起始任务</h3><button type=button>重新生成</button></div><textarea class=os-client-capability-wizard-prompt rows=14></textarea></section></div><footer class=os-client-capability-wizard-footer><button type=button data-primary=true>创建任务"),li=n("<section class=os-client-capability-wizard-dialog><p>「<!>」暂无 OneScience 源码或魔搭映射,当前不可使用。"),ri=n("<button type=button><strong></strong><p>"),ni=n("<button type=button><strong></strong><p></p><small> · <!> 步"),Ge=n("<p class=os-client-capability-wizard-empty>请先选择任务场景。"),si=n("<div class=os-client-capability-wizard-required aria-label=该能力需要什么数据><h4>该能力需要什么数据</h4><ul>"),ci=n("<div class=os-client-capability-wizard-middle><div class=os-client-capability-wizard-fields></div><div class=os-client-capability-wizard-summary aria-label=当前能力配置><h4>当前能力配置</h4><dl><div><dt>当前能力</dt><dd></dd></div><div><dt>关键配置</dt><dd></dd></div><div><dt>运行资源</dt><dd></dd></div><div><dt>交付结果</dt><dd>"),oi=n("<textarea rows=3>"),di=n("<label class=os-client-capability-wizard-field><span>"),ui=n("<input type=text>"),pi=n("<li>"),gi=n("<div class=os-client-capability-wizard-right-head><strong></strong><p>"),hi=n("<div class=os-client-capability-wizard-outputs aria-label=预计产出><span>预计产出</span><p>");function bi(e){return e==="hpc"?"软件介绍":"模型介绍"}function vi(e){return`使用 ${e} 开始科研任务`}function $i(e){if(!Fe({navigate:e.navigate,action:{type:"prompt",prompt:e.prompt,title:e.title,workflow:e.workflow},isLoggedIn:e.isLoggedIn}))return!1;const d=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!d)return!1;const l=qe(d);return De(l,e.prompt),Re(l),e.openProject?.(d),e.touchCode?.(d),We({variant:"success",title:`已为你创建「${e.title}」任务`}),e.navigate(He(d)),!0}function Ze(e){const d=_t(e.scenario),l=d[0];if(!l?.promptTemplate.trim()||!Fe({navigate:e.navigate,action:{type:"scenario-run",scenarioId:e.scenario.id||e.scenario.scenario_id,values:e.values},isLoggedIn:e.isLoggedIn}))return!1;const v=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!v)return!1;const S=qe(v);return ft(S,{title:e.scenario.name,scenarioId:pe(e.scenario),values:e.values,steps:d}),yt("todo"),De(S,St(l,e.values)),Re(S),e.openProject?.(v),e.touchCode?.(v),We({variant:"success",title:`已创建「${e.scenario.name}」`,description:`将按 ${d.length} 步自动依次执行,缺参或失败时暂停`}),e.navigate(He(v)),!0}function et(e){if(!Fe({navigate:e.navigate,action:{type:"wizard",resourceId:e.resourceId,scenarioId:e.scenarioId,values:e.values,prompt:e.prompt},isLoggedIn:e.isLoggedIn}))return!1;const d=Xe(e.resourceId),l=d?.scenarios.find(k=>k.id===e.scenarioId);if(!d||!l||!Ye(d))return!1;const v=Te({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Le(xe())||je(document,e.path);if(!v)return!1;const S=qe(v);return De(S,e.prompt),Re(S),e.openProject?.(v),e.touchCode?.(v),We({variant:"success",title:`已为你创建 ${d.name}「${l.title}」任务`}),e.navigate(He(v)),!0}function we(e,d){return Zt(e.promptTemplate,d)}function Ve(e){return Object.fromEntries(e.fields.map(d=>[d.id,mi(d)]))}function mi(e){return e.default?.trim()?e.default:e.placeholder?.replace(/^例如[::]\s*/,"").trim()??""}function _i(){const e=dt(),d=ut(),[l]=pt(),v=gt(),S=ht(),k=bt(),K=vt(),j=()=>Xe(e.id??""),ge=()=>kt(d.search),B=()=>Ct(d.search,{category:j()?.category??"onemodel",domain:j()?.domain??"materials"}),oe=()=>zt(e.id??"",ge()),[I,Y]=Je({scenarioId:"",values:{},prompt:""}),[V,re]=$t(""),N=()=>j()?.scenarios.find(r=>r.id===I.scenarioId),Z=L(()=>{const r=j();return r?wt({domain:r.domain,name:r.name,id:r.id,category:r.category}):[]}),Ce=L(()=>{const r=V();if(r)return xt(r)??Z().find(h=>pe(h)===r)}),$=()=>({navigate:v,isLoggedIn:!!xe(),path:S.data.path,recent:It(S.data.project),lastCodeWorkspace:K.projects.lastCode(),openProject:r=>k.projects.open(r),touchCode:r=>K.projects.touchCode(r)}),P=()=>{const r=N();r&&Y("prompt",we(r,I.values))};mt(()=>{const r=j();if(!r?.scenarios.length)return;const h=l.scenario,b=(h?r.scenarios.find(J=>J.id===h):void 0)??r.scenarios[0],D=Ve(b);Y({scenarioId:b.id,values:D,prompt:we(b,D)})});const de=r=>{const m=j()?.scenarios.find(D=>D.id===r);if(!m)return;re("");const b=Ve(m);Y({scenarioId:m.id,values:b,prompt:we(m,b)})},ee=r=>{re(r)},q=(r,h)=>{const m=N();if(!m)return;const b={...I.values,[r]:h};Y({values:b,prompt:we(m,b)})},C=()=>{const r=j(),h=N();!r||!h||et({resourceId:r.id,scenarioId:h.id,values:{...I.values},prompt:I.prompt,...$()})},te=(r,h)=>{Ze({scenario:r,values:h.values,...$()})};return(()=>{var r=ei();return t(r,a(g,{get when(){return j()},get fallback(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return Ke()},"aria-label":"关闭向导"}),(()=>{var h=ti();return h.firstChild,t(h,a(Q,{get href(){return Ke()},children:"返回能力中心"}),null),h})()]},children:h=>a(g,{get when(){return Ye(h())},get fallback(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var m=li(),b=m.firstChild,D=b.firstChild,J=D.nextSibling;return J.nextSibling,t(b,()=>h().name,J),t(m,a(Q,{get href(){return B()},children:"返回模型库"}),null),m})()]},get children(){return[a(Q,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var m=ai(),b=m.firstChild,D=b.firstChild,J=D.firstChild,he=b.nextSibling,R=he.firstChild,be=R.firstChild,ve=be.nextSibling,G=R.nextSibling;G.firstChild;var ue=G.nextSibling,ne=ue.firstChild,ze=ne.firstChild,$e=ze.nextSibling,W=ne.nextSibling,me=he.nextSibling,ie=me.firstChild;return t(b,a(Q,{class:"os-client-capability-wizard-intro-back",get href(){return oe()},get children(){return bi(h().category)}}),D),t(J,()=>vi(h().name)),t(b,a(Q,{class:"os-client-capability-wizard-close",get href(){return B()},"aria-label":"关闭",children:"×"}),null),t(ve,a(X,{get each(){return h().scenarios},children:u=>(()=>{var p=ri(),_=p.firstChild,F=_.nextSibling;return p.$$click=()=>de(u.id),t(_,()=>u.title),t(F,()=>u.summary),w(T=>{var E=!V()&&I.scenarioId===u.id,H=!V()&&I.scenarioId===u.id;return E!==T.e&&p.classList.toggle("is-active",T.e=E),H!==T.t&&U(p,"aria-pressed",T.t=H),T},{e:void 0,t:void 0}),p})()}),null),t(ve,a(g,{get when(){return Z().length>0},get children(){var u=ii();return u.firstChild,t(u,a(X,{get each(){return Z()},children:p=>(()=>{var _=ni(),F=_.firstChild,T=F.nextSibling,E=T.nextSibling,H=E.firstChild,se=H.nextSibling;return se.nextSibling,_.$$click=()=>ee(pe(p)),t(F,()=>p.name),t(T,()=>Qe(p.problem_and_applicability)),t(E,()=>p.scenario_id,H),t(E,()=>p.workflow_steps?.length||p.workflow.length,se),w(M=>{var ae=V()===pe(p),ce=V()===pe(p);return ae!==M.e&&_.classList.toggle("is-active",M.e=ae),ce!==M.t&&U(_,"aria-pressed",M.t=ce),M},{e:void 0,t:void 0}),_})()}),null),u}}),null),t(G,a(g,{get when(){return N()},keyed:!0,get fallback(){return Ge()},children:u=>(()=>{var p=ci(),_=p.firstChild,F=_.nextSibling,T=F.firstChild,E=T.nextSibling,H=E.firstChild,se=H.firstChild,M=se.nextSibling,ae=H.nextSibling,ce=ae.firstChild,_e=ce.nextSibling,fe=ae.nextSibling,i=fe.firstChild,s=i.nextSibling,c=fe.nextSibling,z=c.firstChild,O=z.nextSibling;return t(_,a(X,{get each(){return u.fields},children:f=>(()=>{var y=di(),A=y.firstChild;return t(A,()=>f.label),t(y,a(g,{get when(){return f.multiline},get fallback(){return(()=>{var o=ui();return o.$$input=x=>q(f.id,x.currentTarget.value),w(()=>U(o,"placeholder",f.placeholder)),w(()=>o.value=I.values[f.id]??""),o})()},get children(){var o=oi();return o.$$input=x=>q(f.id,x.currentTarget.value),w(()=>U(o,"placeholder",f.placeholder)),w(()=>o.value=I.values[f.id]??""),o}}),null),y})()})),t(M,()=>u.capabilitySummary.current),t(_e,()=>u.capabilitySummary.keyConfig),t(s,()=>u.capabilitySummary.resources),t(O,()=>u.capabilitySummary.deliverables),t(p,a(g,{get when(){return u.requiredData?.length},get children(){var f=si(),y=f.firstChild,A=y.nextSibling;return t(A,a(X,{get each(){return u.requiredData},children:o=>(()=>{var x=pi();return t(x,o),x})()})),f}}),null),p})()}),null),t(ue,a(g,{get when(){return N()},keyed:!0,get fallback(){return Ge()},children:u=>[(()=>{var p=gi(),_=p.firstChild,F=_.nextSibling;return t(_,()=>u.title),t(F,()=>u.summary),p})(),(()=>{var p=hi(),_=p.firstChild,F=_.nextSibling;return t(F,()=>u.expectedOutputs),p})()]}),ne),$e.$$click=P,W.$$input=u=>Y("prompt",u.currentTarget.value),t(me,a(Q,{get href(){return B()},children:"返回能力中心"}),ie),ie.$$click=C,w(()=>ie.disabled=!I.prompt.trim()),w(()=>W.value=I.prompt),m})(),a(g,{get when(){return Ce()},children:m=>a(Yt,{get scenario(){return m()},onClose:()=>re(""),onSubmit:b=>te(m(),b)})})]}})})),r})()}Ne(["click","input"]);const yi=Object.freeze(Object.defineProperty({__proto__:null,CapabilityWizardPage:_i,startCapabilityPromptTask:$i,startCapabilityScenarioRunTask:Ze,startCapabilityWizardTask:et},Symbol.toStringTag,{value:"Module"}));export{Yt as S,Ze as a,et as b,$i as s,yi as w};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/yup-01-BtRq6dLN.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/yup-01-BtRq6dLN.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/yup-03-BHLEoqSS.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/yup-03-BHLEoqSS.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/yup-04-C7yadpJT.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/yup-04-C7yadpJT.aac";export{e as default};
@@ -1 +1 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/yup-05-CuuaeyjC.aac";export{e as default};
1
+ const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/yup-05-CuuaeyjC.aac";export{e as default};
package/index.html CHANGED
@@ -8,19 +8,19 @@
8
8
  name="description"
9
9
  content="OneScience is an AI for Science workspace for research discovery, agent workflows, and scientific knowledge."
10
10
  />
11
- <link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/favicon-96x96-v3.png" sizes="96x96" />
12
- <link rel="shortcut icon" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/favicon-v3.ico" />
13
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/apple-touch-icon-v3.png" />
14
- <link rel="manifest" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/site.webmanifest" />
15
- <link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/fonts/inter-400.woff2" as="font" type="font/woff2" crossorigin />
16
- <link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/fonts/noto-sc-400.woff2" as="font" type="font/woff2" crossorigin />
11
+ <link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/favicon-96x96-v3.png" sizes="96x96" />
12
+ <link rel="shortcut icon" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/favicon-v3.ico" />
13
+ <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/apple-touch-icon-v3.png" />
14
+ <link rel="manifest" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/site.webmanifest" />
15
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/fonts/inter-400.woff2" as="font" type="font/woff2" crossorigin />
16
+ <link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/fonts/noto-sc-400.woff2" as="font" type="font/woff2" crossorigin />
17
17
  <meta name="theme-color" content="#F8F7F7" />
18
18
  <meta name="theme-color" content="#131010" media="(prefers-color-scheme: dark)" />
19
- <meta property="og:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/social-share.png" />
20
- <meta property="twitter:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/social-share.png" />
21
- <script id="oc-theme-preload-script" src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/oc-theme-preload.js"></script>
22
- <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/index-DjsAxbra.js"></script>
23
- <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/index-BehFKl-V.css">
19
+ <meta property="og:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/social-share.png" />
20
+ <meta property="twitter:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/social-share.png" />
21
+ <script id="oc-theme-preload-script" src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/oc-theme-preload.js"></script>
22
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/index-BHX3_77R.js"></script>
23
+ <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/assets/index-BDK6SiBn.css">
24
24
  </head>
25
25
  <body class="antialiased overscroll-none text-12-regular overflow-hidden">
26
26
  <noscript>You need to enable JavaScript to run this app.</noscript>
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@onescience/onecode-web",
3
- "version": "1.14.50-202609181347",
3
+ "version": "1.14.50-202609181447",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "OneCode web UI static assets for CDN delivery.",
8
- "homepage": "https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/index.html",
8
+ "homepage": "https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181447/index.html",
9
9
  "jsdelivr": "index.html",
10
10
  "files": [
11
11
  "**/*"
@@ -1 +0,0 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/alert-06-GK5Tqy6u.aac";export{e as default};
@@ -1 +0,0 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/alert-07-0r0kiLGz.aac";export{e as default};
@@ -1 +0,0 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/alert-08-CZowNquU.aac";export{e as default};
@@ -1 +0,0 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/alert-10-Ck5hR7zH.aac";export{e as default};
@@ -1 +0,0 @@
1
- const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181347/assets/bip-bop-09-CxEgoAHQ.aac";export{e as default};
@@ -1,3 +0,0 @@
1
- import{C as $,dp as A,D as r,k as N,dq as D,da as T,dg as L,dr as R,a as u,i as a,S as h,ds as k,E as U,t as p}from"./index-DjsAxbra.js";var P=p('<pre class="m-0 shrink-0 max-h-28 overflow-y-auto rounded-lg border border-border-weak-base bg-background-weak p-3 text-12-regular text-text-strong leading-5 whitespace-pre-wrap break-all">服务端返回:'),M=p('<pre class="m-0 shrink-0 max-h-24 overflow-y-auto rounded-lg border border-border-weak-base bg-background-weak p-3 text-12-regular text-text-strong leading-5 whitespace-pre-wrap break-all">探测详情:'),G=p('<div class="flex flex-col gap-2 min-w-0 min-h-0"><div class="flex items-center justify-between gap-2 shrink-0"><strong class="text-13-medium text-text-strong">建议在服务器上执行</strong></div><pre class="m-0 max-h-[36vh] overflow-y-auto rounded-lg border border-border-weak-base bg-background-weak p-3 text-12-regular text-text-strong leading-5 whitespace-pre-wrap break-all">'),B=p('<div class="flex flex-col gap-4 px-6 pb-6 pt-0 min-h-0"><p class="text-14-regular text-text-weak m-0 leading-6 shrink-0"></p><p class="text-12-regular text-text-weak m-0 shrink-0"></p><div class="flex justify-end shrink-0">');function j(x={}){const v=$(),_=A(),l=r(()=>N()),n=r(()=>l()?.capabilities.terminalUnavailableReason??""),f=r(()=>l()?.capabilities.terminalUnavailableDetail??""),i=r(()=>l()?.capabilities.terminalIsolation??""),s=r(()=>(x.failure??"").trim()),o=r(()=>!!l()&&l()?.capabilities.terminal===!0&&!n()),g=r(()=>!n()&&!o()&&i()==="bubblewrap"),b=r(()=>(D(),!!T(L(_.dir)??""))),m=r(()=>{if(b())return[];if(o()&&s())return[];if(o())return i()==="docker"?["# 1) 无 GPU:改用 bubblewrap 后重启 OneCode,并重新登录","export ONECODE_TERMINAL_ISOLATION=bubblewrap","# 2) 有 GPU 且必须用 docker:给运行账号加组后重新登录系统再启 OneCode",'sudo usermod -aG docker "$USER"',"docker info"]:i()==="bubblewrap"?["# A. 临时绕过隔离(先验证终端能否打开)","export ONECODE_TERMINAL_ISOLATION=native","# 然后重启 onecode,浏览器重新登录后再开终端","","# B. 继续用 bubblewrap 时,在运行 OneCode 的机器上检查:","which bwrap; bwrap --version","bwrap --unshare-all --die-with-parent --new-session --proc /proc --dev /dev --ro-bind-try /usr /usr --ro-bind-try /bin /bin --tmpfs /tmp -- /usr/bin/true; echo exit:$?","cat /proc/sys/kernel/unprivileged_userns_clone","cat /proc/sys/kernel/apparmor_restrict_unprivileged_userns 2>/dev/null || true","","# C. 若 exit 非 0,可临时放开(需管理员;重启后可能失效)","sudo sysctl -w kernel.unprivileged_userns_clone=1","sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0","","# D. 服务端日志(搜 creating session / exited)",'ls ~/.local/share/opencode/log/ 2>/dev/null || ls "$HOME"/.local/share/opencode/log/']:["# 查看服务端日志(搜 creating session / exited)",'ls ~/.local/share/opencode/log/ 2>/dev/null || ls "$HOME"/.local/share/opencode/log/',"# 临时可改:export ONECODE_TERMINAL_ISOLATION=native 后重启并重新登录"];const e=R(l());return Array.isArray(e)&&e.length>0?e:g()?["export ONECODE_TERMINAL_ISOLATION=native","cat /proc/sys/kernel/unprivileged_userns_clone"]:[]}),O=r(()=>m().length>0),C=r(()=>b()||o()?"无法打开终端":n()==="docker-missing"?"无法打开终端:Docker 不可用":n()==="disabled"?"无法打开终端:服务未启用":n()==="bubblewrap-unusable"?"无法打开终端:bubblewrap 异常":g()?"无法打开终端:隔离环境异常":"无法打开终端:需要 bubblewrap"),y=r(()=>b()&&s()?"在远端创建或连接普通 shell 失败。下方是服务端返回;远端终端不使用本机 bubblewrap。":b()?"SSH 已连接时,终端应在远端以普通 shell 打开,不使用本机 bubblewrap。请关闭失效标签后新建,或断开后重新连接远端再打开终端。":o()&&s()?"创建终端失败。请查看下方服务端返回。SSH 远端项目的终端在远端以普通 shell 运行,不使用本机 bubblewrap。":o()?i()==="docker"?"隔离模式为 docker,创建终端失败。常见原因是当前用户无权访问 docker.sock。无 GPU 请改用 bubblewrap;有 GPU 请把运行账号加入 docker 组。":i()==="bubblewrap"?"隔离模式为 bubblewrap,创建终端失败(服务端 POST /pty 返回错误)。可先按下方 A 改用 native 验证;若需继续隔离,再按 B/C 检查 bubblewrap 与内核命名空间。":s()?"远端或本机创建终端失败。下方是服务端返回;SSH 远端终端应是普通 shell,不使用本机 bubblewrap。":`隔离模式为 ${i()||"native"},创建终端失败。请按下方命令查看日志或临时调整隔离模式后重试。`:n()==="docker-missing"?"已配置 docker 隔离,但当前用户无法使用 Docker。无 GPU 请改用 bubblewrap;有 GPU 请将运行账号加入 docker 组。":n()==="disabled"?"服务端未启用平台账号终端。":n()==="bubblewrap-unusable"?"已安装 bubblewrap,但无法创建用户命名空间。请按下方命令检查后重启 OneCode 并重新登录。":g()?"bubblewrap 终端启动失败。可临时改用 native,或检查 user namespace 相关 sysctl。":"需要安装 bubblewrap 后重启 OneCode 并重新登录。容器部署可使用 ONECODE_TERMINAL_ISOLATION=native。"),E=async()=>{const e=m().filter(c=>c.trim().length>0&&!c.trim().startsWith("#")).join(`
2
- `);if(e)try{await navigator.clipboard.writeText(e)}catch{}};return u(U,{get title(){return C()},class:"os-client-terminal-dialog w-full",size:"normal",get children(){var e=B(),c=e.firstChild,d=c.nextSibling,S=d.nextSibling;return a(c,y),a(e,u(h,{get when(){return s()},get children(){var t=P();return t.firstChild,a(t,s,null),t}}),d),a(e,u(h,{get when(){return f()},get children(){var t=M();return t.firstChild,a(t,f,null),t}}),d),a(e,u(h,{get when(){return O()},get children(){var t=G(),w=t.firstChild;w.firstChild;var I=w.nextSibling;return a(w,u(k,{type:"button",size:"normal",variant:"ghost",onClick:()=>void E(),children:"复制命令"}),null),a(I,()=>m().join(`
3
- `)),t}}),d),a(d,()=>b()?"远端终端在远端以普通 shell 运行,不使用本机隔离。":"修改环境变量后需重启 OneCode,并在浏览器中重新登录后再打开终端。"),a(S,u(k,{type:"button",variant:"primary",size:"large",onClick:()=>v.close(),children:"知道了"})),e}})}export{j as DialogTerminalUnavailable};