@onescience/onecode-web 1.14.50-202609181531 → 1.14.50-202609181756
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{3Dmol-Ch1KedM5.js → 3Dmol-DY0fZUiX.js} +1 -1
- package/assets/{account-system-DyKuhlpC.js → account-system-CNS-487J.js} +1 -1
- package/assets/{alert-04-DeuF2UXC.js → alert-01-BbGM3fjB.js} +1 -1
- package/assets/{alert-05-DYWLL59b.js → alert-02-B-fFsEiH.js} +1 -1
- package/assets/{alert-01-BdnfTvt3.js → alert-04-BCGiHtel.js} +1 -1
- package/assets/{alert-02-DlB7xC44.js → alert-05-DAKNUtgb.js} +1 -1
- package/assets/alert-06-CFw2XiKw.js +1 -0
- package/assets/alert-07-lVT3M_4v.js +1 -0
- package/assets/alert-08-Dal_zYC5.js +1 -0
- package/assets/alert-10-BbN7FLRt.js +1 -0
- package/assets/{bip-bop-03-DtZ2ocq8.js → bip-bop-03-9I_2KnDs.js} +1 -1
- package/assets/{bip-bop-04-CAcRHt0J.js → bip-bop-04-BQhtPbmF.js} +1 -1
- package/assets/{bip-bop-06-Ko7eY7pY.js → bip-bop-06-Iuz5hBRX.js} +1 -1
- package/assets/{bip-bop-08-DiypVTFo.js → bip-bop-08-c3MG2X7t.js} +1 -1
- package/assets/bip-bop-09-Dtp_hcMM.js +1 -0
- package/assets/{center-CIk83EZc.js → center-BUPYaUtu.js} +1 -1
- package/assets/{dialog-fork-BDVGeVqA.js → dialog-fork-BQLd3-EI.js} +1 -1
- package/assets/{dialog-project-upload-DYXV2LKc.js → dialog-project-upload-8hkUPTv8.js} +1 -1
- package/assets/{dialog-select-file-C-ZASZ-7.js → dialog-select-file-B-3X-sOa.js} +1 -1
- package/assets/{dialog-select-model-wrGNluy7.js → dialog-select-model-BwRYBcI-.js} +2 -2
- package/assets/{dialog-terminal-unavailable-CuvzQzVj.js → dialog-terminal-unavailable-h2JsN7Gp.js} +1 -1
- package/assets/{docs-B9cejDrH.js → docs-gazaNZIs.js} +1 -1
- package/assets/{ghostty-web-DztulBQs.js → ghostty-web-CdEdCulc.js} +1 -1
- package/assets/index-Dw8Z7xcf.css +1 -0
- package/assets/{index-DgAWECfr.js → index-_227CWv0.js} +313 -313
- package/assets/{intro-B7dm9ysF.js → intro-Bj3PQFLl.js} +1 -1
- package/assets/{nope-02-CkqYS92w.js → nope-02-DGwydH6N.js} +1 -1
- package/assets/{nope-05-Dm-l4oPk.js → nope-05-BDrsjOfG.js} +1 -1
- package/assets/{nope-08-Dh1fbMtx.js → nope-08-DVw0Or18.js} +1 -1
- package/assets/{nope-11-u_Bu0nzq.js → nope-11-C2mLf2vM.js} +1 -1
- package/assets/nope-12-Do8Y4tqx.js +1 -0
- package/assets/{onescience-DSnIhmgh.js → onescience-CgKv63KP.js} +1 -1
- package/assets/{resources-7qs0MDve.js → resources-D3aMp7kH.js} +1 -1
- package/assets/{skills-DaVBk0GP.js → skills-CpQ3kqPH.js} +1 -1
- package/assets/{staplebops-03-DVNQSsM6.js → staplebops-03-BT2v4e03.js} +1 -1
- package/assets/{staplebops-04-D6iEjOKJ.js → staplebops-04-DqeTKBr_.js} +1 -1
- package/assets/{staplebops-06-DC0361r-.js → staplebops-06-DWew6VOb.js} +1 -1
- package/assets/{staplebops-07-B9GDnXWK.js → staplebops-07-Bz01XAXT.js} +1 -1
- package/assets/{wizard-Bv-16vjG.js → wizard-DqtXDyAY.js} +1 -1
- package/assets/{yup-01-B17YIuGi.js → yup-01-CFH9mg3n.js} +1 -1
- package/assets/{yup-03-BQwDeEIZ.js → yup-03-CFSb9-wC.js} +1 -1
- package/assets/{yup-04-WA7CLwQ1.js → yup-04--QATMtIb.js} +1 -1
- package/assets/{yup-05-PE_64iSB.js → yup-05-DY-d9TE0.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/assets/alert-06-CTGDbzcR.js +0 -1
- package/assets/alert-07-D_ZkZ_QL.js +0 -1
- package/assets/alert-08-DYS6FPiL.js +0 -1
- package/assets/alert-10-CJTtxkrA.js +0 -1
- package/assets/bip-bop-09-DVmUi4gu.js +0 -1
- package/assets/index-BtTSBbfn.css +0 -1
- package/assets/nope-12-DQcUQOgc.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cu as N,O as Q,i,a as e,t as r,aH as n,S as b,F as p,aI as P,b as T,x as U,b6 as I,H as V,cv as X,cw as Y,g as Z}from"./index-
|
|
1
|
+
import{cu as N,O as Q,i,a as e,t as r,aH as n,S as b,F as p,aI as P,b as T,x as U,b6 as I,H as V,cv as X,cw as Y,g as Z}from"./index-_227CWv0.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><ul></ul></article><article class=os-client-capability-intro-block data-tone=flow aria-label=使用流程><h3>怎么用</h3><ol class=os-client-capability-intro-flow></ol></article></div><footer class=os-client-capability-intro-footer><a class=os-client-capability-intro-docs-link target=_blank rel=noreferrer>深入资料"),O=r("<span>"),ri=r("<li>"),ni=r("<li><span>.</span><strong>"),ci=r("<strong>"),si=r("<p>");function oi(h){return h==="hpc"?{title:"不用手写复杂作业脚本",body:"选择一个常见软件任务,系统会把输入文件、HPC 资源、运行脚本和审批步骤整理成可执行任务。"}:{title:"不用理解复杂模型细节",body:"选择一个常见能力,系统会把研究对象、输入数据、目标和运行偏好整理成可执行任务。"}}function pi(){const h=N(),m=Q(),g=()=>Z(h.id??""),C=()=>Y(m.search),_=()=>X(m.search,{category:g()?.category??"onemodel",domain:g()?.domain??"materials"});return(()=>{var S=ii();return i(S,e(b,{get when(){return g()},get fallback(){return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return I()},"aria-label":"关闭介绍"}),(()=>{var t=ti();return t.firstChild,i(t,e(n,{get href(){return I()},children:"返回能力中心"}),null),t})()]},children:t=>{const x=()=>oi(t().category),$=()=>V(t());return[e(n,{class:"os-client-capability-intro-backdrop",get href(){return _()},"aria-label":"关闭介绍"}),(()=>{var u=ai(),f=u.firstChild,k=f.firstChild,w=k.firstChild,H=w.nextSibling,E=H.nextSibling,F=f.nextSibling,R=F.firstChild,L=R.firstChild,W=L.nextSibling,z=R.nextSibling,j=z.firstChild,q=j.nextSibling,A=z.nextSibling,B=A.firstChild,D=B.nextSibling,G=A.nextSibling,J=G.firstChild,K=J.nextSibling,y=F.nextSibling,M=y.firstChild;return i(w,()=>t().intro.title||"30 秒看懂模型"),i(H,()=>t().name),i(E,()=>t().intro.subtitle),i(k,e(b,{get when(){return!$()},get children(){return ei()}}),null),i(f,e(n,{class:"os-client-capability-intro-close",get href(){return _()},"aria-label":"关闭",children:"×"}),null),i(W,e(p,{get each(){return t().intro.suited},children:a=>(()=>{var l=O();return i(l,a),l})()})),i(q,e(p,{get each(){return t().intro.notFor},children:a=>(()=>{var l=O();return i(l,a),l})()})),i(D,e(p,{get each(){return t().intro.prepare},children:a=>(()=>{var l=ri();return i(l,a),l})()})),i(K,e(p,{get each(){return t().intro.steps},children:(a,l)=>(()=>{var c=ni(),s=c.firstChild,v=s.firstChild,o=s.nextSibling;return i(s,()=>l()+1,v),i(o,a),c})()})),i(u,e(b,{get when(){return $()},get children(){var a=li(),l=a.firstChild,c=l.firstChild,s=c.nextSibling,v=l.nextSibling;return i(c,()=>x().title),i(s,()=>x().body),i(v,e(p,{get each(){return t().scenarios},children:o=>e(n,{class:"os-client-capability-intro-scenario-card",get href(){return P(t().id,o.id,C())},get children(){return[(()=>{var d=ci();return i(d,()=>o.title),d})(),(()=>{var d=si();return i(d,()=>o.summary),d})()]}})})),a}}),y),i(y,e(b,{get when(){return $()},get fallback(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return _()},children:"返回模型库"})},get children(){return e(n,{class:"os-client-capability-intro-wizard-link",get href(){return P(t().id,void 0,C())},"data-primary":"true",children:"进入能力向导"})}}),null),T(()=>U(M,"href",t().docsHref)),u})()]}})),S})()}export{pi as CapabilityIntroPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-202609181756/assets/nope-12-BJR1Ka3c.aac";export{e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as At,a as n,aJ as bt,i,an as Oe,S as y,b as E,x as R,v as ne,c as S,z as ge,F as ce,t as o,u as mt,aK as $s,aL as Yi,aM as Da,aN as jt,aO as Xa,m as Cs,p as Ss,n as _s,aP as Ps,aQ as er,aR as ks,A as ze,aS as It,aH as Ze,ag as Ut,aT as Ds,D as j,B as pa,aU as ga,aV as La,K as ot,k as ft,a5 as tr,ap as gt,aW as Gr,aX as Br,aY as wi,aZ as $i,a_ as As,a$ as xs,b0 as na,b1 as Ci,b2 as Hr,P as wt,O as Kt,L as Tt,N as fa,af as qr,C as zr,b3 as Ms,b4 as Is,b5 as Fs,aj as et,b6 as ar,b7 as Ts,b8 as jr,b9 as Wr,ba as Vr,ak as Kr,aE as Es,bb as ri,bc as Os,bd as Ns,be as Rs,h as Xr,bf as Ls,bg as Us,bh as ir,ao as ca,bi as Gs,bj as Aa,bk as Ja,bl as Bs,bm as ht,bn as xt,Q as Si,bo as _i,bp as Hs,l as Jr,bq as qs,br as zs,bs as js,bt as Ws,bu as Vs,bv as Ta,bw as oa,bx as Ks,by as Qa,bz as Za,bA as Xs,bB as Js,bC as ia,bD as Qs,bE as Zs,bF as Ys,bG as eo,bH as Pi,bI as to,bJ as ao,bK as io,U as ro,aF as no,$ as so,bL as ki,bM as Di,bN as Qr,bO as Zr,bP as ni,bQ as oo,bR as si,bS as lo,bT as co,bU as uo,bV as zt,bW as mo,bX as ho,bY as Yr,bZ as en,b_ as tn,b$ as an,c0 as rn,c1 as po,c2 as nn,at as go,c3 as fo,c4 as bo,c5 as vo,c6 as yo,c7 as kt,c8 as wo,c9 as $o,ca as Co,cb as rr,cc as So,cd as oi,ce as _o,cf as sn,cg as on,ch as Po,ci as ln,o as la,cj as Ai,j as ko,ck as Do,cl as Ao,am as xo,al as nr,cm as cn,cn as Mo,co as Io,w as Fo,cp as To,cq as sr,cr as Eo,cs as Oo,ct as No}from"./index-DgAWECfr.js";import{d as Ro}from"./onescience-docs-CH5KBTI9.js";var Lo=o("<div><div class=os-download-path-hint-title></div><ul class=os-download-path-hint-list>"),Uo=o("<li class=break-all>"),Go=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>"),Bo=o("<p class=os-section-copy>确认将 <strong></strong> <!>以下路径吗?"),Ho=o("<p class=os-section-copy data-testid=download-register-guide>下载完成不会自动登记。请到 OneData「原始数据」确认接入后再加工或训练。"),qo=o("<p class=os-section-copy>SCNet 侧无法直接访问 ModelScope。确认后将打开科研开发会话,由 Agent 使用 scnet MCP 工具完成下载与传输。"),zo=o("<div class=os-dataset-download-info-row><span></span><strong>"),jo=o("<div class=os-upload-error>可用空间不足,无法下载该数据集"),or=o("<div class=os-upload-error>"),Wo=o("<div class=os-upload-error>无法从魔搭获取数据集大小,暂不可下载"),Vo=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">'),Ko=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>"),Xo=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">'),Jo=o("<p class=os-section-copy>正在删除所选副本…"),Qo=o("<p class=os-section-copy>"),Zo=o("<button type=button class=os-download-copy-all>"),Yo=o("<div class=os-download-copy-list role=group aria-label=选择要删除的环境>"),el=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>"),tl=o("<span class=os-download-copy-partial> 未完成"),al=o("<button type=button class=os-download-copy-item><span class=os-download-copy-item-title></span><span class=os-download-copy-item-path>"),il=o('<span class="os-download-copy-path break-all">');function cr(e){const t=()=>e.paths.filter(a=>a.trim());return n(y,{get when(){return t().length>0},get children(){var a=Lo(),r=a.firstChild,s=r.nextSibling;return i(r,()=>e.confirmed?"数据集位置":"数据集实际位置(随 ModelScope 版本可能不同)"),i(s,n(ce,{get each(){return t()},children:l=>(()=>{var d=Uo();return i(d,l),d})()})),E(()=>mt(a,`os-download-path-hint ${e.class??""}`.trim())),a}})}function rl(e){const t=()=>e.actionLabel??"下载",a=()=>e.environment??{kind:"local"},r=()=>e.diskLoading?"加载中...":Yi(e.availableBytes),s=()=>e.sizeLoading?"加载中...":e.datasetBytes===void 0?"无法从魔搭获取数据集大小":Yi(e.datasetBytes),l=()=>{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:$s(l(),e.datasetId),confirmed:!1}},c=()=>e.busy?a().kind==="ssh"?"正在提交到远端...":"正在提交下载...":a().kind==="scnet"?"创建下载任务":t()==="更新"?"确认更新":"确认下载",g=()=>!!e.sizeLoading||e.datasetBytes===void 0,v=()=>{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()||g()||!!e.diskLoading||b()||v();return n(y,{get when(){return e.open},get children(){return n(bt,{get children(){var h=Vo(),f=h.firstChild,w=f.firstChild,_=w.firstChild,p=_.firstChild,M=p.firstChild,N=p.nextSibling,L=_.nextSibling,W=w.nextSibling,O=W.firstChild,H=O.firstChild,D=H.nextSibling,T=W.nextSibling,G=T.firstChild,z=G.nextSibling;return f.$$click=P=>P.stopPropagation(),i(p,t,M),i(N,()=>e.title),Oe(L,"click",e.onClose,!0),i(f,n(y,{get when(){return e.environmentSelector},get children(){var P=Go(),F=P.firstChild,B=F.firstChild,re=B.nextSibling;return i(re,()=>e.environmentSelector),P}}),W),i(f,n(y,{get when(){return a().kind==="local"},get fallback(){return[(()=>{var P=Ko(),F=P.firstChild,B=F.firstChild,re=B.firstChild,de=F.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??""),P})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]},get children(){return[(()=>{var P=Bo(),F=P.firstChild,B=F.nextSibling,re=B.nextSibling,de=re.nextSibling;return de.nextSibling,i(B,()=>e.datasetId),i(P,()=>t()==="更新"?"更新到":"下载到",de),P})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]}}),W),i(f,n(y,{get when(){return d().confirmed},get children(){return Ho()}}),W),i(f,n(y,{get when(){return a().kind==="scnet"},get children(){return qo()}}),W),i(D,s),i(W,n(y,{get when(){return a().kind!=="scnet"},get children(){var P=zo(),F=P.firstChild,B=F.nextSibling;return i(F,()=>a().kind==="ssh"?"远端可用空间":"项目路径可用空间"),i(B,r),P}}),null),i(f,n(y,{get when(){return v()},get children(){return jo()}}),T),i(f,n(y,{get when(){return b()},get children(){var P=or();return i(P,()=>a().kind==="ssh"?"无法获取远端可用空间,暂不可下载":"无法获取项目路径可用空间,暂不可下载"),P}}),T),i(f,n(y,{get when(){return ne(()=>!e.sizeLoading)()&&e.datasetBytes===void 0},get children(){return Wo()}}),T),i(f,n(y,{get when(){return e.error},get children(){var P=or();return i(P,()=>e.error),P}}),T),Oe(G,"click",e.onClose,!0),Oe(z,"click",e.onConfirm,!0),i(z,c),E(P=>{var F=v()?"":void 0,B=b()?"":void 0,re=e.busy,de=u();return F!==P.e&&R(W,"data-insufficient",P.e=F),B!==P.t&&R(W,"data-unknown",P.t=B),re!==P.a&&(G.disabled=P.a=re),de!==P.o&&(z.disabled=P.o=de),P},{e:void 0,t:void 0,a:void 0,o:void 0}),h}})}})}function nl(e){return n(y,{get when(){return e.open},get children(){return n(bt,{get children(){var t=Xo(),a=t.firstChild,r=a.firstChild,s=r.firstChild,l=s.firstChild,d=l.nextSibling,c=s.nextSibling,g=r.nextSibling,v=g.firstChild,b=v.nextSibling,u=g.nextSibling,h=u.firstChild,f=h.nextSibling;return a.$$click=w=>w.stopPropagation(),i(d,()=>e.title),Oe(c,"click",e.onClose,!0),i(b,()=>e.datasetId),Oe(h,"click",e.onClose,!0),Oe(f,"click",e.onConfirm,!0),i(f,()=>e.busy?"正在取消...":"确认取消"),E(w=>{var _=e.busy,p=e.busy;return _!==w.e&&(h.disabled=w.e=_),p!==w.t&&(f.disabled=w.t=p),w},{e:void 0,t:void 0}),t}})}})}function sl(e){const[t,a]=S();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),l=()=>r().filter(u=>s().has(u.key)),d=()=>r().length>0&&l().length===r().length,c=()=>{const u=l();return u.length>0&&u.every(h=>h.partial)},g=()=>!!e.busy||l().length===0,v=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(y,{get when(){return e.open},get children(){return n(bt,{get children(){var u=el(),h=u.firstChild,f=h.firstChild,w=f.firstChild,_=w.firstChild,p=_.nextSibling,M=w.nextSibling,N=f.nextSibling,L=N.firstChild,W=L.nextSibling;return h.$$click=O=>O.stopPropagation(),i(_,()=>c()?"清理残留文件":"删除数据集"),i(p,()=>e.title),Oe(M,"click",e.onClose,!0),i(h,n(y,{get when(){return e.busy},get children(){return Jo()}}),N),i(h,n(y,{get when(){return!e.busy},get children(){return[(()=>{var O=Qo();return i(O,(()=>{var H=ne(()=>r().length>1);return()=>H()?"该数据集已下载到多个环境。请选择要删除的副本,此操作不可恢复。":ne(()=>!!c())()?["确认清理 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 未完成的下载残留吗?请选择环境后继续。"]:["请选择要删除 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 的环境。此操作不可恢复。"]})()),O})(),n(y,{get when(){return r().length>1},get children(){var O=Zo();return O.$$click=b,i(O,()=>d()?"取消全选":"全选"),E(()=>O.disabled=e.busy),O}}),(()=>{var O=Yo();return i(O,n(ce,{get each(){return r()},children:H=>(()=>{var D=al(),T=D.firstChild,G=T.nextSibling;return D.$$click=()=>v(H.key),i(T,()=>H.label,null),i(T,n(y,{get when(){return H.partial},get children(){return tl()}}),null),i(G,n(ce,{get each(){return H.paths},children:z=>(()=>{var P=il();return i(P,z),P})()})),E(z=>{var P=s().has(H.key)?"":void 0,F=s().has(H.key),B=e.busy;return P!==z.e&&R(D,"data-selected",z.e=P),F!==z.t&&R(D,"aria-pressed",z.t=F),B!==z.a&&(D.disabled=z.a=B),z},{e:void 0,t:void 0,a:void 0}),D})()})),O})()]}}),N),Oe(L,"click",e.onClose,!0),Oe(W,"click",e.onConfirm,!0),i(W,(()=>{var O=ne(()=>!!e.busy);return()=>O()?"正在删除...":c()?"确认清理":"确认删除"})()),E(O=>{var H=e.busy,D=e.busy,T=g();return H!==O.e&&(M.disabled=O.e=H),D!==O.t&&(L.disabled=O.t=D),T!==O.a&&(W.disabled=O.a=T),O},{e:void 0,t:void 0,a:void 0}),u}})}})}At(["click","input"]);const St=`请按照下面的内容,使用OneScience,进行后续工作。
|
|
1
|
+
import{d as At,a as n,aJ as bt,i,an as Oe,S as y,b as E,x as R,v as ne,c as S,z as ge,F as ce,t as o,u as mt,aK as $s,aL as Yi,aM as Da,aN as jt,aO as Xa,m as Cs,p as Ss,n as _s,aP as Ps,aQ as er,aR as ks,A as ze,aS as It,aH as Ze,ag as Ut,aT as Ds,D as j,B as pa,aU as ga,aV as La,K as ot,k as ft,a5 as tr,ap as gt,aW as Gr,aX as Br,aY as wi,aZ as $i,a_ as As,a$ as xs,b0 as na,b1 as Ci,b2 as Hr,P as wt,O as Kt,L as Tt,N as fa,af as qr,C as zr,b3 as Ms,b4 as Is,b5 as Fs,aj as et,b6 as ar,b7 as Ts,b8 as jr,b9 as Wr,ba as Vr,ak as Kr,aE as Es,bb as ri,bc as Os,bd as Ns,be as Rs,h as Xr,bf as Ls,bg as Us,bh as ir,ao as ca,bi as Gs,bj as Aa,bk as Ja,bl as Bs,bm as ht,bn as xt,Q as Si,bo as _i,bp as Hs,l as Jr,bq as qs,br as zs,bs as js,bt as Ws,bu as Vs,bv as Ta,bw as oa,bx as Ks,by as Qa,bz as Za,bA as Xs,bB as Js,bC as ia,bD as Qs,bE as Zs,bF as Ys,bG as eo,bH as Pi,bI as to,bJ as ao,bK as io,U as ro,aF as no,$ as so,bL as ki,bM as Di,bN as Qr,bO as Zr,bP as ni,bQ as oo,bR as si,bS as lo,bT as co,bU as uo,bV as zt,bW as mo,bX as ho,bY as Yr,bZ as en,b_ as tn,b$ as an,c0 as rn,c1 as po,c2 as nn,at as go,c3 as fo,c4 as bo,c5 as vo,c6 as yo,c7 as kt,c8 as wo,c9 as $o,ca as Co,cb as rr,cc as So,cd as oi,ce as _o,cf as sn,cg as on,ch as Po,ci as ln,o as la,cj as Ai,j as ko,ck as Do,cl as Ao,am as xo,al as nr,cm as cn,cn as Mo,co as Io,w as Fo,cp as To,cq as sr,cr as Eo,cs as Oo,ct as No}from"./index-_227CWv0.js";import{d as Ro}from"./onescience-docs-CH5KBTI9.js";var Lo=o("<div><div class=os-download-path-hint-title></div><ul class=os-download-path-hint-list>"),Uo=o("<li class=break-all>"),Go=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>"),Bo=o("<p class=os-section-copy>确认将 <strong></strong> <!>以下路径吗?"),Ho=o("<p class=os-section-copy data-testid=download-register-guide>下载完成不会自动登记。请到 OneData「原始数据」确认接入后再加工或训练。"),qo=o("<p class=os-section-copy>SCNet 侧无法直接访问 ModelScope。确认后将打开科研开发会话,由 Agent 使用 scnet MCP 工具完成下载与传输。"),zo=o("<div class=os-dataset-download-info-row><span></span><strong>"),jo=o("<div class=os-upload-error>可用空间不足,无法下载该数据集"),or=o("<div class=os-upload-error>"),Wo=o("<div class=os-upload-error>无法从魔搭获取数据集大小,暂不可下载"),Vo=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">'),Ko=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>"),Xo=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">'),Jo=o("<p class=os-section-copy>正在删除所选副本…"),Qo=o("<p class=os-section-copy>"),Zo=o("<button type=button class=os-download-copy-all>"),Yo=o("<div class=os-download-copy-list role=group aria-label=选择要删除的环境>"),el=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>"),tl=o("<span class=os-download-copy-partial> 未完成"),al=o("<button type=button class=os-download-copy-item><span class=os-download-copy-item-title></span><span class=os-download-copy-item-path>"),il=o('<span class="os-download-copy-path break-all">');function cr(e){const t=()=>e.paths.filter(a=>a.trim());return n(y,{get when(){return t().length>0},get children(){var a=Lo(),r=a.firstChild,s=r.nextSibling;return i(r,()=>e.confirmed?"数据集位置":"数据集实际位置(随 ModelScope 版本可能不同)"),i(s,n(ce,{get each(){return t()},children:l=>(()=>{var d=Uo();return i(d,l),d})()})),E(()=>mt(a,`os-download-path-hint ${e.class??""}`.trim())),a}})}function rl(e){const t=()=>e.actionLabel??"下载",a=()=>e.environment??{kind:"local"},r=()=>e.diskLoading?"加载中...":Yi(e.availableBytes),s=()=>e.sizeLoading?"加载中...":e.datasetBytes===void 0?"无法从魔搭获取数据集大小":Yi(e.datasetBytes),l=()=>{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:$s(l(),e.datasetId),confirmed:!1}},c=()=>e.busy?a().kind==="ssh"?"正在提交到远端...":"正在提交下载...":a().kind==="scnet"?"创建下载任务":t()==="更新"?"确认更新":"确认下载",g=()=>!!e.sizeLoading||e.datasetBytes===void 0,v=()=>{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()||g()||!!e.diskLoading||b()||v();return n(y,{get when(){return e.open},get children(){return n(bt,{get children(){var h=Vo(),f=h.firstChild,w=f.firstChild,_=w.firstChild,p=_.firstChild,M=p.firstChild,N=p.nextSibling,L=_.nextSibling,W=w.nextSibling,O=W.firstChild,H=O.firstChild,D=H.nextSibling,T=W.nextSibling,G=T.firstChild,z=G.nextSibling;return f.$$click=P=>P.stopPropagation(),i(p,t,M),i(N,()=>e.title),Oe(L,"click",e.onClose,!0),i(f,n(y,{get when(){return e.environmentSelector},get children(){var P=Go(),F=P.firstChild,B=F.firstChild,re=B.nextSibling;return i(re,()=>e.environmentSelector),P}}),W),i(f,n(y,{get when(){return a().kind==="local"},get fallback(){return[(()=>{var P=Ko(),F=P.firstChild,B=F.firstChild,re=B.firstChild,de=F.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??""),P})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]},get children(){return[(()=>{var P=Bo(),F=P.firstChild,B=F.nextSibling,re=B.nextSibling,de=re.nextSibling;return de.nextSibling,i(B,()=>e.datasetId),i(P,()=>t()==="更新"?"更新到":"下载到",de),P})(),n(cr,{get paths(){return d().paths},get confirmed(){return d().confirmed}})]}}),W),i(f,n(y,{get when(){return d().confirmed},get children(){return Ho()}}),W),i(f,n(y,{get when(){return a().kind==="scnet"},get children(){return qo()}}),W),i(D,s),i(W,n(y,{get when(){return a().kind!=="scnet"},get children(){var P=zo(),F=P.firstChild,B=F.nextSibling;return i(F,()=>a().kind==="ssh"?"远端可用空间":"项目路径可用空间"),i(B,r),P}}),null),i(f,n(y,{get when(){return v()},get children(){return jo()}}),T),i(f,n(y,{get when(){return b()},get children(){var P=or();return i(P,()=>a().kind==="ssh"?"无法获取远端可用空间,暂不可下载":"无法获取项目路径可用空间,暂不可下载"),P}}),T),i(f,n(y,{get when(){return ne(()=>!e.sizeLoading)()&&e.datasetBytes===void 0},get children(){return Wo()}}),T),i(f,n(y,{get when(){return e.error},get children(){var P=or();return i(P,()=>e.error),P}}),T),Oe(G,"click",e.onClose,!0),Oe(z,"click",e.onConfirm,!0),i(z,c),E(P=>{var F=v()?"":void 0,B=b()?"":void 0,re=e.busy,de=u();return F!==P.e&&R(W,"data-insufficient",P.e=F),B!==P.t&&R(W,"data-unknown",P.t=B),re!==P.a&&(G.disabled=P.a=re),de!==P.o&&(z.disabled=P.o=de),P},{e:void 0,t:void 0,a:void 0,o:void 0}),h}})}})}function nl(e){return n(y,{get when(){return e.open},get children(){return n(bt,{get children(){var t=Xo(),a=t.firstChild,r=a.firstChild,s=r.firstChild,l=s.firstChild,d=l.nextSibling,c=s.nextSibling,g=r.nextSibling,v=g.firstChild,b=v.nextSibling,u=g.nextSibling,h=u.firstChild,f=h.nextSibling;return a.$$click=w=>w.stopPropagation(),i(d,()=>e.title),Oe(c,"click",e.onClose,!0),i(b,()=>e.datasetId),Oe(h,"click",e.onClose,!0),Oe(f,"click",e.onConfirm,!0),i(f,()=>e.busy?"正在取消...":"确认取消"),E(w=>{var _=e.busy,p=e.busy;return _!==w.e&&(h.disabled=w.e=_),p!==w.t&&(f.disabled=w.t=p),w},{e:void 0,t:void 0}),t}})}})}function sl(e){const[t,a]=S();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),l=()=>r().filter(u=>s().has(u.key)),d=()=>r().length>0&&l().length===r().length,c=()=>{const u=l();return u.length>0&&u.every(h=>h.partial)},g=()=>!!e.busy||l().length===0,v=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(y,{get when(){return e.open},get children(){return n(bt,{get children(){var u=el(),h=u.firstChild,f=h.firstChild,w=f.firstChild,_=w.firstChild,p=_.nextSibling,M=w.nextSibling,N=f.nextSibling,L=N.firstChild,W=L.nextSibling;return h.$$click=O=>O.stopPropagation(),i(_,()=>c()?"清理残留文件":"删除数据集"),i(p,()=>e.title),Oe(M,"click",e.onClose,!0),i(h,n(y,{get when(){return e.busy},get children(){return Jo()}}),N),i(h,n(y,{get when(){return!e.busy},get children(){return[(()=>{var O=Qo();return i(O,(()=>{var H=ne(()=>r().length>1);return()=>H()?"该数据集已下载到多个环境。请选择要删除的副本,此操作不可恢复。":ne(()=>!!c())()?["确认清理 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 未完成的下载残留吗?请选择环境后继续。"]:["请选择要删除 ",(()=>{var D=lr();return i(D,()=>e.datasetId),D})()," 的环境。此操作不可恢复。"]})()),O})(),n(y,{get when(){return r().length>1},get children(){var O=Zo();return O.$$click=b,i(O,()=>d()?"取消全选":"全选"),E(()=>O.disabled=e.busy),O}}),(()=>{var O=Yo();return i(O,n(ce,{get each(){return r()},children:H=>(()=>{var D=al(),T=D.firstChild,G=T.nextSibling;return D.$$click=()=>v(H.key),i(T,()=>H.label,null),i(T,n(y,{get when(){return H.partial},get children(){return tl()}}),null),i(G,n(ce,{get each(){return H.paths},children:z=>(()=>{var P=il();return i(P,z),P})()})),E(z=>{var P=s().has(H.key)?"":void 0,F=s().has(H.key),B=e.busy;return P!==z.e&&R(D,"data-selected",z.e=P),F!==z.t&&R(D,"aria-pressed",z.t=F),B!==z.a&&(D.disabled=z.a=B),z},{e:void 0,t:void 0,a:void 0}),D})()})),O})()]}}),N),Oe(L,"click",e.onClose,!0),Oe(W,"click",e.onConfirm,!0),i(W,(()=>{var O=ne(()=>!!e.busy);return()=>O()?"正在删除...":c()?"确认清理":"确认删除"})()),E(O=>{var H=e.busy,D=e.busy,T=g();return H!==O.e&&(M.disabled=O.e=H),D!==O.t&&(L.disabled=O.t=D),T!==O.a&&(W.disabled=O.a=T),O},{e:void 0,t:void 0,a:void 0}),u}})}})}At(["click","input"]);const St=`请按照下面的内容,使用OneScience,进行后续工作。
|
|
2
2
|
————————
|
|
3
3
|
`,dn={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 案例,复现并验证"}},ol=Object.values(dn),ll={training:`3)围绕 {title} 完成训练或微调准备与小规模验证:定位训练入口与配置方式,生成 training_config,优先 smoke training(小样本、少步数)。
|
|
4
4
|
能跑则跑通并汇报;不能跑则列出阻塞项与最小补齐方案。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cV as p,i as s,a as l,bi as g,aH as h,cW as u,t as b}from"./index-
|
|
1
|
+
import{cV as p,i as s,a as l,bi as g,aH as h,cW as u,t as b}from"./index-_227CWv0.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 m(){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{m as WorkbenchResourcesPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as W,P as q,K as H,c as E,D as g,ag as I,i as a,a as o,t as v,cP as u,d as O,k as _,R as K,j as N,cQ as y,cR as C,cS as L,A as Q,aH as z,cT as P,S as B,b as G,x as J,F as V,v as X,cU as Y}from"./index-
|
|
1
|
+
import{O as W,P as q,K as H,c as E,D as g,ag as I,i as a,a as o,t as v,cP as u,d as O,k as _,R as K,j as N,cQ as y,cR as C,cS as L,A as Q,aH as z,cT as P,S as B,b as G,x as J,F as V,v as X,cU as Y}from"./index-_227CWv0.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=W(),s=q(),A=H(),[b,R]=E(0),x=g(()=>(b(),!!_())),d=g(()=>!x()),[n,T]=E(ae(c.search)??"list"),M=g(()=>{b();const e=_();return e&&(K(e,A.projects.lastCode())||N(e))||""}),p=e=>{T(e),s(P(e),{replace:!0})};I(()=>{const e=()=>R(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,U=m.firstChild,f=U.nextSibling,j=f.nextSibling,S=m.nextSibling,D=i.nextSibling;return a(f,()=>h().label),a(j,()=>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(P(n()))}`},children:"去登录"}),null),t}}),S),a(S,o(V,{each:u,children:t=>(()=>{var r=te(),w=r.firstChild,F=w.nextSibling;return r.$$click=()=>p(t.id),a(w,()=>t.label),a(F,()=>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(D,o(Y,{get directory(){return X(()=>!!d())()?void 0:M()||void 0},get loginRequired(){return d()},get tab(){return n()},onTabChange:p,variant:"page-body"})),e})()}O(["click"]);export{ne as WorkbenchSkillsPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/assets/staplebops-07-cqQEvbIf.aac";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as Ve,c as Ge,at as Ke,cx as He,z as tt,D as R,cy as Ne,cz as Be,cA as at,cB as De,cC as xe,cD as it,an as me,i as t,aD as Je,a as i,b as C,F as N,x as q,S as h,v as lt,cE as rt,cF as nt,cG as qe,cH as st,t as r,cI as Qe,cu as ct,O as ot,cJ as dt,P as ut,L as pt,N as gt,K as ht,ag as bt,r as ze,h as ke,j as Ie,k as fe,l as Pe,m as Le,p as Fe,n as Te,o as Ee,w as Re,cK as $t,cL as vt,aC as de,cM as mt,cN as _t,g as Xe,H as Ye,cO as ft,az as yt,aH as K,b6 as Ae,cv as St,aG as wt,cw as Ct,Q as xt}from"./index-DgAWECfr.js";var zt=r("<button type=button class=os-client-capability-wizard-papers-more>"),kt=r("<div class=os-client-capability-wizard-papers><h3>相关论文</h3><ul>"),It=r("<div class=os-client-capability-wizard-papers><h3>HPC 软件</h3><span>"),Pt=r("<p class=os-client-capability-wizard-note>工作目录与运行环境由系统自动识别,本步只需填写下列业务参数。"),Lt=r("<p class=os-client-capability-wizard-missing>还有 <!> 个必填参数未填,可先创建;缺口将由智能体追问,也可点左侧步骤提前补全。"),Ft=r("<small>"),Tt=r("<ul class=os-client-capability-wizard-output-list>"),Et=r("<div class=os-client-capability-wizard-quality><strong>质量门禁</strong><p>"),Rt=r('<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>创建任务并自动逐步执行'),Wt=r("<li><button type=button class=os-client-capability-wizard-step><span></span><div><p>"),jt=r('<li><a target=_blank rel="noopener noreferrer">'),Ht=r("<p>"),Dt=r("<div class=os-client-capability-wizard-step-banner><strong>"),qt=r("<p class=os-client-capability-wizard-note>本步无需额外用户参数。"),At=r("<em>*"),Mt=r("<textarea rows=3>"),Ot=r("<em class=os-client-capability-wizard-field-hint>,智能体将尝试自动修正"),Ut=r("<em class=os-client-capability-wizard-field-hint>未填时由智能体追问"),Vt=r("<label class=os-client-capability-wizard-field><span>"),Gt=r("<input type=text>"),Kt=r("<p class=os-client-capability-wizard-outputs-empty>本步暂无结构化产出清单。"),Nt=r("<li>");const Me=2;function Bt(e){const[c,z]=Ge(!1),[n,k]=Ke({values:He(e.scenario),activeStepIndex:0});tt(()=>{k({values:He(e.scenario),activeStepIndex:0}),z(!1)});const F=R(()=>Ne(e.scenario)),I=R(()=>F()[n.activeStepIndex]??F()[0]),x=R(()=>{const b=I();return b?Be(e.scenario,b):e.scenario.user_input}),ue=R(()=>at(e.scenario,n.values)),B=R(()=>x().filter(b=>De(b)?!String(n.values[xe(b)]??"").trim():!1)),ye=R(()=>x().filter(b=>String(n.values[xe(b)]??"").trim()).length),T=R(()=>{const O=I()?.prompt||e.scenario.ai_prompt?.template||"";return it(O,n.values)}),M=R(()=>I()?.outputs??[]),H=R(()=>(e.scenario.related_papers??[]).filter(b=>!!String(b.url??"").trim())),ae=R(()=>c()?H():H().slice(0,Me)),A=R(()=>Math.max(0,H().length-Me)),J=(b,O)=>{k("values",b,O)},ie=b=>{k("activeStepIndex",b)},pe=()=>{const b=Qe(e.scenario.user_input,n.values);k("values",b),e.onSubmit({values:b})};return(()=>{var b=Rt(),O=b.firstChild,Se=O.nextSibling,le=Se.firstChild,ge=le.firstChild,he=ge.nextSibling,l=he.firstChild,p=l.nextSibling,f=he.nextSibling,$=le.nextSibling,P=$.firstChild,U=P.firstChild,be=U.nextSibling,$e=be.nextSibling,Q=P.nextSibling,re=Q.firstChild,ne=re.firstChild,V=ne.nextSibling,Y=V.firstChild,ve=Y.nextSibling,we=ve.nextSibling,se=we.nextSibling;se.nextSibling;var G=re.nextSibling,ce=G.nextSibling,d=ce.firstChild,v=d.nextSibling,m=Q.nextSibling,S=m.firstChild,E=S.firstChild;E.firstChild;var D=S.nextSibling,W=D.firstChild,X=W.nextSibling,Z=X.firstChild,j=Z.nextSibling;j.nextSibling;var ee=D.nextSibling,te=$.nextSibling,oe=te.firstChild,Ce=oe.nextSibling;return me(O,"click",e.onClose,!0),me(ge,"click",e.onClose,!0),t(l,()=>e.scenario.name),t(p,()=>Je(e.scenario.problem_and_applicability)),me(f,"click",e.onClose,!0),t($e,i(N,{get each(){return F()},children:(a,s)=>(()=>{var u=Wt(),w=u.firstChild,g=w.firstChild,y=g.nextSibling,L=y.firstChild;return w.$$click=()=>ie(s()),t(g,()=>s()+1),t(L,()=>a.name),C(()=>u.classList.toggle("is-active",n.activeStepIndex===s())),u})()})),t(P,i(h,{get when(){return H().length>0},get children(){var a=kt(),s=a.firstChild,u=s.nextSibling;return t(u,i(N,{get each(){return ae()},children:w=>(()=>{var g=jt(),y=g.firstChild;return t(y,()=>w.title),C(L=>{var o=w.url,_=w.title;return o!==L.e&&q(y,"href",L.e=o),_!==L.t&&q(y,"title",L.t=_),L},{e:void 0,t:void 0}),g})()})),t(a,i(h,{get when(){return A()>0},get children(){var w=zt();return w.$$click=()=>z(g=>!g),t(w,(()=>{var g=lt(()=>!!c());return()=>g()?"收起":`展开其余 ${A()} 篇`})()),w}}),null),C(()=>u.classList.toggle("is-expanded",!!(c()&&A()>0))),a}}),null),t(P,i(h,{get when(){return e.scenario.HPC},get children(){var a=It(),s=a.firstChild,u=s.nextSibling;return t(u,()=>e.scenario.HPC),a}}),null),t(V,()=>n.activeStepIndex+1,Y),t(V,()=>F().length,ve),t(V,ye,se),t(V,()=>x().length,null),t(Q,i(h,{get when(){return I()},children:a=>(()=>{var s=Dt(),u=s.firstChild;return t(u,()=>a().name),t(s,i(h,{get when(){return a().purpose?.trim()},get children(){var w=Ht();return t(w,()=>a().purpose),w}}),null),s})()}),G),t(Q,i(h,{get when(){return e.scenario.system_auto_detection?.fields?.length},get children(){return Pt()}}),G),t(Q,i(h,{get when(){return B().length>0||ue().length>0},get children(){var a=Lt(),s=a.firstChild,u=s.nextSibling;return u.nextSibling,t(a,()=>ue().length,u),a}}),G),t(G,i(h,{get when(){return x().length>0},get fallback(){return qt()},get children(){return i(N,{get each(){return x()},children:a=>{const s=xe(a),u=De(a),w=u&&!String(n.values[s]??"").trim(),g=String(n.values[s]??"").trim()&&rt(a,n.values[s]??"");return(()=>{var y=Vt(),L=y.firstChild;return y.classList.toggle("is-required",!!u),y.classList.toggle("is-gap",!!w),t(L,()=>nt(a),null),t(L,i(h,{when:u,get children(){return At()}}),null),t(y,i(h,{get when(){return st(a)},get fallback(){return(()=>{var o=Gt();return o.$$input=_=>J(s,_.currentTarget.value),C(_=>{var We=a.input_type==="int"||a.input_type==="float"?"decimal":void 0,je=qe(a);return We!==_.e&&q(o,"inputmode",_.e=We),je!==_.t&&q(o,"placeholder",_.t=je),_},{e:void 0,t:void 0}),C(()=>o.value=n.values[s]??""),o})()},get children(){var o=Mt();return o.$$input=_=>J(s,_.currentTarget.value),C(()=>q(o,"placeholder",qe(a))),C(()=>o.value=n.values[s]??""),o}}),null),t(y,i(h,{when:g,get children(){var o=Ot(),_=o.firstChild;return t(o,g,_),o}}),null),t(y,i(h,{when:w,get children(){return Ut()}}),null),y})()}})}})),d.$$click=()=>ie(Math.max(0,n.activeStepIndex-1)),v.$$click=()=>ie(Math.min(F().length-1,n.activeStepIndex+1)),t(E,i(h,{get when(){return I()?.result_subfolder},get children(){var a=Ft();return t(a,()=>I()?.result_subfolder),C(()=>q(a,"title",I()?.result_subfolder)),a}}),null),t(S,i(h,{get when(){return M().length>0},get fallback(){return Kt()},get children(){var a=Tt();return t(a,i(N,{get each(){return M()},children:s=>(()=>{var u=Nt();return t(u,s),u})()})),a}}),null),t(S,i(h,{get when(){return I()?.quality_gate},get children(){var a=Et(),s=a.firstChild,u=s.nextSibling;return t(u,()=>I()?.quality_gate),a}}),null),t(X,()=>n.activeStepIndex+1,j),me(oe,"click",e.onClose,!0),Ce.$$click=pe,C(a=>{var s=n.activeStepIndex<=0,u=n.activeStepIndex>=F().length-1;return s!==a.e&&(d.disabled=a.e=s),u!==a.t&&(v.disabled=a.t=u),a},{e:void 0,t:void 0}),C(()=>ee.value=T()),b})()}Ve(["click","input"]);function Jt(e,c){return e.replace(/\{\{(\w+)\}\}/g,(z,n)=>c[n]??"")}var Qt=r("<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=能力向导>"),Xt=r("<section class=os-client-capability-wizard-dialog><p>未找到该能力。"),Yt=r("<div class=os-client-capability-wizard-scenario-group><span>完整工作流场景 · "),Zt=r("<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>创建任务"),ea=r("<section class=os-client-capability-wizard-dialog><p>「<!>」暂无 OneScience 源码或魔搭映射,当前不可使用。"),ta=r("<button type=button><strong></strong><p>"),aa=r("<button type=button><strong></strong><p></p><small> · <!> 步"),Oe=r("<p class=os-client-capability-wizard-empty>请先选择任务场景。"),ia=r("<div class=os-client-capability-wizard-required aria-label=该能力需要什么数据><h4>该能力需要什么数据</h4><ul>"),la=r("<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>"),ra=r("<textarea rows=3>"),na=r("<label class=os-client-capability-wizard-field><span>"),sa=r("<input type=text>"),ca=r("<li>"),oa=r("<div class=os-client-capability-wizard-right-head><strong></strong><p>"),da=r("<div class=os-client-capability-wizard-outputs aria-label=预计产出><span>预计产出</span><p>");function ua(e){return e==="hpc"?"软件介绍":"模型介绍"}function pa(e){return`使用 ${e} 开始科研任务`}function ga(e){if(!ze({navigate:e.navigate,action:{type:"prompt",prompt:e.prompt,title:e.title,workflow:e.workflow},isLoggedIn:e.isLoggedIn}))return!1;const c=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!c)return!1;const z=Le(c);return Fe(z,e.prompt),Te(z),e.openProject?.(c),e.touchCode?.(c),Ee({variant:"success",title:`已为你创建「${e.title}」任务`}),e.navigate(Re(c)),!0}function Ze(e){const c=$t(e.scenario),z=c[0];if(!z?.promptTemplate.trim()||!ze({navigate:e.navigate,action:{type:"scenario-run",scenarioId:e.scenario.id||e.scenario.scenario_id,values:e.values},isLoggedIn:e.isLoggedIn}))return!1;const n=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!n)return!1;const k=Le(n),F=Ne(e.scenario),I=F[0]?Be(e.scenario,F[0]):e.scenario.user_input,x=Qe(e.scenario.user_input,e.values);return vt(k,{title:e.scenario.name,scenarioId:de(e.scenario),values:x,steps:c}),mt("todo"),Fe(k,_t(z,x,I)),Te(k),e.openProject?.(n),e.touchCode?.(n),Ee({variant:"success",title:`已创建「${e.scenario.name}」`,description:`将按 ${c.length} 步自动依次执行,缺参或失败时暂停`}),e.navigate(Re(n)),!0}function et(e){if(!ze({navigate:e.navigate,action:{type:"wizard",resourceId:e.resourceId,scenarioId:e.scenarioId,values:e.values,prompt:e.prompt},isLoggedIn:e.isLoggedIn}))return!1;const c=Xe(e.resourceId),z=c?.scenarios.find(F=>F.id===e.scenarioId);if(!c||!z||!Ye(c))return!1;const n=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!n)return!1;const k=Le(n);return Fe(k,e.prompt),Te(k),e.openProject?.(n),e.touchCode?.(n),Ee({variant:"success",title:`已为你创建 ${c.name}「${z.title}」任务`}),e.navigate(Re(n)),!0}function _e(e,c){return Jt(e.promptTemplate,c)}function Ue(e){return Object.fromEntries(e.fields.map(c=>[c.id,ha(c)]))}function ha(e){return e.default?.trim()?e.default:e.placeholder?.replace(/^例如[::]\s*/,"").trim()??""}function ba(){const e=ct(),c=ot(),[z]=dt(),n=ut(),k=pt(),F=gt(),I=ht(),x=()=>Xe(e.id??""),ue=()=>Ct(c.search),B=()=>St(c.search,{category:x()?.category??"onemodel",domain:x()?.domain??"materials"}),ye=()=>wt(e.id??"",ue()),[T,M]=Ke({scenarioId:"",values:{},prompt:""}),[H,ae]=Ge(""),A=()=>x()?.scenarios.find(l=>l.id===T.scenarioId),J=R(()=>{const l=x();return l?ft({domain:l.domain,name:l.name,id:l.id,category:l.category}):[]}),ie=R(()=>{const l=H();if(l)return yt(l)??J().find(p=>de(p)===l)}),pe=()=>({navigate:n,isLoggedIn:!!fe(),path:k.data.path,recent:xt(k.data.project),lastCodeWorkspace:I.projects.lastCode(),openProject:l=>F.projects.open(l),touchCode:l=>I.projects.touchCode(l)}),b=()=>{const l=A();l&&M("prompt",_e(l,T.values))};bt(()=>{const l=x();if(!l?.scenarios.length)return;const p=z.scenario,$=(p?l.scenarios.find(U=>U.id===p):void 0)??l.scenarios[0],P=Ue($);M({scenarioId:$.id,values:P,prompt:_e($,P)})});const O=l=>{const f=x()?.scenarios.find(P=>P.id===l);if(!f)return;ae("");const $=Ue(f);M({scenarioId:f.id,values:$,prompt:_e(f,$)})},Se=l=>{ae(l)},le=(l,p)=>{const f=A();if(!f)return;const $={...T.values,[l]:p};M({values:$,prompt:_e(f,$)})},ge=()=>{const l=x(),p=A();!l||!p||et({resourceId:l.id,scenarioId:p.id,values:{...T.values},prompt:T.prompt,...pe()})},he=(l,p)=>{Ze({scenario:l,values:p.values,...pe()})};return(()=>{var l=Qt();return t(l,i(h,{get when(){return x()},get fallback(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return Ae()},"aria-label":"关闭向导"}),(()=>{var p=Xt();return p.firstChild,t(p,i(K,{get href(){return Ae()},children:"返回能力中心"}),null),p})()]},children:p=>i(h,{get when(){return Ye(p())},get fallback(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var f=ea(),$=f.firstChild,P=$.firstChild,U=P.nextSibling;return U.nextSibling,t($,()=>p().name,U),t(f,i(K,{get href(){return B()},children:"返回模型库"}),null),f})()]},get children(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var f=Zt(),$=f.firstChild,P=$.firstChild,U=P.firstChild,be=$.nextSibling,$e=be.firstChild,Q=$e.firstChild,re=Q.nextSibling,ne=$e.nextSibling;ne.firstChild;var V=ne.nextSibling,Y=V.firstChild,ve=Y.firstChild,we=ve.nextSibling,se=Y.nextSibling,G=be.nextSibling,ce=G.firstChild;return t($,i(K,{class:"os-client-capability-wizard-intro-back",get href(){return ye()},get children(){return ua(p().category)}}),P),t(U,()=>pa(p().name)),t($,i(K,{class:"os-client-capability-wizard-close",get href(){return B()},"aria-label":"关闭",children:"×"}),null),t(re,i(N,{get each(){return p().scenarios},children:d=>(()=>{var v=ta(),m=v.firstChild,S=m.nextSibling;return v.$$click=()=>O(d.id),t(m,()=>d.title),t(S,()=>d.summary),C(E=>{var D=!H()&&T.scenarioId===d.id,W=!H()&&T.scenarioId===d.id;return D!==E.e&&v.classList.toggle("is-active",E.e=D),W!==E.t&&q(v,"aria-pressed",E.t=W),E},{e:void 0,t:void 0}),v})()}),null),t(re,i(h,{get when(){return J().length>0},get children(){var d=Yt(),v=d.firstChild;return v.firstChild,t(v,()=>J().length,null),t(d,i(N,{get each(){return J()},children:m=>(()=>{var S=aa(),E=S.firstChild,D=E.nextSibling,W=D.nextSibling,X=W.firstChild,Z=X.nextSibling;return Z.nextSibling,S.$$click=()=>Se(de(m)),t(E,()=>m.name),t(D,()=>Je(m.problem_and_applicability)),t(W,()=>m.scenario_id,X),t(W,()=>m.workflow_steps?.length||m.workflow.length,Z),C(j=>{var ee=H()===de(m),te=H()===de(m);return ee!==j.e&&S.classList.toggle("is-active",j.e=ee),te!==j.t&&q(S,"aria-pressed",j.t=te),j},{e:void 0,t:void 0}),S})()}),null),d}}),null),t(ne,i(h,{get when(){return A()},keyed:!0,get fallback(){return Oe()},children:d=>(()=>{var v=la(),m=v.firstChild,S=m.nextSibling,E=S.firstChild,D=E.nextSibling,W=D.firstChild,X=W.firstChild,Z=X.nextSibling,j=W.nextSibling,ee=j.firstChild,te=ee.nextSibling,oe=j.nextSibling,Ce=oe.firstChild,a=Ce.nextSibling,s=oe.nextSibling,u=s.firstChild,w=u.nextSibling;return t(m,i(N,{get each(){return d.fields},children:g=>(()=>{var y=na(),L=y.firstChild;return t(L,()=>g.label),t(y,i(h,{get when(){return g.multiline},get fallback(){return(()=>{var o=sa();return o.$$input=_=>le(g.id,_.currentTarget.value),C(()=>q(o,"placeholder",g.placeholder)),C(()=>o.value=T.values[g.id]??""),o})()},get children(){var o=ra();return o.$$input=_=>le(g.id,_.currentTarget.value),C(()=>q(o,"placeholder",g.placeholder)),C(()=>o.value=T.values[g.id]??""),o}}),null),y})()})),t(Z,()=>d.capabilitySummary.current),t(te,()=>d.capabilitySummary.keyConfig),t(a,()=>d.capabilitySummary.resources),t(w,()=>d.capabilitySummary.deliverables),t(v,i(h,{get when(){return d.requiredData?.length},get children(){var g=ia(),y=g.firstChild,L=y.nextSibling;return t(L,i(N,{get each(){return d.requiredData},children:o=>(()=>{var _=ca();return t(_,o),_})()})),g}}),null),v})()}),null),t(V,i(h,{get when(){return A()},keyed:!0,get fallback(){return Oe()},children:d=>[(()=>{var v=oa(),m=v.firstChild,S=m.nextSibling;return t(m,()=>d.title),t(S,()=>d.summary),v})(),(()=>{var v=da(),m=v.firstChild,S=m.nextSibling;return t(S,()=>d.expectedOutputs),v})()]}),Y),we.$$click=b,se.$$input=d=>M("prompt",d.currentTarget.value),t(G,i(K,{get href(){return B()},children:"返回能力中心"}),ce),ce.$$click=ge,C(()=>ce.disabled=!T.prompt.trim()),C(()=>se.value=T.prompt),f})(),i(h,{get when(){return ie()},children:f=>i(Bt,{get scenario(){return f()},onClose:()=>ae(""),onSubmit:$=>he(f(),$)})})]}})})),l})()}Ve(["click","input"]);const va=Object.freeze(Object.defineProperty({__proto__:null,CapabilityWizardPage:ba,startCapabilityPromptTask:ga,startCapabilityScenarioRunTask:Ze,startCapabilityWizardTask:et},Symbol.toStringTag,{value:"Module"}));export{Bt as S,Ze as a,et as b,ga as s,va as w};
|
|
1
|
+
import{d as Ve,c as Ge,at as Ke,cx as He,z as tt,D as R,cy as Ne,cz as Be,cA as at,cB as De,cC as xe,cD as it,an as me,i as t,aD as Je,a as i,b as C,F as N,x as q,S as h,v as lt,cE as rt,cF as nt,cG as qe,cH as st,t as r,cI as Qe,cu as ct,O as ot,cJ as dt,P as ut,L as pt,N as gt,K as ht,ag as bt,r as ze,h as ke,j as Ie,k as fe,l as Pe,m as Le,p as Fe,n as Te,o as Ee,w as Re,cK as $t,cL as vt,aC as de,cM as mt,cN as _t,g as Xe,H as Ye,cO as ft,az as yt,aH as K,b6 as Ae,cv as St,aG as wt,cw as Ct,Q as xt}from"./index-_227CWv0.js";var zt=r("<button type=button class=os-client-capability-wizard-papers-more>"),kt=r("<div class=os-client-capability-wizard-papers><h3>相关论文</h3><ul>"),It=r("<div class=os-client-capability-wizard-papers><h3>HPC 软件</h3><span>"),Pt=r("<p class=os-client-capability-wizard-note>工作目录与运行环境由系统自动识别,本步只需填写下列业务参数。"),Lt=r("<p class=os-client-capability-wizard-missing>还有 <!> 个必填参数未填,可先创建;缺口将由智能体追问,也可点左侧步骤提前补全。"),Ft=r("<small>"),Tt=r("<ul class=os-client-capability-wizard-output-list>"),Et=r("<div class=os-client-capability-wizard-quality><strong>质量门禁</strong><p>"),Rt=r('<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>创建任务并自动逐步执行'),Wt=r("<li><button type=button class=os-client-capability-wizard-step><span></span><div><p>"),jt=r('<li><a target=_blank rel="noopener noreferrer">'),Ht=r("<p>"),Dt=r("<div class=os-client-capability-wizard-step-banner><strong>"),qt=r("<p class=os-client-capability-wizard-note>本步无需额外用户参数。"),At=r("<em>*"),Mt=r("<textarea rows=3>"),Ot=r("<em class=os-client-capability-wizard-field-hint>,智能体将尝试自动修正"),Ut=r("<em class=os-client-capability-wizard-field-hint>未填时由智能体追问"),Vt=r("<label class=os-client-capability-wizard-field><span>"),Gt=r("<input type=text>"),Kt=r("<p class=os-client-capability-wizard-outputs-empty>本步暂无结构化产出清单。"),Nt=r("<li>");const Me=2;function Bt(e){const[c,z]=Ge(!1),[n,k]=Ke({values:He(e.scenario),activeStepIndex:0});tt(()=>{k({values:He(e.scenario),activeStepIndex:0}),z(!1)});const F=R(()=>Ne(e.scenario)),I=R(()=>F()[n.activeStepIndex]??F()[0]),x=R(()=>{const b=I();return b?Be(e.scenario,b):e.scenario.user_input}),ue=R(()=>at(e.scenario,n.values)),B=R(()=>x().filter(b=>De(b)?!String(n.values[xe(b)]??"").trim():!1)),ye=R(()=>x().filter(b=>String(n.values[xe(b)]??"").trim()).length),T=R(()=>{const O=I()?.prompt||e.scenario.ai_prompt?.template||"";return it(O,n.values)}),M=R(()=>I()?.outputs??[]),H=R(()=>(e.scenario.related_papers??[]).filter(b=>!!String(b.url??"").trim())),ae=R(()=>c()?H():H().slice(0,Me)),A=R(()=>Math.max(0,H().length-Me)),J=(b,O)=>{k("values",b,O)},ie=b=>{k("activeStepIndex",b)},pe=()=>{const b=Qe(e.scenario.user_input,n.values);k("values",b),e.onSubmit({values:b})};return(()=>{var b=Rt(),O=b.firstChild,Se=O.nextSibling,le=Se.firstChild,ge=le.firstChild,he=ge.nextSibling,l=he.firstChild,p=l.nextSibling,f=he.nextSibling,$=le.nextSibling,P=$.firstChild,U=P.firstChild,be=U.nextSibling,$e=be.nextSibling,Q=P.nextSibling,re=Q.firstChild,ne=re.firstChild,V=ne.nextSibling,Y=V.firstChild,ve=Y.nextSibling,we=ve.nextSibling,se=we.nextSibling;se.nextSibling;var G=re.nextSibling,ce=G.nextSibling,d=ce.firstChild,v=d.nextSibling,m=Q.nextSibling,S=m.firstChild,E=S.firstChild;E.firstChild;var D=S.nextSibling,W=D.firstChild,X=W.nextSibling,Z=X.firstChild,j=Z.nextSibling;j.nextSibling;var ee=D.nextSibling,te=$.nextSibling,oe=te.firstChild,Ce=oe.nextSibling;return me(O,"click",e.onClose,!0),me(ge,"click",e.onClose,!0),t(l,()=>e.scenario.name),t(p,()=>Je(e.scenario.problem_and_applicability)),me(f,"click",e.onClose,!0),t($e,i(N,{get each(){return F()},children:(a,s)=>(()=>{var u=Wt(),w=u.firstChild,g=w.firstChild,y=g.nextSibling,L=y.firstChild;return w.$$click=()=>ie(s()),t(g,()=>s()+1),t(L,()=>a.name),C(()=>u.classList.toggle("is-active",n.activeStepIndex===s())),u})()})),t(P,i(h,{get when(){return H().length>0},get children(){var a=kt(),s=a.firstChild,u=s.nextSibling;return t(u,i(N,{get each(){return ae()},children:w=>(()=>{var g=jt(),y=g.firstChild;return t(y,()=>w.title),C(L=>{var o=w.url,_=w.title;return o!==L.e&&q(y,"href",L.e=o),_!==L.t&&q(y,"title",L.t=_),L},{e:void 0,t:void 0}),g})()})),t(a,i(h,{get when(){return A()>0},get children(){var w=zt();return w.$$click=()=>z(g=>!g),t(w,(()=>{var g=lt(()=>!!c());return()=>g()?"收起":`展开其余 ${A()} 篇`})()),w}}),null),C(()=>u.classList.toggle("is-expanded",!!(c()&&A()>0))),a}}),null),t(P,i(h,{get when(){return e.scenario.HPC},get children(){var a=It(),s=a.firstChild,u=s.nextSibling;return t(u,()=>e.scenario.HPC),a}}),null),t(V,()=>n.activeStepIndex+1,Y),t(V,()=>F().length,ve),t(V,ye,se),t(V,()=>x().length,null),t(Q,i(h,{get when(){return I()},children:a=>(()=>{var s=Dt(),u=s.firstChild;return t(u,()=>a().name),t(s,i(h,{get when(){return a().purpose?.trim()},get children(){var w=Ht();return t(w,()=>a().purpose),w}}),null),s})()}),G),t(Q,i(h,{get when(){return e.scenario.system_auto_detection?.fields?.length},get children(){return Pt()}}),G),t(Q,i(h,{get when(){return B().length>0||ue().length>0},get children(){var a=Lt(),s=a.firstChild,u=s.nextSibling;return u.nextSibling,t(a,()=>ue().length,u),a}}),G),t(G,i(h,{get when(){return x().length>0},get fallback(){return qt()},get children(){return i(N,{get each(){return x()},children:a=>{const s=xe(a),u=De(a),w=u&&!String(n.values[s]??"").trim(),g=String(n.values[s]??"").trim()&&rt(a,n.values[s]??"");return(()=>{var y=Vt(),L=y.firstChild;return y.classList.toggle("is-required",!!u),y.classList.toggle("is-gap",!!w),t(L,()=>nt(a),null),t(L,i(h,{when:u,get children(){return At()}}),null),t(y,i(h,{get when(){return st(a)},get fallback(){return(()=>{var o=Gt();return o.$$input=_=>J(s,_.currentTarget.value),C(_=>{var We=a.input_type==="int"||a.input_type==="float"?"decimal":void 0,je=qe(a);return We!==_.e&&q(o,"inputmode",_.e=We),je!==_.t&&q(o,"placeholder",_.t=je),_},{e:void 0,t:void 0}),C(()=>o.value=n.values[s]??""),o})()},get children(){var o=Mt();return o.$$input=_=>J(s,_.currentTarget.value),C(()=>q(o,"placeholder",qe(a))),C(()=>o.value=n.values[s]??""),o}}),null),t(y,i(h,{when:g,get children(){var o=Ot(),_=o.firstChild;return t(o,g,_),o}}),null),t(y,i(h,{when:w,get children(){return Ut()}}),null),y})()}})}})),d.$$click=()=>ie(Math.max(0,n.activeStepIndex-1)),v.$$click=()=>ie(Math.min(F().length-1,n.activeStepIndex+1)),t(E,i(h,{get when(){return I()?.result_subfolder},get children(){var a=Ft();return t(a,()=>I()?.result_subfolder),C(()=>q(a,"title",I()?.result_subfolder)),a}}),null),t(S,i(h,{get when(){return M().length>0},get fallback(){return Kt()},get children(){var a=Tt();return t(a,i(N,{get each(){return M()},children:s=>(()=>{var u=Nt();return t(u,s),u})()})),a}}),null),t(S,i(h,{get when(){return I()?.quality_gate},get children(){var a=Et(),s=a.firstChild,u=s.nextSibling;return t(u,()=>I()?.quality_gate),a}}),null),t(X,()=>n.activeStepIndex+1,j),me(oe,"click",e.onClose,!0),Ce.$$click=pe,C(a=>{var s=n.activeStepIndex<=0,u=n.activeStepIndex>=F().length-1;return s!==a.e&&(d.disabled=a.e=s),u!==a.t&&(v.disabled=a.t=u),a},{e:void 0,t:void 0}),C(()=>ee.value=T()),b})()}Ve(["click","input"]);function Jt(e,c){return e.replace(/\{\{(\w+)\}\}/g,(z,n)=>c[n]??"")}var Qt=r("<div class=os-client-capability-wizard-overlay role=dialog aria-modal=true aria-label=能力向导>"),Xt=r("<section class=os-client-capability-wizard-dialog><p>未找到该能力。"),Yt=r("<div class=os-client-capability-wizard-scenario-group><span>完整工作流场景 · "),Zt=r("<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>创建任务"),ea=r("<section class=os-client-capability-wizard-dialog><p>「<!>」暂无 OneScience 源码或魔搭映射,当前不可使用。"),ta=r("<button type=button><strong></strong><p>"),aa=r("<button type=button><strong></strong><p></p><small> · <!> 步"),Oe=r("<p class=os-client-capability-wizard-empty>请先选择任务场景。"),ia=r("<div class=os-client-capability-wizard-required aria-label=该能力需要什么数据><h4>该能力需要什么数据</h4><ul>"),la=r("<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>"),ra=r("<textarea rows=3>"),na=r("<label class=os-client-capability-wizard-field><span>"),sa=r("<input type=text>"),ca=r("<li>"),oa=r("<div class=os-client-capability-wizard-right-head><strong></strong><p>"),da=r("<div class=os-client-capability-wizard-outputs aria-label=预计产出><span>预计产出</span><p>");function ua(e){return e==="hpc"?"软件介绍":"模型介绍"}function pa(e){return`使用 ${e} 开始科研任务`}function ga(e){if(!ze({navigate:e.navigate,action:{type:"prompt",prompt:e.prompt,title:e.title,workflow:e.workflow},isLoggedIn:e.isLoggedIn}))return!1;const c=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!c)return!1;const z=Le(c);return Fe(z,e.prompt),Te(z),e.openProject?.(c),e.touchCode?.(c),Ee({variant:"success",title:`已为你创建「${e.title}」任务`}),e.navigate(Re(c)),!0}function Ze(e){const c=$t(e.scenario),z=c[0];if(!z?.promptTemplate.trim()||!ze({navigate:e.navigate,action:{type:"scenario-run",scenarioId:e.scenario.id||e.scenario.scenario_id,values:e.values},isLoggedIn:e.isLoggedIn}))return!1;const n=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!n)return!1;const k=Le(n),F=Ne(e.scenario),I=F[0]?Be(e.scenario,F[0]):e.scenario.user_input,x=Qe(e.scenario.user_input,e.values);return vt(k,{title:e.scenario.name,scenarioId:de(e.scenario),values:x,steps:c}),mt("todo"),Fe(k,_t(z,x,I)),Te(k),e.openProject?.(n),e.touchCode?.(n),Ee({variant:"success",title:`已创建「${e.scenario.name}」`,description:`将按 ${c.length} 步自动依次执行,缺参或失败时暂停`}),e.navigate(Re(n)),!0}function et(e){if(!ze({navigate:e.navigate,action:{type:"wizard",resourceId:e.resourceId,scenarioId:e.scenarioId,values:e.values,prompt:e.prompt},isLoggedIn:e.isLoggedIn}))return!1;const c=Xe(e.resourceId),z=c?.scenarios.find(F=>F.id===e.scenarioId);if(!c||!z||!Ye(c))return!1;const n=ke({path:e.path,recent:e.recent,lastCodeWorkspace:e.lastCodeWorkspace})||Ie(fe())||Pe(document,e.path);if(!n)return!1;const k=Le(n);return Fe(k,e.prompt),Te(k),e.openProject?.(n),e.touchCode?.(n),Ee({variant:"success",title:`已为你创建 ${c.name}「${z.title}」任务`}),e.navigate(Re(n)),!0}function _e(e,c){return Jt(e.promptTemplate,c)}function Ue(e){return Object.fromEntries(e.fields.map(c=>[c.id,ha(c)]))}function ha(e){return e.default?.trim()?e.default:e.placeholder?.replace(/^例如[::]\s*/,"").trim()??""}function ba(){const e=ct(),c=ot(),[z]=dt(),n=ut(),k=pt(),F=gt(),I=ht(),x=()=>Xe(e.id??""),ue=()=>Ct(c.search),B=()=>St(c.search,{category:x()?.category??"onemodel",domain:x()?.domain??"materials"}),ye=()=>wt(e.id??"",ue()),[T,M]=Ke({scenarioId:"",values:{},prompt:""}),[H,ae]=Ge(""),A=()=>x()?.scenarios.find(l=>l.id===T.scenarioId),J=R(()=>{const l=x();return l?ft({domain:l.domain,name:l.name,id:l.id,category:l.category}):[]}),ie=R(()=>{const l=H();if(l)return yt(l)??J().find(p=>de(p)===l)}),pe=()=>({navigate:n,isLoggedIn:!!fe(),path:k.data.path,recent:xt(k.data.project),lastCodeWorkspace:I.projects.lastCode(),openProject:l=>F.projects.open(l),touchCode:l=>I.projects.touchCode(l)}),b=()=>{const l=A();l&&M("prompt",_e(l,T.values))};bt(()=>{const l=x();if(!l?.scenarios.length)return;const p=z.scenario,$=(p?l.scenarios.find(U=>U.id===p):void 0)??l.scenarios[0],P=Ue($);M({scenarioId:$.id,values:P,prompt:_e($,P)})});const O=l=>{const f=x()?.scenarios.find(P=>P.id===l);if(!f)return;ae("");const $=Ue(f);M({scenarioId:f.id,values:$,prompt:_e(f,$)})},Se=l=>{ae(l)},le=(l,p)=>{const f=A();if(!f)return;const $={...T.values,[l]:p};M({values:$,prompt:_e(f,$)})},ge=()=>{const l=x(),p=A();!l||!p||et({resourceId:l.id,scenarioId:p.id,values:{...T.values},prompt:T.prompt,...pe()})},he=(l,p)=>{Ze({scenario:l,values:p.values,...pe()})};return(()=>{var l=Qt();return t(l,i(h,{get when(){return x()},get fallback(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return Ae()},"aria-label":"关闭向导"}),(()=>{var p=Xt();return p.firstChild,t(p,i(K,{get href(){return Ae()},children:"返回能力中心"}),null),p})()]},children:p=>i(h,{get when(){return Ye(p())},get fallback(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var f=ea(),$=f.firstChild,P=$.firstChild,U=P.nextSibling;return U.nextSibling,t($,()=>p().name,U),t(f,i(K,{get href(){return B()},children:"返回模型库"}),null),f})()]},get children(){return[i(K,{class:"os-client-capability-wizard-backdrop",get href(){return B()},"aria-label":"关闭向导"}),(()=>{var f=Zt(),$=f.firstChild,P=$.firstChild,U=P.firstChild,be=$.nextSibling,$e=be.firstChild,Q=$e.firstChild,re=Q.nextSibling,ne=$e.nextSibling;ne.firstChild;var V=ne.nextSibling,Y=V.firstChild,ve=Y.firstChild,we=ve.nextSibling,se=Y.nextSibling,G=be.nextSibling,ce=G.firstChild;return t($,i(K,{class:"os-client-capability-wizard-intro-back",get href(){return ye()},get children(){return ua(p().category)}}),P),t(U,()=>pa(p().name)),t($,i(K,{class:"os-client-capability-wizard-close",get href(){return B()},"aria-label":"关闭",children:"×"}),null),t(re,i(N,{get each(){return p().scenarios},children:d=>(()=>{var v=ta(),m=v.firstChild,S=m.nextSibling;return v.$$click=()=>O(d.id),t(m,()=>d.title),t(S,()=>d.summary),C(E=>{var D=!H()&&T.scenarioId===d.id,W=!H()&&T.scenarioId===d.id;return D!==E.e&&v.classList.toggle("is-active",E.e=D),W!==E.t&&q(v,"aria-pressed",E.t=W),E},{e:void 0,t:void 0}),v})()}),null),t(re,i(h,{get when(){return J().length>0},get children(){var d=Yt(),v=d.firstChild;return v.firstChild,t(v,()=>J().length,null),t(d,i(N,{get each(){return J()},children:m=>(()=>{var S=aa(),E=S.firstChild,D=E.nextSibling,W=D.nextSibling,X=W.firstChild,Z=X.nextSibling;return Z.nextSibling,S.$$click=()=>Se(de(m)),t(E,()=>m.name),t(D,()=>Je(m.problem_and_applicability)),t(W,()=>m.scenario_id,X),t(W,()=>m.workflow_steps?.length||m.workflow.length,Z),C(j=>{var ee=H()===de(m),te=H()===de(m);return ee!==j.e&&S.classList.toggle("is-active",j.e=ee),te!==j.t&&q(S,"aria-pressed",j.t=te),j},{e:void 0,t:void 0}),S})()}),null),d}}),null),t(ne,i(h,{get when(){return A()},keyed:!0,get fallback(){return Oe()},children:d=>(()=>{var v=la(),m=v.firstChild,S=m.nextSibling,E=S.firstChild,D=E.nextSibling,W=D.firstChild,X=W.firstChild,Z=X.nextSibling,j=W.nextSibling,ee=j.firstChild,te=ee.nextSibling,oe=j.nextSibling,Ce=oe.firstChild,a=Ce.nextSibling,s=oe.nextSibling,u=s.firstChild,w=u.nextSibling;return t(m,i(N,{get each(){return d.fields},children:g=>(()=>{var y=na(),L=y.firstChild;return t(L,()=>g.label),t(y,i(h,{get when(){return g.multiline},get fallback(){return(()=>{var o=sa();return o.$$input=_=>le(g.id,_.currentTarget.value),C(()=>q(o,"placeholder",g.placeholder)),C(()=>o.value=T.values[g.id]??""),o})()},get children(){var o=ra();return o.$$input=_=>le(g.id,_.currentTarget.value),C(()=>q(o,"placeholder",g.placeholder)),C(()=>o.value=T.values[g.id]??""),o}}),null),y})()})),t(Z,()=>d.capabilitySummary.current),t(te,()=>d.capabilitySummary.keyConfig),t(a,()=>d.capabilitySummary.resources),t(w,()=>d.capabilitySummary.deliverables),t(v,i(h,{get when(){return d.requiredData?.length},get children(){var g=ia(),y=g.firstChild,L=y.nextSibling;return t(L,i(N,{get each(){return d.requiredData},children:o=>(()=>{var _=ca();return t(_,o),_})()})),g}}),null),v})()}),null),t(V,i(h,{get when(){return A()},keyed:!0,get fallback(){return Oe()},children:d=>[(()=>{var v=oa(),m=v.firstChild,S=m.nextSibling;return t(m,()=>d.title),t(S,()=>d.summary),v})(),(()=>{var v=da(),m=v.firstChild,S=m.nextSibling;return t(S,()=>d.expectedOutputs),v})()]}),Y),we.$$click=b,se.$$input=d=>M("prompt",d.currentTarget.value),t(G,i(K,{get href(){return B()},children:"返回能力中心"}),ce),ce.$$click=ge,C(()=>ce.disabled=!T.prompt.trim()),C(()=>se.value=T.prompt),f})(),i(h,{get when(){return ie()},children:f=>i(Bt,{get scenario(){return f()},onClose:()=>ae(""),onSubmit:$=>he(f(),$)})})]}})})),l})()}Ve(["click","input"]);const va=Object.freeze(Object.defineProperty({__proto__:null,CapabilityWizardPage:ba,startCapabilityPromptTask:ga,startCapabilityScenarioRunTask:Ze,startCapabilityWizardTask:et},Symbol.toStringTag,{value:"Module"}));export{Bt as S,Ze as a,et as b,ga as s,va as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
1
|
+
const e="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-
|
|
12
|
-
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
13
|
-
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
14
|
-
<link rel="manifest" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
15
|
-
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
16
|
-
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
11
|
+
<link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/favicon-96x96-v3.png" sizes="96x96" />
|
|
12
|
+
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/favicon-v3.ico" />
|
|
13
|
+
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/apple-touch-icon-v3.png" />
|
|
14
|
+
<link rel="manifest" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/site.webmanifest" />
|
|
15
|
+
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-202609181756/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-
|
|
20
|
-
<meta property="twitter:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
21
|
-
<script id="oc-theme-preload-script" src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
22
|
-
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
23
|
-
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-
|
|
19
|
+
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/social-share.png" />
|
|
20
|
+
<meta property="twitter:image" content="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/social-share.png" />
|
|
21
|
+
<script id="oc-theme-preload-script" src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/oc-theme-preload.js"></script>
|
|
22
|
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/assets/index-_227CWv0.js"></script>
|
|
23
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/assets/index-Dw8Z7xcf.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-
|
|
3
|
+
"version": "1.14.50-202609181756",
|
|
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-
|
|
8
|
+
"homepage": "https://cdn.jsdelivr.net/npm/@onescience/onecode-web@1.14.50-202609181756/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-202609181531/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-202609181531/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-202609181531/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-202609181531/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-202609181531/assets/bip-bop-09-CxEgoAHQ.aac";export{e as default};
|