comisai 1.0.16 → 1.0.18
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/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/dist/wizard/non-interactive.js +1 -0
- package/node_modules/@comis/cli/dist/wizard/steps/01-detect-existing.js +2 -0
- package/node_modules/@comis/cli/dist/wizard/steps/07-gateway.js +9 -0
- package/node_modules/@comis/cli/dist/wizard/steps/10-write-config.js +2 -0
- package/node_modules/@comis/cli/dist/wizard/steps/12-finish.js +5 -2
- package/node_modules/@comis/cli/dist/wizard/types.d.ts +1 -0
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/config/schema-gateway.d.ts +17 -2
- package/node_modules/@comis/core/dist/config/schema-gateway.js +11 -0
- package/node_modules/@comis/core/dist/config/schema.d.ts +60 -57
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway.js +34 -6
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/package.json +1 -1
- package/node_modules/@comis/web/dist/android-chrome-192x192.png +0 -0
- package/node_modules/@comis/web/dist/android-chrome-512x512.png +0 -0
- package/node_modules/@comis/web/dist/apple-touch-icon.png +0 -0
- package/node_modules/@comis/web/dist/assets/agent-detail-BG9MGWWj.js +615 -0
- package/node_modules/@comis/web/dist/assets/agent-editor-C26Q_xCs.js +2173 -0
- package/node_modules/@comis/web/dist/assets/agent-list-LHCJ4rw2.js +504 -0
- package/node_modules/@comis/web/dist/assets/approvals-q9VH_IKr.js +54 -0
- package/node_modules/@comis/web/dist/assets/billing-view-CtYvBqTE.js +375 -0
- package/node_modules/@comis/web/dist/assets/channel-detail-CaInesJM.js +681 -0
- package/node_modules/@comis/web/dist/assets/channel-list-B8dj3O9a.js +323 -0
- package/node_modules/@comis/web/dist/assets/chat-console-CNmzl0JW.js +943 -0
- package/node_modules/@comis/web/dist/assets/config-editor-DX4ITw6y.js +1374 -0
- package/node_modules/@comis/web/dist/assets/context-dag-browser-BwiaF5tf.js +393 -0
- package/node_modules/@comis/web/dist/assets/context-engine-BZ5Am6hA.js +393 -0
- package/node_modules/@comis/web/dist/assets/delivery-view-OfBZof-m.js +392 -0
- package/node_modules/@comis/web/dist/assets/diagnostics-view-YFwCxgr2.js +231 -0
- package/node_modules/@comis/web/dist/assets/directive-DoeGSK_T.js +1 -0
- package/node_modules/@comis/web/dist/assets/extract-variables-BM5qyK-s.js +149 -0
- package/node_modules/@comis/web/dist/assets/ic-array-editor-B7m6x7-S.js +118 -0
- package/node_modules/@comis/web/dist/assets/ic-breadcrumb-CUMpp3BL.js +75 -0
- package/node_modules/@comis/web/dist/assets/ic-budget-segment-bar-BtJ6x5mN.js +64 -0
- package/node_modules/@comis/web/dist/assets/ic-chat-message-CFyDJd0z.js +352 -0
- package/node_modules/@comis/web/dist/assets/ic-confirm-dialog-CCDbB04e.js +110 -0
- package/node_modules/@comis/web/dist/assets/ic-connection-dot-CnT1b8xr.js +54 -0
- package/node_modules/@comis/web/dist/assets/ic-data-table-CKUNTxHw.js +277 -0
- package/node_modules/@comis/web/dist/assets/ic-delivery-row-GP5Fkygs.js +67 -0
- package/node_modules/@comis/web/dist/assets/ic-detail-panel-BF83r-if.js +116 -0
- package/node_modules/@comis/web/dist/assets/ic-empty-state-60l2ePhd.js +52 -0
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-C8FuSMe1.js +359 -0
- package/node_modules/@comis/web/dist/assets/ic-icon-xeGTVhVG.js +33 -0
- package/node_modules/@comis/web/dist/assets/ic-layer-waterfall-COvEYMg5.js +69 -0
- package/node_modules/@comis/web/dist/assets/ic-relative-time-3FqpjeAI.js +12 -0
- package/node_modules/@comis/web/dist/assets/ic-search-input-CSOxY9g7.js +92 -0
- package/node_modules/@comis/web/dist/assets/ic-select-Ce-Raudx.js +127 -0
- package/node_modules/@comis/web/dist/assets/ic-tabs-B7QtM_v8.js +95 -0
- package/node_modules/@comis/web/dist/assets/ic-tag-CPPUnDLF.js +33 -0
- package/node_modules/@comis/web/dist/assets/ic-time-range-picker-CypCT68y.js +93 -0
- package/node_modules/@comis/web/dist/assets/ic-tool-call-7MaXSsCW.js +146 -0
- package/node_modules/@comis/web/dist/assets/index-CEcM1R_C.js +2830 -0
- package/node_modules/@comis/web/dist/assets/index-CIJFuItj.css +1 -0
- package/node_modules/@comis/web/dist/assets/mcp-management-BNZPnpDn.js +582 -0
- package/node_modules/@comis/web/dist/assets/media-config-BBvTYxOX.js +314 -0
- package/node_modules/@comis/web/dist/assets/media-test-BkK3RCRK.js +496 -0
- package/node_modules/@comis/web/dist/assets/memory-inspector-1hDGCGat.js +1139 -0
- package/node_modules/@comis/web/dist/assets/message-center-CXefwsUu.js +785 -0
- package/node_modules/@comis/web/dist/assets/models-C1qcU_j3.js +894 -0
- package/node_modules/@comis/web/dist/assets/observability-types-D7jUtSde.js +1 -0
- package/node_modules/@comis/web/dist/assets/observe-view-C0VBhX4C.js +814 -0
- package/node_modules/@comis/web/dist/assets/pipeline-builder-DcUUIrm0.js +1496 -0
- package/node_modules/@comis/web/dist/assets/pipeline-history-DkfOQ6SW.js +317 -0
- package/node_modules/@comis/web/dist/assets/pipeline-history-detail-hyHgD0ai.js +287 -0
- package/node_modules/@comis/web/dist/assets/pipeline-list-BPW8hV-q.js +518 -0
- package/node_modules/@comis/web/dist/assets/pipeline-monitor-Bip16T7e.js +972 -0
- package/node_modules/@comis/web/dist/assets/scheduler-BGgwKd06.js +1182 -0
- package/node_modules/@comis/web/dist/assets/security-D15st4xx.js +1224 -0
- package/node_modules/@comis/web/dist/assets/session-detail-SGEYNJ0M.js +632 -0
- package/node_modules/@comis/web/dist/assets/session-key-parser-DPORMVyU.js +1 -0
- package/node_modules/@comis/web/dist/assets/session-list-6ybUTxbY.js +231 -0
- package/node_modules/@comis/web/dist/assets/setup-wizard-nT0tz9QP.js +853 -0
- package/node_modules/@comis/web/dist/assets/skills-D8yVfSUy.js +1051 -0
- package/node_modules/@comis/web/dist/assets/subagents-HHXMeHYo.js +193 -0
- package/node_modules/@comis/web/dist/assets/workspace-manager-BQlr10iH.js +785 -0
- package/node_modules/@comis/web/dist/comis-logo.png +0 -0
- package/node_modules/@comis/web/dist/favicon-16x16.png +0 -0
- package/node_modules/@comis/web/dist/favicon-32x32.png +0 -0
- package/node_modules/@comis/web/dist/favicon.ico +0 -0
- package/node_modules/@comis/web/dist/index.html +17 -0
- package/node_modules/@comis/web/package.json +29 -0
- package/package.json +15 -13
|
@@ -0,0 +1,1051 @@
|
|
|
1
|
+
import{a as y,S as x,I as m,A as v,b as a,s as w,f as S,i as $,n as u,r as p,t as C}from"./index-CEcM1R_C.js";import"./ic-tabs-B7QtM_v8.js";import"./ic-search-input-CSOxY9g7.js";import"./ic-empty-state-60l2ePhd.js";import"./ic-confirm-dialog-CCDbB04e.js";import"./ic-tag-CPPUnDLF.js";import"./ic-icon-xeGTVhVG.js";var I=Object.defineProperty,A=Object.getOwnPropertyDescriptor,d=(e,t,i,l)=>{for(var r=l>1?void 0:l?A(t,i):t,o=e.length-1,n;o>=0;o--)(n=e[o])&&(r=(l?n(t,i,r):n(r))||r);return l&&r&&I(t,i,r),r};const T={read:"Read file contents with line numbers and pagination",write:"Write or overwrite files; auto-creates parent directories",edit:"Surgical search-and-replace on files (exact text match)",grep:"Regex search across files (ripgrep-based)",find:"Find files by glob pattern (fd-based)",ls:"List directory contents alphabetically",exec:"Shell command execution with foreground/background modes",process:"Background process management (list, kill, status, log)",webSearch:"Multi-provider web search (Brave, DuckDuckGo, Perplexity, Grok, Tavily, Exa, Jina, SearXNG)",webFetch:"Fetch and extract content from URLs (markdown, text, readability modes)",browser:"Headless browser control (requires Playwright/Chromium)"},_={webSearch:["freshness: pd (past day), pw (past week), pm (past month), py (past year), or YYYY-MM-DDtoYYYY-MM-DD","deepFetch: 0-5 - auto-fetch full page content for top N results","provider: override search provider per call"]},b=[{label:"File Operations",tools:["read","write","edit","find","ls"]},{label:"Execution",tools:["exec","process"]},{label:"Search",tools:["grep"]},{label:"Web",tools:["webSearch","webFetch","browser"]}],D=b.flatMap(e=>e.tools),L={minimal:["exec"],coding:["read","write","edit","grep","find","ls","exec","process"],messaging:["exec","webSearch","webFetch"],supervisor:["read","write","edit","grep","find","ls","exec","process","webSearch","webFetch"],full:[...D]};function k(e){const t=e.match(/\/workspace-([^/]+)\/skills\//);return t?t[1]:/\/workspace\/skills\//.test(e)?"default":""}const P={memory_search:"Semantic hybrid search across memory and session transcripts",memory_get:"Read specific memory file sections by path with line ranges",memory_store:"Store facts, preferences, or context in long-term memory",memory_manage:"Stats, browse, delete, flush, and export memory entries",session_status:"View current session model, token usage, and duration",sessions_list:"List active sessions filtered by kind and recency",sessions_history:"View conversation history for a session with pagination",sessions_send:"Send a message into another session (fire-and-forget, wait, or ping-pong)",sessions_spawn:"Spawn a sub-agent session for background work (sync or async)",sessions_manage:"Delete, reset, export, or compact session lifecycles",agents_list:"List all configured agent IDs in the system",agents_manage:"Create, inspect, update, suspend/resume, and delete agents",subagents:"List, kill, or steer running sub-agents",message:"Send, reply, react, edit, delete, and fetch messages across all channels",discord_action:"Pin/unpin, kick/ban, roles, threads, channels, bot presence",telegram_action:"Pin/unpin, polls, stickers, chat info, ban/promote members",slack_action:"Pin/unpin, topics, archive, create channels, invite/kick, bookmarks",whatsapp_action:"Group info, participants, settings, invite codes, profile status",image_analyze:"Analyze images using vision AI from files, URLs, or base64",tts_synthesize:"Generate speech audio from text via configured TTS provider",transcribe_audio:"Transcribe audio/voice attachments to text with language hints",describe_video:"Generate text descriptions of video attachments",extract_document:"Extract text from PDF, CSV, TXT, and other document formats",cron:"Create, list, update, remove, and trigger scheduled jobs",gateway:"Read/patch config, set secrets, restart, rollback, and status",browser:"Headless browser: navigate, snapshot, screenshot, click, type, tabs",obs_query:"Query diagnostics, billing, delivery traces, and channel activity",models_manage:"List available models and test provider availability",tokens_manage:"List, create, revoke, and rotate gateway auth tokens",channels_manage:"List, enable, disable, and restart channel adapters",skills_manage:"List, import from GitHub, and delete prompt skills"},z=[{label:"MEMORY",tools:["memory_search","memory_get","memory_store","memory_manage"]},{label:"SESSIONS",tools:["session_status","sessions_list","sessions_history","sessions_send","sessions_spawn","sessions_manage"]},{label:"AGENTS",tools:["agents_list","agents_manage","subagents"]},{label:"MESSAGING",tools:["message","discord_action","telegram_action","slack_action","whatsapp_action"]},{label:"MEDIA",tools:["image_analyze","tts_synthesize","transcribe_audio","describe_video","extract_document"]},{label:"INFRASTRUCTURE",tools:["cron","gateway","browser","obs_query"]},{label:"FLEET MANAGEMENT",tools:["models_manage","tokens_manage","channels_manage","skills_manage"]}],E=[{id:"tools",label:"Built-in Tools"},{id:"skills",label:"Prompt Skills"}];let c=class extends y{constructor(){super(...arguments),this.apiClient=null,this.rpcClient=null,this.eventDispatcher=null,this._sse=null,this._reloadDebounce=null,this._loadState="loading",this._recentSkillEvents=[],this._error="",this._activeTab="tools",this._skillsConfig=null,this._discoveredSkills=[],this._targetAgentId="",this._agentIds=[],this._skillScope="all",this._defaultAgentId="default",this._searchQuery="",this._importUrl="",this._isImportingSkill=!1,this._isUploadingSkill=!1,this._deletingSkill=null,this._installAgent="",this._installScope="shared",this._newAllowedSkill="",this._newDeniedSkill="",this._newPolicyAllow="",this._newPolicyDeny="",this._rpcStatusUnsub=null,this._dataLoaded=!1}connectedCallback(){super.connectedCallback(),this._initSse()}disconnectedCallback(){super.disconnectedCallback(),this._rpcStatusUnsub?.(),this._rpcStatusUnsub=null,this._reloadDebounce!==null&&(clearTimeout(this._reloadDebounce),this._reloadDebounce=null)}updated(e){e.has("rpcClient")&&this.rpcClient&&this._tryLoad(),e.has("eventDispatcher")&&this.eventDispatcher&&!this._sse&&this._initSse()}_scheduleReload(e=300){this._reloadDebounce!==null&&clearTimeout(this._reloadDebounce),this._reloadDebounce=setTimeout(()=>{this._reloadDebounce=null,this._loadData()},e)}_initSse(){!this.eventDispatcher||this._sse||(this._sse=new x(this,this.eventDispatcher,{"skill:loaded":()=>{this._scheduleReload()},"skill:registry_reset":()=>{this._scheduleReload()},"agent:hot_added":()=>{this._scheduleReload()},"agent:hot_removed":()=>{this._scheduleReload()},"skill:executed":e=>{const t=e;this._recentSkillEvents=[{skillName:t.skillName??"unknown",agentId:t.agentId??"",timestamp:t.timestamp??Date.now(),outcome:"executed"},...this._recentSkillEvents].slice(0,50)},"skill:rejected":e=>{const t=e;this._recentSkillEvents=[{skillName:t.skillName??"unknown",agentId:t.agentId??"",timestamp:t.timestamp??Date.now(),outcome:"rejected",reason:t.reason},...this._recentSkillEvents].slice(0,50)}}))}_tryLoad(){this.rpcClient&&(this._rpcStatusUnsub?.(),this.rpcClient.status==="connected"?this._loadData():this._rpcStatusUnsub=this.rpcClient.onStatusChange(e=>{e==="connected"&&!this._dataLoaded&&this._loadData()}))}async _loadData(){if(this.rpcClient){this._loadState="loading",this._error="";try{const e=await this.rpcClient.call("config.read"),t=e.config?.agents;this._agentIds=t?Object.keys(t):[];const i=this._agentIds[0];this._targetAgentId&&i&&!this._agentIds.includes(this._targetAgentId)&&(this._targetAgentId=i);const l=e.config?.routing;if(this._defaultAgentId=l?.defaultAgentId??"default",this._skillsConfig=this._targetAgentId&&this._agentIds.includes(this._targetAgentId)?t[this._targetAgentId].skills??null:null,this._dataLoaded=!0,this._loadState="loaded",this._targetAgentId)this.rpcClient.call("skills.list",{agentId:this._targetAgentId}).then(r=>{this._discoveredSkills=r.skills??[]}).catch(()=>{this._discoveredSkills=[]});else{const r=this.rpcClient;Promise.allSettled(this._agentIds.map(o=>r.call("skills.list",{agentId:o}))).then(o=>{const n=new Map;for(const h of o)if(h.status==="fulfilled")for(const g of h.value.skills??[]){const s=g.source==="local"?g.name:`${g.name}:${g.location}`;n.has(s)||n.set(s,g)}this._discoveredSkills=[...n.values()]})}}catch(e){this._error=e instanceof Error?e.message:"Failed to load skills configuration",this._loadState="error"}}}async _patchConfig(e,t){if(!this.rpcClient)return!1;try{const i=e.indexOf("."),l=i>0?e.slice(0,i):e,r=i>0?e.slice(i+1):void 0;return await this.rpcClient.call("config.patch",{section:l,key:r,value:t}),m.show("Configuration updated","success"),!0}catch(i){const l=i instanceof Error?i.message:"Failed to update configuration";return m.show(l,"error"),!1}}async _onToolToggle(e,t){await this._patchConfig(`agents.${this._targetAgentId}.skills`,{builtinTools:{[e]:t}})&&this._skillsConfig&&(this._skillsConfig={...this._skillsConfig,builtinTools:{...this._skillsConfig.builtinTools,[e]:t}})}_renderToolsTab(){return a`
|
|
2
|
+
${b.map(e=>a`
|
|
3
|
+
<div class="category-header">${e.label}</div>
|
|
4
|
+
<div class="tool-grid">
|
|
5
|
+
${e.tools.map(t=>a`
|
|
6
|
+
<div class="tool-card">
|
|
7
|
+
<div class="tool-card-header">
|
|
8
|
+
<span class="tool-name">${t}</span>
|
|
9
|
+
</div>
|
|
10
|
+
<span class="tool-desc">${T[t]??""}</span>
|
|
11
|
+
${_[t]?a`<ul class="tool-params">
|
|
12
|
+
${_[t].map(i=>a`<li>${i}</li>`)}
|
|
13
|
+
</ul>`:v}
|
|
14
|
+
</div>
|
|
15
|
+
`)}
|
|
16
|
+
</div>
|
|
17
|
+
`)}
|
|
18
|
+
<p class="tool-hint">Enable or disable tools per agent in the agent editor.</p>
|
|
19
|
+
|
|
20
|
+
<hr style="border: none; border-top: 1px solid var(--ic-border); margin: var(--ic-space-xl) 0;" />
|
|
21
|
+
|
|
22
|
+
<div class="section-header" style="font-size: var(--ic-text-base); font-weight: 600; color: var(--ic-text); margin-bottom: var(--ic-space-sm);">Platform Tools</div>
|
|
23
|
+
<p class="tool-hint" style="margin-top: 0;">
|
|
24
|
+
Platform tools are always available to agents. They are governed by the tool policy and trust level.
|
|
25
|
+
</p>
|
|
26
|
+
${z.map(e=>a`
|
|
27
|
+
<div class="category-header">${e.label}</div>
|
|
28
|
+
<div class="tool-grid">
|
|
29
|
+
${e.tools.map(t=>a`
|
|
30
|
+
<div class="tool-card">
|
|
31
|
+
<div class="tool-card-header">
|
|
32
|
+
<span class="tool-name">${t}</span>
|
|
33
|
+
</div>
|
|
34
|
+
<span class="tool-desc">${P[t]??""}</span>
|
|
35
|
+
</div>
|
|
36
|
+
`)}
|
|
37
|
+
</div>
|
|
38
|
+
`)}
|
|
39
|
+
|
|
40
|
+
<hr style="border: none; border-top: 1px solid var(--ic-border); margin: var(--ic-space-xl) 0;" />
|
|
41
|
+
|
|
42
|
+
<div class="section-header" style="font-size: var(--ic-text-base); font-weight: 600; color: var(--ic-text); margin-bottom: var(--ic-space-sm);">Tool Policy</div>
|
|
43
|
+
<div class="policy-section">
|
|
44
|
+
<p class="tool-hint" style="margin-top: 0;">
|
|
45
|
+
Tool policy controls which platform tools an agent can use. Profiles (minimal, coding, messaging, supervisor, full)
|
|
46
|
+
define baseline sets, with allow/deny lists for fine-grained overrides.
|
|
47
|
+
</p>
|
|
48
|
+
<p class="tool-hint">Configure tool policy per agent in the agent editor.</p>
|
|
49
|
+
</div>
|
|
50
|
+
`}async _onPromptFieldChange(e,t){await this._patchConfig(`agents.${this._targetAgentId}.skills`,{promptSkills:{[e]:t}})&&this._skillsConfig&&(this._skillsConfig={...this._skillsConfig,promptSkills:{...this._skillsConfig.promptSkills,[e]:t}})}async _addToList(e,t,i){if(!i.trim()||!this._skillsConfig)return;const l=[...this._skillsConfig.promptSkills[t]];if(l.includes(i.trim()))return;const r=[...l,i.trim()];await this._patchConfig(`agents.${this._targetAgentId}.skills`,{promptSkills:{[t]:r}})&&(this._skillsConfig={...this._skillsConfig,promptSkills:{...this._skillsConfig.promptSkills,[t]:r}})}async _removeFromList(e,t,i){if(!this._skillsConfig)return;const l=this._skillsConfig.promptSkills[t].filter(o=>o!==i);await this._patchConfig(`agents.${this._targetAgentId}.skills`,{promptSkills:{[t]:l}})&&(this._skillsConfig={...this._skillsConfig,promptSkills:{...this._skillsConfig.promptSkills,[t]:l}})}_renderSkillList(e,t,i,l,r){const o=this._searchQuery?t.filter(n=>n.toLowerCase().includes(this._searchQuery.toLowerCase())):t;return a`
|
|
51
|
+
<div class="list-section">
|
|
52
|
+
<div class="list-title">${e}</div>
|
|
53
|
+
${o.length>0?a`
|
|
54
|
+
<div class="list-items">
|
|
55
|
+
${o.map(n=>a`
|
|
56
|
+
<span class="list-item">
|
|
57
|
+
${n}
|
|
58
|
+
<button
|
|
59
|
+
class="list-item-remove"
|
|
60
|
+
aria-label="Remove ${n}"
|
|
61
|
+
@click=${()=>this._removeFromList("promptSkills",i,n)}
|
|
62
|
+
>\u2715</button>
|
|
63
|
+
</span>
|
|
64
|
+
`)}
|
|
65
|
+
</div>
|
|
66
|
+
`:a`<div class="empty-list">No items</div>`}
|
|
67
|
+
<div class="list-add-row">
|
|
68
|
+
<input
|
|
69
|
+
class="list-add-input"
|
|
70
|
+
type="text"
|
|
71
|
+
placeholder="Skill name..."
|
|
72
|
+
.value=${l}
|
|
73
|
+
@input=${n=>r(n.target.value)}
|
|
74
|
+
@keydown=${n=>{n.key==="Enter"&&(n.preventDefault(),this._addToList("promptSkills",i,l),r(""))}}
|
|
75
|
+
/>
|
|
76
|
+
<button
|
|
77
|
+
class="list-add-btn"
|
|
78
|
+
@click=${()=>{this._addToList("promptSkills",i,l),r("")}}
|
|
79
|
+
>Add</button>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
`}_triggerFolderUpload(){this.shadowRoot?.querySelector("#skill-folder-input")?.click()}async _handleFolderSelected(e){const t=e.target,i=t.files;if(!i||i.length===0||!this.rpcClient)return;const r=i[0].webkitRelativePath.split("/")[0];if(!r){m.show("Could not determine folder name","error");return}this._isUploadingSkill=!0;try{const o=[];for(const n of Array.from(i)){const h=n.webkitRelativePath.split("/").slice(1).join("/");if(!h)continue;const g=await n.text();o.push({path:h,content:g})}if(o.length===0){m.show("No files found in folder","error");return}await this.rpcClient.call("skills.upload",{name:r,files:o,agentId:this._installScope==="agent"?this._installAgent:this._defaultAgentId,scope:this._installScope==="shared"?"shared":"local"}),m.show(`Skill "${r}" uploaded`,"success"),await this._refreshSkills()}catch(o){m.show(`Failed to upload skill: ${o instanceof Error?o.message:"Unknown error"}`,"error")}finally{this._isUploadingSkill=!1,t.value=""}}async _handleImportSkill(){const e=this._importUrl.trim();if(!(!e||!this.rpcClient||this._isImportingSkill)){this._isImportingSkill=!0;try{const t=await this.rpcClient.call("skills.import",{url:e,agentId:this._installScope==="agent"?this._installAgent:this._defaultAgentId,scope:this._installScope==="shared"?"shared":"local"});m.show(`Skill "${t.name}" imported (${t.fileCount} files)`,"success"),this._importUrl="",await this._refreshSkills()}catch(t){m.show(`Failed to import skill: ${t instanceof Error?t.message:"Unknown error"}`,"error")}finally{this._isImportingSkill=!1}}}_handleDeleteSkill(e){!this.rpcClient||this._deletingSkill||(this._deletingSkill=e)}async _confirmDeleteSkill(){if(!this.rpcClient||!this._deletingSkill)return;const e=this._deletingSkill;try{const t=k(this._discoveredSkills.find(i=>i.name===e)?.location??"");await this.rpcClient.call("skills.delete",{name:e,agentId:t||this._defaultAgentId,scope:t?"local":"shared"}),m.show(`Skill "${e}" deleted`,"success"),this._deletingSkill=null,await this._refreshSkills()}catch(t){m.show(`Failed to delete skill: ${t instanceof Error?t.message:"Unknown error"}`,"error"),this._deletingSkill=null}}async _onAgentChange(e){this._targetAgentId=e,this._skillScope="all",await this._loadData()}async _refreshSkills(){if(this.rpcClient)try{const e=await this.rpcClient.call("skills.list",{agentId:this._targetAgentId});this._discoveredSkills=e.skills??[]}catch{}}_renderDiscoveredSkills(){const e=this._searchQuery?this._discoveredSkills.filter(s=>s.name.toLowerCase().includes(this._searchQuery.toLowerCase())||s.description.toLowerCase().includes(this._searchQuery.toLowerCase())):this._discoveredSkills,t=this._discoveredSkills.length>0,i=t?e.filter(s=>s.source==="local"):[],l=t?e.filter(s=>s.source!=="local"):[],r=this._skillScope==="all"||this._skillScope==="shared",o=this._skillScope==="all"||this._skillScope==="local",n=r?i:[],h=o?l:[],g=n.length===0&&h.length===0;return a`
|
|
83
|
+
${!t||g?a`
|
|
84
|
+
<ic-empty-state
|
|
85
|
+
icon="skills"
|
|
86
|
+
message=${t?"No skills match the current filter":"No prompt skills discovered"}
|
|
87
|
+
description=${t?"Try changing the scope filter or search query.":"Upload a skill folder or import from GitHub to get started."}
|
|
88
|
+
></ic-empty-state>
|
|
89
|
+
`:a`
|
|
90
|
+
${n.length>0?a`
|
|
91
|
+
<div class="category-header">Shared Skills (${n.length})</div>
|
|
92
|
+
<div class="tool-grid">
|
|
93
|
+
${n.map(s=>a`
|
|
94
|
+
<div class="tool-card">
|
|
95
|
+
<div class="tool-card-header">
|
|
96
|
+
<span class="tool-name">${s.name}</span>
|
|
97
|
+
<div style="display: flex; gap: 0.25rem; align-items: center;">
|
|
98
|
+
${s.disableModelInvocation?a`<ic-tag variant="warning">manual</ic-tag>`:v}
|
|
99
|
+
<ic-tag variant="info">SHARED</ic-tag>
|
|
100
|
+
<button
|
|
101
|
+
class="skill-delete-btn"
|
|
102
|
+
aria-label="Delete ${s.name}"
|
|
103
|
+
@click=${()=>this._handleDeleteSkill(s.name)}
|
|
104
|
+
>\u2715</button>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<span class="tool-desc">${s.description.length>150?s.description.slice(0,150)+"...":s.description}</span>
|
|
108
|
+
</div>
|
|
109
|
+
`)}
|
|
110
|
+
</div>
|
|
111
|
+
`:v}
|
|
112
|
+
|
|
113
|
+
${o?a`
|
|
114
|
+
<div class="category-header">Agent Skills (${h.length})</div>
|
|
115
|
+
${h.length>0?a`
|
|
116
|
+
<div class="tool-grid">
|
|
117
|
+
${h.map(s=>{const f=k(s.location);return a`
|
|
118
|
+
<div class="tool-card">
|
|
119
|
+
<div class="tool-card-header">
|
|
120
|
+
<span class="tool-name">${s.name}</span>
|
|
121
|
+
<div style="display: flex; gap: 0.25rem; align-items: center;">
|
|
122
|
+
${s.disableModelInvocation?a`<ic-tag variant="warning">manual</ic-tag>`:v}
|
|
123
|
+
${f?a`<ic-tag variant="accent">${f}</ic-tag>`:a`<ic-tag variant="accent">AGENT</ic-tag>`}
|
|
124
|
+
<button
|
|
125
|
+
class="skill-delete-btn"
|
|
126
|
+
aria-label="Delete ${s.name}"
|
|
127
|
+
@click=${()=>this._handleDeleteSkill(s.name)}
|
|
128
|
+
>\u2715</button>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
<span class="tool-desc">${s.description.length>150?s.description.slice(0,150)+"...":s.description}</span>
|
|
132
|
+
</div>
|
|
133
|
+
`})}
|
|
134
|
+
</div>
|
|
135
|
+
`:a`
|
|
136
|
+
<p style="font-size: var(--ic-text-sm); color: var(--ic-text-dim); font-style: italic;">
|
|
137
|
+
No agent-specific skills installed. Upload or import skills below.
|
|
138
|
+
</p>
|
|
139
|
+
`}
|
|
140
|
+
`:v}
|
|
141
|
+
`}
|
|
142
|
+
|
|
143
|
+
<!-- Add Skill panel -->
|
|
144
|
+
<div class="add-skill-panel">
|
|
145
|
+
<div class="add-skill-title">Add Skill</div>
|
|
146
|
+
|
|
147
|
+
<!-- Install target selector -->
|
|
148
|
+
<div class="install-target">
|
|
149
|
+
<span class="install-target-label">Install to:</span>
|
|
150
|
+
<select
|
|
151
|
+
class="install-target-select"
|
|
152
|
+
.value=${this._installScope}
|
|
153
|
+
@change=${s=>{this._installScope=s.target.value,this._installScope==="agent"&&!this._installAgent&&(this._installAgent=this._agentIds[0]??this._defaultAgentId)}}
|
|
154
|
+
>
|
|
155
|
+
<option value="shared" ?selected=${this._installScope==="shared"}>Shared (all agents)</option>
|
|
156
|
+
<option value="agent" ?selected=${this._installScope==="agent"}>Specific agent</option>
|
|
157
|
+
</select>
|
|
158
|
+
${this._installScope==="agent"?a`
|
|
159
|
+
<select
|
|
160
|
+
class="install-target-select"
|
|
161
|
+
.value=${this._installAgent}
|
|
162
|
+
@change=${s=>{this._installAgent=s.target.value}}
|
|
163
|
+
>
|
|
164
|
+
${this._agentIds.map(s=>a`
|
|
165
|
+
<option value=${s} ?selected=${s===this._installAgent}>${s}</option>
|
|
166
|
+
`)}
|
|
167
|
+
</select>
|
|
168
|
+
`:v}
|
|
169
|
+
<span class="install-target-hint">
|
|
170
|
+
${this._installScope==="shared"?"Skill will be available to all agents":`Skill will only be available to ${this._installAgent||"the selected agent"}`}
|
|
171
|
+
</span>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<!-- Two methods side by side -->
|
|
175
|
+
<div class="add-skill-methods">
|
|
176
|
+
<div class="add-skill-method">
|
|
177
|
+
<div class="add-skill-method-title">Upload folder</div>
|
|
178
|
+
<div class="add-skill-method-body">
|
|
179
|
+
<input
|
|
180
|
+
id="skill-folder-input"
|
|
181
|
+
type="file"
|
|
182
|
+
webkitdirectory
|
|
183
|
+
hidden
|
|
184
|
+
@change=${s=>this._handleFolderSelected(s)}
|
|
185
|
+
/>
|
|
186
|
+
<button
|
|
187
|
+
class="upload-skill-btn"
|
|
188
|
+
?disabled=${this._isUploadingSkill}
|
|
189
|
+
@click=${()=>this._triggerFolderUpload()}
|
|
190
|
+
>${this._isUploadingSkill?"Uploading...":"+ Select Skill Folder"}</button>
|
|
191
|
+
</div>
|
|
192
|
+
<p class="upload-skill-hint">Folder must contain a SKILL.md file</p>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div class="add-skill-method">
|
|
196
|
+
<div class="add-skill-method-title">Import from GitHub</div>
|
|
197
|
+
<div class="add-skill-method-body">
|
|
198
|
+
<div class="import-skill-row" style="width: 100%;">
|
|
199
|
+
<input
|
|
200
|
+
type="text"
|
|
201
|
+
.value=${this._importUrl}
|
|
202
|
+
placeholder="https://github.com/owner/repo/tree/main/skills/name"
|
|
203
|
+
@input=${s=>{this._importUrl=s.target.value}}
|
|
204
|
+
@keydown=${s=>{s.key==="Enter"&&(s.preventDefault(),this._handleImportSkill())}}
|
|
205
|
+
/>
|
|
206
|
+
<button
|
|
207
|
+
class="import-skill-btn"
|
|
208
|
+
?disabled=${this._isImportingSkill||!this._importUrl.trim()}
|
|
209
|
+
@click=${()=>this._handleImportSkill()}
|
|
210
|
+
>${this._isImportingSkill?"Importing...":"Import"}</button>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
<p class="upload-skill-hint">Paste a GitHub URL to a skill folder</p>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
<!-- Delete confirmation dialog -->
|
|
219
|
+
<ic-confirm-dialog
|
|
220
|
+
?open=${this._deletingSkill!==null}
|
|
221
|
+
title="Delete Skill"
|
|
222
|
+
message=${`Delete skill "${this._deletingSkill}"? This will remove the skill files from disk.`}
|
|
223
|
+
variant="danger"
|
|
224
|
+
confirmLabel="Delete"
|
|
225
|
+
@confirm=${()=>this._confirmDeleteSkill()}
|
|
226
|
+
@cancel=${()=>{this._deletingSkill=null}}
|
|
227
|
+
></ic-confirm-dialog>
|
|
228
|
+
`}_renderSkillsTab(){return a`
|
|
229
|
+
<ic-search-input
|
|
230
|
+
placeholder="Filter skill names..."
|
|
231
|
+
@search=${e=>{this._searchQuery=e.detail}}
|
|
232
|
+
></ic-search-input>
|
|
233
|
+
|
|
234
|
+
<div style="margin-top: var(--ic-space-md);">
|
|
235
|
+
${this._renderDiscoveredSkills()}
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<p class="tool-hint">Configure prompt skill settings (max body length, auto-inject, allowed/denied lists) per agent in the agent editor.</p>
|
|
239
|
+
`}async _onProfileChange(e){if(!this._skillsConfig)return;await this._patchConfig(`agents.${this._targetAgentId}.skills`,{toolPolicy:{...this._skillsConfig.toolPolicy,profile:e}})&&(this._skillsConfig={...this._skillsConfig,toolPolicy:{...this._skillsConfig.toolPolicy,profile:e}})}async _addPolicyItem(e,t){if(!t.trim()||!this._skillsConfig)return;const i=[...this._skillsConfig.toolPolicy[e]];if(i.includes(t.trim()))return;const l=[...i,t.trim()];await this._patchConfig(`agents.${this._targetAgentId}.skills`,{toolPolicy:{...this._skillsConfig.toolPolicy,[e]:l}})&&(this._skillsConfig={...this._skillsConfig,toolPolicy:{...this._skillsConfig.toolPolicy,[e]:l}})}async _removePolicyItem(e,t){if(!this._skillsConfig)return;const i=this._skillsConfig.toolPolicy[e].filter(r=>r!==t);await this._patchConfig(`agents.${this._targetAgentId}.skills`,{toolPolicy:{...this._skillsConfig.toolPolicy,[e]:i}})&&(this._skillsConfig={...this._skillsConfig,toolPolicy:{...this._skillsConfig.toolPolicy,[e]:i}})}_getResolvedTools(){if(!this._skillsConfig)return{included:[],denied:[]};const e=this._skillsConfig.toolPolicy,t=L[e.profile]??[],i=new Set([...t,...e.allow]),l=new Set(e.deny),r=[...i].filter(n=>!l.has(n)),o=[...i].filter(n=>l.has(n));return{included:r,denied:o}}_renderPolicyList(e,t,i,l,r){return a`
|
|
240
|
+
<div class="list-section">
|
|
241
|
+
<div class="list-title">${e}</div>
|
|
242
|
+
${t.length>0?a`
|
|
243
|
+
<div class="list-items">
|
|
244
|
+
${t.map(o=>a`
|
|
245
|
+
<span class="list-item">
|
|
246
|
+
${o}
|
|
247
|
+
<button
|
|
248
|
+
class="list-item-remove"
|
|
249
|
+
aria-label="Remove ${o}"
|
|
250
|
+
@click=${()=>this._removePolicyItem(i,o)}
|
|
251
|
+
>\u2715</button>
|
|
252
|
+
</span>
|
|
253
|
+
`)}
|
|
254
|
+
</div>
|
|
255
|
+
`:a`<div class="empty-list">No items</div>`}
|
|
256
|
+
<div class="list-add-row">
|
|
257
|
+
<input
|
|
258
|
+
class="list-add-input"
|
|
259
|
+
type="text"
|
|
260
|
+
placeholder="Tool name..."
|
|
261
|
+
.value=${l}
|
|
262
|
+
@input=${o=>r(o.target.value)}
|
|
263
|
+
@keydown=${o=>{o.key==="Enter"&&(o.preventDefault(),this._addPolicyItem(i,l),r(""))}}
|
|
264
|
+
/>
|
|
265
|
+
<button
|
|
266
|
+
class="list-add-btn"
|
|
267
|
+
@click=${()=>{this._addPolicyItem(i,l),r("")}}
|
|
268
|
+
>Add</button>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
`}_renderRecentActivity(){return this._recentSkillEvents.length===0?v:a`
|
|
272
|
+
<div class="recent-activity">
|
|
273
|
+
<h3>Recent Activity <span class="recent-activity-count">(${this._recentSkillEvents.length})</span></h3>
|
|
274
|
+
<div class="event-list">
|
|
275
|
+
${this._recentSkillEvents.slice(0,20).map(e=>a`
|
|
276
|
+
<div class="event-entry">
|
|
277
|
+
<span class="event-skill">${e.skillName}</span>
|
|
278
|
+
<span class="event-agent">${e.agentId||"—"}</span>
|
|
279
|
+
<span class=${e.outcome==="executed"?"event-outcome--executed":"event-outcome--rejected"}>
|
|
280
|
+
${e.outcome}${e.reason?a` <span class="event-reason">(${e.reason})</span>`:""}
|
|
281
|
+
</span>
|
|
282
|
+
<span class="event-time">${new Date(e.timestamp).toLocaleTimeString()}</span>
|
|
283
|
+
</div>
|
|
284
|
+
`)}
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
`}_renderTabContent(){switch(this._activeTab){case"tools":return this._renderToolsTab();case"skills":return this._renderSkillsTab();default:return v}}render(){return this._loadState==="loading"?a`<ic-skeleton-view variant="list"></ic-skeleton-view>`:this._loadState==="error"?a`
|
|
288
|
+
<div class="error-container">
|
|
289
|
+
<span class="error-message">${this._error}</span>
|
|
290
|
+
<button class="retry-btn" @click=${()=>this._tryLoad()}>Retry</button>
|
|
291
|
+
</div>
|
|
292
|
+
`:a`
|
|
293
|
+
<div class="view-header">
|
|
294
|
+
<div class="view-title">Skills & Tools</div>
|
|
295
|
+
${this._agentIds.length>1?a`
|
|
296
|
+
<div style="display: flex; gap: var(--ic-space-sm); align-items: center;">
|
|
297
|
+
<select
|
|
298
|
+
class="form-input"
|
|
299
|
+
.value=${this._targetAgentId}
|
|
300
|
+
@change=${e=>this._onAgentChange(e.target.value)}
|
|
301
|
+
>
|
|
302
|
+
<option value="" ?selected=${this._targetAgentId===""}>All Agents</option>
|
|
303
|
+
${this._agentIds.map(e=>a`
|
|
304
|
+
<option value=${e} ?selected=${e===this._targetAgentId}>${e}</option>
|
|
305
|
+
`)}
|
|
306
|
+
</select>
|
|
307
|
+
<select
|
|
308
|
+
class="form-input"
|
|
309
|
+
.value=${this._skillScope}
|
|
310
|
+
@change=${e=>{this._skillScope=e.target.value}}
|
|
311
|
+
>
|
|
312
|
+
<option value="all" ?selected=${this._skillScope==="all"}>All Skills</option>
|
|
313
|
+
<option value="local" ?selected=${this._skillScope==="local"}>Agent Skills</option>
|
|
314
|
+
<option value="shared" ?selected=${this._skillScope==="shared"}>Shared Skills</option>
|
|
315
|
+
</select>
|
|
316
|
+
</div>
|
|
317
|
+
`:v}
|
|
318
|
+
</div>
|
|
319
|
+
<ic-tabs
|
|
320
|
+
.tabs=${E}
|
|
321
|
+
.activeTab=${this._activeTab}
|
|
322
|
+
@tab-change=${e=>{this._activeTab=e.detail}}
|
|
323
|
+
></ic-tabs>
|
|
324
|
+
<div style="margin-top: var(--ic-space-md);">
|
|
325
|
+
${this._renderTabContent()}
|
|
326
|
+
</div>
|
|
327
|
+
${this._renderRecentActivity()}
|
|
328
|
+
`}};c.styles=[w,S,$`
|
|
329
|
+
:host {
|
|
330
|
+
display: block;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.view-header {
|
|
334
|
+
margin-bottom: var(--ic-space-lg);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.view-title {
|
|
338
|
+
font-size: 1.125rem;
|
|
339
|
+
font-weight: 600;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Loading & error states */
|
|
343
|
+
.state-container {
|
|
344
|
+
display: flex;
|
|
345
|
+
align-items: center;
|
|
346
|
+
justify-content: center;
|
|
347
|
+
padding: 3rem;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.error-container {
|
|
351
|
+
display: flex;
|
|
352
|
+
flex-direction: column;
|
|
353
|
+
align-items: center;
|
|
354
|
+
gap: 0.75rem;
|
|
355
|
+
padding: 3rem;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.error-message {
|
|
359
|
+
color: var(--ic-error);
|
|
360
|
+
font-size: var(--ic-text-sm);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.retry-btn {
|
|
364
|
+
padding: 0.5rem 1rem;
|
|
365
|
+
background: var(--ic-surface-2);
|
|
366
|
+
border: 1px solid var(--ic-border);
|
|
367
|
+
border-radius: var(--ic-radius-md);
|
|
368
|
+
color: var(--ic-text-muted);
|
|
369
|
+
font-size: var(--ic-text-sm);
|
|
370
|
+
cursor: pointer;
|
|
371
|
+
font-family: inherit;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.retry-btn:hover {
|
|
375
|
+
background: var(--ic-border);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/* Category headers */
|
|
379
|
+
.category-header {
|
|
380
|
+
font-size: var(--ic-text-sm);
|
|
381
|
+
font-weight: 600;
|
|
382
|
+
color: var(--ic-text-muted);
|
|
383
|
+
text-transform: uppercase;
|
|
384
|
+
letter-spacing: 0.05em;
|
|
385
|
+
margin-top: var(--ic-space-lg);
|
|
386
|
+
margin-bottom: var(--ic-space-sm);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.category-header:first-of-type {
|
|
390
|
+
margin-top: 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Tool cards grid */
|
|
394
|
+
.tool-grid {
|
|
395
|
+
display: grid;
|
|
396
|
+
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
|
|
397
|
+
gap: var(--ic-space-md);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.tool-card {
|
|
401
|
+
background: var(--ic-surface);
|
|
402
|
+
border: 1px solid var(--ic-border);
|
|
403
|
+
border-radius: var(--ic-radius-md);
|
|
404
|
+
padding: var(--ic-space-md);
|
|
405
|
+
display: flex;
|
|
406
|
+
flex-direction: column;
|
|
407
|
+
gap: var(--ic-space-xs);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.tool-card-header {
|
|
411
|
+
display: flex;
|
|
412
|
+
align-items: center;
|
|
413
|
+
justify-content: space-between;
|
|
414
|
+
gap: var(--ic-space-sm);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.tool-name {
|
|
418
|
+
font-weight: 600;
|
|
419
|
+
font-size: var(--ic-text-sm);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.tool-desc {
|
|
423
|
+
font-size: var(--ic-text-xs);
|
|
424
|
+
color: var(--ic-text-dim);
|
|
425
|
+
line-height: 1.4;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.tool-params {
|
|
429
|
+
font-size: var(--ic-text-xs);
|
|
430
|
+
color: var(--ic-text-dim);
|
|
431
|
+
margin-top: var(--ic-space-xs);
|
|
432
|
+
padding-left: var(--ic-space-sm);
|
|
433
|
+
border-left: 2px solid var(--ic-border);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.tool-params li {
|
|
437
|
+
list-style: none;
|
|
438
|
+
padding: 1px 0;
|
|
439
|
+
font-family: var(--ic-font-mono, monospace);
|
|
440
|
+
font-size: 0.7rem;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* Tool status hint */
|
|
444
|
+
.tool-hint {
|
|
445
|
+
font-size: var(--ic-text-xs);
|
|
446
|
+
color: var(--ic-text-dim);
|
|
447
|
+
margin-top: var(--ic-space-sm);
|
|
448
|
+
font-style: italic;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* Prompt skills form */
|
|
452
|
+
.form-section {
|
|
453
|
+
display: flex;
|
|
454
|
+
flex-direction: column;
|
|
455
|
+
gap: var(--ic-space-md);
|
|
456
|
+
max-width: 32rem;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.form-field {
|
|
460
|
+
display: flex;
|
|
461
|
+
flex-direction: column;
|
|
462
|
+
gap: var(--ic-space-xs);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.form-label {
|
|
466
|
+
font-size: var(--ic-text-sm);
|
|
467
|
+
font-weight: 500;
|
|
468
|
+
color: var(--ic-text-muted);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.form-input {
|
|
472
|
+
padding: 0.5rem 0.75rem;
|
|
473
|
+
background: var(--ic-surface-2);
|
|
474
|
+
border: 1px solid var(--ic-border);
|
|
475
|
+
border-radius: var(--ic-radius-md);
|
|
476
|
+
color: var(--ic-text);
|
|
477
|
+
font-family: inherit;
|
|
478
|
+
font-size: var(--ic-text-sm);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.form-input:focus {
|
|
482
|
+
outline: none;
|
|
483
|
+
border-color: var(--ic-accent);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.form-row {
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: center;
|
|
489
|
+
gap: var(--ic-space-sm);
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/* Skill lists (allowed/denied) */
|
|
493
|
+
.list-section {
|
|
494
|
+
margin-top: var(--ic-space-lg);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.list-title {
|
|
498
|
+
font-size: var(--ic-text-sm);
|
|
499
|
+
font-weight: 600;
|
|
500
|
+
color: var(--ic-text-muted);
|
|
501
|
+
margin-bottom: var(--ic-space-sm);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.list-items {
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-wrap: wrap;
|
|
507
|
+
gap: var(--ic-space-xs);
|
|
508
|
+
margin-bottom: var(--ic-space-sm);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.list-item {
|
|
512
|
+
display: inline-flex;
|
|
513
|
+
align-items: center;
|
|
514
|
+
gap: var(--ic-space-xs);
|
|
515
|
+
background: var(--ic-surface-2);
|
|
516
|
+
border: 1px solid var(--ic-border);
|
|
517
|
+
border-radius: var(--ic-radius-md);
|
|
518
|
+
padding: 0.25rem 0.5rem;
|
|
519
|
+
font-size: var(--ic-text-xs);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.list-item-remove {
|
|
523
|
+
background: none;
|
|
524
|
+
border: none;
|
|
525
|
+
color: var(--ic-text-dim);
|
|
526
|
+
cursor: pointer;
|
|
527
|
+
padding: 0;
|
|
528
|
+
font-size: var(--ic-text-xs);
|
|
529
|
+
line-height: 1;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.list-item-remove:hover {
|
|
533
|
+
color: var(--ic-error);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.list-add-row {
|
|
537
|
+
display: flex;
|
|
538
|
+
gap: var(--ic-space-xs);
|
|
539
|
+
max-width: 20rem;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.list-add-input {
|
|
543
|
+
flex: 1;
|
|
544
|
+
padding: 0.375rem 0.5rem;
|
|
545
|
+
background: var(--ic-surface-2);
|
|
546
|
+
border: 1px solid var(--ic-border);
|
|
547
|
+
border-radius: var(--ic-radius-md);
|
|
548
|
+
color: var(--ic-text);
|
|
549
|
+
font-family: inherit;
|
|
550
|
+
font-size: var(--ic-text-xs);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.list-add-input:focus {
|
|
554
|
+
outline: none;
|
|
555
|
+
border-color: var(--ic-accent);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.list-add-btn {
|
|
559
|
+
padding: 0.375rem 0.75rem;
|
|
560
|
+
background: var(--ic-accent);
|
|
561
|
+
color: white;
|
|
562
|
+
border: none;
|
|
563
|
+
border-radius: var(--ic-radius-md);
|
|
564
|
+
font-size: var(--ic-text-xs);
|
|
565
|
+
cursor: pointer;
|
|
566
|
+
white-space: nowrap;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.list-add-btn:hover {
|
|
570
|
+
opacity: 0.9;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.empty-list {
|
|
574
|
+
font-size: var(--ic-text-xs);
|
|
575
|
+
color: var(--ic-text-dim);
|
|
576
|
+
font-style: italic;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* MCP server cards */
|
|
580
|
+
.server-list {
|
|
581
|
+
display: flex;
|
|
582
|
+
flex-direction: column;
|
|
583
|
+
gap: var(--ic-space-md);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.server-card {
|
|
587
|
+
background: var(--ic-surface);
|
|
588
|
+
border: 1px solid var(--ic-border);
|
|
589
|
+
border-radius: var(--ic-radius-md);
|
|
590
|
+
padding: var(--ic-space-md);
|
|
591
|
+
display: flex;
|
|
592
|
+
flex-direction: column;
|
|
593
|
+
gap: var(--ic-space-sm);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.server-header {
|
|
597
|
+
display: flex;
|
|
598
|
+
align-items: center;
|
|
599
|
+
justify-content: space-between;
|
|
600
|
+
gap: var(--ic-space-sm);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.server-name {
|
|
604
|
+
font-weight: 600;
|
|
605
|
+
font-size: var(--ic-text-sm);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.server-meta {
|
|
609
|
+
display: flex;
|
|
610
|
+
align-items: center;
|
|
611
|
+
gap: var(--ic-space-sm);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.server-command {
|
|
615
|
+
font-family: ui-monospace, monospace;
|
|
616
|
+
font-size: var(--ic-text-xs);
|
|
617
|
+
color: var(--ic-text-dim);
|
|
618
|
+
word-break: break-all;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.server-remove {
|
|
622
|
+
background: none;
|
|
623
|
+
border: none;
|
|
624
|
+
color: var(--ic-text-dim);
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
padding: 0.125rem 0.25rem;
|
|
627
|
+
font-size: var(--ic-text-sm);
|
|
628
|
+
line-height: 1;
|
|
629
|
+
border-radius: var(--ic-radius-sm);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.server-remove:hover {
|
|
633
|
+
color: var(--ic-error);
|
|
634
|
+
background: var(--ic-surface-2);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.server-test-btn {
|
|
638
|
+
background: var(--ic-surface-2);
|
|
639
|
+
border: 1px solid var(--ic-border);
|
|
640
|
+
color: var(--ic-text-muted);
|
|
641
|
+
cursor: pointer;
|
|
642
|
+
padding: 0.125rem 0.5rem;
|
|
643
|
+
font-size: var(--ic-text-xs);
|
|
644
|
+
border-radius: var(--ic-radius-sm);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.server-test-btn:hover:not(:disabled) {
|
|
648
|
+
background: var(--ic-surface-3, var(--ic-surface));
|
|
649
|
+
color: var(--ic-text);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.server-test-btn:disabled {
|
|
653
|
+
opacity: 0.6;
|
|
654
|
+
cursor: not-allowed;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.server-test-result {
|
|
658
|
+
font-size: var(--ic-text-xs);
|
|
659
|
+
padding: 0.25rem 0.5rem;
|
|
660
|
+
border-radius: var(--ic-radius-sm);
|
|
661
|
+
margin-top: 0.125rem;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.server-test-success {
|
|
665
|
+
color: var(--ic-success, #22c55e);
|
|
666
|
+
background: rgba(34, 197, 94, 0.1);
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.server-env-badge {
|
|
670
|
+
display: inline-block;
|
|
671
|
+
font-family: ui-monospace, monospace;
|
|
672
|
+
font-size: var(--ic-text-xs);
|
|
673
|
+
color: var(--ic-text-dim);
|
|
674
|
+
background: rgba(147, 130, 220, 0.15);
|
|
675
|
+
padding: 1px 6px;
|
|
676
|
+
border-radius: 4px;
|
|
677
|
+
margin-top: 2px;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.server-test-error {
|
|
681
|
+
color: var(--ic-error, #ef4444);
|
|
682
|
+
background: rgba(239, 68, 68, 0.1);
|
|
683
|
+
word-break: break-word;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/* Add server form */
|
|
687
|
+
.add-server-form {
|
|
688
|
+
background: var(--ic-surface);
|
|
689
|
+
border: 1px solid var(--ic-border);
|
|
690
|
+
border-radius: var(--ic-radius-md);
|
|
691
|
+
padding: var(--ic-space-md);
|
|
692
|
+
display: flex;
|
|
693
|
+
flex-direction: column;
|
|
694
|
+
gap: var(--ic-space-sm);
|
|
695
|
+
margin-top: var(--ic-space-lg);
|
|
696
|
+
max-width: 32rem;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.add-server-title {
|
|
700
|
+
font-size: var(--ic-text-sm);
|
|
701
|
+
font-weight: 600;
|
|
702
|
+
color: var(--ic-text-muted);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.add-server-row {
|
|
706
|
+
display: flex;
|
|
707
|
+
gap: var(--ic-space-sm);
|
|
708
|
+
flex-wrap: wrap;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.add-server-input {
|
|
712
|
+
flex: 1;
|
|
713
|
+
min-width: 10rem;
|
|
714
|
+
padding: 0.5rem 0.75rem;
|
|
715
|
+
background: var(--ic-surface-2);
|
|
716
|
+
border: 1px solid var(--ic-border);
|
|
717
|
+
border-radius: var(--ic-radius-md);
|
|
718
|
+
color: var(--ic-text);
|
|
719
|
+
font-family: inherit;
|
|
720
|
+
font-size: var(--ic-text-sm);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.add-server-input:focus {
|
|
724
|
+
outline: none;
|
|
725
|
+
border-color: var(--ic-accent);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.add-server-select {
|
|
729
|
+
padding: 0.5rem 0.75rem;
|
|
730
|
+
background: var(--ic-surface-2);
|
|
731
|
+
border: 1px solid var(--ic-border);
|
|
732
|
+
border-radius: var(--ic-radius-md);
|
|
733
|
+
color: var(--ic-text);
|
|
734
|
+
font-family: inherit;
|
|
735
|
+
font-size: var(--ic-text-sm);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.add-server-btn {
|
|
739
|
+
padding: 0.5rem 1rem;
|
|
740
|
+
background: var(--ic-accent);
|
|
741
|
+
color: white;
|
|
742
|
+
border: none;
|
|
743
|
+
border-radius: var(--ic-radius-md);
|
|
744
|
+
font-size: var(--ic-text-sm);
|
|
745
|
+
cursor: pointer;
|
|
746
|
+
white-space: nowrap;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.add-server-btn:hover {
|
|
750
|
+
opacity: 0.9;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/* Tool policy */
|
|
754
|
+
.policy-section {
|
|
755
|
+
max-width: 32rem;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.policy-field {
|
|
759
|
+
display: flex;
|
|
760
|
+
flex-direction: column;
|
|
761
|
+
gap: var(--ic-space-xs);
|
|
762
|
+
margin-bottom: var(--ic-space-md);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.policy-select {
|
|
766
|
+
padding: 0.5rem 0.75rem;
|
|
767
|
+
background: var(--ic-surface-2);
|
|
768
|
+
border: 1px solid var(--ic-border);
|
|
769
|
+
border-radius: var(--ic-radius-md);
|
|
770
|
+
color: var(--ic-text);
|
|
771
|
+
font-family: inherit;
|
|
772
|
+
font-size: var(--ic-text-sm);
|
|
773
|
+
max-width: 16rem;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.policy-select:focus {
|
|
777
|
+
outline: none;
|
|
778
|
+
border-color: var(--ic-accent);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/* Resolved tool set */
|
|
782
|
+
.resolved-section {
|
|
783
|
+
margin-top: var(--ic-space-lg);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.resolved-title {
|
|
787
|
+
font-size: var(--ic-text-sm);
|
|
788
|
+
font-weight: 600;
|
|
789
|
+
color: var(--ic-text-muted);
|
|
790
|
+
margin-bottom: var(--ic-space-sm);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.resolved-tools {
|
|
794
|
+
display: flex;
|
|
795
|
+
flex-wrap: wrap;
|
|
796
|
+
gap: var(--ic-space-xs);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.resolved-denied {
|
|
800
|
+
opacity: 0.4;
|
|
801
|
+
text-decoration: line-through;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/* Add Skill panel */
|
|
805
|
+
.add-skill-panel {
|
|
806
|
+
margin-top: var(--ic-space-xl);
|
|
807
|
+
background: var(--ic-surface);
|
|
808
|
+
border: 1px solid var(--ic-border);
|
|
809
|
+
border-radius: var(--ic-radius-lg);
|
|
810
|
+
padding: var(--ic-space-lg);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.add-skill-title {
|
|
814
|
+
font-size: var(--ic-text-base);
|
|
815
|
+
font-weight: 600;
|
|
816
|
+
color: var(--ic-text);
|
|
817
|
+
margin-bottom: var(--ic-space-sm);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.install-target {
|
|
821
|
+
display: flex;
|
|
822
|
+
align-items: center;
|
|
823
|
+
gap: var(--ic-space-sm);
|
|
824
|
+
padding: var(--ic-space-sm) var(--ic-space-md);
|
|
825
|
+
background: var(--ic-surface-2, #1f2937);
|
|
826
|
+
border-radius: var(--ic-radius-md);
|
|
827
|
+
margin-bottom: var(--ic-space-lg);
|
|
828
|
+
flex-wrap: wrap;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.install-target-label {
|
|
832
|
+
font-size: var(--ic-text-sm);
|
|
833
|
+
color: var(--ic-text-dim);
|
|
834
|
+
white-space: nowrap;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.install-target-select {
|
|
838
|
+
padding: 0.25rem 0.5rem;
|
|
839
|
+
background: var(--ic-surface);
|
|
840
|
+
border: 1px solid var(--ic-border);
|
|
841
|
+
border-radius: var(--ic-radius-md);
|
|
842
|
+
color: var(--ic-text);
|
|
843
|
+
font-size: var(--ic-text-sm);
|
|
844
|
+
font-family: inherit;
|
|
845
|
+
cursor: pointer;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.install-target-select:focus-visible {
|
|
849
|
+
outline: 2px solid var(--ic-accent);
|
|
850
|
+
outline-offset: 2px;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.install-target-hint {
|
|
854
|
+
font-size: var(--ic-text-xs);
|
|
855
|
+
color: var(--ic-text-dim);
|
|
856
|
+
font-style: italic;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.add-skill-methods {
|
|
860
|
+
display: grid;
|
|
861
|
+
grid-template-columns: 1fr 1fr;
|
|
862
|
+
gap: var(--ic-space-md);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
@media (max-width: 767px) {
|
|
866
|
+
.add-skill-methods {
|
|
867
|
+
grid-template-columns: 1fr;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.add-skill-method {
|
|
872
|
+
display: flex;
|
|
873
|
+
flex-direction: column;
|
|
874
|
+
gap: var(--ic-space-sm);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
.add-skill-method-title {
|
|
878
|
+
font-size: var(--ic-text-sm);
|
|
879
|
+
font-weight: 600;
|
|
880
|
+
color: var(--ic-text-muted);
|
|
881
|
+
text-transform: uppercase;
|
|
882
|
+
letter-spacing: 0.05em;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.add-skill-method-body {
|
|
886
|
+
flex: 1;
|
|
887
|
+
display: flex;
|
|
888
|
+
align-items: center;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.upload-skill-btn {
|
|
892
|
+
display: block;
|
|
893
|
+
width: 100%;
|
|
894
|
+
padding: 0.75rem;
|
|
895
|
+
background: var(--ic-surface);
|
|
896
|
+
border: 2px dashed var(--ic-border);
|
|
897
|
+
border-radius: var(--ic-radius-md);
|
|
898
|
+
color: var(--ic-accent);
|
|
899
|
+
font-size: var(--ic-text-sm);
|
|
900
|
+
font-weight: 500;
|
|
901
|
+
cursor: pointer;
|
|
902
|
+
font-family: inherit;
|
|
903
|
+
text-align: center;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.upload-skill-btn:hover {
|
|
907
|
+
border-color: var(--ic-accent);
|
|
908
|
+
background: color-mix(in srgb, var(--ic-accent) 5%, var(--ic-surface));
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
.upload-skill-btn:disabled {
|
|
912
|
+
opacity: 0.5;
|
|
913
|
+
cursor: not-allowed;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.upload-skill-hint {
|
|
917
|
+
font-size: var(--ic-text-xs);
|
|
918
|
+
color: var(--ic-text-dim);
|
|
919
|
+
text-align: center;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.import-skill-row {
|
|
923
|
+
display: flex;
|
|
924
|
+
gap: var(--ic-space-sm);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.import-skill-row input {
|
|
928
|
+
flex: 1;
|
|
929
|
+
min-width: 0;
|
|
930
|
+
padding: 0.5rem 0.75rem;
|
|
931
|
+
background: var(--ic-surface-2);
|
|
932
|
+
border: 1px solid var(--ic-border);
|
|
933
|
+
border-radius: var(--ic-radius-md);
|
|
934
|
+
color: var(--ic-text);
|
|
935
|
+
font-family: inherit;
|
|
936
|
+
font-size: var(--ic-text-sm);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
.import-skill-row input:focus {
|
|
940
|
+
outline: none;
|
|
941
|
+
border-color: var(--ic-accent);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.import-skill-btn {
|
|
945
|
+
padding: 0.5rem 1rem;
|
|
946
|
+
background: var(--ic-accent);
|
|
947
|
+
color: white;
|
|
948
|
+
border: none;
|
|
949
|
+
border-radius: var(--ic-radius-md);
|
|
950
|
+
font-size: var(--ic-text-sm);
|
|
951
|
+
font-weight: 500;
|
|
952
|
+
cursor: pointer;
|
|
953
|
+
white-space: nowrap;
|
|
954
|
+
font-family: inherit;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.import-skill-btn:hover {
|
|
958
|
+
opacity: 0.9;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.import-skill-btn:disabled {
|
|
962
|
+
opacity: 0.5;
|
|
963
|
+
cursor: not-allowed;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.skill-delete-btn {
|
|
967
|
+
background: none;
|
|
968
|
+
border: none;
|
|
969
|
+
color: var(--ic-text-dim);
|
|
970
|
+
cursor: pointer;
|
|
971
|
+
padding: 0;
|
|
972
|
+
font-size: var(--ic-text-xs);
|
|
973
|
+
line-height: 1;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.skill-delete-btn:hover {
|
|
977
|
+
color: var(--ic-error);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
/* Recent activity section (SSE live events) */
|
|
981
|
+
.recent-activity {
|
|
982
|
+
margin-top: var(--ic-space-lg);
|
|
983
|
+
border-top: 1px solid var(--ic-border);
|
|
984
|
+
padding-top: var(--ic-space-lg);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.recent-activity h3 {
|
|
988
|
+
font-size: var(--ic-text-sm);
|
|
989
|
+
font-weight: 600;
|
|
990
|
+
color: var(--ic-text-muted);
|
|
991
|
+
text-transform: uppercase;
|
|
992
|
+
letter-spacing: 0.05em;
|
|
993
|
+
margin-bottom: var(--ic-space-sm);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.recent-activity-count {
|
|
997
|
+
font-size: var(--ic-text-xs);
|
|
998
|
+
color: var(--ic-text-dim);
|
|
999
|
+
font-weight: 400;
|
|
1000
|
+
text-transform: none;
|
|
1001
|
+
letter-spacing: normal;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.event-list {
|
|
1005
|
+
display: flex;
|
|
1006
|
+
flex-direction: column;
|
|
1007
|
+
gap: var(--ic-space-xs);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.event-entry {
|
|
1011
|
+
display: flex;
|
|
1012
|
+
align-items: center;
|
|
1013
|
+
gap: var(--ic-space-sm);
|
|
1014
|
+
padding: var(--ic-space-xs) var(--ic-space-sm);
|
|
1015
|
+
background: var(--ic-surface);
|
|
1016
|
+
border: 1px solid var(--ic-border);
|
|
1017
|
+
border-radius: var(--ic-radius-md);
|
|
1018
|
+
font-size: var(--ic-text-xs);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.event-skill {
|
|
1022
|
+
font-family: var(--ic-font-mono, monospace);
|
|
1023
|
+
font-weight: 500;
|
|
1024
|
+
color: var(--ic-text);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.event-agent {
|
|
1028
|
+
color: var(--ic-text-dim);
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.event-outcome--executed {
|
|
1032
|
+
color: #22c55e;
|
|
1033
|
+
font-weight: 500;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.event-outcome--rejected {
|
|
1037
|
+
color: #ef4444;
|
|
1038
|
+
font-weight: 500;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.event-reason {
|
|
1042
|
+
color: var(--ic-text-dim);
|
|
1043
|
+
font-style: italic;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
.event-time {
|
|
1047
|
+
margin-left: auto;
|
|
1048
|
+
color: var(--ic-text-dim);
|
|
1049
|
+
white-space: nowrap;
|
|
1050
|
+
}
|
|
1051
|
+
`];d([u({attribute:!1})],c.prototype,"apiClient",2);d([u({attribute:!1})],c.prototype,"rpcClient",2);d([u({attribute:!1})],c.prototype,"eventDispatcher",2);d([p()],c.prototype,"_loadState",2);d([p()],c.prototype,"_recentSkillEvents",2);d([p()],c.prototype,"_error",2);d([p()],c.prototype,"_activeTab",2);d([p()],c.prototype,"_skillsConfig",2);d([p()],c.prototype,"_discoveredSkills",2);d([p()],c.prototype,"_targetAgentId",2);d([p()],c.prototype,"_agentIds",2);d([p()],c.prototype,"_skillScope",2);d([p()],c.prototype,"_defaultAgentId",2);d([p()],c.prototype,"_searchQuery",2);d([p()],c.prototype,"_importUrl",2);d([p()],c.prototype,"_isImportingSkill",2);d([p()],c.prototype,"_isUploadingSkill",2);d([p()],c.prototype,"_deletingSkill",2);d([p()],c.prototype,"_installAgent",2);d([p()],c.prototype,"_installScope",2);d([p()],c.prototype,"_newAllowedSkill",2);d([p()],c.prototype,"_newDeniedSkill",2);d([p()],c.prototype,"_newPolicyAllow",2);d([p()],c.prototype,"_newPolicyDeny",2);c=d([C("ic-skills-view")],c);export{c as IcSkillsView};
|