comisai 1.0.44 → 1.0.45
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/dist/spawn/sandbox-posture.d.ts +23 -0
- package/node_modules/@comis/agent/dist/spawn/sandbox-posture.js +27 -0
- package/node_modules/@comis/agent/dist/spawn/sub-agent-runner.js +5 -2
- package/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/domain/index.d.ts +2 -0
- package/node_modules/@comis/core/dist/domain/index.js +5 -0
- package/node_modules/@comis/core/dist/domain/rpc-error-classification.d.ts +49 -0
- package/node_modules/@comis/core/dist/domain/rpc-error-classification.js +62 -0
- package/node_modules/@comis/core/dist/exports/domain.d.ts +1 -1
- package/node_modules/@comis/core/dist/exports/domain.js +2 -0
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/dist/api/graph-handlers/graph-mutate.js +5 -1
- package/node_modules/@comis/daemon/dist/api/rpc-dispatch.d.ts +15 -16
- package/node_modules/@comis/daemon/dist/api/rpc-dispatch.js +19 -32
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway/setup-gateway-rpc.js +2 -1
- package/node_modules/@comis/daemon/package.json +1 -1
- package/node_modules/@comis/gateway/dist/rpc/method-router.js +13 -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/observability/dist/trajectory/event-bus-bridge.d.ts +1 -0
- package/node_modules/@comis/observability/dist/trajectory/event-bus-bridge.js +10 -0
- package/node_modules/@comis/observability/dist/trajectory/translate-orchestration-payload.d.ts +1 -1
- package/node_modules/@comis/observability/dist/trajectory/translate-orchestration-payload.js +6 -0
- package/node_modules/@comis/observability/dist/trajectory/translate-payload.js +1 -0
- package/node_modules/@comis/observability/dist/trajectory/types.d.ts +1 -1
- package/node_modules/@comis/observability/dist/trajectory/types.js +7 -0
- package/node_modules/@comis/observability/package.json +1 -1
- package/node_modules/@comis/observability-otel/package.json +1 -1
- package/node_modules/@comis/orchestrator/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/assets/{agent-detail-DTS1F-Ms.js → agent-detail-lQF_QdY3.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-editor-Ciyu1WDy.js → agent-editor-t3rxtj2c.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-list-A1K8cnDs.js → agent-list-B3PEW7Eu.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{billing-view-DeTSrDbU.js → billing-view-C4UJZTvI.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{cache-health-BCWNSCJc.js → cache-health-CTOg1ZYH.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-detail-Dc9p_ikD.js → channel-detail-BqazWug8.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-list-Ky4JkuxX.js → channel-list-DYB8MGjC.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{chat-console-Dz_CizN8.js → chat-console-C_EZsEon.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{config-editor-CMnaLKV1.js → config-editor-5rFdpiyn.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{context-dag-browser-B4SfvEGD.js → context-dag-browser-8RP0Dm9d.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-engine-D56GG59R.js → context-engine-0Sl4qfpl.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{delivery-view-G4cBmG5M.js → delivery-view-QQ-LYwDU.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{diagnostics-view-Bf57kGOT.js → diagnostics-view-DjMOkstH.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-chat-message-CkDdrYHc.js → ic-chat-message-s52yIvwR.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-connection-dot-mggqNsPH.js → ic-connection-dot-3QDCBFHW.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-empty-state-f_kVNpuc.js → ic-empty-state-DIodMykW.js} +1 -1
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-Dllu1VH-.js +359 -0
- package/node_modules/@comis/web/dist/assets/{ic-tool-call-D1ykqLeH.js → ic-tool-call-CFexsEC4.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{incident-view-Cd2e4cao.js → incident-view-C9r6FvdE.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{index-dqPriKJN.js → index-IIyLteKK.js} +16 -16
- package/node_modules/@comis/web/dist/assets/{mcp-management-8zV6Sh-J.js → mcp-management-CON6d_R1.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-config-fz862yVg.js → media-config-DNAN4cgu.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-test-tDL7lri1.js → media-test-BOrE2MrP.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{memory-inspector-aSmZ-bVd.js → memory-inspector-CdE2cWRI.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{message-center-DWfIgL7i.js → message-center-BggZE_We.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{models-H5of-8R4.js → models-BpdoS8xA.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{observe-view-ExySKnkt.js → observe-view-D1ajhutj.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-builder-p1GmDJy5.js → pipeline-builder-DwLB9aCL.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-DQEU-Ieu.js → pipeline-history-DVSVvho7.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-detail-Bu51TMIX.js → pipeline-history-detail-C3e5mGIt.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-list-DaYyj89m.js → pipeline-list-DYdQxTk4.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-monitor-DV_7bRn2.js → pipeline-monitor-Q48nN7ZK.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{scheduler-D0YVlb55.js → scheduler-Drjol0QC.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{security-78aeYyN2.js → security-DvcAVz_Q.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-detail-D1yJ9diX.js → session-detail-Cv3O0UDP.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-list-CxPzhPnX.js → session-list-BGVUpP_a.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{setup-wizard-SjMlBTNp.js → setup-wizard-DZsr49mN.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{skills-M6MQLY5D.js → skills-DP1dLFcB.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{spend-governance-C0hIl9wq.js → spend-governance-D-IBKKqz.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{subagents-CLCo4cfc.js → subagents-D0_m-5Pa.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{workspace-manager-BzHAmYW2.js → workspace-manager-QmBrvxyy.js} +1 -1
- package/node_modules/@comis/web/dist/index.html +1 -1
- package/node_modules/@comis/web/package.json +1 -1
- package/package.json +16 -16
- package/node_modules/@comis/web/dist/assets/ic-graph-canvas-CBDFKlf5.js +0 -359
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comis/orchestrator",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.45",
|
|
5
5
|
"author": "Moshe Anconina",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "Inbound orchestration: channel-manager lifecycle, inbound pipeline, execute-and-deliver coordination, command queue, message routing",
|
package/node_modules/@comis/web/dist/assets/{agent-detail-DTS1F-Ms.js → agent-detail-lQF_QdY3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p,i as m}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p,i as m}from"./index-IIyLteKK.js";import"./ic-breadcrumb-CamOsLdw.js";import"./ic-tag-C5SwX7RT.js";import"./ic-confirm-dialog-JnoEg4kp.js";import"./ic-relative-time-DCCDywYC.js";function h(e){return e.toLocaleString(`en-US`)}var g=class extends r{constructor(...e){super(...e),this.label=``,this.used=0,this.total=0,this.warnThreshold=70,this.dangerThreshold=90}static{this.styles=[u,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
package/node_modules/@comis/web/dist/assets/{agent-editor-Ciyu1WDy.js → agent-editor-t3rxtj2c.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,p as s,r as c,t as l,y as u}from"./decorate-C2wzL86z.js";import{a as d}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,p as s,r as c,t as l,y as u}from"./decorate-C2wzL86z.js";import{a as d}from"./index-IIyLteKK.js";import"./ic-breadcrumb-CamOsLdw.js";import"./ic-tag-C5SwX7RT.js";import"./ic-array-editor-Ba7psX7q.js";function f(e,t=0){let n=[],r=` `.repeat(t);for(let[i,a]of Object.entries(e))if(!(a==null||a===``))if(Array.isArray(a)){if(a.length===0)continue;n.push(`${r}${i}:`);for(let e of a)if(typeof e==`object`&&e&&!Array.isArray(e)){let i=f(e,t+2).split(`
|
|
2
2
|
`).filter(Boolean);if(i.length>0){n.push(`${r} - ${i[0].trimStart()}`);for(let e=1;e<i.length;e++)n.push(`${r} ${i[e].trimStart()}`)}}else n.push(`${r} - ${p(e)}`)}else if(typeof a==`object`){let e=f(a,t+1);e.trim()&&(n.push(`${r}${i}:`),n.push(e))}else n.push(`${r}${i}: ${p(a)}`);return n.join(`
|
|
3
3
|
`)}function p(e){return typeof e==`string`?/[:#{}[\],&*?|>!%@`'"]/.test(e)||e.includes(`
|
|
4
4
|
`)?`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`:e:typeof e==`boolean`?e?`true`:`false`:String(e)}function m(){let e=new Set,t=t=>{e.size>0&&t.preventDefault()};return{get isDirty(){return e.size>0},markDirty(t=`_default`){e.add(t)},markClean(){e.clear()},confirmNavigation(){return e.size===0?!0:window.confirm(`You have unsaved changes. Discard and leave?`)},attach(){window.addEventListener(`beforeunload`,t)},detach(){window.removeEventListener(`beforeunload`,t)},dirtyFields(){return[...e]}}}function h(e,t,n){return e[t]??n}function g(e,t,n,r,i){let a=h(e,t,void 0),o=i?.step??`1`,s=o.includes(`.`)?o.split(`.`)[1].length:0,c=a===void 0?``:(s>0?Number(Number(a).toFixed(s)):a).toString(),l=i?.id??`field-${t.replace(/\./g,`-`)}`;return u`
|
package/node_modules/@comis/web/dist/assets/{agent-list-A1K8cnDs.js → agent-list-B3PEW7Eu.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,t as u,y as d}from"./decorate-C2wzL86z.js";import{a as f,i as p}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,t as u,y as d}from"./decorate-C2wzL86z.js";import{a as f,i as p}from"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-confirm-dialog-JnoEg4kp.js";import"./ic-data-table-c9pQCH_h.js";import"./ic-search-input-zfYWKjl4.js";import"./ic-empty-state-DIodMykW.js";var m={active:`success`,idle:`info`,suspended:`warning`,error:`error`},h={active:`Active`,idle:`Idle`,suspended:`Suspended`,error:`Error`},g=[{value:`active`,label:`Active`,color:`var(--ic-success)`},{value:`idle`,label:`Idle`,color:`var(--ic-info)`},{value:`suspended`,label:`Suspended`,color:`var(--ic-warning)`},{value:`error`,label:`Error`,color:`var(--ic-error)`}],_=new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`}),v={minimal:`Read and write only. Safest option for restricted environments.`,coding:`Common tools including web, memory, and file operations.`,messaging:`Optimized for chat and messaging workflows.`,supervisor:`Extended tools for agent orchestration and oversight.`,full:`All available tools. Best for autonomous agents with broad capabilities.`},y=class extends r{constructor(...e){super(...e),this.apiClient=null,this.rpcClient=null,this.eventDispatcher=null,this._sse=null,this._reloadDebounce=null,this._agents=[],this._loadState=`loading`,this._error=``,this._deleteTarget=null,this._actionPending=``,this._searchQuery=``,this._statusFilters=new Set,this._wizardOpen=!1,this._wizardStep=1,this._wizardError=``,this._wizardCreating=!1,this._wizardAgentId=``,this._wizardAgentName=``,this._wizardProvider=`anthropic`,this._wizardModel=``,this._wizardToolProfile=`full`,this._catalogProviders=[]}static{this.styles=[l,o,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
package/node_modules/@comis/web/dist/assets/{billing-view-DeTSrDbU.js → billing-view-C4UJZTvI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,c as r,d as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{i as h}from"./index-
|
|
1
|
+
import{S as e,_ as t,a as n,c as r,d as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{i as h}from"./index-IIyLteKK.js";import"./ic-empty-state-DIodMykW.js";import"./ic-time-range-picker-uBAk6VB8.js";var g=[{header:`agentId`,get:e=>e.agentId},{header:`totalTokens`,get:e=>String(e.totalTokens)},{header:`percentOfTotal`,get:e=>String(e.percentOfTotal)},{header:`cost`,get:e=>String(e.cost)}];function _(e){let t=e=>/[",\r\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e;return[g.map(e=>t(e.header)).join(`,`),...e.map(e=>g.map(n=>t(n.get(e))).join(`,`))].join(`\r
|
|
2
2
|
`)}function v(e){let t=e.map(e=>{let t={};for(let n of g)t[n.header]=n.get(e);return t});return JSON.stringify(t,null,2)}function y(e){return{totalCost:Number(e.totalCost??0),totalTokens:Number(e.totalTokens??0),callCount:Number(e.callCount??0)}}function b(e){if(Array.isArray(e))return e;let t=e;return Array.isArray(t.providers)?t.providers:[]}function x(e){if(Array.isArray(e))return e;let t=e;return Array.isArray(t.sessions)?t.sessions:[]}function S(e){let t=e?.tools;return Array.isArray(t)?t.map(e=>{let t=e,n=typeof t.tool==`string`?t.tool:void 0;return n===void 0?null:{tool:n,cost:Number(t.cost??0),tokens:Number(t.tokens??0),calls:Number(t.calls??0)}}).filter(e=>e!==null):[]}function C(e){let t=new Map;for(let n of e){let e=t.get(n.tool);e?(e.cost+=n.cost,e.tokens+=n.tokens,e.calls+=n.calls):t.set(n.tool,{tool:n.tool,cost:n.cost,tokens:n.tokens,calls:n.calls})}return[...t.values()].sort((e,t)=>t.cost-e.cost)}function w(e){let t=e?.subagents;return Array.isArray(t)?t.map(e=>{let t=e,n=typeof t.nodeId==`string`?t.nodeId:void 0;return n===void 0?null:{nodeId:n,cost:Number(t.cost??0),subtreeCost:Number(t.subtreeCost??t.cost??0)}}).filter(e=>e!==null):[]}function T(e){return{async loadTotalLevel(t,n){let r=y(await e.call(`obs.billing.total`,{sinceMs:t}));return Promise.allSettled([e.call(`obs.billing.total`,{sinceMs:t*2}),e.call(`obs.billing.byProvider`,{sinceMs:t})]).then(([e,t])=>{let i={};if(e.status===`fulfilled`){let t=y(e.value);i.previousTotal={totalCost:t.totalCost-r.totalCost,totalTokens:t.totalTokens-r.totalTokens,callCount:t.callCount-r.callCount}}t.status===`fulfilled`&&(i.providers=b(t.value)),(i.previousTotal!==void 0||i.providers!==void 0)&&n(i)}),r},async loadProviderLevel(t){return b(await e.call(`obs.billing.byProvider`,{sinceMs:t}))},async loadAgentLevel(t){let n=await e.call(`agents.list`),r=(Array.isArray(n)?n:Array.isArray(n.agents)?n.agents:[]).map(e=>typeof e==`string`?e:e.id);if(r.length===0)return{agents:[],toolCosts:[],subagentCosts:[]};let i=await Promise.allSettled(r.map(n=>e.call(`obs.billing.byAgent`,{agentId:n,sinceMs:t})));return{agents:i.map((e,t)=>{if(e.status!==`fulfilled`)return null;let n=e.value;return{agentId:r[t],totalTokens:Number(n.tokensToday??n.totalTokens??0),percentOfTotal:Number(n.percentOfTotal??0),cost:Number(n.costToday??n.cost??0)}}).filter(e=>e!==null).sort((e,t)=>t.cost-e.cost),toolCosts:C(i.flatMap(e=>e.status===`fulfilled`?S(e.value):[])),subagentCosts:i.flatMap(e=>e.status===`fulfilled`?w(e.value):[])}},async loadSessionLevel(t,n){if(!n)return[];try{return x(await e.call(`obs.billing.bySession`,{sessionKey:`all`,agentId:n,sinceMs:t}))}catch{return[]}}}}var E=new Set([`agent`,`provider`,`model`,`tool`]),D=new Set([`minTokens`,`maxCost`]);function O(e){let t={};if(typeof e!=`string`)return t;for(let n of e.trim().split(/\s+/)){if(n.length===0)continue;let e=n.indexOf(`:`);if(e<=0)continue;let r=n.slice(0,e),i=n.slice(e+1);if(i.length!==0)if(E.has(r))switch(r){case`agent`:t.agent=i;break;case`provider`:t.provider=i;break;case`model`:t.model=i;break;case`tool`:t.tool=i;break}else if(D.has(r)){let e=Number(i);if(!Number.isFinite(e))continue;r===`minTokens`?t.minTokens=e:t.maxCost=e}else r===`has`&&i===`errors`&&(t.hasErrors=!0)}return t}function k(e,t){return e.filter(e=>!(t.agent!==void 0&&e.agent!==t.agent||t.provider!==void 0&&e.provider!==t.provider||t.model!==void 0&&e.model!==t.model||t.tool!==void 0&&e.tool!==t.tool||t.minTokens!==void 0&&(e.tokens??0)<t.minTokens||t.maxCost!==void 0&&(e.cost??0)>t.maxCost||t.hasErrors!==void 0&&(e.hasErrors??!1)!==t.hasErrors))}function A(e){return Object.keys(e).length>0}var j=new Set([...E,...D,`has`]);function M(e){let t=typeof e==`string`?e.trim():``;if(t.length===0)return``;let n=t.split(/\s+/).map(e=>e.includes(`:`)?e.slice(0,e.indexOf(`:`)):``).filter(e=>e.length>0&&!j.has(e));return n.length>0?`Unknown filter key(s) ignored: ${[...new Set(n)].join(`, `)}`:``}function N(e,t,n){let r=new Blob([e],{type:n}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=t,a.click(),URL.revokeObjectURL(i)}function P(e,n){return e.length===0?t:m`
|
|
3
3
|
<div class="section">
|
|
4
4
|
<div class="section-title">Per-tool cost <span class="caveat">(best-effort)</span></div>
|
package/node_modules/@comis/web/dist/assets/{cache-health-BCWNSCJc.js → cache-health-CTOg1ZYH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,a as t,g as n,h as r,l as i,m as a,n as o,p as s,r as c,t as l,u,y as d}from"./decorate-C2wzL86z.js";import"./index-
|
|
1
|
+
import{S as e,a as t,g as n,h as r,l as i,m as a,n as o,p as s,r as c,t as l,u,y as d}from"./decorate-C2wzL86z.js";import"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-data-table-c9pQCH_h.js";import"./ic-empty-state-DIodMykW.js";var f=3e4,p=864e5,m=class extends n{constructor(...e){super(...e),this.rpcClient=null,this._loadState=`loading`,this._rows=[],this._sinceMs=p,this._hitWriteRatio=null,this._refreshInterval=null,this._rpcStatusUnsub=null}static{this.styles=[c,o,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,y as p}from"./decorate-C2wzL86z.js";import{a as m,i as h}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,y as p}from"./decorate-C2wzL86z.js";import{a as m,i as h}from"./index-IIyLteKK.js";import"./ic-breadcrumb-CamOsLdw.js";import"./ic-tag-C5SwX7RT.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-empty-state-DIodMykW.js";import"./ic-tabs-BsjznKoe.js";import"./ic-connection-dot-3QDCBFHW.js";var g=[{key:`transcribeAudio`,label:`Voice Transcription`,description:`Transcribe inbound audio/voice attachments to text (STT)`},{key:`analyzeImages`,label:`Image Analysis`,description:`Analyze inbound images using vision AI`},{key:`describeVideos`,label:`Video Description`,description:`Generate text descriptions of inbound video attachments`},{key:`extractDocuments`,label:`Document Extraction`,description:`Extract text from PDF, CSV, and other document attachments`},{key:`understandLinks`,label:`Link Understanding`,description:`Fetch and inject content from URLs in message text`}],_={telegram:[{key:`botToken`,label:`Bot Token`,type:`secret`},{key:`webhookUrl`,label:`Webhook URL`,type:`text`,placeholder:`https://...`},{key:`ackReaction.enabled`,label:`Ack Reaction`,type:`toggle`},{key:`ackReaction.emoji`,label:`Ack Emoji`,type:`text`,placeholder:`👀`}],discord:[{key:`botToken`,label:`Bot Token`,type:`secret`},{key:`guildId`,label:`Guild ID`,type:`text`}],slack:[{key:`botToken`,label:`Bot Token`,type:`secret`},{key:`appToken`,label:`App Token`,type:`secret`},{key:`signingSecret`,label:`Signing Secret`,type:`secret`},{key:`mode`,label:`Mode`,type:`select`,options:[`socket`,`http`]}],whatsapp:[{key:`authDir`,label:`Auth Directory`,type:`text`},{key:`printQR`,label:`Print QR Code`,type:`toggle`}],line:[{key:`channelSecret`,label:`Channel Secret`,type:`secret`},{key:`webhookPath`,label:`Webhook Path`,type:`text`,placeholder:`/webhooks/line`}],signal:[{key:`baseUrl`,label:`Base URL`,type:`text`,placeholder:`http://127.0.0.1:8080`},{key:`account`,label:`Account`,type:`text`},{key:`cliPath`,label:`CLI Path`,type:`text`}],irc:[{key:`host`,label:`Host`,type:`text`},{key:`port`,label:`Port`,type:`text`},{key:`nick`,label:`Nick`,type:`text`},{key:`tls`,label:`TLS`,type:`toggle`},{key:`nickservPassword`,label:`NickServ Password`,type:`secret`},{key:`channels`,label:`Channels`,type:`list`}],imessage:[{key:`binaryPath`,label:`Binary Path`,type:`text`},{key:`account`,label:`Account`,type:`text`}]};function v(e){return e?e.charAt(0).toUpperCase()+e.slice(1):``}function y(e,t){return t.split(`.`).reduce((e,t)=>typeof e==`object`&&e?e[t]:void 0,e)}var b=class extends r{constructor(...e){super(...e),this.apiClient=null,this.rpcClient=null,this.eventDispatcher=null,this.channelType=``,this._loadState=`loading`,this._error=``,this._config={},this._enabled=!1,this._status=`disconnected`,this._deliveryTrace=[],this._activityData=[],this._channelLastActiveAt=0,this._channelMessagesSent=0,this._channelMessagesReceived=0,this._connectionMode=``,this._lastError=``,this._actionPending=!1,this._queueStatus=null,this._capabilities=null,this._mediaProcessing={transcribeAudio:!0,analyzeImages:!0,describeVideos:!0,extractDocuments:!0,understandLinks:!0},this._sse=null,this._reloadDebounce=null,this._hasLoaded=!1,this._previousChannelType=``}static{this.styles=[u,s,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
package/node_modules/@comis/web/dist/assets/{channel-list-Ky4JkuxX.js → channel-list-DYB8MGjC.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p,i as m,n as h,r as g,t as _}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,l as a,m as o,n as s,o as c,p as l,r as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p,i as m,n as h,r as g,t as _}from"./index-IIyLteKK.js";import"./ic-confirm-dialog-JnoEg4kp.js";import"./ic-empty-state-DIodMykW.js";var v=class extends r{constructor(...e){super(...e),this.channelType=``,this.name=``,this.status=`disconnected`,this.enabled=!1,this.isStale=!1,this.messageCount=0,this.uptime=0,this.lastActivity=0}static{this.styles=[u,s,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
min-width: 280px;
|
package/node_modules/@comis/web/dist/assets/{chat-console-Dz_CizN8.js → chat-console-C_EZsEon.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,d as r,f as i,g as a,h as o,l as s,m as c,n as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{a as h}from"./index-
|
|
1
|
+
import{S as e,_ as t,a as n,d as r,f as i,g as a,h as o,l as s,m as c,n as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{a as h}from"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-search-input-zfYWKjl4.js";import"./ic-empty-state-DIodMykW.js";import{n as g,r as _}from"./session-key-parser-CzslOQQP.js";import{n as v,r as y}from"./ic-tool-call-CFexsEC4.js";import"./ic-chat-message-s52yIvwR.js";import"./ic-budget-segment-bar-Dw6vzCTO.js";var b=class extends a{constructor(...e){super(...e),this.sessions=[],this.selectedKey=``,this.filter=``,this.open=!1}static{this.styles=[d,l,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
package/node_modules/@comis/web/dist/assets/{config-editor-CMnaLKV1.js → config-editor-5rFdpiyn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,y as f}from"./decorate-C2wzL86z.js";import{a as p}from"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-confirm-dialog-JnoEg4kp.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-array-editor-Ba7psX7q.js";import"./ic-empty-state-DIodMykW.js";import"./ic-tabs-BsjznKoe.js";import"./ic-select-DY2apnK_.js";function m(e,t){let n=e.split(`
|
|
2
2
|
`),r=t.split(`
|
|
3
3
|
`),i=n.length,a=r.length,o=Array.from({length:i+1},()=>Array(a+1).fill(0));for(let e=1;e<=i;e++)for(let t=1;t<=a;t++)n[e-1]===r[t-1]?o[e][t]=o[e-1][t-1]+1:o[e][t]=Math.max(o[e-1][t],o[e][t-1]);let s=i,c=a,l=[],u=[];for(;s>0||c>0;)s>0&&c>0&&n[s-1]===r[c-1]?(l.push({text:n[s-1],status:`unchanged`}),u.push({text:r[c-1],status:`unchanged`}),s--,c--):c>0&&(s===0||o[s][c-1]>=o[s-1][c])?(u.push({text:r[c-1],status:`added`}),l.push({text:``,status:`unchanged`}),c--):(l.push({text:n[s-1],status:`removed`}),u.push({text:``,status:`unchanged`}),s--);return l.reverse(),u.reverse(),{oldLines:l,newLines:u}}var h=class extends r{constructor(...e){super(...e),this.oldText=``,this.newText=``,this.oldLabel=`Current`,this.newLabel=`Pending`,this._syncing=!1}static{this.styles=[l,o,e`
|
|
4
4
|
:host {
|
|
@@ -311,7 +311,7 @@ import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s a
|
|
|
311
311
|
outline: none;
|
|
312
312
|
border-color: var(--ic-accent);
|
|
313
313
|
}
|
|
314
|
-
`]}updated(e){e.has(`config`)&&(this._formState=structuredClone(this.config),this._formErrors={})}_onFormFieldChange(e,t){this._formState=y(this._formState,e,t);let n={...this._formErrors};delete n[e],this._formErrors=n,this.dispatchEvent(new CustomEvent(`field-change`,{detail:{path:e,value:t,formState:this._formState},bubbles:!0,composed:!0}))}_validateField(e,t,n){let r={...this._formErrors};if(n.type===`string`&&typeof t==`string`)if(n.minLength!==void 0&&t.length<n.minLength)r[e]=`Minimum length is ${n.minLength}`;else if(n.maxLength!==void 0&&t.length>n.maxLength)r[e]=`Maximum length is ${n.maxLength}`;else if(n.pattern)try{new RegExp(n.pattern).test(t)||(r[e]=`Must match pattern: ${n.pattern}`)}catch{}else delete r[e];else
|
|
314
|
+
`]}updated(e){e.has(`config`)&&(this._formState=structuredClone(this.config),this._formErrors={})}_onFormFieldChange(e,t){this._formState=y(this._formState,e,t);let n={...this._formErrors};delete n[e],this._formErrors=n,this.dispatchEvent(new CustomEvent(`field-change`,{detail:{path:e,value:t,formState:this._formState},bubbles:!0,composed:!0}))}_validateField(e,t,n){let r={...this._formErrors};if(n.type===`string`&&typeof t==`string`)if(n.minLength!==void 0&&t.length<n.minLength)r[e]=`Minimum length is ${n.minLength}`;else if(n.maxLength!==void 0&&t.length>n.maxLength)r[e]=`Maximum length is ${n.maxLength}`;else if(n.pattern)try{new RegExp(n.pattern).test(t)||(r[e]=`Must match pattern: ${n.pattern}`)}catch{}else delete r[e];else(n.type===`number`||n.type===`integer`)&&typeof t==`number`?n.minimum!==void 0&&t<n.minimum?r[e]=`Minimum value is ${n.minimum}`:n.maximum!==void 0&&t>n.maximum?r[e]=`Maximum value is ${n.maximum}`:delete r[e]:delete r[e];this._formErrors=r}_toggleFormFieldset(e){let t=new Set(this._expandedFormPaths);t.has(e)?t.delete(e):t.add(e),this._expandedFormPaths=t}_onArrayItemFieldChange(e,t,n,r){let i=(v(this._formState,e)??[]).map((e,i)=>i===t?{...e,[n]:r}:e);this._onFormFieldChange(e,i)}_renderStringField(e,n,r,i){let a=i.maxLength!==void 0&&i.maxLength>200||e.includes(`prompt`)||e.includes(`template`);return f`
|
|
315
315
|
<div class="form-field">
|
|
316
316
|
<label class="form-label">${n}</label>
|
|
317
317
|
${i.description?f`<span class="form-description">${i.description}</span>`:t}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,y as f}from"./decorate-C2wzL86z.js";import"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,y as f}from"./decorate-C2wzL86z.js";import"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-search-input-zfYWKjl4.js";import"./ic-empty-state-DIodMykW.js";import"./ic-detail-panel-ZsLNS21P.js";var p=class extends r{constructor(...e){super(...e),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}static{this.styles=[l,o,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,d as r,g as i,h as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{i as h}from"./index-
|
|
1
|
+
import{S as e,_ as t,a as n,d as r,g as i,h as a,m as o,n as s,o as c,p as l,r as u,s as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{i as h}from"./index-IIyLteKK.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-empty-state-DIodMykW.js";import"./ic-budget-segment-bar-Dw6vzCTO.js";import"./ic-layer-waterfall-3qBGZLwA.js";var g={file_read:`var(--ic-accent)`,exec:`var(--ic-success)`,web:`var(--ic-info, #3b82f6)`,image:`var(--ic-warning)`,error:`var(--ic-error)`},_=`var(--ic-text-dim)`,v=class extends i{constructor(...e){super(...e),this.categories={},this.showLegend=!0}static{this.styles=[u,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
package/node_modules/@comis/web/dist/assets/{delivery-view-G4cBmG5M.js → delivery-view-QQ-LYwDU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,g as r,h as i,l as a,m as o,n as s,p as c,r as l,s as u,t as d,u as f,y as p}from"./decorate-C2wzL86z.js";import"./index-
|
|
1
|
+
import{S as e,_ as t,a as n,g as r,h as i,l as a,m as o,n as s,p as c,r as l,s as u,t as d,u as f,y as p}from"./decorate-C2wzL86z.js";import"./index-IIyLteKK.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-empty-state-DIodMykW.js";import"./ic-time-range-picker-uBAk6VB8.js";import"./ic-detail-panel-ZsLNS21P.js";import"./ic-delivery-row-BlEML37J.js";function m(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}var h=class extends r{constructor(...e){super(...e),this.steps=[],this.totalDurationMs=0}static{this.styles=[l,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,a as n,c as r,d as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{n as h,t as g}from"./observability-types-BvcvLSWK.js";import{i as _}from"./index-
|
|
1
|
+
import{S as e,_ as t,a as n,c as r,d as i,g as a,h as o,m as s,n as c,o as l,p as u,r as d,t as f,u as p,y as m}from"./decorate-C2wzL86z.js";import{n as h,t as g}from"./observability-types-BvcvLSWK.js";import{i as _}from"./index-IIyLteKK.js";import"./ic-tag-C5SwX7RT.js";import"./ic-relative-time-DCCDywYC.js";import"./ic-empty-state-DIodMykW.js";import"./ic-time-range-picker-uBAk6VB8.js";var v=3e4,y=6048e5,b={info:`var(--ic-text-dim)`,warn:`var(--ic-warning)`,error:`var(--ic-error)`},x=class extends a{constructor(...e){super(...e),this.rpcClient=null,this.eventDispatcher=null,this._sse=null,this._reloadDebounce=null,this._loadState=`loading`,this._sinceMs=y,this._selectedRange=`7d`,this._events=[],this._selectedCategories=new Set,this._selectedSeverities=new Set,this._eventCounts={},this._refreshInterval=null,this._rpcStatusUnsub=null}static{this.styles=[d,c,e`
|
|
2
2
|
:host { display: block; }
|
|
3
3
|
|
|
4
4
|
.diagnostics-view { padding: 0; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,v as f,y as p}from"./decorate-C2wzL86z.js";import{a as m}from"./index-
|
|
1
|
+
import{S as e,_ as t,d as n,g as r,h as i,m as a,n as o,o as s,p as c,r as l,s as u,t as d,v as f,y as p}from"./decorate-C2wzL86z.js";import{a as m}from"./index-IIyLteKK.js";import{n as h,r as g,t as _}from"./directive-BSZPiF1A.js";var v=class extends h{constructor(e){if(super(e),this.it=t,e.type!==g.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===t||e==null)return this._t=void 0,this.it=e;if(e===f)return e;if(typeof e!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(e===this.it)return this._t;this.it=e;let n=[e];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}};v.directiveName=`unsafeHTML`,v.resultType=1;var y=_(v),b=new Set(`const.let.var.function.return.if.else.for.while.import.export.from.true.false.null.undefined.class.new.this.async.await.throw.try.catch.switch.case.break.continue.default.typeof.instanceof.void.delete.in.of.yield.static.extends.implements.interface.type.enum.abstract.readonly`.split(`.`));function x(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`)}function S(e,t){if(!t)return x(e);let n=t.toLowerCase(),r=x(e);return r=r.replace(/\/\*[\s\S]*?\*\//g,e=>`<span class="hl-comment">${e}</span>`),r=r.replace(/\/\/[^\n]*/g,e=>e.includes(`hl-comment`)?e:`<span class="hl-comment">${e}</span>`),(n===`yaml`||n===`yml`||n===`bash`||n===`sh`||n===`python`||n===`py`)&&(r=r.replace(/(?:^|(?<=\n))(\s*#[^\n]*)/g,e=>`<span class="hl-comment">${e}</span>`)),r=r.replace(/(?<!<span class=")("(?:[^&]|&(?!quot;))*?")/g,e=>e.includes(`hl-`)?e:`<span class="hl-string">${e}</span>`),r=r.replace(/(?<![=\w])('[^'\\]*(?:\\.[^'\\]*)*')/g,e=>e.includes(`hl-`)?e:`<span class="hl-string">${e}</span>`),r=r.replace(/\b(\d+(?:\.\d+)?)\b/g,e=>e.includes(`hl-`)?e:`<span class="hl-number">${e}</span>`),(n===`json`||n===`yaml`||n===`yml`)&&(r=r.replace(/(?:^|(?<=\n))(\s*)("[\w.-]+")(\s*:)/gm,(e,t,n,r)=>`${t}<span class="hl-property">${n}</span>${r}`),(n===`yaml`||n===`yml`)&&(r=r.replace(/(?:^|(?<=\n))(\s*)([\w.-]+)(\s*:)/gm,(e,t,n,r)=>n.includes(`hl-`)?e:`${t}<span class="hl-property">${n}</span>${r}`))),(n===`javascript`||n===`js`||n===`typescript`||n===`ts`||n===`jsx`||n===`tsx`)&&(r=r.replace(/\b([a-z]+)\b/g,e=>b.has(e)?`<span class="hl-keyword">${e}</span>`:e)),r}var C=class extends r{constructor(...e){super(...e),this.code=``,this.language=``,this.copyable=!0,this._copied=!1,this._copyTimer=null}static{this.styles=[l,o,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,g as t,h as n,m as r,r as i,t as a,y as o}from"./decorate-C2wzL86z.js";import{t as s}from"./index-
|
|
1
|
+
import{S as e,g as t,h as n,m as r,r as i,t as a,y as o}from"./decorate-C2wzL86z.js";import{t as s}from"./index-IIyLteKK.js";var c=class extends t{constructor(...e){super(...e),this.status=`disconnected`,this.size=`8px`,this.showLabel=!0}static{this.styles=[i,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as e,_ as t,g as n,h as r,m as i,n as a,r as o,t as s,y as c}from"./decorate-C2wzL86z.js";import"./index-
|
|
1
|
+
import{S as e,_ as t,g as n,h as r,m as i,n as a,r as o,t as s,y as c}from"./decorate-C2wzL86z.js";import"./index-IIyLteKK.js";var l=class extends n{constructor(...e){super(...e),this.message=`No items to display`,this.description=``,this.icon=``}static{this.styles=[o,a,e`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|