comisai 1.0.16 → 1.0.17
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 +4 -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,393 @@
|
|
|
1
|
+
import{a as h,b as s,A as n,s as v,f as m,i as u,n as g,r,t as _}from"./index-CEcM1R_C.js";import"./ic-empty-state-60l2ePhd.js";import"./ic-search-input-CSOxY9g7.js";import"./ic-tag-CPPUnDLF.js";import"./ic-relative-time-3FqpjeAI.js";import"./ic-detail-panel-BF83r-if.js";import"./ic-icon-xeGTVhVG.js";var f=Object.defineProperty,x=Object.getOwnPropertyDescriptor,i=(e,t,l,d)=>{for(var o=d>1?void 0:d?x(t,l):t,c=e.length-1,p;c>=0;c--)(p=e[c])&&(o=(d?p(t,l,o):p(o))||o);return d&&o&&f(t,l,o),o};let a=class extends h{constructor(){super(...arguments),this.rpcClient=null,this._loadState="loading",this._conversations=[],this._selectedConvId=null,this._treeNodes=[],this._treeMessageCount=0,this._expanded=new Set,this._searchQuery="",this._searchResults=[],this._inspectedNode=null,this._detailOpen=!1,this._treeLoading=!1,this._searchLoading=!1,this._errorMsg="",this._searchTimeout=null,this._rpcClientInitialized=!1}updated(e){e.has("rpcClient")&&this.rpcClient&&!this._rpcClientInitialized&&(this._rpcClientInitialized=!0,this._loadConversations())}async _loadConversations(){if(this.rpcClient){this._loadState="loading";try{const e=await this.rpcClient.call("context.conversations",{limit:100,offset:0});this._conversations=e.conversations,this._loadState="loaded"}catch(e){this._errorMsg=e.message,this._loadState="error"}}}async _selectConversation(e){this._selectedConvId!==e&&(this._selectedConvId=e,this._treeNodes=[],this._searchQuery="",this._searchResults=[],this._expanded=new Set,this._inspectedNode=null,this._detailOpen=!1,await this._loadTree(e))}async _loadTree(e){if(this.rpcClient){this._treeLoading=!0;try{const t=await this.rpcClient.call("context.tree",{conversation_id:e});this._treeNodes=t.nodes,this._treeMessageCount=t.messageCount}catch(t){this._errorMsg=t.message}finally{this._treeLoading=!1}}}_toggleNode(e){const t=new Set(this._expanded);t.has(e)?t.delete(e):t.add(e),this._expanded=t}async _inspectNode(e){if(this.rpcClient)try{const t=await this.rpcClient.call("context.inspect",{id:e});this._inspectedNode=t,this._detailOpen=!0}catch(t){this._errorMsg=t.message}}_handleSearch(e){const t=e.detail;if(this._searchQuery=t,this._searchTimeout&&clearTimeout(this._searchTimeout),!t){this._searchResults=[];return}this._searchTimeout=setTimeout(()=>this._executeSearch(t),300)}async _executeSearch(e){if(!(!this.rpcClient||!this._selectedConvId)){this._searchLoading=!0;try{const t=await this.rpcClient.call("context.searchByConversation",{conversation_id:this._selectedConvId,query:e,limit:50});this._searchResults=t.results}catch(t){this._errorMsg=t.message}finally{this._searchLoading=!1}}}_handleSearchResultClick(e){e.type==="summary"?this._inspectNode(e.id):(this._inspectedNode={type:"message",content:e.content},this._detailOpen=!0)}_renderConversationList(){return this._conversations.length===0?s`<ic-empty-state message="No conversations found"></ic-empty-state>`:s`
|
|
2
|
+
<div class="conv-panel-title">Conversations</div>
|
|
3
|
+
${this._conversations.map(e=>s`
|
|
4
|
+
<button
|
|
5
|
+
class="conv-card ${this._selectedConvId===e.conversation_id?"selected":""}"
|
|
6
|
+
@click=${()=>this._selectConversation(e.conversation_id)}
|
|
7
|
+
>
|
|
8
|
+
<div class="conv-agent">${e.agent_id}</div>
|
|
9
|
+
<div class="conv-session">${e.session_key.length>40?e.session_key.slice(0,40)+"...":e.session_key}</div>
|
|
10
|
+
${e.title?s`<div class="conv-session">${e.title}</div>`:n}
|
|
11
|
+
<div class="conv-meta">
|
|
12
|
+
<ic-relative-time .timestamp=${new Date(e.updated_at).getTime()}></ic-relative-time>
|
|
13
|
+
</div>
|
|
14
|
+
</button>
|
|
15
|
+
`)}
|
|
16
|
+
`}_getRootNodes(){return this._treeNodes.filter(e=>e.parentIds.length===0||e.depth===0)}_renderNode(e){const t=e.childIds.length>0,l=this._expanded.has(e.summaryId),d=this._inspectedNode?.summaryId===e.summaryId,o=t&&l?this._treeNodes.filter(c=>e.childIds.includes(c.summaryId)):[];return s`
|
|
17
|
+
<div style="padding-left: ${e.depth*16}px">
|
|
18
|
+
<div
|
|
19
|
+
class="tree-node ${d?"inspected":""}"
|
|
20
|
+
@click=${()=>this._inspectNode(e.summaryId)}
|
|
21
|
+
>
|
|
22
|
+
<span
|
|
23
|
+
class="tree-chevron ${t?l?"expanded":"":"leaf"}"
|
|
24
|
+
@click=${c=>{c.stopPropagation(),t&&this._toggleNode(e.summaryId)}}
|
|
25
|
+
>${t?"▶":""}</span>
|
|
26
|
+
<div class="tree-content">
|
|
27
|
+
<div class="tree-node-header">
|
|
28
|
+
<ic-tag .label=${e.kind}></ic-tag>
|
|
29
|
+
<span class="tree-node-meta">d${e.depth} | ${e.tokenCount}t</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="tree-preview">${e.contentPreview.slice(0,100)}</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
${o.map(c=>this._renderNode(c))}
|
|
35
|
+
</div>
|
|
36
|
+
`}_renderTree(){if(this._treeLoading)return s`<ic-loading></ic-loading>`;if(this._treeNodes.length===0)return s`<ic-empty-state message="No summaries in this conversation"></ic-empty-state>`;const e=this._getRootNodes();return s`${e.map(t=>this._renderNode(t))}`}_renderSearchResults(){return this._searchLoading?s`<ic-loading></ic-loading>`:this._searchResults.length===0?s`<ic-empty-state message="No results found"></ic-empty-state>`:s`
|
|
37
|
+
<div class="search-results">
|
|
38
|
+
${this._searchResults.map(e=>s`
|
|
39
|
+
<div class="search-result" @click=${()=>this._handleSearchResultClick(e)}>
|
|
40
|
+
<ic-tag .label=${e.type}></ic-tag>
|
|
41
|
+
<div class="search-result-content">${e.content.slice(0,150)}</div>
|
|
42
|
+
${e.rank!=null?s`<span class="search-rank">${e.rank.toFixed(2)}</span>`:n}
|
|
43
|
+
</div>
|
|
44
|
+
`)}
|
|
45
|
+
</div>
|
|
46
|
+
`}_renderDetailPanel(){if(!this._inspectedNode)return n;const e=this._inspectedNode;return s`
|
|
47
|
+
<ic-detail-panel
|
|
48
|
+
?open=${this._detailOpen}
|
|
49
|
+
panelTitle="${e.type==="summary"?"Summary Detail":"Message Detail"}"
|
|
50
|
+
@close=${()=>{this._detailOpen=!1}}
|
|
51
|
+
>
|
|
52
|
+
<div class="detail-section">
|
|
53
|
+
<div class="detail-label">Content</div>
|
|
54
|
+
<div class="detail-content">${e.content}</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
${e.type==="summary"?s`
|
|
58
|
+
<div class="detail-section">
|
|
59
|
+
<div class="detail-label">Metadata</div>
|
|
60
|
+
<div class="detail-meta-grid">
|
|
61
|
+
${e.summaryId?s`<span class="detail-meta-key">ID</span><span class="detail-meta-val">${e.summaryId}</span>`:n}
|
|
62
|
+
${e.kind?s`<span class="detail-meta-key">Kind</span><span class="detail-meta-val">${e.kind}</span>`:n}
|
|
63
|
+
${e.depth!=null?s`<span class="detail-meta-key">Depth</span><span class="detail-meta-val">${e.depth}</span>`:n}
|
|
64
|
+
${e.tokenCount!=null?s`<span class="detail-meta-key">Tokens</span><span class="detail-meta-val">${e.tokenCount}</span>`:n}
|
|
65
|
+
${e.sourceMessageCount!=null?s`<span class="detail-meta-key">Source Messages</span><span class="detail-meta-val">${e.sourceMessageCount}</span>`:n}
|
|
66
|
+
${e.parentIds?s`<span class="detail-meta-key">Parents</span><span class="detail-meta-val">${e.parentIds.length>0?e.parentIds.join(", "):"none"}</span>`:n}
|
|
67
|
+
${e.childIds?s`<span class="detail-meta-key">Children</span><span class="detail-meta-val">${e.childIds.length>0?e.childIds.join(", "):"none"}</span>`:n}
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
`:n}
|
|
71
|
+
</ic-detail-panel>
|
|
72
|
+
`}render(){if(this._loadState==="loading")return s`<ic-loading></ic-loading>`;if(this._loadState==="error")return s`<div class="error-msg">Failed to load conversations: ${this._errorMsg}</div>`;const e=this._selectedConvId!==null;return s`
|
|
73
|
+
<div class="header-row">
|
|
74
|
+
<span class="header-title">Context DAG Browser</span>
|
|
75
|
+
<span class="header-stats">${this._conversations.length} conversations</span>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<div class="layout ${e?"":"no-tree"}">
|
|
79
|
+
<div class="conv-panel">
|
|
80
|
+
${this._renderConversationList()}
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
${e?s`
|
|
84
|
+
<div class="tree-panel">
|
|
85
|
+
<div class="tree-header">
|
|
86
|
+
<span class="tree-title">Summary Tree</span>
|
|
87
|
+
<span class="tree-msg-count">${this._treeMessageCount} messages</span>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div class="search-section">
|
|
91
|
+
<ic-search-input
|
|
92
|
+
placeholder="Search messages & summaries..."
|
|
93
|
+
debounce="300"
|
|
94
|
+
@search=${this._handleSearch}
|
|
95
|
+
></ic-search-input>
|
|
96
|
+
</div>
|
|
97
|
+
|
|
98
|
+
${this._searchQuery?this._renderSearchResults():this._renderTree()}
|
|
99
|
+
</div>
|
|
100
|
+
`:n}
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
${this._renderDetailPanel()}
|
|
104
|
+
`}};a.styles=[v,m,u`
|
|
105
|
+
:host {
|
|
106
|
+
display: block;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.header-row {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
margin-bottom: var(--ic-space-md);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.header-title {
|
|
117
|
+
font-size: var(--ic-text-lg);
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
color: var(--ic-text);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.header-stats {
|
|
123
|
+
font-size: var(--ic-text-sm);
|
|
124
|
+
color: var(--ic-text-dim);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.layout {
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: 320px 1fr;
|
|
130
|
+
gap: var(--ic-space-md);
|
|
131
|
+
min-height: 400px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.layout.no-tree {
|
|
135
|
+
grid-template-columns: 1fr;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Conversation list panel */
|
|
139
|
+
.conv-panel {
|
|
140
|
+
background: var(--ic-surface);
|
|
141
|
+
border: 1px solid var(--ic-border);
|
|
142
|
+
border-radius: var(--ic-radius-md);
|
|
143
|
+
padding: var(--ic-space-sm);
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
max-height: 80vh;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.conv-panel-title {
|
|
149
|
+
font-size: var(--ic-text-sm);
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
color: var(--ic-text-muted);
|
|
152
|
+
text-transform: uppercase;
|
|
153
|
+
letter-spacing: 0.05em;
|
|
154
|
+
padding: var(--ic-space-xs) var(--ic-space-sm);
|
|
155
|
+
margin-bottom: var(--ic-space-xs);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.conv-card {
|
|
159
|
+
display: block;
|
|
160
|
+
width: 100%;
|
|
161
|
+
padding: var(--ic-space-sm);
|
|
162
|
+
background: none;
|
|
163
|
+
border: 1px solid transparent;
|
|
164
|
+
border-radius: var(--ic-radius-sm);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
text-align: left;
|
|
167
|
+
color: var(--ic-text-muted);
|
|
168
|
+
font-family: inherit;
|
|
169
|
+
font-size: var(--ic-text-sm);
|
|
170
|
+
transition: background var(--ic-transition), border-color var(--ic-transition);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.conv-card:hover {
|
|
174
|
+
background: var(--ic-surface-2);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.conv-card.selected {
|
|
178
|
+
background: rgba(59, 130, 246, 0.1);
|
|
179
|
+
border-color: var(--ic-accent);
|
|
180
|
+
color: var(--ic-text);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.conv-agent {
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
color: var(--ic-text);
|
|
186
|
+
margin-bottom: 2px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.conv-session {
|
|
190
|
+
font-size: 11px;
|
|
191
|
+
color: var(--ic-text-dim);
|
|
192
|
+
overflow: hidden;
|
|
193
|
+
text-overflow: ellipsis;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.conv-meta {
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
gap: var(--ic-space-xs);
|
|
201
|
+
margin-top: 4px;
|
|
202
|
+
font-size: 11px;
|
|
203
|
+
color: var(--ic-text-dim);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Tree panel */
|
|
207
|
+
.tree-panel {
|
|
208
|
+
background: var(--ic-surface);
|
|
209
|
+
border: 1px solid var(--ic-border);
|
|
210
|
+
border-radius: var(--ic-radius-md);
|
|
211
|
+
padding: var(--ic-space-md);
|
|
212
|
+
overflow-y: auto;
|
|
213
|
+
max-height: 80vh;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.tree-header {
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
justify-content: space-between;
|
|
220
|
+
margin-bottom: var(--ic-space-sm);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.tree-title {
|
|
224
|
+
font-size: var(--ic-text-sm);
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
color: var(--ic-text);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.tree-msg-count {
|
|
230
|
+
font-size: var(--ic-text-xs);
|
|
231
|
+
color: var(--ic-text-dim);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.search-section {
|
|
235
|
+
margin-bottom: var(--ic-space-sm);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Tree nodes */
|
|
239
|
+
.tree-node {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: flex-start;
|
|
242
|
+
gap: var(--ic-space-xs);
|
|
243
|
+
padding: 4px var(--ic-space-xs);
|
|
244
|
+
border-radius: var(--ic-radius-sm);
|
|
245
|
+
cursor: pointer;
|
|
246
|
+
transition: background var(--ic-transition);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.tree-node:hover {
|
|
250
|
+
background: var(--ic-surface-2);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.tree-node.inspected {
|
|
254
|
+
background: rgba(59, 130, 246, 0.08);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.tree-chevron {
|
|
258
|
+
display: inline-flex;
|
|
259
|
+
align-items: center;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
width: 16px;
|
|
262
|
+
height: 16px;
|
|
263
|
+
font-size: 10px;
|
|
264
|
+
color: var(--ic-text-dim);
|
|
265
|
+
flex-shrink: 0;
|
|
266
|
+
margin-top: 2px;
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
transition: transform var(--ic-transition);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.tree-chevron.expanded {
|
|
272
|
+
transform: rotate(90deg);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.tree-chevron.leaf {
|
|
276
|
+
visibility: hidden;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.tree-content {
|
|
280
|
+
flex: 1;
|
|
281
|
+
min-width: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.tree-node-header {
|
|
285
|
+
display: flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
gap: var(--ic-space-xs);
|
|
288
|
+
font-size: var(--ic-text-sm);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.tree-preview {
|
|
292
|
+
font-size: 12px;
|
|
293
|
+
color: var(--ic-text-dim);
|
|
294
|
+
margin-top: 2px;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
white-space: nowrap;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.tree-node-meta {
|
|
301
|
+
font-size: 11px;
|
|
302
|
+
color: var(--ic-text-dim);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* Search results */
|
|
306
|
+
.search-results {
|
|
307
|
+
margin-top: var(--ic-space-sm);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.search-result {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: flex-start;
|
|
313
|
+
gap: var(--ic-space-xs);
|
|
314
|
+
padding: var(--ic-space-xs) var(--ic-space-sm);
|
|
315
|
+
border-radius: var(--ic-radius-sm);
|
|
316
|
+
cursor: pointer;
|
|
317
|
+
transition: background var(--ic-transition);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.search-result:hover {
|
|
321
|
+
background: var(--ic-surface-2);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.search-result-content {
|
|
325
|
+
flex: 1;
|
|
326
|
+
font-size: var(--ic-text-sm);
|
|
327
|
+
color: var(--ic-text-muted);
|
|
328
|
+
overflow: hidden;
|
|
329
|
+
text-overflow: ellipsis;
|
|
330
|
+
display: -webkit-box;
|
|
331
|
+
-webkit-line-clamp: 2;
|
|
332
|
+
-webkit-box-orient: vertical;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.search-rank {
|
|
336
|
+
font-size: 11px;
|
|
337
|
+
color: var(--ic-text-dim);
|
|
338
|
+
flex-shrink: 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Detail panel content */
|
|
342
|
+
.detail-section {
|
|
343
|
+
margin-bottom: var(--ic-space-md);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.detail-label {
|
|
347
|
+
font-size: 11px;
|
|
348
|
+
font-weight: 600;
|
|
349
|
+
text-transform: uppercase;
|
|
350
|
+
letter-spacing: 0.05em;
|
|
351
|
+
color: var(--ic-text-dim);
|
|
352
|
+
margin-bottom: var(--ic-space-xs);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.detail-value {
|
|
356
|
+
font-size: var(--ic-text-sm);
|
|
357
|
+
color: var(--ic-text);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.detail-content {
|
|
361
|
+
font-size: var(--ic-text-sm);
|
|
362
|
+
color: var(--ic-text);
|
|
363
|
+
white-space: pre-wrap;
|
|
364
|
+
word-break: break-word;
|
|
365
|
+
max-height: 400px;
|
|
366
|
+
overflow-y: auto;
|
|
367
|
+
background: var(--ic-surface-2);
|
|
368
|
+
border-radius: var(--ic-radius-sm);
|
|
369
|
+
padding: var(--ic-space-sm);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.detail-meta-grid {
|
|
373
|
+
display: grid;
|
|
374
|
+
grid-template-columns: auto 1fr;
|
|
375
|
+
gap: 4px var(--ic-space-sm);
|
|
376
|
+
font-size: var(--ic-text-sm);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.detail-meta-key {
|
|
380
|
+
color: var(--ic-text-dim);
|
|
381
|
+
font-weight: 500;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.detail-meta-val {
|
|
385
|
+
color: var(--ic-text);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.error-msg {
|
|
389
|
+
color: var(--ic-error);
|
|
390
|
+
font-size: var(--ic-text-sm);
|
|
391
|
+
padding: var(--ic-space-md);
|
|
392
|
+
}
|
|
393
|
+
`];i([g({attribute:!1})],a.prototype,"rpcClient",2);i([r()],a.prototype,"_loadState",2);i([r()],a.prototype,"_conversations",2);i([r()],a.prototype,"_selectedConvId",2);i([r()],a.prototype,"_treeNodes",2);i([r()],a.prototype,"_treeMessageCount",2);i([r()],a.prototype,"_expanded",2);i([r()],a.prototype,"_searchQuery",2);i([r()],a.prototype,"_searchResults",2);i([r()],a.prototype,"_inspectedNode",2);i([r()],a.prototype,"_detailOpen",2);i([r()],a.prototype,"_treeLoading",2);i([r()],a.prototype,"_searchLoading",2);i([r()],a.prototype,"_errorMsg",2);a=i([_("ic-context-dag-browser")],a);export{a as IcContextDagBrowser};
|