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,193 @@
|
|
|
1
|
+
import{a as h,S as v,I as m,A as c,b as s,s as _,f as b,i as g,n as d,r as p,t as f}from"./index-CEcM1R_C.js";import"./ic-empty-state-60l2ePhd.js";import"./ic-confirm-dialog-CCDbB04e.js";import"./ic-tag-CPPUnDLF.js";import"./ic-relative-time-3FqpjeAI.js";import"./ic-icon-xeGTVhVG.js";var x=Object.defineProperty,w=Object.getOwnPropertyDescriptor,n=(t,e,a,l)=>{for(var i=l>1?void 0:l?w(e,a):e,o=t.length-1,u;o>=0;o--)(u=t[o])&&(i=(l?u(e,a,i):u(i))||i);return l&&i&&x(e,a,i),i};let r=class extends h{constructor(){super(...arguments),this.rpcClient=null,this.apiClient=null,this.eventDispatcher=null,this._loadState="loading",this._runs=[],this._confirmKillRunId=null,this._sse=null,this._reloadDebounce=null,this._rpcStatusUnsub=null}connectedCallback(){super.connectedCallback(),this._initSse()}_initSse(){if(!this.eventDispatcher||this._sse)return;const t=()=>{this._scheduleReload()};this._sse=new v(this,this.eventDispatcher,{"session:sub_agent_spawned":t,"session:sub_agent_completed":t,"session:sub_agent_archived":t,"session:sub_agent_spawn_rejected":t,"session:sub_agent_spawn_started":t,"session:sub_agent_spawn_queued":t,"session:sub_agent_lifecycle_ended":t})}_scheduleReload(t=300){this._reloadDebounce!==null&&clearTimeout(this._reloadDebounce),this._reloadDebounce=setTimeout(()=>{this._reloadDebounce=null,this._loadData()},t)}disconnectedCallback(){super.disconnectedCallback(),this._reloadDebounce!==null&&(clearTimeout(this._reloadDebounce),this._reloadDebounce=null),this._rpcStatusUnsub?.(),this._rpcStatusUnsub=null}willUpdate(t){t.has("rpcClient")&&this.rpcClient&&this._tryLoad(),t.has("eventDispatcher")&&this.eventDispatcher&&!this._sse&&this._initSse()}_tryLoad(){if(!this.rpcClient){this._loadState="loaded";return}this._rpcStatusUnsub?.(),this.rpcClient.status==="connected"?this._loadData():this._rpcStatusUnsub=this.rpcClient.onStatusChange(t=>{t==="connected"&&this._loadData()})}async _loadData(){if(this.rpcClient)try{const t=await this.rpcClient.call("subagent.list",{recentMinutes:60});this._runs=t.runs??[],this._loadState="loaded"}catch{this._loadState="error"}}_requestKill(t){this._confirmKillRunId=t}async _confirmKill(){const t=this._confirmKillRunId;if(this._confirmKillRunId=null,!(!t||!this.rpcClient))try{await this.rpcClient.call("subagent.kill",{target:t}),m.show("Sub-agent kill signal sent","success"),this._loadData()}catch{m.show("Failed to kill sub-agent","error")}}_cancelKill(){this._confirmKillRunId=null}_truncate(t,e){return t.length>e?t.slice(0,e)+"…":t}_statusColor(t){switch(t){case"running":return"blue";case"completed":return"green";case"failed":return"red";case"queued":return"yellow";default:return"default"}}_formatDuration(t,e){const a=e-t;return a<1e3?`${a}ms`:a<6e4?`${(a/1e3).toFixed(1)}s`:`${(a/6e4).toFixed(1)}m`}_renderRun(t){const e=t.status==="running"||t.status==="queued";return s`
|
|
2
|
+
<div class="run-card">
|
|
3
|
+
<div class="run-header">
|
|
4
|
+
<ic-tag color=${this._statusColor(t.status)}>${t.status}</ic-tag>
|
|
5
|
+
<span class="run-agent-id">${t.agentId}</span>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="run-task" title=${t.task}>${this._truncate(t.task,80)}</div>
|
|
8
|
+
<div class="run-meta">
|
|
9
|
+
<span class="run-meta-item">
|
|
10
|
+
<span class="run-meta-label">Started:</span>
|
|
11
|
+
<ic-relative-time .timestamp=${t.startedAt}></ic-relative-time>
|
|
12
|
+
</span>
|
|
13
|
+
${t.completedAt?s`
|
|
14
|
+
<span class="run-meta-item">
|
|
15
|
+
<span class="run-meta-label">Duration:</span>
|
|
16
|
+
<span class="run-meta-value">${this._formatDuration(t.startedAt,t.completedAt)}</span>
|
|
17
|
+
</span>
|
|
18
|
+
`:c}
|
|
19
|
+
<span class="run-meta-item">
|
|
20
|
+
<span class="run-meta-label">Depth:</span>
|
|
21
|
+
<span class="run-meta-value">${t.depth}</span>
|
|
22
|
+
</span>
|
|
23
|
+
${t.result?s`
|
|
24
|
+
<span class="run-meta-item">
|
|
25
|
+
<span class="run-meta-label">Tokens:</span>
|
|
26
|
+
<span class="run-meta-value">${t.result.tokensUsed.total.toLocaleString()}</span>
|
|
27
|
+
</span>
|
|
28
|
+
<span class="run-meta-item">
|
|
29
|
+
<span class="run-meta-label">Cost:</span>
|
|
30
|
+
<span class="run-meta-value">$${t.result.cost.total.toFixed(4)}</span>
|
|
31
|
+
</span>
|
|
32
|
+
<span class="run-meta-item">
|
|
33
|
+
<span class="run-meta-label">Steps:</span>
|
|
34
|
+
<span class="run-meta-value">${t.result.stepsExecuted}</span>
|
|
35
|
+
</span>
|
|
36
|
+
`:c}
|
|
37
|
+
</div>
|
|
38
|
+
${t.error?s`
|
|
39
|
+
<div class="run-error">${t.error}</div>
|
|
40
|
+
`:c}
|
|
41
|
+
${e?s`
|
|
42
|
+
<div class="run-actions">
|
|
43
|
+
<button class="kill-btn" @click=${()=>this._requestKill(t.runId)}>Kill</button>
|
|
44
|
+
</div>
|
|
45
|
+
`:c}
|
|
46
|
+
</div>
|
|
47
|
+
`}render(){return s`
|
|
48
|
+
${this._loadState==="loading"?s`
|
|
49
|
+
<ic-skeleton-view variant="dashboard"></ic-skeleton-view>
|
|
50
|
+
`:this._loadState==="error"?s`
|
|
51
|
+
<div class="error-message">
|
|
52
|
+
Failed to load sub-agent data
|
|
53
|
+
<br />
|
|
54
|
+
<button class="retry-btn" @click=${()=>{this._loadData()}}>Retry</button>
|
|
55
|
+
</div>
|
|
56
|
+
`:this._runs.length===0?s`
|
|
57
|
+
<ic-empty-state message="No sub-agent runs in the last 60 minutes"></ic-empty-state>
|
|
58
|
+
`:s`
|
|
59
|
+
<div class="run-list">
|
|
60
|
+
${this._runs.map(t=>this._renderRun(t))}
|
|
61
|
+
</div>
|
|
62
|
+
`}
|
|
63
|
+
|
|
64
|
+
<ic-confirm-dialog
|
|
65
|
+
?open=${this._confirmKillRunId!==null}
|
|
66
|
+
title="Kill Sub-Agent"
|
|
67
|
+
message="This will terminate the running sub-agent. The parent session will receive an error result."
|
|
68
|
+
confirmLabel="Kill"
|
|
69
|
+
variant="danger"
|
|
70
|
+
@confirm=${this._confirmKill}
|
|
71
|
+
@cancel=${this._cancelKill}
|
|
72
|
+
></ic-confirm-dialog>
|
|
73
|
+
`}};r.styles=[_,b,g`
|
|
74
|
+
:host {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.run-list {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
gap: var(--ic-space-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.run-card {
|
|
85
|
+
background: var(--ic-surface);
|
|
86
|
+
border: 1px solid var(--ic-border);
|
|
87
|
+
border-radius: var(--ic-radius-md);
|
|
88
|
+
padding: var(--ic-space-md);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.run-header {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: var(--ic-space-sm);
|
|
95
|
+
margin-bottom: var(--ic-space-xs);
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.run-agent-id {
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
font-size: var(--ic-text-sm);
|
|
102
|
+
color: var(--ic-text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.run-task {
|
|
106
|
+
font-size: var(--ic-text-sm);
|
|
107
|
+
color: var(--ic-text-muted);
|
|
108
|
+
margin-bottom: var(--ic-space-xs);
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
text-overflow: ellipsis;
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.run-meta {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
gap: var(--ic-space-sm) var(--ic-space-md);
|
|
119
|
+
font-size: 0.75rem;
|
|
120
|
+
color: var(--ic-text-dim);
|
|
121
|
+
margin-top: var(--ic-space-xs);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.run-meta-item {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: 4px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.run-meta-label {
|
|
131
|
+
color: var(--ic-text-dim);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.run-meta-value {
|
|
135
|
+
color: var(--ic-text-muted);
|
|
136
|
+
font-variant-numeric: tabular-nums;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.run-error {
|
|
140
|
+
margin-top: var(--ic-space-xs);
|
|
141
|
+
padding: var(--ic-space-xs) var(--ic-space-sm);
|
|
142
|
+
background: rgba(248, 113, 113, 0.1);
|
|
143
|
+
border-radius: var(--ic-radius-sm);
|
|
144
|
+
font-size: 0.75rem;
|
|
145
|
+
color: var(--ic-error);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.run-actions {
|
|
149
|
+
margin-top: var(--ic-space-sm);
|
|
150
|
+
display: flex;
|
|
151
|
+
gap: var(--ic-space-sm);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.kill-btn {
|
|
155
|
+
padding: 4px 12px;
|
|
156
|
+
font-size: 0.75rem;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
border: 1px solid var(--ic-error);
|
|
159
|
+
border-radius: var(--ic-radius-sm);
|
|
160
|
+
background: transparent;
|
|
161
|
+
color: var(--ic-error);
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
font-family: inherit;
|
|
164
|
+
transition: background var(--ic-transition), color var(--ic-transition);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.kill-btn:hover {
|
|
168
|
+
background: var(--ic-error);
|
|
169
|
+
color: white;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.error-message {
|
|
173
|
+
text-align: center;
|
|
174
|
+
padding: 2rem;
|
|
175
|
+
color: var(--ic-text-dim);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.retry-btn {
|
|
179
|
+
margin-top: var(--ic-space-sm);
|
|
180
|
+
padding: 6px 16px;
|
|
181
|
+
background: var(--ic-accent);
|
|
182
|
+
color: white;
|
|
183
|
+
border: none;
|
|
184
|
+
border-radius: var(--ic-radius-sm);
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
font-family: inherit;
|
|
187
|
+
font-size: var(--ic-text-sm);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.retry-btn:hover {
|
|
191
|
+
background: var(--ic-accent-hover);
|
|
192
|
+
}
|
|
193
|
+
`];n([d({attribute:!1})],r.prototype,"rpcClient",2);n([d({attribute:!1})],r.prototype,"apiClient",2);n([d({attribute:!1})],r.prototype,"eventDispatcher",2);n([p()],r.prototype,"_loadState",2);n([p()],r.prototype,"_runs",2);n([p()],r.prototype,"_confirmKillRunId",2);r=n([f("ic-subagents-view")],r);export{r as IcSubagentsView};
|