sealclaw 2026.5.94 → 2026.5.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/cli-startup-metadata.json +2 -2
- package/dist/control-ui/assets/{agents-h3o3voVJ.js → agents-EXiyiWcj.js} +2 -2
- package/dist/control-ui/assets/{channels-B3dTSCME.js → channels-EaU0sKIP.js} +2 -2
- package/dist/control-ui/assets/{channels.cn-C9x7FbPq.js → channels.cn-BmuE_4-S.js} +2 -2
- package/dist/control-ui/assets/{cron-DY8_39VL.js → cron-tZQOlNT8.js} +2 -2
- package/dist/control-ui/assets/{debug-C9r2fcQ6.js → debug-Bos7BVqr.js} +2 -2
- package/dist/control-ui/assets/{filespace-BnwWqeH4.js → filespace-BJ6ekAUx.js} +2 -2
- package/dist/control-ui/assets/{index-DbDyROAt.js → index-CnaJ1Ys6.js} +624 -624
- package/dist/control-ui/assets/{instances-CQW4aM-A.js → instances-CxttD6fs.js} +2 -2
- package/dist/control-ui/assets/{nodes-DkvTLr6u.js → nodes-Ct8gvuAJ.js} +2 -2
- package/dist/control-ui/assets/{sessions-Df5df5Hf.js → sessions-EG_sUxo9.js} +2 -2
- package/dist/control-ui/assets/{skill-center-DdwiGHl6.js → skill-center-8t3ZKaZ1.js} +2 -2
- package/dist/control-ui/assets/{skills-BNIedwar.js → skills-BimtDTP5.js} +2 -2
- package/dist/control-ui/index.html +1 -1
- package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
- package/dist/postinstall-inventory.json +12 -12
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"channelCatalogSignature": "2caae4c55233549d9d23dd838fe15f6d8b5fbe75",
|
|
29
29
|
"rootHelpBundleSignature": "567b77d8dc4e14617199f09625020a483ca65964",
|
|
30
30
|
"browserHelpSourceSignature": "1f7bbffe49f0c0428665fdf75e65285043d08b0e",
|
|
31
|
-
"browserHelpText": "\n🦞 SealClaw 0.0.0 (
|
|
32
|
-
"rootHelpText": "\n🦞 SealClaw 2026.5.
|
|
31
|
+
"browserHelpText": "\n🦞 SealClaw 0.0.0 (bace99a) — I can grep it, git blame it, and gently roast it—pick your coping mechanism.\n\nUsage: openclaw browser [options] [command]\n\nManage OpenClaw's dedicated browser (Chrome/Chromium)\n\nOptions:\n --browser-profile <name> Browser profile name (default from config)\n --expect-final Wait for final response (agent) (default: false)\n -h, --help Display help for command\n --json Output machine-readable JSON (default: false)\n --timeout <ms> Timeout in ms (default: \"30000\")\n --token <token> Gateway token (if required)\n --url <url> Gateway WebSocket URL (defaults to\n gateway.remote.url when configured)\n\nCommands:\n click Click an element by ref from snapshot\n click-coords Click viewport coordinates\n close Close a tab (target id optional)\n console Get recent console messages\n cookies Read/write cookies\n create-profile Create a new browser profile\n delete-profile Delete a browser profile\n dialog Arm the next modal dialog (alert/confirm/prompt)\n doctor Check browser plugin readiness\n download Click a ref and save the resulting download\n drag Drag from one ref to another\n errors Get recent page errors\n evaluate Evaluate a function against the page or a ref\n fill Fill a form with JSON field descriptors\n focus Focus a tab by target id, tab id, label, or unique\n target id prefix\n highlight Highlight an element by ref\n hover Hover an element by ai ref\n navigate Navigate the current tab to a URL\n open Open a URL in a new tab\n pdf Save page as PDF\n press Press a key\n profiles List all browser profiles\n requests Get recent network requests (best-effort)\n reset-profile Reset browser profile (moves it to Trash)\n resize Resize the viewport\n responsebody Wait for a network response and return its body\n screenshot Capture a screenshot (MEDIA:<path>)\n scrollintoview Scroll an element into view by ref from snapshot\n select Select option(s) in a select element\n set Browser environment settings\n snapshot Capture a snapshot (default: ai; aria is the\n accessibility tree)\n start Start the browser (no-op if already running)\n status Show browser status\n stop Stop the browser (best-effort)\n storage Read/write localStorage/sessionStorage\n tab Tab shortcuts (index-based)\n tabs List open tabs\n trace Record a Playwright trace\n type Type into an element by ref from snapshot\n upload Arm file upload for the next file chooser\n wait Wait for time, selector, URL, load state, or JS\n conditions\n waitfordownload Wait for the next download (and save it)\n\nExamples:\n openclaw browser status\n openclaw browser start\n openclaw browser start --headless\n openclaw browser stop\n openclaw browser tabs\n openclaw browser open https://example.com\n openclaw browser focus abcd1234\n openclaw browser close abcd1234\n openclaw browser screenshot\n openclaw browser screenshot --full-page\n openclaw browser screenshot --ref 12\n openclaw browser snapshot\n openclaw browser snapshot --format aria --limit 200\n openclaw browser snapshot --efficient\n openclaw browser snapshot --labels\n openclaw browser navigate https://example.com\n openclaw browser resize 1280 720\n openclaw browser click 12 --double\n openclaw browser click-coords 120 340\n openclaw browser type 23 \"hello\" --submit\n openclaw browser press Enter\n openclaw browser hover 44\n openclaw browser drag 10 11\n openclaw browser select 9 OptionA OptionB\n openclaw browser upload /tmp/openclaw/uploads/file.pdf\n openclaw browser fill --fields '[{\"ref\":\"1\",\"value\":\"Ada\"}]'\n openclaw browser dialog --accept\n openclaw browser wait --text \"Done\"\n openclaw browser evaluate --fn '(el) => el.textContent' --ref 7\n openclaw browser console --level error\n openclaw browser pdf\n\nDocs: https://docs.openclaw.ai/cli/browser\n\n",
|
|
32
|
+
"rootHelpText": "\n🦞 SealClaw 2026.5.95 (bace99a) — I can grep it, git blame it, and gently roast it—pick your coping mechanism.\n\nUsage: openclaw [options] [command]\n\nOptions:\n --container <name> Run the CLI inside a running Podman/Docker container\n named <name> (default: env OPENCLAW_CONTAINER)\n --dev Dev profile: isolate state under ~/.openclaw-dev, default\n gateway port 19001, and shift derived ports\n (browser/canvas)\n -h, --help Display help for command\n --log-level <level> Global log level override for file + console\n (silent|fatal|error|warn|info|debug|trace)\n --no-color Disable ANSI colors\n --profile <name> Use a named profile (isolates\n OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH under\n ~/.openclaw-<name>)\n -V, --version output the version number\n\nCommands:\n Hint: commands suffixed with * have subcommands. Run <command> --help for details.\n acp * Agent Control Protocol tools\n agent Run one agent turn via the Gateway\n agents * Manage isolated agents (workspaces, auth, routing)\n approvals * Manage exec approvals (gateway or node host)\n backup * Create and verify local backup archives for OpenClaw\n state\n capability * Run provider-backed inference commands (fallback alias:\n infer)\n channels * Manage connected chat channels (Telegram, Discord, etc.)\n chat Open a local terminal UI (alias for tui --local)\n clawbot * Legacy clawbot command aliases\n commitments * List and manage inferred follow-up commitments\n completion Generate shell completion script\n config * Non-interactive config helpers\n (get/set/unset/file/validate). Default: starts guided\n setup.\n configure Interactive configuration for credentials, channels,\n gateway, and agent defaults\n crestodian Open the ring-zero setup and repair helper\n cron * Manage cron jobs via the Gateway scheduler\n daemon * Gateway service (legacy alias)\n dashboard Open the Control UI with your current token\n devices * Device pairing + token management\n directory * Lookup contact and group IDs (self, peers, groups) for\n supported chat channels\n dns * DNS helpers for wide-area discovery (Tailscale + CoreDNS)\n docs Search the live OpenClaw docs\n doctor Health checks + quick fixes for the gateway and channels\n exec-policy * Show or synchronize requested exec policy with host\n approvals\n gateway * Run, inspect, and query the WebSocket Gateway\n health Fetch health from the running gateway\n help Display help for command\n hooks * Manage internal agent hooks\n infer * Run provider-backed inference commands\n logs Tail gateway file logs via RPC\n mcp * Manage OpenClaw MCP config and channel bridge\n memory Search, inspect, and reindex memory files\n message * Send, read, and manage messages\n migrate * Import state from another agent system\n models * Discover, scan, and configure models\n node * Run and manage the headless node host service\n nodes * Manage gateway-owned node pairing and node commands\n onboard Interactive onboarding for gateway, workspace, and skills\n pairing * Secure DM pairing (approve inbound requests)\n plugins * Manage OpenClaw plugins\n proxy * Run the OpenClaw debug proxy and inspect captured traffic\n qr Generate mobile pairing QR/setup code\n reset Reset local config/state (keeps the CLI installed)\n sandbox * Manage sandbox containers for agent isolation\n secrets * Secrets runtime reload controls\n security * Security tools and local config audits\n sessions * List stored conversation sessions\n setup Initialize local config and agent workspace\n skills * List and inspect available skills\n status Show channel health and recent session recipients\n system * System events, heartbeat, and presence\n tasks * Inspect durable background task state\n terminal Open a local terminal UI (alias for tui --local)\n tui Open a terminal UI connected to the Gateway\n uninstall Uninstall the gateway service + local data (CLI remains)\n update * Update OpenClaw and inspect update channel status\n webhooks * Webhook helpers and integrations\n\nExamples:\n openclaw models --help\n Show detailed help for the models command.\n openclaw channels login --verbose\n Link personal WhatsApp Web and show QR + connection logs.\n openclaw message send --target +15555550123 --message \"Hi\" --json\n Send via your web session and print JSON result.\n openclaw gateway --port 18789\n Run the WebSocket Gateway locally.\n openclaw --dev gateway\n Run a dev Gateway (isolated state/config) on ws://127.0.0.1:19001.\n openclaw gateway --force\n Kill anything bound to the default gateway port, then start it.\n openclaw gateway ...\n Gateway control via WebSocket.\n openclaw agent --to +15555550123 --message \"Run summary\" --deliver\n Talk directly to the agent using the Gateway; optionally send the WhatsApp reply.\n openclaw message send --channel telegram --target @mychat --message \"Hi\"\n Send via your Telegram bot.\n\nDocs: https://docs.openclaw.ai/cli\n\n"
|
|
33
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{t as n}from"./string-coerce-CuNcS1Hz.js";import{n as r,t as i}from"./directive-CUxOzvVj.js";import{A as a,C as o,D as s,E as c,G as l,H as u,J as d,L as f,M as p,N as m,O as h,P as g,S as _,T as v,_ as y,a as b,b as x,j as S,k as C,m as w,n as T,p as E,r as D,t as ee,u as O,v as k,w as te,x as ne,y as re}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{t as n}from"./string-coerce-CuNcS1Hz.js";import{n as r,t as i}from"./directive-CUxOzvVj.js";import{A as a,C as o,D as s,E as c,G as l,H as u,J as d,L as f,M as p,N as m,O as h,P as g,S as _,T as v,_ as y,a as b,b as x,j as S,k as C,m as w,n as T,p as E,r as D,t as ee,u as O,v as k,w as te,x as ne,y as re}from"./index-CnaJ1Ys6.js";import{r as ie}from"./channel-config-extras-D50yz0bl.js";import{i as A,n as j,r as M,t as ae}from"./skills-shared-Cl6n1FJQ.js";var oe=i(class extends r{constructor(){super(...arguments),this.key=t}render(e,t){return this.key=e,t}update(e,[t,n]){return t!==this.key&&(l(e),this.key=t),n}});function se(n){var r,i,o,l,u,d,f,p,m,g,_,y,b;let{agent:x,configForm:S,agentFilesList:w,configLoading:T,configSaving:E,configDirty:D,onConfigReload:ee,onConfigSave:O,onModelChange:k,onModelFallbacksChange:ne,onSelectPanel:ie}=n,A=!!(n.defaultId&&x.id===n.defaultId),j=c(S,x.id),M=x.model,ae=(w&&w.agentId===x.id?w.workspace:null)||((r=j.entry)==null?void 0:r.workspace)||((i=j.defaults)==null?void 0:i.workspace)||x.workspace||`default`,oe=(o=j.entry)!=null&&o.model?C((l=j.entry)==null?void 0:l.model):(u=j.defaults)!=null&&u.model?C((d=j.defaults)==null?void 0:d.model):C(M),se=s(x.agentRuntime),ce=C(((f=j.defaults)==null?void 0:f.model)??M),le=a((p=j.entry)==null?void 0:p.model),N=a((m=j.defaults)==null?void 0:m.model)||(ce===`-`?null:te(ce))||(S?null:a(M)),ue=le??N??null,P=A?ue:le,F=h((g=j.entry)==null?void 0:g.model)??h((_=j.defaults)==null?void 0:_.model)??(S?null:h(M))??[],I=Array.isArray((y=j.entry)==null?void 0:y.skills)?(b=j.entry)==null?void 0:b.skills:null,de=(I==null?void 0:I.length)??null,L=!S||T||E,fe=e=>{let t=F.filter((t,n)=>n!==e);ne(x.id,t)};return e`
|
|
2
2
|
<section class="card">
|
|
3
3
|
<div class="card-title">Overview</div>
|
|
4
4
|
<div class="card-sub">Workspace paths and identity metadata.</div>
|
|
@@ -999,4 +999,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
999
999
|
`)}
|
|
1000
1000
|
</div>
|
|
1001
1001
|
`}export{wn as renderAgents};
|
|
1002
|
-
//# sourceMappingURL=agents-
|
|
1002
|
+
//# sourceMappingURL=agents-EXiyiWcj.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{H as n,K as r,U as i,c as a,l as o,q as s}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{H as n,K as r,U as i,c as a,l as o,q as s}from"./index-CnaJ1Ys6.js";import{n as c,t as l}from"./channel-config-extras-D50yz0bl.js";function u(e,t){let n=e;for(let e of t){if(!n)return null;let t=s(n);if(t===`object`){let t=n.properties??{};if(typeof e==`string`&&t[e]){n=t[e];continue}let r=n.additionalProperties;if(typeof e==`string`&&r&&typeof r==`object`){n=r;continue}return null}if(t===`array`){if(typeof e!=`number`)return null;n=(Array.isArray(n.items)?n.items[0]:n.items)??null;continue}return null}return n}function d(e,t){return c(e,t)??{}}var f=[`groupPolicy`,`streamMode`,`dmPolicy`];function p(t){let n=f.flatMap(e=>e in t?[[e,t[e]]]:[]);return n.length===0?null:e`
|
|
2
2
|
<div class="status-list" style="margin-top: 12px;">
|
|
3
3
|
${n.map(([t,n])=>e`
|
|
4
4
|
<div>
|
|
@@ -346,4 +346,4 @@ ${r.snapshot?JSON.stringify(r.snapshot,null,2):`尚无快照。`}
|
|
|
346
346
|
</div>
|
|
347
347
|
</div>
|
|
348
348
|
`}export{P as renderChannels};
|
|
349
|
-
//# sourceMappingURL=channels-
|
|
349
|
+
//# sourceMappingURL=channels-EaU0sKIP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-CnaJ1Ys6.js";var r={weixin:`微信`,wecom:`企业微信`,feishu:`飞书`,dingtalk:`钉钉`},i={weixin:`接入微信对话`,wecom:`接入企业微信对话`,feishu:`接入飞书对话`,dingtalk:`接入钉钉对话`},a={weixin:`https://gw.alicdn.com/imgextra/i4/O1CN01GsAob11fkfDWVIb3R_!!6000000004045-2-tps-400-400.png`,wecom:`https://gw.alicdn.com/imgextra/i1/O1CN01HWtzmr1hkK9beQICJ_!!6000000004315-2-tps-400-400.png`,dingtalk:`https://gw.alicdn.com/imgextra/i4/O1CN01g1u9vB1KdEreWzDdv_!!6000000001186-2-tps-400-400.png`,feishu:`https://gw.alicdn.com/imgextra/i4/O1CN01jsn08m225euyUoaFN_!!6000000007069-2-tps-400-400.png`},o={weixin:{successStatus:`confirmed`,successCredentialKey:`bot_token`,pollInterval:2e3,credentialFields:[`bot_token`]},wecom:{successStatus:`success`,successCredentialKey:`bot_id`,pollInterval:3e3,credentialFields:[`bot_id`,`secret`]},dingtalk:{successStatus:`success`,successCredentialKey:`client_id`,pollInterval:5e3,credentialFields:[`client_id`,`client_secret`]},feishu:{successStatus:``,successCredentialKey:``,pollInterval:0,credentialFields:[]}},s=[`weixin`,`wecom`,`feishu`,`dingtalk`];async function c(e,t){if(!(!e.client||!e.connected)){e.cnChannelsLoading=!0,e.cnChannelsError=null,t==null||t();try{e.cnChannelsData=(await e.client.request(`channels.cn.config.list`,{})).channels??null}catch(t){e.cnChannelsError=String(t)}finally{e.cnChannelsLoading=!1,t==null||t()}}}async function l(e,t,n,r){e.client&&(await e.client.request(`channels.cn.config.set`,{channel:t,config:n}),await c(e,r))}async function u(e,t,n){if(e.client){f(e),e.cnQrcodeChannel=t,e.cnQrcodeImg=null,e.cnQrcodeToken=null,e.cnQrcodeLoading=!0,n==null||n();try{let r=await e.client.request(`channels.cn.qrcode.get`,{channel:t});if(!r.qrcode_img){e.cnQrcodeLoading=!1,n==null||n();return}e.cnQrcodeImg=r.qrcode_img,e.cnQrcodeToken=r.poll_token,d(e,t,r.poll_token,n)}catch{e.cnQrcodeImg=null}finally{e.cnQrcodeLoading=!1,n==null||n()}}}function d(e,t,n,r){let i=o[t],a=async()=>{if(!(!e.client||e.cnQrcodeChannel!==t||e.cnQrcodeToken!==n)){try{let a=await e.client.request(`channels.cn.qrcode.status`,{channel:t,token:n});if(a.status===i.successStatus&&a.credentials[i.successCredentialKey]){e.cnQrcodeImg=null,e.cnQrcodeToken=null,e.cnQrcodeChannel=null;let n={enabled:!0};for(let e of i.credentialFields)a.credentials[e]!==void 0&&(n[e]=a.credentials[e]);e.cnConnecting=t,r==null||r();try{await l(e,t,n,r)}finally{e.cnConnecting=null,r==null||r()}return}if(a.status===`expired`){e.cnQrcodeImg=null,e.cnQrcodeToken=null,r==null||r();return}}catch{}e.cnQrcodePollTimer=setTimeout(a,i.pollInterval)}};e.cnQrcodePollTimer=setTimeout(a,i.pollInterval)}function f(e){e.cnQrcodePollTimer!==null&&(clearTimeout(e.cnQrcodePollTimer),e.cnQrcodePollTimer=null)}function p(t,o,s){var c;let d=!!(((c=o.cnChannelsData)==null?void 0:c[t])??{enabled:!1}).enabled,f=o.cnConnecting===t,p=r[t],m=i[t];return e`
|
|
2
2
|
<div class="cn-channel-card">
|
|
3
3
|
<div class="cn-channel-card__top">
|
|
4
4
|
<div class="cn-channel-card__icon-wrap">
|
|
@@ -126,4 +126,4 @@ import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-DbDyROAt
|
|
|
126
126
|
${m(r,i)}
|
|
127
127
|
${h(r,i)}
|
|
128
128
|
`):t}export{c as loadCnChannels,g as renderCnChannelsPanel,u as startCnQrcode,f as stopCnQrcodePoll};
|
|
129
|
-
//# sourceMappingURL=channels.cn-
|
|
129
|
+
//# sourceMappingURL=channels.cn-BmuE_4-S.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{B as n,F as r,H as i,a,f as o,g as s,h as c,m as l,n as u}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{B as n,F as r,H as i,a,f as o,g as s,h as c,m as l,n as u}from"./index-CnaJ1Ys6.js";function d(){return[{value:`ok`,label:`成功`},{value:`error`,label:`错误`},{value:`skipped`,label:`已跳过`}]}function f(){return[{value:`delivered`,label:`已投递`},{value:`not-delivered`,label:`未投递`},{value:`unknown`,label:`未知`},{value:`not-requested`,label:`未请求`}]}function p(e,t,n){let r=new Set(e);return n?r.add(t):r.delete(t),Array.from(r)}function m(e,t){return e.length===0?t:e.length<=2?e.join(`, `):`${e[0]} +${e.length-1}`}function h(e){var t;let n=[`last`,...e.channels.filter(Boolean)],r=(t=e.form.deliveryChannel)==null?void 0:t.trim();r&&!n.includes(r)&&n.push(r);let i=new Set;return n.filter(e=>i.has(e)?!1:(i.add(e),!0))}function g(e,t){var n,r;if(t===`last`)return`last`;let i=(n=e.channelMeta)==null?void 0:n.find(e=>e.id===t);return i!=null&&i.label?i.label:((r=e.channelLabels)==null?void 0:r[t])??t}function _(t){return e`
|
|
2
2
|
<div class="field cron-filter-dropdown" data-filter=${t.id}>
|
|
3
3
|
<span>${t.title}</span>
|
|
4
4
|
<details class="cron-filter-dropdown__details">
|
|
@@ -960,4 +960,4 @@ import{i as e,n as t}from"./lit-BrYIQVuc.js";import{B as n,F as r,H as i,a,f as
|
|
|
960
960
|
</div>
|
|
961
961
|
</div>
|
|
962
962
|
`}export{T as renderCron};
|
|
963
|
-
//# sourceMappingURL=cron-
|
|
963
|
+
//# sourceMappingURL=cron-tZQOlNT8.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{i as n}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{i as n}from"./index-CnaJ1Ys6.js";function r(r){let i=r.status&&typeof r.status==`object`?r.status.securityAudit:null,a=(i==null?void 0:i.summary)??null,o=(a==null?void 0:a.critical)??0,s=(a==null?void 0:a.warn)??0,c=(a==null?void 0:a.info)??0,l=o>0?`danger`:s>0?`warn`:`success`,u=o>0?`${String(o)} 个严重问题`:s>0?`${String(s)} 个警告`:`无严重问题`;return e`
|
|
2
2
|
<section class="grid">
|
|
3
3
|
<div class="card">
|
|
4
4
|
<div class="row" style="justify-content: space-between;">
|
|
@@ -93,4 +93,4 @@ ${n(t.payload)}</pre
|
|
|
93
93
|
`}
|
|
94
94
|
</section>
|
|
95
95
|
`}export{r as renderDebug};
|
|
96
|
-
//# sourceMappingURL=debug-
|
|
96
|
+
//# sourceMappingURL=debug-Bos7BVqr.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-
|
|
1
|
+
import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-CnaJ1Ys6.js";function r(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function i(e){let t=Date.now()-e,n=Math.floor(t/6e4);if(n<1)return`刚刚`;if(n<60)return`${n} 分钟前`;let r=Math.floor(n/60);if(r<24)return`${r} 小时前`;let i=Math.floor(r/24);if(i<7)return`${i} 天前`;let a=new Date(e);return`${a.getMonth()+1}/${a.getDate()}`}function a(e){let t=e.lastIndexOf(`.`),n=t>=0?e.slice(t+1).toLowerCase():``;return[`png`,`jpg`,`jpeg`,`gif`,`webp`,`svg`,`ico`,`bmp`].includes(n)?`filespace__file-icon--image`:[`ts`,`tsx`,`js`,`jsx`].includes(n)?`filespace__file-icon--js`:[`py`].includes(n)?`filespace__file-icon--py`:[`md`,`txt`].includes(n)?`filespace__file-icon--doc`:[`json`,`yaml`,`yml`,`toml`].includes(n)?`filespace__file-icon--config`:[`csv`].includes(n)?`filespace__file-icon--csv`:[`rs`,`go`,`sh`,`bash`,`zsh`].includes(n)?`filespace__file-icon--code`:`filespace__file-icon--default`}function o(e){let t=e.lastIndexOf(`.`),r=t>=0?e.slice(t+1).toLowerCase():``;return[`png`,`jpg`,`jpeg`,`gif`,`webp`,`svg`,`ico`,`bmp`].includes(r)?n.image:[`ts`,`tsx`,`js`,`jsx`,`py`,`rs`,`go`,`sh`,`bash`,`json`,`yaml`,`yml`,`toml`].includes(r)?n.fileCode:n.fileText}function s(s){let{loading:c,error:l,data:u,search:d,collapsed:f,connected:p}=s,m=d.trim().toLowerCase(),h=m?(u??[]).map(e=>({...e,files:e.files.filter(t=>t.name.toLowerCase().includes(m)||t.path.toLowerCase().includes(m)||e.sessionLabel.toLowerCase().includes(m))})).filter(e=>e.files.length>0):u??[],g=h.reduce((e,t)=>e+t.files.length,0),_=()=>e`
|
|
2
2
|
<div class="filespace__empty">
|
|
3
3
|
<div class="filespace__empty-icon-wrap">
|
|
4
4
|
<span class="filespace__empty-icon">${n.folder}</span>
|
|
@@ -104,4 +104,4 @@ import{i as e,n as t}from"./lit-BrYIQVuc.js";import{L as n}from"./index-DbDyROAt
|
|
|
104
104
|
</div>
|
|
105
105
|
</div>
|
|
106
106
|
`}export{s as renderFileSpace};
|
|
107
|
-
//# sourceMappingURL=filespace-
|
|
107
|
+
//# sourceMappingURL=filespace-BJ6ekAUx.js.map
|