@deepseekcode/cli 1.0.29 → 1.0.30
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/README.md +159 -99
- package/dist/cli.js +1480 -1477
- package/package.json +1 -1
- package/web/dist/assets/AutomationView-Y4qkPsrX.js +1 -0
- package/web/dist/assets/{ChannelConfigView-DG4_15oh.js → ChannelConfigView-BqEclPUB.js} +3 -3
- package/web/dist/assets/{ConnectorsView-ByedXSa-.js → ConnectorsView-Cz4uqSmh.js} +1 -1
- package/web/dist/assets/{FileTreeView-DPA2dhx_.js → FileTreeView-BWPOqGPh.js} +1 -1
- package/web/dist/assets/{HookConfigView-BJnvqm3N.js → HookConfigView-japq3zFX.js} +1 -1
- package/web/dist/assets/{ModelsView-BBbmRxwR.js → ModelsView-Dbo4GErV.js} +1 -1
- package/web/dist/assets/{PluginsView-DxIWxsB-.js → PluginsView-C1BPNAQx.js} +1 -1
- package/web/dist/assets/SessionGrid-BGpz0-op.css +1 -0
- package/web/dist/assets/SessionGrid-F23LrdJ2.js +42 -0
- package/web/dist/assets/{SettingsPanel-ivpxRR6O.js → SettingsPanel-CGJbV37j.js} +3 -3
- package/web/dist/assets/{SkillsView-Cpr_kpor.js → SkillsView-CecX9sxV.js} +1 -1
- package/web/dist/assets/{TemplatesTab-Cvyxqayr.js → TemplatesTab-BtbjQDQk.js} +1 -1
- package/web/dist/assets/{TerminalView-DTN8hmcS.js → TerminalView-6U_87hSL.js} +1 -1
- package/web/dist/assets/{ThreeScene-CukEnQe-.js → ThreeScene-Zhjwe9nT.js} +1 -1
- package/web/dist/assets/{ToolsView-D_FET-NB.js → ToolsView-DO0_61eJ.js} +1 -1
- package/web/dist/assets/{icons-Cu8fYt4q.js → icons-Di-qMB6n.js} +124 -109
- package/web/dist/assets/index-BbLAiXis.css +1 -0
- package/web/dist/assets/index-Dkxsd1Rx.js +484 -0
- package/web/dist/assets/{markdown-Bym7wmT0.js → markdown-D-c9V8Xq.js} +1 -1
- package/web/dist/assets/{panels-BEKHl5l-.js → panels-CpHTincc.js} +1 -1
- package/web/dist/assets/{react-vendor-D76F8wnc.js → react-vendor-DU8XgZt2.js} +1 -1
- package/web/dist/assets/{state-CZakZ3-m.js → state-D2vcUGVk.js} +1 -1
- package/web/dist/index.html +7 -7
- package/web/dist/assets/AutomationView-BJSLQ2Ka.js +0 -1
- package/web/dist/assets/SessionGrid-D-1XpCZg.js +0 -39
- package/web/dist/assets/index-C7rIgpwO.js +0 -484
- package/web/dist/assets/index-CYAcRfnc.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./markdown-
|
|
1
|
+
import{j as s}from"./markdown-D-c9V8Xq.js";import{a as r,h as k,$ as A,ag as v,O as F,d as R,K as D,ax as w,ay as M,az as O}from"./icons-Di-qMB6n.js";import{u as P,b as Q,a as C,c as q}from"./index-Dkxsd1Rx.js";import"./react-vendor-DU8XgZt2.js";import"./state-D2vcUGVk.js";import"./panels-CpHTincc.js";function J(){const{t:a}=P(),u=Q(e=>e.mode),p=u==="normal"?"act":q(u),[d,b]=r.useState([]),[o,h]=r.useState([]),[z,g]=r.useState(!0),[f,i]=r.useState(null),[c,T]=r.useState(""),[l,j]=r.useState(null),[n,y]=r.useState(null),x=async()=>{g(!0),i(null);const e=await C.tools.list();e.success&&Array.isArray(e.data)?(b(e.data),h(e.data)):e.success&&e.data&&!Array.isArray(e.data)?i(a("tools.invalidData")):i(e.error||a("tools.loadFailed")),g(!1)};r.useEffect(()=>{x()},[]),r.useEffect(()=>{let e=d;c&&(e=e.filter(t=>t.name.toLowerCase().includes(c.toLowerCase())||t.description.toLowerCase().includes(c.toLowerCase()))),l&&(e=e.filter(t=>t.category===l)),h(e)},[c,l,d]);const S=async(e,t)=>{(await C.tools.toggle(e,!t)).success&&b($=>$.map(m=>m.id===e?{...m,enabled:!t}:m))},E=[...new Set(d.map(e=>e.category))],L=e=>({file:"bg-accent-blue/20 text-accent-blue",search:"bg-accent-green/20 text-accent-green",git:"bg-accent-yellow/20 text-accent-yellow",web:"bg-accent-purple/20 text-accent-purple",system:"bg-accent-red/20 text-accent-red"})[e]||"bg-dark-hover text-dark-muted";return z?s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx(k,{size:32,className:"animate-spin mx-auto mb-2 text-accent-blue"}),s.jsx("p",{className:"text-dark-muted",children:a("tools.loading")})]})}):f?s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-center",children:[s.jsx(A,{size:32,className:"mx-auto mb-2 text-accent-red"}),s.jsx("p",{className:"text-accent-red mb-4",children:f}),s.jsx("button",{onClick:x,className:"px-4 py-2 bg-accent-blue text-white rounded-lg",children:a("tools.retry")})]})}):s.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[s.jsx(v,{size:20}),a("tools.title"),s.jsxs("span",{className:"text-sm font-normal text-dark-muted",children:["(",o.length,")"]})]}),s.jsxs("button",{onClick:x,className:"flex items-center gap-2 px-3 py-1.5 bg-dark-surface border border-dark-border rounded hover:bg-dark-hover transition-colors",children:[s.jsx(k,{size:14}),a("tools.refresh")]})]}),s.jsxs("div",{className:"flex gap-3 mb-4",children:[s.jsxs("div",{className:"flex-1 relative",children:[s.jsx(F,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-dark-muted"}),s.jsx("input",{type:"text",value:c,onChange:e=>T(e.target.value),placeholder:a("tools.searchTools"),className:"w-full pl-10 pr-4 py-2 bg-dark-surface border border-dark-border rounded-lg text-dark-text placeholder-dark-muted focus:border-accent-blue focus:outline-none"})]}),s.jsxs("div",{className:"flex gap-1",children:[s.jsx("button",{onClick:()=>j(null),className:`px-3 py-2 rounded-lg text-sm transition-colors ${l?"bg-dark-surface border border-dark-border hover:bg-dark-hover":"bg-accent-blue text-white"}`,children:a("tools.all")}),E.slice(0,4).map(e=>s.jsx("button",{onClick:()=>j(e),className:`px-3 py-2 rounded-lg text-sm transition-colors ${l===e?"bg-accent-blue text-white":"bg-dark-surface border border-dark-border hover:bg-dark-hover"}`,children:e},e))]})]}),s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto custom-scrollbar",children:s.jsxs("div",{className:"space-y-2",children:[o.map(e=>s.jsxs("div",{className:`bg-dark-surface border rounded-lg transition-colors ${e.enabled?"border-dark-border":"border-dark-border opacity-60"}`,children:[s.jsxs("div",{className:"flex items-center justify-between p-4 cursor-pointer",onClick:()=>y(n===e.id?null:e.id),children:[s.jsxs("div",{className:"flex items-center gap-3 flex-1",children:[s.jsx("button",{onClick:t=>{t.stopPropagation(),y(n===e.id?null:e.id)},className:"text-dark-muted",children:n===e.id?s.jsx(R,{size:16}):s.jsx(D,{size:16})}),s.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${L(e.category)}`,children:e.category}),s.jsx("span",{className:"font-medium",children:e.name}),p==="plan"&&(e.category==="File Operation"||e.category==="Execution")&&s.jsx(w,{size:14,className:"text-accent-red ml-1.5"}),p==="plan"&&(e.category==="File Operation"||e.category==="Execution")&&s.jsx(w,{size:14,className:"text-accent-red ml-1.5"})]}),s.jsx("div",{className:"flex items-center gap-3",children:s.jsx("button",{onClick:t=>{t.stopPropagation(),S(e.id,e.enabled)},className:`p-1.5 rounded transition-colors ${e.enabled?"text-accent-green hover:bg-accent-green/10":"text-dark-muted hover:bg-dark-hover"}`,title:e.enabled?a("tools.disabled"):a("tools.enabled"),children:e.enabled?s.jsx(M,{size:24}):s.jsx(O,{size:24})})})]}),n===e.id&&s.jsxs("div",{className:"px-4 pb-4 border-t border-dark-border",children:[s.jsx("p",{className:"text-sm text-dark-muted mt-3 mb-3",children:e.description}),e.params&&e.params.length>0&&s.jsxs("div",{children:[s.jsx("div",{className:"text-xs text-dark-muted mb-2",children:a("tools.params")}),s.jsx("div",{className:"space-y-1",children:e.params.map((t,N)=>s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsxs("code",{className:"px-1.5 py-0.5 bg-dark-bg rounded text-accent-blue",children:[t.name,t.required&&s.jsx("span",{className:"text-accent-red",children:"*"})]}),s.jsxs("span",{className:"text-dark-muted text-xs",children:["(",t.type,")"]}),s.jsx("span",{className:"text-dark-muted text-xs",children:t.description})]},N))})]})]})]},e.id)),o.length===0&&s.jsxs("div",{className:"text-center text-dark-muted py-8",children:[s.jsx(v,{size:48,className:"mx-auto mb-2 opacity-50"}),s.jsx("p",{children:a("tools.noTools")})]})]})})]})}export{J as ToolsView,J as default};
|