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,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-console-
|
|
2
|
-
import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,t as p,u as m,x as h,y as g}from"./decorate-C2wzL86z.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function _(e,t){if(typeof e!=`object`||!e)return!1;let n=e;if(Array.isArray(n.anyOf))return n.anyOf.some(e=>_(e,t));if(Array.isArray(n.oneOf))return n.oneOf.filter(e=>_(e,t)).length===1;if(n.const!==void 0&&n.type===void 0)return t===n.const;if(Array.isArray(n.enum)&&n.type===void 0)return n.enum.includes(t);switch(n.type){case`string`:return!(typeof t!=`string`||typeof n.minLength==`number`&&t.length<n.minLength||typeof n.maxLength==`number`&&t.length>n.maxLength||n.const!==void 0&&t!==n.const||Array.isArray(n.enum)&&!n.enum.includes(t));case`number`:return!(typeof t!=`number`||Number.isNaN(t)||typeof n.minimum==`number`&&t<n.minimum||typeof n.maximum==`number`&&t>n.maximum||n.const!==void 0&&t!==n.const);case`integer`:return!(typeof t!=`number`||!Number.isInteger(t)||typeof n.minimum==`number`&&t<n.minimum||typeof n.maximum==`number`&&t>n.maximum);case`boolean`:return!(typeof t!=`boolean`||n.const!==void 0&&t!==n.const);case`null`:return t===null;case`object`:{if(typeof t!=`object`||!t||Array.isArray(t))return!1;let e=t,r=n.required??[];for(let t of r)if(!(t in e))return!1;let i=n.properties??{};for(let[t,n]of Object.entries(i))if(t in e&&!_(n,e[t]))return!1;if(n.additionalProperties===!1){let t=new Set(Object.keys(i));for(let n of Object.keys(e))if(!t.has(n))return!1}else if(typeof n.additionalProperties==`object`&&n.additionalProperties!==null){let t=new Set(Object.keys(i)),r=n.additionalProperties;for(let n of Object.keys(e))if(!t.has(n)&&!_(r,e[n]))return!1}return!0}case`array`:{if(!Array.isArray(t))return!1;let e=n.items;return e?t.every(t=>_(e,t)):!0}default:return!0}}var v={"admin.approval.clearDenialCache":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cleared:{type:`boolean`,const:!0}},required:[`cleared`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.pending":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requests:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`requests`,`total`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.resolve":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requestId:{type:`string`,minLength:1},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{type:`string`}},required:[`requestId`,`approved`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requestId:{type:`string`},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{anyOf:[{type:`string`},{type:`null`}]}},required:[`requestId`,`approved`,`approvedBy`,`reason`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.resolveAll":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{type:`string`}},required:[`approved`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{resolved:{type:`number`},requestIds:{type:`array`,items:{type:`string`}}},required:[`resolved`,`requestIds`],additionalProperties:!1},scopes:[`admin`]},"agent.cacheStats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},totalCacheSaved:{type:`number`}},required:[`providers`,`totalCacheSaved`],additionalProperties:!1},scopes:[`admin`]},"agent.getOperationModels":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},primaryModel:{type:`string`},primaryProvider:{type:`string`},providerFamily:{type:`string`},tieringActive:{type:`boolean`},operations:{type:`array`,items:{type:`object`,properties:{operationType:{type:`string`},model:{type:`string`},provider:{type:`string`},modelId:{type:`string`},source:{type:`string`},timeoutMs:{type:`number`},cacheRetention:{type:`number`},tieringActive:{type:`boolean`},crossProvider:{type:`boolean`},apiKeyConfigured:{type:`boolean`}},required:[`operationType`,`model`,`provider`,`modelId`,`source`,`timeoutMs`,`tieringActive`,`crossProvider`,`apiKeyConfigured`],additionalProperties:!1}}},required:[`agentId`,`primaryModel`,`primaryProvider`,`providerFamily`,`tieringActive`,`operations`],additionalProperties:!1},scopes:[`admin`]},"agents.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},inlineContent:{type:`object`,properties:{role:{type:`string`},identity:{type:`string`}},additionalProperties:!1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},created:{type:`boolean`,const:!0},workspaceDir:{type:`string`},inlineWritesResult:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`agentId`,`config`,`created`,`workspaceDir`],additionalProperties:!1},scopes:[`admin`]},"agents.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},deleted:{type:`boolean`,const:!0}},required:[`agentId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"agents.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},suspended:{type:`boolean`},isDefault:{type:`boolean`},workspaceDir:{type:`string`}},required:[`agentId`,`config`,`suspended`,`isDefault`,`workspaceDir`],additionalProperties:!1},scopes:[`admin`]},"agents.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agents:{type:`array`,items:{type:`string`}}},required:[`agents`],additionalProperties:!1},scopes:[`admin`]},"agents.resume":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},resumed:{type:`boolean`,const:!0}},required:[`agentId`,`resumed`],additionalProperties:!1},scopes:[`admin`]},"agents.suspend":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},suspended:{type:`boolean`,const:!0}},required:[`agentId`,`suspended`],additionalProperties:!1},scopes:[`admin`]},"agents.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},dryRun:{type:`boolean`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`,const:!0}},required:[`agentId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"audio.transcribe":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},language:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"auth.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profiles:{type:`array`,items:{type:`object`,properties:{provider:{type:`string`},profileId:{type:`string`},expires:{type:`number`},email:{type:`string`},displayName:{type:`string`}},required:[`provider`,`profileId`,`expires`],additionalProperties:!1}}},required:[`profiles`],additionalProperties:!1},scopes:[`admin`]},"auth.logout":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`,minLength:1}},required:[`profileId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`},deleted:{type:`boolean`}},required:[`profileId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"auth.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`,minLength:1},profileId:{type:`string`,minLength:1},access:{type:`string`,minLength:1},refresh:{type:`string`,minLength:1},expires:{type:`number`},accountId:{type:`string`},email:{type:`string`},displayName:{type:`string`},version:{type:`number`,const:1}},required:[`provider`,`profileId`,`access`,`refresh`,`expires`,`version`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`},stored:{type:`boolean`,const:!0}},required:[`profileId`,`stored`],additionalProperties:!1},scopes:[`admin`]},"autonomy.evict":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rootRunId:{type:`string`}},required:[`rootRunId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{evicted:{type:`boolean`}},required:[`evicted`],additionalProperties:!1},scopes:[`admin`]},"browser.act":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{request:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`request`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"browser.close":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{closed:{type:`boolean`,const:!0}},required:[`closed`],additionalProperties:!1},scopes:[`rpc`]},"browser.console":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{level:{type:`string`},targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`messages`],additionalProperties:!1},scopes:[`rpc`]},"browser.focus":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`,minLength:1}},required:[`targetId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{focused:{type:`boolean`,const:!0},targetId:{type:`string`}},required:[`focused`,`targetId`],additionalProperties:!1},scopes:[`rpc`]},"browser.navigate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetUrl:{type:`string`,minLength:1},targetId:{type:`string`}},required:[`targetUrl`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`},title:{type:`string`},targetId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`url`,`title`,`targetId`],additionalProperties:!1},scopes:[`rpc`]},"browser.open":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetUrl:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},title:{type:`string`},url:{type:`string`},type:{type:`string`}},required:[`targetId`,`title`,`url`,`type`],additionalProperties:!1},scopes:[`rpc`]},"browser.pdf":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{base64:{type:`string`},mimeType:{type:`string`}},required:[`base64`,`mimeType`],additionalProperties:!1},scopes:[`rpc`]},"browser.screenshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},fullPage:{type:`boolean`},ref:{type:`string`},element:{type:`string`},type:{type:`string`,enum:[`png`,`jpeg`]}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{base64:{type:`string`},mimeType:{type:`string`}},required:[`base64`,`mimeType`],additionalProperties:!1},scopes:[`rpc`]},"browser.snapshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},interactive:{type:`boolean`},depth:{type:`number`},compact:{type:`boolean`},selector:{type:`string`},maxChars:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"browser.start":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{started:{type:`boolean`,const:!0}},required:[`started`],additionalProperties:!1},scopes:[`rpc`]},"browser.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{running:{type:`boolean`},chromeVersion:{type:`string`},cdpPort:{type:`number`},activeTabs:{type:`number`},connected:{type:`boolean`}},required:[`running`,`cdpPort`,`activeTabs`,`connected`],additionalProperties:!1},scopes:[`rpc`]},"browser.stop":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stopped:{type:`boolean`,const:!0}},required:[`stopped`],additionalProperties:!1},scopes:[`rpc`]},"browser.tabs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tabs:{type:`array`,items:{type:`object`,properties:{targetId:{type:`string`},title:{type:`string`},url:{type:`string`},type:{type:`string`}},required:[`targetId`,`title`,`url`,`type`],additionalProperties:!1}}},required:[`tabs`],additionalProperties:!1},scopes:[`rpc`]},"capabilities.introspect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},caps:{type:`array`,items:{type:`string`}},budget:{type:`object`,properties:{tokensRemaining:{type:`number`},wallClockMsRemaining:{type:`number`},usdRemaining:{anyOf:[{type:`number`},{type:`null`}]}},required:[`tokensRemaining`,`wallClockMsRemaining`,`usdRemaining`],additionalProperties:!1},outwardQuota:{type:`object`,properties:{perHourRemaining:{type:`number`}},required:[`perHourRemaining`],additionalProperties:!1}},required:[`agentId`,`enabled`,`caps`],additionalProperties:!1},scopes:[`rpc`]},"channels.capabilities":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},features:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`channelType`,`features`],additionalProperties:!1},scopes:[`rpc`]},"channels.disable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`stopped`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"channels.enable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`running`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"channels.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},channelId:{type:`string`},status:{type:`string`,enum:[`running`,`stopped`]},configured:{type:`boolean`}},required:[`channelType`,`status`],additionalProperties:!1},scopes:[`admin`]},"channels.health":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,properties:{channelType:{type:`string`},state:{type:`string`},connectionMode:{type:`string`},lastCheckedAt:{type:`number`},lastMessageAt:{anyOf:[{type:`number`},{type:`null`}]},error:{anyOf:[{type:`string`},{type:`null`}]},stateChangedAt:{type:`number`},consecutiveFailures:{type:`number`},activeRuns:{type:`number`},restartAttempts:{type:`number`},uptimeMs:{type:`number`}},required:[`channelType`,`state`,`connectionMode`,`lastCheckedAt`,`lastMessageAt`,`error`,`stateChangedAt`,`consecutiveFailures`,`activeRuns`,`restartAttempts`,`uptimeMs`],additionalProperties:!1}},timestamp:{type:`number`},enabled:{type:`boolean`}},required:[`channels`,`timestamp`,`enabled`],additionalProperties:!1},scopes:[`rpc`]},"channels.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,properties:{channelType:{type:`string`},channelId:{type:`string`},status:{type:`string`,enum:[`running`,`stopped`]}},required:[`channelType`,`status`],additionalProperties:!1}},total:{type:`number`}},required:[`channels`,`total`],additionalProperties:!1},scopes:[`admin`]},"channels.restart":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`running`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"config.apply":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]}},required:[`section`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{applied:{type:`boolean`,const:!0},section:{type:`string`},restarting:{type:`boolean`,const:!0}},required:[`applied`,`section`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.audit.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{since:{type:`string`},until:{type:`string`},suspiciousOnly:{type:`boolean`},pid:{type:`integer`,minimum:-9007199254740991,maximum:9007199254740991},tail:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{records:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`records`],additionalProperties:!1},scopes:[`admin`]},"config.audit.scrub":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{dryRun:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rewrittenRecords:{type:`integer`,minimum:0,maximum:9007199254740991},skippedMalformed:{type:`integer`,minimum:0,maximum:9007199254740991},aborted:{type:`boolean`}},required:[`rewrittenRecords`,`skippedMalformed`,`aborted`],additionalProperties:!1},scopes:[`admin`]},"config.diff":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{diff:{type:`string`},error:{type:`string`}},required:[`diff`],additionalProperties:!1},scopes:[`admin`]},"config.gc":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{olderThan:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{gc:{type:`boolean`,const:!0},squashed:{type:`number`},newRootSha:{type:`string`}},required:[`gc`],additionalProperties:!1},scopes:[`admin`]},"config.history":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,properties:{sha:{type:`string`},timestamp:{type:`string`},message:{type:`string`},metadata:{type:`object`,properties:{section:{type:`string`},key:{type:`string`},agent:{type:`string`},user:{type:`string`},traceId:{type:`string`},summary:{type:`string`}},required:[`section`,`summary`],additionalProperties:!1}},required:[`sha`,`timestamp`,`message`,`metadata`],additionalProperties:!1}},error:{type:`string`}},required:[`entries`],additionalProperties:!1},scopes:[`admin`]},"config.patch":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},key:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]}},required:[`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{patched:{type:`boolean`,const:!0},section:{type:`string`},key:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]},restarting:{type:`boolean`,const:!0}},required:[`patched`,`section`,`value`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.read":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"config.rollback":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`,minLength:1}},required:[`sha`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rolledBack:{type:`boolean`,const:!0},sha:{type:`string`},newCommitSha:{type:`string`},restarting:{type:`boolean`,const:!0}},required:[`rolledBack`,`sha`,`newCommitSha`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.schema":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},schema:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},sections:{type:`array`,items:{type:`string`}}},required:[`schema`,`sections`],additionalProperties:!1},scopes:[`admin`]},"context.conversations":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},offset:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversations:{type:`array`,items:{type:`object`,properties:{conversation_id:{type:`string`},tenant_id:{type:`string`},agent_id:{type:`string`},session_key:{type:`string`},title:{anyOf:[{type:`string`},{type:`null`}]},created_at:{type:`string`},updated_at:{type:`string`},message_count:{type:`number`}},required:[`conversation_id`,`tenant_id`,`agent_id`,`session_key`,`title`,`created_at`,`updated_at`,`message_count`],additionalProperties:!1}},total:{type:`number`}},required:[`conversations`,`total`],additionalProperties:!1},scopes:[`rpc`]},"context.tree":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversation_id:{type:`string`}},required:[`conversation_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversationId:{type:`string`},nodes:{type:`array`,items:{type:`object`,properties:{summaryId:{type:`string`},kind:{type:`string`},depth:{type:`number`},tokenCount:{type:`number`},contentPreview:{type:`string`},childIds:{type:`array`,items:{type:`string`}},parentIds:{type:`array`,items:{type:`string`}},taint:{type:`boolean`},createdAt:{type:`string`}},required:[`summaryId`,`kind`,`depth`,`tokenCount`,`contentPreview`,`childIds`,`parentIds`,`taint`,`createdAt`],additionalProperties:!1}},messageCount:{type:`number`}},required:[`conversationId`,`nodes`,`messageCount`],additionalProperties:!1},scopes:[`rpc`]},"cron.add":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},agentId:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},message:{type:`string`},sessionTarget:{type:`string`},deliveryTarget:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},enabled:{type:`boolean`},schedule_kind:{type:`string`},payload_kind:{type:`string`},payload_text:{type:`string`},schedule_expr:{type:`string`},timezone:{type:`string`},schedule_every_ms:{type:`number`},schedule_at:{type:`string`},schedule_in_seconds:{type:`number`},model:{type:`string`},session_target:{type:`string`},wake_mode:{type:`string`},forward_to_main:{type:`boolean`},session_strategy:{type:`string`},max_history_turns:{type:`number`}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobId:{type:`string`},name:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},model:{type:`string`}},required:[`jobId`,`name`,`schedule`],additionalProperties:!1},scopes:[`rpc`]},"cron.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`jobs`],additionalProperties:!1},scopes:[`rpc`]},"cron.remove":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`}},required:[`jobName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},removed:{type:`boolean`}},required:[`jobName`,`removed`],additionalProperties:!1},scopes:[`rpc`]},"cron.run":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},mode:{type:`string`},agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{triggered:{type:`boolean`},mode:{type:`string`},jobName:{type:`string`},resolvedAgentId:{type:`string`}},required:[`triggered`,`mode`],additionalProperties:!1},scopes:[`rpc`]},"cron.runs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},limit:{type:`number`},agentId:{type:`string`}},required:[`jobName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`runs`],additionalProperties:!1},scopes:[`rpc`]},"cron.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{running:{type:`boolean`},jobCount:{type:`number`},resolvedAgentId:{type:`string`}},required:[`running`,`jobCount`],additionalProperties:!1},scopes:[`rpc`]},"cron.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobId:{type:`string`},jobName:{type:`string`},enabled:{type:`boolean`},name:{type:`string`},sessionTarget:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},message:{type:`string`},deliveryTarget:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},updated:{type:`boolean`}},required:[`jobName`,`updated`],additionalProperties:!1},scopes:[`rpc`]},"daemon.setLogLevel":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{level:{type:`string`,enum:[`fatal`,`error`,`warn`,`info`,`debug`,`trace`]},module:{type:`string`}},required:[`level`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{updated:{type:`boolean`,const:!0},module:{type:`string`},level:{type:`string`},scope:{type:`string`,enum:[`global`,`module`]},persistent:{type:`boolean`,const:!1}},required:[`updated`,`level`,`scope`,`persistent`],additionalProperties:!1},scopes:[`admin`]},"delivery.queue.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pending:{type:`number`},inFlight:{type:`number`},failed:{type:`number`},delivered:{type:`number`},expired:{type:`number`}},required:[`pending`,`inFlight`,`failed`,`delivered`,`expired`],additionalProperties:!1},scopes:[`rpc`]},"discord.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"env.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{filter:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{secrets:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},source:{type:`string`,enum:[`envfile`,`secretstore`]},provider:{type:`string`},description:{type:`string`},createdAt:{type:`number`},updatedAt:{type:`number`},expiresAt:{type:`number`}},required:[`name`,`source`],additionalProperties:!1}},total:{type:`number`},truncated:{type:`boolean`}},required:[`secrets`,`total`,`truncated`],additionalProperties:!1},scopes:[`admin`]},"env.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{key:{type:`string`,minLength:1},value:{type:`string`,minLength:1}},required:[`key`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{set:{type:`boolean`,const:!0},key:{type:`string`},storage:{type:`string`,enum:[`encrypted`,`file`]},restarting:{type:`boolean`}},required:[`set`,`key`,`storage`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"gateway.restart":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{restarting:{type:`boolean`,const:!0},systemd:{type:`boolean`},warning:{type:`string`}},required:[`restarting`,`systemd`],additionalProperties:!1},scopes:[`admin`]},"gateway.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pid:{type:`number`},uptime:{type:`number`},memoryUsage:{type:`number`},nodeVersion:{type:`string`},configPaths:{type:`array`,items:{type:`string`}},sections:{type:`array`,items:{type:`string`}},secretsStoreAvailable:{type:`boolean`},version:{type:`string`}},required:[`pid`,`uptime`,`memoryUsage`,`nodeVersion`,`configPaths`,`sections`,`secretsStoreAvailable`],additionalProperties:!1},scopes:[`admin`]},"graph.cancel":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cancelled:{type:`boolean`},graphId:{type:`string`}},required:[`cancelled`,`graphId`],additionalProperties:!1},scopes:[`rpc`]},"graph.define":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{nodes:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},label:{type:`string`},onFailure:{type:`string`},on_failure:{type:`string`},timeoutMs:{type:`number`},timeout_ms:{type:`number`},budget:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},edges:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},settings:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`nodes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{valid:{type:`boolean`},nodeCount:{type:`number`},executionOrder:{type:`array`,items:{type:`string`}},label:{type:`string`},warnings:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},errors:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},userVariables:{type:`array`,items:{type:`string`}}},required:[`valid`,`nodeCount`,`executionOrder`,`warnings`,`errors`,`userVariables`],additionalProperties:!1},scopes:[`rpc`]},"graph.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},deleted:{type:`boolean`}},required:[`id`,`deleted`],additionalProperties:!1},scopes:[`rpc`]},"graph.deleteRun":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},deleted:{type:`boolean`}},required:[`graphId`,`deleted`],additionalProperties:!1},scopes:[`rpc`]},"graph.execute":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"graph.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},offset:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`entries`,`total`],additionalProperties:!1},scopes:[`rpc`]},"graph.load":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"graph.outputs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},outputs:{type:`object`,propertyNames:{type:`string`},additionalProperties:{anyOf:[{type:`string`},{type:`null`}]}},source:{type:`string`}},required:[`graphId`,`outputs`,`source`],additionalProperties:!1},scopes:[`rpc`]},"graph.runDetail":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},name:{type:`string`},status:{type:`string`,enum:[`completed`,`failed`]},date:{type:`string`},nodes:{type:`array`,items:{type:`object`,properties:{nodeId:{type:`string`},output:{anyOf:[{type:`string`},{type:`null`}]},artifacts:{type:`array`,items:{type:`object`,properties:{filename:{type:`string`},content:{type:`string`}},required:[`filename`,`content`],additionalProperties:!1}}},required:[`nodeId`,`output`,`artifacts`],additionalProperties:!1}}},required:[`graphId`,`name`,`status`,`date`,`nodes`],additionalProperties:!1},scopes:[`rpc`]},"graph.runs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,properties:{graphId:{type:`string`},name:{type:`string`},status:{type:`string`,enum:[`completed`,`failed`]},nodeCount:{type:`number`},date:{type:`string`},fileCount:{type:`number`}},required:[`graphId`,`name`,`status`,`nodeCount`,`date`,`fileCount`],additionalProperties:!1}}},required:[`runs`],additionalProperties:!1},scopes:[`rpc`]},"graph.save":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{label:{type:`string`},id:{type:`string`},agentId:{type:`string`},nodes:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},edges:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},settings:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`label`,`nodes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},saved:{type:`boolean`}},required:[`id`,`saved`],additionalProperties:!1},scopes:[`rpc`]},"graph.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`},recentMinutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"heartbeat.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},perAgent:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},effective:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`agentId`,`perAgent`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.states":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agents:{type:`array`,items:{type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},intervalMs:{type:`number`},lastRunMs:{type:`number`},nextDueMs:{type:`number`},consecutiveErrors:{type:`number`},backoffUntilMs:{type:`number`},tickStartedAtMs:{type:`number`},lastAlertMs:{type:`number`},lastErrorKind:{anyOf:[{type:`string`,enum:[`transient`,`permanent`]},{type:`null`}]}},required:[`agentId`,`enabled`,`intervalMs`,`lastRunMs`,`nextDueMs`,`consecutiveErrors`,`backoffUntilMs`,`tickStartedAtMs`,`lastAlertMs`,`lastErrorKind`],additionalProperties:!1}}},required:[`agents`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.trigger":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},triggered:{type:`boolean`}},required:[`agentId`,`triggered`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},intervalMs:{type:`number`},showOk:{type:`boolean`},showAlerts:{type:`boolean`},prompt:{type:`string`},model:{type:`string`},session:{type:`string`},allowDm:{type:`boolean`},lightContext:{type:`boolean`},ackMaxChars:{type:`number`},responsePrefix:{type:`string`},skipHeartbeatOnlyDelivery:{type:`boolean`},alertThreshold:{type:`number`},alertCooldownMs:{type:`number`},staleMs:{type:`number`},targetChannelType:{type:`string`},targetChannelId:{type:`string`},targetChatId:{type:`string`},targetIsDm:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`}},required:[`agentId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"image.analyze":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{source_type:{type:`string`},source:{type:`string`},attachment_url:{type:`string`},prompt:{type:`string`},mime_type:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`],additionalProperties:!1},scopes:[`rpc`]},"image.generate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{prompt:{type:`string`},size:{type:`string`},model:{type:`string`},reference_image:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"lease.revoke":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{leaseId:{type:`string`},rootRunId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{revoked:{type:`integer`,minimum:0,maximum:9007199254740991}},required:[`revoked`],additionalProperties:!1},scopes:[`admin`]},"link.process":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enrichedText:{type:`string`},linksProcessed:{type:`number`},errors:{type:`array`,items:{type:`string`}}},required:[`enrichedText`,`linksProcessed`,`errors`],additionalProperties:!1},scopes:[`rpc`]},"mcp.connect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},rlimits:{type:`object`,properties:{as:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},nofile:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},cpu:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},disablePlaintextSecretCheck:{type:`boolean`},keepaliveIntervalMs:{type:`integer`,minimum:0,maximum:9007199254740991},circuitBreakerThreshold:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},circuitBreakerCooldownMs:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},auth:{type:`string`,enum:[`headers`,`oauth`]}},required:[`server_name`,`transport`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}},persistence:{type:`string`,enum:[`persisted`,`runtime_only`,`skipped`]},warning:{type:`string`}},required:[`name`,`status`,`toolCount`,`tools`],additionalProperties:!1},scopes:[`admin`]},"mcp.disconnect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,const:`disconnected`},persistence:{type:`string`,enum:[`persisted`,`runtime_only`,`skipped`]},warning:{type:`string`}},required:[`name`,`status`],additionalProperties:!1},scopes:[`admin`]},"mcp.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{servers:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},lastHealthCheck:{type:`number`},reconnectAttempt:{type:`number`},error:{type:`string`},capabilities:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},serverVersion:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1}},required:[`name`,`status`,`toolCount`,`lastHealthCheck`,`reconnectAttempt`],additionalProperties:!1}},total:{type:`number`}},required:[`servers`,`total`],additionalProperties:!1},scopes:[`admin`]},"mcp.oauth_login":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`},status:{type:`string`,enum:[`authorized`,`headless_hint`,`device_code_pending`,`failed`]},portForwardHint:{type:`string`},authUrl:{type:`string`},verificationUri:{type:`string`},userCode:{type:`string`},expiresIn:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},required:[`server_name`,`status`],additionalProperties:!1},scopes:[`admin`]},"mcp.oauth_logout":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`},cleared:{type:`boolean`}},required:[`server_name`,`cleared`],additionalProperties:!1},scopes:[`admin`]},"mcp.reconnect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}}},required:[`name`,`status`,`toolCount`,`tools`],additionalProperties:!1},scopes:[`admin`]},"mcp.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},qualifiedName:{type:`string`},description:{type:`string`}},required:[`name`,`qualifiedName`],additionalProperties:!1}},lastHealthCheck:{type:`number`},reconnectAttempt:{type:`number`},maxReconnectAttempts:{type:`number`},error:{type:`string`},generation:{type:`number`},serverInfo:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1},instructions:{type:`string`},capabilities:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},serverVersion:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1}},required:[`name`,`status`,`toolCount`,`tools`,`lastHealthCheck`,`reconnectAttempt`,`maxReconnectAttempts`,`generation`],additionalProperties:!1},scopes:[`admin`]},"mcp.test":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},rlimits:{type:`object`,properties:{as:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},nofile:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},cpu:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},disablePlaintextSecretCheck:{type:`boolean`}},required:[`name`,`transport`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{success:{type:`boolean`},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}},error:{type:`string`}},required:[`success`],additionalProperties:!1},scopes:[`admin`]},"media.describe_video":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`},prompt:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`rpc`]},"media.extract_document":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},fileName:{type:`string`},mimeType:{type:`string`},extractedChars:{type:`number`},truncated:{type:`boolean`},durationMs:{type:`number`}},required:[`text`,`mimeType`,`extractedChars`,`truncated`,`durationMs`],additionalProperties:!1},scopes:[`rpc`]},"media.providers":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"media.test.document":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{file:{type:`string`},mimeType:{type:`string`},fileName:{type:`string`}},required:[`file`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},fileName:{type:`string`},mimeType:{type:`string`},extractedChars:{type:`number`},truncated:{type:`boolean`},durationMs:{type:`number`},pageCount:{type:`number`}},required:[`text`,`fileName`,`mimeType`,`extractedChars`,`truncated`,`durationMs`],additionalProperties:!1},scopes:[`admin`]},"media.test.link":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`}},required:[`url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enrichedText:{type:`string`},linksProcessed:{type:`number`},errors:{type:`array`,items:{type:`string`}}},required:[`enrichedText`,`linksProcessed`,`errors`],additionalProperties:!1},scopes:[`admin`]},"media.test.stt":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},language:{type:`string`}},required:[`audio`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},language:{type:`string`},durationMs:{type:`number`},provider:{type:`string`}},required:[`text`,`durationMs`,`provider`],additionalProperties:!1},scopes:[`admin`]},"media.test.tts":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},voice:{type:`string`},format:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},sizeBytes:{type:`number`},provider:{type:`string`}},required:[`audio`,`mimeType`,`sizeBytes`,`provider`],additionalProperties:!1},scopes:[`admin`]},"media.test.video":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{video:{type:`string`},mimeType:{type:`string`},prompt:{type:`string`},provider:{type:`string`}},required:[`video`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`admin`]},"media.test.vision":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{image:{type:`string`},mimeType:{type:`string`},prompt:{type:`string`},provider:{type:`string`}},required:[`image`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`admin`]},"media.transcribe":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`},language:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},language:{type:`string`},durationMs:{type:`number`}},required:[`text`,`durationMs`],additionalProperties:!1},scopes:[`rpc`]},"memory.ask":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{question:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},required:[`question`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{answer:{type:`string`},citations:{type:`array`,items:{type:`string`}},abstained:{type:`boolean`},reason:{type:`string`}},required:[`answer`,`citations`,`abstained`],additionalProperties:!1},scopes:[`rpc`]},"memory.browse":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},offset:{type:`number`},limit:{type:`number`},sort:{type:`string`},memory_type:{type:`string`},trust_level:{type:`string`},tags:{type:`array`,items:{type:`string`}}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`},hasMore:{type:`boolean`}},required:[`entries`,`total`,`offset`,`limit`,`hasMore`],additionalProperties:!1},scopes:[`admin`]},"memory.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ids:{minItems:1,type:`array`,items:{type:`string`}},tenant_id:{type:`string`}},required:[`ids`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`number`},failed:{type:`number`},total:{type:`number`}},required:[`deleted`,`failed`,`total`],additionalProperties:!1},scopes:[`admin`]},"memory.embeddingCache":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enabled:{type:`boolean`},l1:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},l2:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]},provider:{type:`string`},vecAvailable:{type:`boolean`},circuitBreaker:{type:`object`,properties:{state:{type:`string`}},required:[`state`],additionalProperties:!1}},required:[`enabled`,`vecAvailable`,`circuitBreaker`],additionalProperties:!1},scopes:[`admin`]},"memory.entities":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entities:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},name:{type:`string`},mentionCount:{type:`number`},firstSeen:{type:`number`},lastSeen:{type:`number`}},required:[`id`,`name`,`mentionCount`],additionalProperties:!1}}},required:[`entities`],additionalProperties:!1},scopes:[`admin`]},"memory.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},offset:{type:`number`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`}},required:[`entries`,`total`,`offset`,`limit`],additionalProperties:!1},scopes:[`admin`]},"memory.flush":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{flushed:{type:`boolean`,const:!0},entriesRemoved:{type:`number`},scope:{type:`object`,properties:{tenantId:{type:`string`},agentId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`tenantId`,`agentId`],additionalProperties:!1}},required:[`flushed`,`entriesRemoved`,`scope`],additionalProperties:!1},scopes:[`admin`]},"memory.get_file":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{path:{type:`string`},startLine:{type:`number`},endLine:{type:`number`}},required:[`path`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{path:{type:`string`},startLine:{type:`number`},endLine:{type:`number`},totalLines:{type:`number`},content:{type:`string`}},required:[`path`,`startLine`,`endLine`,`totalLines`,`content`],additionalProperties:!1},scopes:[`rpc`]},"memory.observations":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{observations:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},content:{type:`string`},proofCount:{type:`number`},sourceIds:{type:`array`,items:{type:`string`}},confidence:{type:`number`},consolidatedAt:{type:`number`},createdAt:{type:`number`}},required:[`id`,`content`,`createdAt`],additionalProperties:!1}}},required:[`observations`],additionalProperties:!1},scopes:[`admin`]},"memory.pin":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1},tenant_id:{type:`string`},agent_id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pinned:{type:`boolean`,const:!0},found:{type:`boolean`},id:{type:`string`}},required:[`pinned`,`found`,`id`],additionalProperties:!1},scopes:[`admin`]},"memory.portability.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agent_id:{type:`string`},tenant_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`string`,const:`comis-memory-export-v1`},exportedAt:{type:`number`},scope:{type:`object`,properties:{tenantId:{type:`string`},agentId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`tenantId`,`agentId`],additionalProperties:!1},entryCount:{type:`number`},entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`schemaVersion`,`exportedAt`,`scope`,`entryCount`,`entries`],additionalProperties:!1},scopes:[`admin`]},"memory.portability.import":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{maxItems:1e4,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},agent_id:{type:`string`,minLength:1},tenant_id:{type:`string`},dry_run:{type:`boolean`}},required:[`entries`,`agent_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{imported:{type:`number`},blocked:{type:`number`},downgraded:{type:`number`},deduped:{type:`number`},total:{type:`number`},dryRun:{type:`boolean`}},required:[`imported`,`blocked`,`downgraded`,`deduped`,`total`,`dryRun`],additionalProperties:!1},scopes:[`admin`]},"memory.recall_stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{laneUsage:{type:`object`,properties:{fts:{type:`number`},vector:{type:`number`},entity:{type:`number`}},required:[`fts`,`vector`,`entity`],additionalProperties:!1},rerankRuns:{type:`number`},rerankFallbacks:{type:`number`},consolidationClusters:{type:`number`},observationsCreated:{type:`number`},recalls:{type:`number`},recallsWithHits:{type:`number`},rerankFallbackRate:{type:`number`},recallHitRate:{type:`number`}},required:[`laneUsage`,`rerankRuns`,`rerankFallbacks`,`consolidationClusters`,`observationsCreated`,`recalls`,`recallsWithHits`,`rerankFallbackRate`,`recallHitRate`],additionalProperties:!1},scopes:[`admin`]},"memory.recall_trace":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},trace_id:{type:`string`},tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{records:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},tracingEnabled:{type:`boolean`},hint:{type:`string`}},required:[`records`],additionalProperties:!1},scopes:[`admin`]},"memory.search_files":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{query:{type:`string`},limit:{type:`number`}},required:[`query`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{results:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},content:{type:`string`},score:{type:`number`},tags:{type:`array`,items:{type:`string`}},createdAt:{type:`number`}},required:[`id`,`content`,`score`,`tags`,`createdAt`],additionalProperties:!1}}},required:[`results`],additionalProperties:!1},scopes:[`rpc`]},"memory.stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"memory.store":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{content:{type:`string`,minLength:1},tags:{type:`array`,items:{type:`string`}},trustLevel:{type:`string`}},required:[`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stored:{type:`boolean`,const:!0},id:{type:`string`}},required:[`stored`,`id`],additionalProperties:!1},scopes:[`rpc`]},"memory.unpin":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1},tenant_id:{type:`string`},agent_id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{unpinned:{type:`boolean`,const:!0},id:{type:`string`}},required:[`unpinned`,`id`],additionalProperties:!1},scopes:[`admin`]},"message.attach":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},attachment_url:{type:`string`},attachment_type:{type:`string`,enum:[`image`,`file`,`audio`,`video`]},mime_type:{type:`string`},file_name:{type:`string`},caption:{type:`string`}},required:[`channel_type`,`channel_id`,`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`admin`]},"message.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`}},required:[`deleted`,`channelId`,`messageId`],additionalProperties:!1},scopes:[`admin`]},"message.edit":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},text:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{edited:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`}},required:[`edited`,`channelId`,`messageId`],additionalProperties:!1},scopes:[`admin`]},"message.fetch":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},limit:{type:`number`},before:{type:`string`}},required:[`channel_type`,`channel_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},channelId:{type:`string`}},required:[`messages`,`channelId`],additionalProperties:!1},scopes:[`admin`]},"message.react":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},emoji:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`,`emoji`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reacted:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`},emoji:{type:`string`}},required:[`reacted`,`channelId`,`messageId`,`emoji`],additionalProperties:!1},scopes:[`rpc`]},"message.reply":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},text:{type:`string`},buttons:{type:`array`,items:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},cards:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},effects:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},thread_reply:{type:`boolean`}},required:[`channel_type`,`channel_id`,`message_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`rpc`]},"message.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},text:{type:`string`},buttons:{type:`array`,items:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},cards:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},effects:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},thread_reply:{type:`boolean`}},required:[`channel_type`,`channel_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`rpc`]},"models.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"models.list_providers":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`string`}},count:{type:`number`}},required:[`providers`,`count`],additionalProperties:!1},scopes:[`admin`]},"models.test":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},required:[`provider`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"notification.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{message:{type:`string`},priority:{type:`string`,enum:[`low`,`normal`,`high`,`critical`]},channel_type:{type:`string`},channel_id:{type:`string`},origin:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{success:{type:`boolean`},entryId:{type:`string`},error:{type:`string`}},required:[`success`],additionalProperties:!1},scopes:[`rpc`]},"obs.audit.query":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{kind:{type:`string`,minLength:1},classification:{type:`string`,minLength:1},agentId:{type:`string`,minLength:1},tenant:{type:`string`},outcome:{type:`string`,minLength:1},since:{type:`number`},until:{type:`number`},limit:{type:`number`,exclusiveMinimum:0}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.byAgent":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},sinceMs:{type:`number`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`},budgetUsed:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},tools:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.byProvider":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`providers`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.bySession":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`,minLength:1},sinceMs:{type:`number`}},required:[`sessionKey`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.total":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.usage24h":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.cacheBreaks.byReason":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{since:{type:`integer`,minimum:0,maximum:9007199254740991},until:{type:`integer`,minimum:0,maximum:9007199254740991}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.cacheStats.window":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`integer`,minimum:0,maximum:9007199254740991},untilMs:{type:`integer`,minimum:0,maximum:9007199254740991},agent:{type:`string`,minLength:1},provider:{type:`string`,minLength:1}},required:[`sinceMs`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{window:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`window`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.all":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`channels`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelId:{type:`string`,minLength:1}},required:[`channelId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},required:[`channel`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.stale":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{thresholdMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stale:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`stale`],additionalProperties:!1},scopes:[`admin`]},"obs.context.dag":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.context.pipeline":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.delivery.recent":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`},limit:{type:`number`},channelId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deliveries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`deliveries`],additionalProperties:!1},scopes:[`admin`]},"obs.delivery.stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{total:{type:`number`},successes:{type:`number`},failures:{type:`number`},avgLatencyMs:{type:`number`}},required:[`total`,`successes`,`failures`,`avgLatencyMs`],additionalProperties:!1},scopes:[`admin`]},"obs.diagnostics":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{category:{type:`string`,enum:[`usage`,`webhook`,`message`,`session`]},limit:{type:`number`},sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{events:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},counts:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`events`,`counts`],additionalProperties:!1},scopes:[`rpc`]},"obs.explain":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`,minLength:1},traceId:{type:`string`,minLength:1},rootRunId:{type:`string`,minLength:1},depth:{type:`string`,enum:[`summary`,`full`]},includeSynthetic:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`number`,const:1},sessionKey:{type:`string`},traceId:{type:`string`},agentId:{type:`string`},channel:{type:`object`,properties:{type:{type:`string`},id:{type:`string`}},required:[`type`,`id`],additionalProperties:!1},outcome:{type:`object`,properties:{endReason:{type:`string`},degraded:{type:`boolean`},severity:{type:`string`,enum:[`ok`,`degraded`,`failed`]}},required:[`endReason`,`degraded`,`severity`],additionalProperties:!1},cost:{type:`object`,properties:{costUsd:{type:`number`},totalTokens:{type:`number`},cacheReadRatio:{type:`number`}},required:[`costUsd`,`totalTokens`,`cacheReadRatio`],additionalProperties:!1},timing:{type:`object`,properties:{durationMs:{type:`number`},turnCount:{type:`number`}},required:[`durationMs`,`turnCount`],additionalProperties:!1},toolStats:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`},topErrorKind:{type:`string`}},required:[`ok`,`failed`],additionalProperties:!1}},failures:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},toolName:{type:`string`},classifiedFailureBy:{type:`string`},transportOk:{type:`boolean`},httpStatus:{type:`number`},errorKind:{type:`string`},matchedToken:{type:`string`},matchedRule:{type:`string`},resultDigest:{type:`string`},resultBytes:{type:`number`},errorPreview:{type:`string`}},required:[`seq`,`toolName`,`classifiedFailureBy`,`transportOk`,`errorKind`,`resultDigest`,`resultBytes`,`errorPreview`],additionalProperties:!1}},breakerTimeline:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},event:{type:`string`,enum:[`opened`,`reset`]},toolName:{type:`string`},consecutiveFailures:{type:`number`}},required:[`seq`,`event`,`toolName`],additionalProperties:!1}},offloads:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},toolName:{type:`string`},originalChars:{type:`number`},pointer:{type:`string`}},required:[`seq`,`toolName`,`originalChars`,`pointer`],additionalProperties:!1}},nodeBudgetBreaches:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},nodeId:{type:`string`},capSource:{type:`string`,enum:[`node`,`operator-default`,`inherit-share`,`unknown`]},tokenBudget:{type:`number`},tokensUsed:{type:`number`}},required:[`seq`,`nodeId`,`capSource`,`tokenBudget`,`tokensUsed`],additionalProperties:!1}},spawnTree:{type:`array`,items:{type:`object`,properties:{leaseId:{type:`string`},parentLeaseId:{type:`string`},rootRunId:{type:`string`},agentId:{type:`string`},caps:{type:`array`,items:{type:`string`}},toolsInvoked:{type:`array`,items:{type:`string`}},denials:{type:`array`,items:{type:`string`}},budgetTokensUsed:{type:`number`}},required:[`leaseId`,`rootRunId`,`agentId`,`caps`,`toolsInvoked`,`denials`],additionalProperties:!1}},contextBudget:{type:`object`,properties:{windowTokens:{type:`number`},rawContextWindowTokens:{type:`number`},windowCapSource:{type:`string`,enum:[`effectiveContextCapSmall`,`effectiveContextCapNano`,`served`,`capabilityClass`,`none`]},systemTokens:{type:`number`},freshTailTokens:{type:`number`},budgetedHistoryTokens:{type:`number`},keptCount:{type:`number`},assembledInputTokens:{type:`number`},outputHeadroom:{type:`number`},verdict:{type:`string`,enum:[`fits`,`downshifted`,`exhausted`]}},required:[`windowTokens`,`rawContextWindowTokens`,`windowCapSource`,`systemTokens`,`freshTailTokens`,`budgetedHistoryTokens`,`keptCount`,`assembledInputTokens`,`outputHeadroom`,`verdict`],additionalProperties:!1},contextBudgetHistory:{type:`array`,items:{type:`object`,properties:{windowTokens:{type:`number`},assembledInputTokens:{type:`number`},keptCount:{type:`number`},verdict:{type:`string`,enum:[`fits`,`downshifted`,`exhausted`]}},required:[`windowTokens`,`assembledInputTokens`,`keptCount`,`verdict`],additionalProperties:!1}},recall:{type:`object`,properties:{recalls:{type:`number`},zeroHits:{type:`number`},lastLanes:{type:`number`},lastFinalCount:{type:`number`},rerankerAvailable:{type:`boolean`}},required:[`recalls`,`zeroHits`,`lastLanes`,`lastFinalCount`,`rerankerAvailable`],additionalProperties:!1},image:{type:`object`,properties:{provider:{type:`string`},model:{type:`string`},costUsd:{type:`number`},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`},delivered:{type:`boolean`},persisted:{type:`boolean`}},required:[`provider`,`outcome`,`delivered`],additionalProperties:!1},vision:{type:`object`,properties:{provider:{type:`string`},mainProvider:{type:`string`},model:{type:`string`},costUsd:{type:`number`},path:{type:`string`,enum:[`main-vision`,`registry`,`gemini-video`,`unavailable`]},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`}},required:[`provider`,`outcome`],additionalProperties:!1},videoGenerated:{type:`object`,properties:{provider:{type:`string`},model:{type:`string`},jobId:{type:`string`},costUsd:{type:`number`},estimatedCostUsd:{type:`number`},durationSecs:{type:`number`},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`},delivered:{type:`boolean`}},required:[`provider`,`outcome`,`delivered`],additionalProperties:!1},voice:{type:`object`,properties:{provider:{type:`string`},keyless:{type:`boolean`},model:{type:`string`},durationMs:{type:`number`},costUsd:{type:`number`},source:{type:`string`,enum:[`explicit`,`keyless-local`,`follow-main-key`,`fallback`]},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`}},required:[`provider`,`keyless`,`outcome`],additionalProperties:!1},learning:{type:`object`,properties:{outcomeResolved:{type:`boolean`},outcome:{type:`string`,enum:[`success`,`failure`,`corrected`,`unknown`]},sources:{type:`array`,items:{type:`string`,enum:[`tool`,`pipeline`,`correction`,`judge`,`reaction`,`explicit`]}},skillsUsed:{type:`array`,items:{type:`string`}},skillFailures:{type:`array`,items:{type:`string`}},synthesisAbstained:{type:`boolean`},skillsPromoted:{type:`number`},skillsDemoted:{type:`number`},skillsDemotedNames:{type:`array`,items:{type:`string`}},failuresAttributed:{type:`number`},skillsSurfacedButUncredited:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},coverage:{type:`number`}},required:[`name`,`coverage`],additionalProperties:!1}}},required:[`outcomeResolved`,`sources`,`skillsUsed`,`skillFailures`,`synthesisAbstained`],additionalProperties:!1},cacheBreaks:{type:`array`,items:{type:`object`,properties:{reason:{type:`string`},count:{type:`number`},estCostUsd:{type:`number`}},required:[`reason`,`count`,`estCostUsd`],additionalProperties:!1}},audit:{type:`object`,properties:{total:{type:`number`},byKind:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}}},required:[`total`,`byKind`],additionalProperties:!1},spend:{type:`object`,properties:{scope:{type:`string`},totalUsd:{type:`number`},capUsd:{type:`number`}},required:[`scope`,`totalUsd`,`capUsd`],additionalProperties:!1},perRootBudget:{type:`object`,properties:{limb:{type:`string`},spent:{type:`number`},cap:{type:`number`},unit:{type:`string`}},required:[`limb`,`spent`,`cap`,`unit`],additionalProperties:!1},turnCount:{type:`number`},summary:{type:`string`},likelyRootCause:{anyOf:[{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},suggestedNextSteps:{type:`array`,items:{type:`string`}}},required:[`code`,`detail`,`suggestedNextSteps`],additionalProperties:!1},{type:`null`}]},suggestedNextSteps:{type:`array`,items:{type:`string`}},truncations:{type:`array`,items:{type:`object`,properties:{field:{type:`string`},reason:{type:`string`},pointer:{type:`string`}},required:[`field`,`reason`],additionalProperties:!1}},coverage:{type:`object`,properties:{trajectory:{type:`object`,properties:{found:{type:`boolean`},records:{type:`number`}},required:[`found`,`records`],additionalProperties:!1},rollup:{type:`object`,properties:{present:{type:`boolean`}},required:[`present`],additionalProperties:!1},offloads:{type:`object`,properties:{pointersResolved:{type:`number`},pointersTotal:{type:`number`}},required:[`pointersResolved`,`pointersTotal`],additionalProperties:!1},toolStats:{type:`object`,properties:{reconciled:{type:`boolean`},rollupSource:{type:`string`,const:`last-execution`},divergentTools:{type:`array`,items:{type:`object`,properties:{tool:{type:`string`},rollup:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1},trajectory:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1}},required:[`tool`,`rollup`,`trajectory`],additionalProperties:!1}}},required:[`reconciled`,`rollupSource`,`divergentTools`],additionalProperties:!1}},required:[`trajectory`,`rollup`,`offloads`],additionalProperties:!1}},required:[`schemaVersion`,`sessionKey`,`traceId`,`agentId`,`channel`,`outcome`,`cost`,`timing`,`toolStats`,`failures`,`breakerTimeline`,`offloads`,`summary`,`likelyRootCause`,`suggestedNextSteps`,`truncations`],additionalProperties:!1},scopes:[`rpc`]},"obs.fleet.health":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceHours:{type:`number`,exclusiveMinimum:0}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`number`,const:1},windowHours:{type:`number`},sessions:{type:`object`,properties:{total:{type:`number`},degraded:{type:`number`},degradedRate:{type:`number`}},required:[`total`,`degraded`,`degradedRate`],additionalProperties:!1},topErrorKinds:{type:`array`,items:{type:`object`,properties:{kind:{type:`string`},count:{type:`number`}},required:[`kind`,`count`],additionalProperties:!1}},degradedByCause:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}},breakerTripTotal:{type:`number`},toolStats:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1}},cost:{type:`object`,properties:{costUsd:{type:`number`},totalTokens:{type:`number`}},required:[`costUsd`,`totalTokens`],additionalProperties:!1},activity:{type:`object`,properties:{activeAgents:{type:`array`,items:{type:`string`}},activeChannels:{type:`array`,items:{type:`string`}},exitReasons:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}},turnTotal:{type:`number`},tokenTotal:{type:`number`}},required:[`activeAgents`,`activeChannels`,`exitReasons`,`turnTotal`,`tokenTotal`],additionalProperties:!1},findings:{type:`array`,items:{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},count:{type:`number`},hint:{type:`string`}},required:[`code`,`detail`,`count`,`hint`],additionalProperties:!1}},likelyRootCause:{anyOf:[{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},suggestedNextSteps:{type:`array`,items:{type:`string`}}},required:[`code`,`detail`,`suggestedNextSteps`],additionalProperties:!1},{type:`null`}]},suggestedNextSteps:{type:`array`,items:{type:`string`}},truncations:{type:`array`,items:{type:`object`,properties:{field:{type:`string`},reason:{type:`string`},pointer:{type:`string`}},required:[`field`,`reason`],additionalProperties:!1}},coverage:{type:`object`,properties:{sessionSummary:{type:`object`,properties:{found:{type:`boolean`},rows:{type:`number`}},required:[`found`,`rows`],additionalProperties:!1},sessionIndex:{type:`object`,properties:{daysRead:{type:`number`},daysMissing:{type:`number`}},required:[`daysRead`,`daysMissing`],additionalProperties:!1},billing:{type:`object`,properties:{present:{type:`boolean`}},required:[`present`],additionalProperties:!1}},required:[`sessionSummary`,`sessionIndex`,`billing`],additionalProperties:!1},pipelineAuthoringGate:{type:`object`,properties:{buildAuthor:{type:`boolean`},reason:{type:`string`}},required:[`buildAuthor`,`reason`],additionalProperties:!1},autonomy:{type:`object`,properties:{runs:{type:`object`,properties:{total:{type:`number`},degraded:{type:`number`},degradedRate:{type:`number`}},required:[`total`,`degraded`,`degradedRate`],additionalProperties:!1},orphaned:{type:`number`},resumed:{type:`number`},revoked:{type:`number`},killed:{type:`number`},breakerTrips:{type:`number`},denialBreakerTrips:{type:`number`},budgetBreaches:{type:`number`},costUsd:{type:`number`},worstRootRunId:{type:`string`}},required:[`runs`,`orphaned`,`resumed`,`revoked`,`killed`,`breakerTrips`,`denialBreakerTrips`,`budgetBreaches`,`costUsd`],additionalProperties:!1}},required:[`schemaVersion`,`windowHours`,`sessions`,`topErrorKinds`,`degradedByCause`,`breakerTripTotal`,`toolStats`,`cost`,`activity`,`findings`,`likelyRootCause`,`suggestedNextSteps`,`truncations`],additionalProperties:!1},scopes:[`admin`]},"obs.getCacheStats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cacheHitRate:{type:`number`},cacheEffectiveness:{type:`number`}},required:[`cacheHitRate`,`cacheEffectiveness`],additionalProperties:!1},scopes:[`admin`]},"obs.reset":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},rowsDeleted:{type:`object`,properties:{tokenUsage:{type:`number`},delivery:{type:`number`},diagnostics:{type:`number`},channels:{type:`number`}},required:[`tokenUsage`,`delivery`,`diagnostics`,`channels`],additionalProperties:!1}},required:[`reset`,`rowsDeleted`],additionalProperties:!1},scopes:[`admin`]},"obs.reset.table":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{table:{type:`string`,enum:[`token_usage`,`delivery`,`diagnostics`,`channels`]}},required:[`table`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},table:{type:`string`},rowsDeleted:{type:`number`}},required:[`reset`,`table`,`rowsDeleted`],additionalProperties:!1},scopes:[`admin`]},"obs.spend.snapshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{snapshot:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`snapshot`],additionalProperties:!1},scopes:[`admin`]},"obs.systemPromptReport.latest":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},sessionId:{type:`string`,minLength:1},runId:{type:`string`}},required:[`agentId`,`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{report:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},required:[`report`],additionalProperties:!1},scopes:[`admin`]},"obs.systemPromptReport.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionId:{type:`string`,minLength:1},limit:{type:`integer`,exclusiveMinimum:0,maximum:100}},required:[`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reports:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`reports`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionId:{type:`string`,minLength:1}},required:[`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{bundlePath:{type:`string`}},required:[`bundlePath`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.search":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},traceId:{type:`string`},chatId:{type:`string`},since:{type:`string`},where:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3},includeSynthetic:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.tail":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{chatId:{type:`string`,minLength:1},sinceMs:{type:`number`},limit:{type:`integer`,exclusiveMinimum:0,maximum:100}},required:[`chatId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{events:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},nextSinceMs:{type:`number`}},required:[`events`,`nextSinceMs`],additionalProperties:!1},scopes:[`admin`]},"providers.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},created:{type:`boolean`,const:!0}},required:[`providerId`,`config`,`created`],additionalProperties:!1},scopes:[`admin`]},"providers.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},deleted:{type:`boolean`,const:!0}},required:[`providerId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"providers.disable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},enabled:{type:`boolean`,const:!1},warning:{type:`string`}},required:[`providerId`,`enabled`],additionalProperties:!1},scopes:[`admin`]},"providers.enable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},enabled:{type:`boolean`,const:!0}},required:[`providerId`,`enabled`],additionalProperties:!1},scopes:[`admin`]},"providers.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},apiKeyConfigured:{anyOf:[{type:`boolean`},{type:`null`}]},agentsUsing:{type:`array`,items:{type:`string`}}},required:[`providerId`,`config`,`apiKeyConfigured`,`agentsUsing`],additionalProperties:!1},scopes:[`admin`]},"providers.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},type:{type:`string`},name:{type:`string`},enabled:{type:`boolean`},baseUrl:{type:`string`},apiKeyName:{type:`string`},modelCount:{type:`number`},apiKeyConfigured:{anyOf:[{type:`boolean`},{type:`null`}]}},required:[`id`,`type`,`name`,`enabled`,`baseUrl`,`modelCount`,`apiKeyConfigured`],additionalProperties:!1}}},required:[`providers`],additionalProperties:!1},scopes:[`admin`]},"providers.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`,const:!0}},required:[`providerId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"run.kill":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rootRunId:{type:`string`}},required:[`rootRunId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{killed:{type:`integer`,minimum:0,maximum:9007199254740991}},required:[`killed`],additionalProperties:!1},scopes:[`admin`]},"scheduler.wake":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{source:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{woke:{type:`boolean`},source:{type:`string`}},required:[`woke`,`source`],additionalProperties:!1},scopes:[`rpc`]},"secrets.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},deleted:{type:`boolean`},restarting:{type:`boolean`}},required:[`name`,`deleted`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"secrets.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},exists:{type:`boolean`},value:{type:`string`}},required:[`name`,`exists`],additionalProperties:!1},scopes:[`admin`]},"secrets.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{secrets:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},provider:{type:`string`},description:{type:`string`},expiresAt:{type:`number`},createdAt:{type:`number`},updatedAt:{type:`number`}},required:[`name`,`createdAt`,`updatedAt`],additionalProperties:!1}}},required:[`secrets`],additionalProperties:!1},scopes:[`admin`]},"secrets.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},value:{type:`string`,minLength:1},provider:{type:`string`},description:{type:`string`},expiresAt:{type:`number`}},required:[`name`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},stored:{type:`boolean`},restarting:{type:`boolean`}},required:[`name`,`stored`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"session.compact":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},instructions:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},messageCount:{type:`number`},estimatedTokens:{type:`number`},compactionTriggered:{type:`boolean`,const:!0},instructions:{anyOf:[{type:`string`},{type:`null`}]}},required:[`sessionKey`,`messageCount`,`estimatedTokens`,`compactionTriggered`,`instructions`],additionalProperties:!1},scopes:[`rpc`]},"session.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},deleted:{type:`boolean`,const:!0},transcript:{type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},metadata:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},messageCount:{type:`number`}},required:[`messages`,`metadata`,`messageCount`],additionalProperties:!1}},required:[`sessionKey`,`deleted`,`transcript`],additionalProperties:!1},scopes:[`admin`]},"session.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},metadata:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},messageCount:{type:`number`},createdAt:{type:`number`},updatedAt:{type:`number`}},required:[`sessionKey`,`messages`,`metadata`,`messageCount`,`createdAt`,`updatedAt`],additionalProperties:!1},scopes:[`admin`]},"session.history":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},offset:{type:`number`},limit:{type:`number`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session:{type:`object`,properties:{key:{type:`string`},agentId:{type:`string`},channelType:{type:`string`},messageCount:{type:`number`},totalTokens:{type:`number`},inputTokens:{type:`number`},outputTokens:{type:`number`},toolCalls:{type:`number`},compactions:{type:`number`},resetCount:{type:`number`},createdAt:{type:`number`},lastActiveAt:{type:`number`},label:{type:`string`}},required:[`key`,`agentId`,`channelType`,`messageCount`,`totalTokens`,`inputTokens`,`outputTokens`,`toolCalls`,`compactions`,`resetCount`,`createdAt`,`lastActiveAt`],additionalProperties:!1},messages:{type:`array`,items:{type:`object`,properties:{role:{type:`string`},content:{type:`string`},timestamp:{type:`number`},deliveryStatus:{type:`string`,enum:[`confirmed`,`pending`]}},required:[`role`,`content`,`timestamp`],additionalProperties:!1}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`},hasMore:{type:`boolean`}},required:[`session`,`messages`,`total`,`offset`,`limit`,`hasMore`],additionalProperties:!1},scopes:[`rpc`]},"session.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{kind:{type:`string`},since_minutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessions:{type:`array`,items:{type:`object`,properties:{sessionKey:{type:`string`},agentId:{type:`string`},userId:{type:`string`},channelId:{type:`string`},kind:{type:`string`},messageCount:{type:`number`},totalTokens:{type:`number`},updatedAt:{type:`number`},createdAt:{type:`number`}},required:[`sessionKey`,`agentId`,`userId`,`channelId`,`kind`,`messageCount`,`totalTokens`,`updatedAt`,`createdAt`],additionalProperties:!1}},total:{type:`number`}},required:[`sessions`,`total`],additionalProperties:!1},scopes:[`rpc`]},"session.reset":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},reset:{type:`boolean`,const:!0},previousMessageCount:{type:`number`}},required:[`sessionKey`,`reset`,`previousMessageCount`],additionalProperties:!1},scopes:[`rpc`]},"session.reset_conversation":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},memory:{type:`boolean`},purge_derived:{type:`boolean`},agentId:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},lcdRowsDeleted:{type:`number`},sessionMessagesCleared:{type:`number`},memoriesDeleted:{type:`number`},resolvedAgentId:{type:`string`},runtimeSessionDestroyed:{type:`boolean`}},required:[`sessionKey`,`lcdRowsDeleted`,`sessionMessagesCleared`],additionalProperties:!1},scopes:[`admin`]},"session.run_status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{run_id:{type:`string`}},required:[`run_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runId:{type:`string`},status:{type:`string`},agentId:{type:`string`},task:{type:`string`},sessionKey:{type:`string`},startedAt:{type:`number`},completedAt:{type:`number`},runtimeMs:{type:`number`},response:{type:`string`},tokensUsed:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},cost:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},error:{type:`string`}},required:[`runId`,`status`,`agentId`,`task`,`startedAt`,`runtimeMs`],additionalProperties:!1},scopes:[`rpc`]},"session.search":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{query:{type:`string`},scope:{type:`string`},limit:{type:`number`},summarize:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},text:{type:`string`},mode:{type:`string`},timeout_ms:{type:`number`},max_turns:{type:`number`},agent_id:{type:`string`}},required:[`session_key`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.spawn":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{task:{type:`string`},agent:{type:`string`},async:{type:`boolean`},max_steps:{type:`number`},model:{type:`string`},expected_outputs:{type:`array`,items:{type:`string`}},artifact_refs:{type:`array`,items:{type:`string`}},objective:{type:`string`},domain_knowledge:{type:`array`,items:{type:`string`}},tool_groups:{type:`array`,items:{type:`string`}},required_tools:{type:`array`,items:{type:`string`}},include_parent_history:{type:`string`},announce_channel_type:{type:`string`},announce_channel_id:{type:`string`},worktree:{type:`boolean`}},required:[`task`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{model:{type:`string`},agentName:{type:`string`},tokensUsed:{type:`object`,properties:{totalTokens:{type:`number`},totalCost:{type:`number`}},required:[`totalTokens`,`totalCost`],additionalProperties:!1},stepsExecuted:{type:`number`},maxSteps:{type:`number`}},required:[`model`,`agentName`,`tokensUsed`,`stepsExecuted`,`maxSteps`],additionalProperties:!1},scopes:[`rpc`]},"skills.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},content:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`},force:{type:`boolean`}},required:[`name`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`},name:{type:`string`}},required:[`ok`,`path`,`name`],additionalProperties:!1},scopes:[`rpc`]},"skills.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0}},required:[`ok`],additionalProperties:!1},scopes:[`rpc`]},"skills.import":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`},force:{type:`boolean`}},required:[`url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`},name:{type:`string`},fileCount:{type:`number`}},required:[`ok`,`path`,`name`,`fileCount`],additionalProperties:!1},scopes:[`rpc`]},"skills.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{skills:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},description:{type:`string`},location:{type:`string`},disableModelInvocation:{type:`boolean`},source:{type:`string`,enum:[`bundled`,`workspace`,`local`]}},required:[`name`,`description`,`location`],additionalProperties:!1}}},required:[`skills`],additionalProperties:!1},scopes:[`rpc`]},"skills.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},content:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`}},required:[`name`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},name:{type:`string`}},required:[`ok`,`name`],additionalProperties:!1},scopes:[`rpc`]},"skills.upload":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},files:{type:`array`,items:{type:`object`,properties:{path:{type:`string`},content:{type:`string`}},required:[`path`,`content`],additionalProperties:!1}},agentId:{type:`string`},force:{type:`boolean`}},required:[`name`,`files`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`}},required:[`ok`,`path`],additionalProperties:!1},scopes:[`rpc`]},"slack.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"subagent.kill":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{target:{type:`string`}},required:[`target`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{killed:{type:`boolean`},runId:{type:`string`}},required:[`killed`,`runId`],additionalProperties:!1},scopes:[`admin`]},"subagent.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{recentMinutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`runs`,`total`],additionalProperties:!1},scopes:[`admin`]},"subagent.steer":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{target:{type:`string`},message:{type:`string`}},required:[`target`,`message`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,oneOf:[{type:`object`,properties:{status:{type:`string`,const:`steered`},oldRunId:{type:`string`},newRunId:{type:`string`}},required:[`status`,`oldRunId`,`newRunId`],additionalProperties:!1},{type:`object`,properties:{status:{type:`string`,const:`steered_inject`},runId:{type:`string`}},required:[`status`,`runId`],additionalProperties:!1}]},scopes:[`admin`]},"system.ping":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pong:{type:`boolean`,const:!0},ts:{type:`number`}},required:[`pong`,`ts`],additionalProperties:!1},scopes:[`rpc`]},"telegram.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"tokens.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},scopes:{minItems:1,type:`array`,items:{type:`string`}}},required:[`scopes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},secret:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`},message:{type:`string`}},required:[`id`,`secret`,`scopes`,`createdAt`,`message`],additionalProperties:!1},scopes:[`admin`]},"tokens.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tokens:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`}},required:[`id`,`scopes`,`createdAt`],additionalProperties:!1}}},required:[`tokens`],additionalProperties:!1},scopes:[`admin`]},"tokens.revoke":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},revoked:{type:`boolean`,const:!0},message:{type:`string`}},required:[`id`,`revoked`,`message`],additionalProperties:!1},scopes:[`admin`]},"tokens.rotate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{oldId:{type:`string`},newId:{type:`string`},newSecret:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`},message:{type:`string`}},required:[`oldId`,`newId`,`newSecret`,`scopes`,`createdAt`,`message`],additionalProperties:!1},scopes:[`admin`]},"tts.auto_check":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{response_text:{type:`string`},has_inbound_audio:{type:`boolean`},has_media_url:{type:`boolean`}},required:[`response_text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{shouldSynthesize:{type:`boolean`},strippedText:{type:`string`},mode:{type:`string`}},required:[`shouldSynthesize`,`mode`],additionalProperties:!1},scopes:[`rpc`]},"tts.synthesize":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},voice:{type:`string`},format:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{filePath:{type:`string`},mimeType:{type:`string`},sizeBytes:{type:`number`}},required:[`filePath`,`mimeType`,`sizeBytes`],additionalProperties:!1},scopes:[`rpc`]},"video.generate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{prompt:{type:`string`},duration:{type:`number`},aspect_ratio:{type:`string`},resolution:{type:`string`},audio:{type:`boolean`},negative_prompt:{type:`string`},seed:{type:`number`},image_url:{type:`string`},model:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"video.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{job_id:{type:`string`}},required:[`job_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{state:{type:`string`,enum:[`pending`,`done`,`failed`]},progress:{type:`number`},mediaPath:{type:`string`},costUsd:{type:`number`},error:{type:`string`}},required:[`state`],additionalProperties:!1},scopes:[`rpc`]},"whatsapp.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"workspace.deleteFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`boolean`,const:!0}},required:[`deleted`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.commit":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},message:{type:`string`},paths:{type:`array`,items:{type:`string`}}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`},author:{type:`string`},date:{type:`string`},message:{type:`string`}},required:[`sha`,`author`,`date`,`message`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.diff":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{diff:{type:`string`}},required:[`diff`],additionalProperties:!1},scopes:[`rpc`]},"workspace.git.log":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},limit:{type:`number`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{commits:{type:`array`,items:{type:`object`,properties:{sha:{type:`string`},author:{type:`string`},date:{type:`string`},message:{type:`string`}},required:[`sha`,`author`,`date`,`message`],additionalProperties:!1}}},required:[`commits`],additionalProperties:!1},scopes:[`rpc`]},"workspace.git.restore":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{restored:{type:`boolean`,const:!0}},required:[`restored`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{branch:{type:`string`},clean:{type:`boolean`},entries:{type:`array`,items:{type:`object`,properties:{path:{type:`string`},status:{type:`string`,enum:[`untracked`,`deleted`,`added`,`renamed`,`copied`,`modified`]},staged:{type:`boolean`}},required:[`path`,`status`,`staged`],additionalProperties:!1}}},required:[`branch`,`clean`,`entries`],additionalProperties:!1},scopes:[`rpc`]},"workspace.init":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{initialized:{type:`boolean`,const:!0},dir:{type:`string`}},required:[`initialized`,`dir`],additionalProperties:!1},scopes:[`admin`]},"workspace.listDir":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},subdir:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},type:{type:`string`,enum:[`file`,`directory`]},sizeBytes:{type:`number`},modifiedAt:{type:`number`}},required:[`name`,`type`,`modifiedAt`],additionalProperties:!1}}},required:[`entries`],additionalProperties:!1},scopes:[`rpc`]},"workspace.readFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{content:{type:`string`},sizeBytes:{type:`number`}},required:[`content`,`sizeBytes`],additionalProperties:!1},scopes:[`rpc`]},"workspace.resetFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},fileName:{type:`string`,minLength:1}},required:[`agentId`,`fileName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},fileName:{type:`string`}},required:[`reset`,`fileName`],additionalProperties:!1},scopes:[`admin`]},"workspace.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"workspace.writeFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1},content:{type:`string`}},required:[`agentId`,`filePath`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{written:{type:`boolean`,const:!0},sizeBytes:{type:`number`}},required:[`written`,`sizeBytes`],additionalProperties:!1},scopes:[`admin`]}};function y(e,t){let n=v[e];return n?_(n.request,t):!1}function ee(e,t){let n=v[e];return n?_(n.response,t):!1}function te(){try{return import.meta.env?.DEV===!0}catch{return!1}}function b(e,t,n){let r=te();if(r&&!y(t,n))throw Error(`Invalid RPC request for ${t}`);return e(t,n).then(e=>{if(r&&!ee(t,e))throw Error(`Invalid RPC response for ${t}`);return e})}function x(e,t,n){let r={Authorization:`Bearer ${t}`,"Content-Type":`application/json`};async function i(t,n){let i=`${e}${t}`,a=await fetch(i,{...n,headers:{...r,...n?.headers}});if(!a.ok){let e=await a.text(),t=(e.length>200?e.slice(0,200)+`...`:e).replace(/https?:\/\/[^\s"')]+/g,`[URL]`).replace(/[A-Za-z0-9_-]{20,}/g,`[REDACTED]`);throw Error(`Request failed (${a.status}): ${t}`)}return a.json()}async function a(t,n){let i=`${e}${t}`,a=await fetch(i,{...n,headers:{...r,...n?.headers}});if(!a.ok){let e=await a.text(),t=(e.length>200?e.slice(0,200)+`...`:e).replace(/https?:\/\/[^\s"')]+/g,`[URL]`).replace(/[A-Za-z0-9_-]{20,}/g,`[REDACTED]`);throw Error(`Request failed (${a.status}): ${t}`)}return a.text()}return{async getAgents(){let e=await i(`/api/agents`),t=e.agents??e.routing?.agents??[];return Array.isArray(t)?t:Object.entries(e).map(([e,t])=>({id:e,provider:t.provider??`unknown`,model:t.model??`unknown`,status:`active`}))},async getChannels(){let e=await i(`/api/channels`),t=e.channels??[];return Array.isArray(t)?t:Object.entries(e).map(([e,t])=>({type:t.type??e,name:e,enabled:t.enabled??!1,status:t.enabled?`healthy`:`disconnected`}))},async getActivity(e=50){return(await i(`/api/activity?limit=${e}`)).entries??[]},async searchMemory(e,t=10){return(await i(`/api/memory/search?q=${encodeURIComponent(e)}&limit=${t}`)).results??[]},async getMemoryStats(){return i(`/api/memory/stats`)},async chat(e,t,n){return i(`/api/chat`,{method:`POST`,body:JSON.stringify({message:e,agentId:t,sessionKey:n})})},async getChatHistory(){return(await i(`/api/chat/history`)).messages??[]},async health(){return(await fetch(`${e}/api/health`)).json()},async browseMemory(e){if(n)return b(n,`memory.browse`,e);let t=new URLSearchParams;e.offset!==void 0&&t.set(`offset`,String(e.offset)),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.type&&t.set(`type`,e.type),e.trust&&t.set(`trust`,e.trust),e.agentId&&t.set(`agentId`,e.agentId),e.from!==void 0&&t.set(`from`,String(e.from)),e.to!==void 0&&t.set(`to`,String(e.to));let r=t.toString();return i(`/api/memory/browse${r?`?${r}`:``}`)},async deleteMemory(e){if(n){await b(n,`memory.delete`,{id:e});return}await i(`/api/memory/${encodeURIComponent(e)}`,{method:`DELETE`})},async deleteMemoryBulk(e){return n?b(n,`memory.delete`,{ids:e}):i(`/api/memory/bulk-delete`,{method:`POST`,body:JSON.stringify({ids:e})})},async exportMemory(e){return n?b(n,`memory.export`,e?{ids:e}:{}):a(`/api/memory/export`,{method:`POST`,body:JSON.stringify({ids:e})})},async listSessions(e){if(n)return(await b(n,`session.list`,e??{})).sessions;let t=new URLSearchParams;e?.agentId&&t.set(`agentId`,e.agentId),e?.channelType&&t.set(`channelType`,e.channelType),e?.search&&t.set(`search`,e.search);let r=t.toString();return i(`/api/sessions${r?`?${r}`:``}`)},async getSessionDetail(e){return n?b(n,`session.history`,{session_key:e}):i(`/api/sessions/${encodeURIComponent(e)}`)},async resetSession(e){if(n){await b(n,`session.reset`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}/reset`,{method:`POST`})},async compactSession(e){if(n){await b(n,`session.compact`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}/compact`,{method:`POST`})},async deleteSession(e){if(n){await b(n,`session.delete`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}`,{method:`DELETE`})},async exportSession(e){return n?b(n,`session.export`,{session_key:e}):a(`/api/sessions/${encodeURIComponent(e)}/export`)},async resetSessionsBulk(e){return n?b(n,`session.reset`,{keys:e}):i(`/api/sessions/bulk-reset`,{method:`POST`,body:JSON.stringify({keys:e})})},async exportSessionsBulk(e){return n?b(n,`session.export`,{keys:e}):a(`/api/sessions/bulk-export`,{method:`POST`,body:JSON.stringify({keys:e})})},async deleteSessionsBulk(e){return n?b(n,`session.delete`,{keys:e}):i(`/api/sessions/bulk-delete`,{method:`POST`,body:JSON.stringify({keys:e})})}}}var ne=[{pattern:`dashboard`,view:`ic-dashboard`},{pattern:`agents`,view:`ic-agent-list`},{pattern:`agents/:id`,view:`ic-agent-detail`},{pattern:`agents/:id/edit`,view:`ic-agent-editor`},{pattern:`agents/:id/workspace`,view:`ic-workspace-manager`},{pattern:`channels`,view:`ic-channel-list`},{pattern:`channels/:type`,view:`ic-channel-detail`},{pattern:`messages`,view:`ic-message-center`},{pattern:`messages/:type`,view:`ic-message-center`},{pattern:`skills`,view:`ic-skills-view`},{pattern:`mcp`,view:`ic-mcp-management`},{pattern:`chat`,view:`ic-chat-console`},{pattern:`chat/:sessionKey`,view:`ic-chat-console`},{pattern:`memory`,view:`ic-memory-inspector`},{pattern:`sessions`,view:`ic-session-list-view`},{pattern:`sessions/:key`,view:`ic-session-detail`},{pattern:`scheduler`,view:`ic-scheduler-view`},{pattern:`scheduler/:jobId`,view:`ic-scheduler-view`},{pattern:`models`,view:`ic-models-view`},{pattern:`observe/overview`,view:`ic-observe-dashboard`},{pattern:`observe/context`,view:`ic-context-engine-view`},{pattern:`observe/billing`,view:`ic-billing-view`},{pattern:`observe/delivery`,view:`ic-delivery-view`},{pattern:`observe/diagnostics`,view:`ic-diagnostics-view`},{pattern:`observe/cache`,view:`ic-cache-health-view`},{pattern:`observe/spend`,view:`ic-spend-governance-view`},{pattern:`observe/incident`,view:`ic-incident-view`},{pattern:`context`,view:`ic-context-dag-browser`},{pattern:`subagents`,view:`ic-subagents-view`},{pattern:`media`,view:`ic-media-test-view`},{pattern:`media/config`,view:`ic-media-config-view`},{pattern:`security`,view:`ic-security-view`},{pattern:`config`,view:`ic-config-editor`},{pattern:`setup`,view:`ic-setup-wizard`},{pattern:`pipelines`,view:`ic-pipeline-list`},{pattern:`pipelines/new`,view:`ic-pipeline-builder`},{pattern:`pipelines/history`,view:`ic-pipeline-history`},{pattern:`pipelines/history/:graphId`,view:`ic-pipeline-history-detail`},{pattern:`pipelines/:graphId`,view:`ic-pipeline-monitor`},{pattern:`pipelines/:graphId/edit`,view:`ic-pipeline-builder`}];function re(){return ne.map(e=>{let t=e.pattern.split(`/`);return{pattern:e.pattern,view:e.view,segments:t,segmentCount:t.length}}).sort((e,t)=>t.segmentCount-e.segmentCount)}var S={view:`ic-dashboard`,route:`dashboard`,params:{},query:{}};function ie(e,t){let n=e.split(`/`);for(let e of t){if(n.length!==e.segmentCount)continue;let t={},r=!0;for(let i=0;i<e.segments.length;i++){let a=e.segments[i],o=n[i];if(a.startsWith(`:`))t[a.slice(1)]=o;else if(a!==o){r=!1;break}}if(r)return{view:e.view,route:e.pattern,params:t,query:{}}}return null}function ae(e,t=`dashboard`){let n=re();function r(){let e=window.location.hash.replace(/^#\/?/,``);if(!e)return{...S};let t=e.indexOf(`?`),r=t>=0?e.slice(0,t):e,i=t>=0?e.slice(t+1):``,a={};if(i)for(let e of i.split(`&`)){let t=e.indexOf(`=`);if(t>=0){let n=decodeURIComponent(e.slice(0,t)),r=decodeURIComponent(e.slice(t+1));n&&(a[n]=r)}else e&&(a[decodeURIComponent(e)]=``)}let o=ie(r,n);return o?{...o,query:a}:{...S,query:a}}function i(){e(r())}return{navigate(e){window.location.hash=`#/${e}`},current(){return r()},start(){window.addEventListener(`hashchange`,i),i()},stop(){window.removeEventListener(`hashchange`,i)}}}var C=3e4,oe=3e4,se=1e4,ce=1e3,le=3e4,ue=10;function de(){let e=null,t=`disconnected`,n=1,r=0,i=null,a=null,o=null,s=``,c=``,l=!1,u=new Map,d=new Set,f=new Set;function p(e){if(t!==e){t=e;for(let t of d)t(e)}}function m(){a!==null&&(clearInterval(a),a=null),o!==null&&(clearTimeout(o),o=null)}function h(){i!==null&&(clearTimeout(i),i=null)}function g(e){for(let[t,n]of u)clearTimeout(n.timer),n.reject(Error(e)),u.delete(t)}function _(){m(),a=setInterval(()=>{if(e===null||e.readyState!==globalThis.WebSocket.OPEN)return;let t=n++;e.send(JSON.stringify({jsonrpc:`2.0`,method:`system.ping`,id:t})),o=setTimeout(()=>{u.delete(t),e!==null&&e.close()},se),u.set(t,{resolve:()=>{o!==null&&(clearTimeout(o),o=null)},reject:()=>{o!==null&&(clearTimeout(o),o=null)},timer:setTimeout(()=>{u.delete(t)},C)})},oe)}function v(){if(l)return;if(r>=ue){p(`disconnected`);return}p(`reconnecting`);let e=Math.min(ce*2**r,le);r++,i=setTimeout(()=>{y(s,c)},e)}function y(t,n){let i=`${t}?token=${encodeURIComponent(n)}`;e=new globalThis.WebSocket(i),e.onopen=()=>{r=0,p(`connected`),_()},e.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(!(t.method===`heartbeat`&&t.id==null)){if(t.method&&t.id==null){console.debug(`[rpc] notification received:`,t.method);for(let e of f)try{e(t.method,t.params)}catch(e){console.warn(`[rpc] notification handler error:`,e)}return}if(t.id!=null){let e=u.get(t.id);e&&(clearTimeout(e.timer),u.delete(t.id),t.error?e.reject(Error(`RPC error (${t.error.code}): ${t.error.message}`)):e.resolve(t.result))}}},e.onclose=t=>{if(m(),e=null,t.code>=4e3&&t.code<5e3){g(`Connection rejected: `+(t.reason||`auth error`)),p(`disconnected`);return}l||v()},e.onerror=()=>{}}return{get status(){return t},connect(e,t){l=!1,s=e,c=t,r=0,y(e,t)},disconnect(){l=!0,h(),m(),g(`Client disconnected`),p(`disconnected`),e!==null&&(e.close(),e=null)},call(t,r){return new Promise((i,a)=>{if(e===null||e.readyState!==globalThis.WebSocket.OPEN){a(Error(`Not connected`));return}let o=n++,s=setTimeout(()=>{u.delete(o),a(Error(`RPC request timed out after ${C}ms`))},C);u.set(o,{resolve:i,reject:a,timer:s});let c=JSON.stringify({jsonrpc:`2.0`,method:t,...r===void 0?{}:{params:r},id:o});try{e.send(c)}catch(e){clearTimeout(s),u.delete(o),a(Error(`Send failed: `+(e instanceof Error?e.message:String(e))))}})},onStatusChange(e){return d.add(e),()=>{d.delete(e)}},onNotification(e){return f.add(e),()=>{f.delete(e)}}}}function fe(){let e={connectionStatus:`disconnected`,pendingApprovals:0,errorCount:0,agentCount:0,channelCount:0,sessionCount:0,systemHealth:null,activeAgents:[],activeChannels:[]},t=new Set;function n(){for(let e of t)e()}return{get connectionStatus(){return e.connectionStatus},get pendingApprovals(){return e.pendingApprovals},get errorCount(){return e.errorCount},get agentCount(){return e.agentCount},get channelCount(){return e.channelCount},get sessionCount(){return e.sessionCount},get systemHealth(){return e.systemHealth},get activeAgents(){return e.activeAgents},get activeChannels(){return e.activeChannels},subscribe(e){return t.add(e),()=>{t.delete(e)}},getSnapshot(){return Object.freeze({...e})},update(t){e={...e,...t},n()}}}var pe=class extends Error{constructor(...e){super(...e),this.name=`GlobalStateNotInitializedError`}};function w(e){if(!e._globalState)throw new pe(`GlobalState not initialized — component lifecycle invariant violated`);return e._globalState}var me=`message:received.message:sent.message:streaming.session:created.session:expired.audit:event.skill:executed.skill:rejected.observability:metrics.observability:token_usage.scheduler:job_started.scheduler:job_completed.scheduler:heartbeat_check.scheduler:heartbeat_alert.scheduler:heartbeat_delivered.system:error.approval:requested.approval:resolved.graph:started.graph:node_updated.graph:completed.config:patched.diagnostic:channel_health.diagnostic:billing_snapshot.skill:loaded.skill:registry_reset.model:catalog_loaded.observability:reset.channel:registered.channel:deregistered.agent:hot_added.agent:hot_removed.security:injection_detected.security:injection_rate_exceeded.security:memory_tainted.security:warn.secret:accessed.model:fallback_attempt.model:fallback_exhausted.model:auth_cooldown.provider:degraded.provider:recovered.session:sub_agent_spawned.session:sub_agent_completed.session:sub_agent_archived.session:sub_agent_spawn_rejected.session:sub_agent_spawn_started.session:sub_agent_spawn_queued.session:sub_agent_lifecycle_ended.ping`.split(`.`);function he(){let e=null,t=!1,n=new Map;function r(e){if(!e)return{};try{return JSON.parse(e)}catch{return e}}function i(e,t){let r=n.get(e);if(r)for(let e of r)e(t);document.dispatchEvent(new CustomEvent(e,{detail:t}))}return{get connected(){return t},start(n,a){e!==null&&e.close();let o=`${n}/api/events?token=${encodeURIComponent(a)}`;e=new EventSource(o),e.onopen=()=>{t=!0},e.onerror=()=>{t=!1};for(let t of me)e.addEventListener(t,(e=>{i(t,r(e.data))}));e.onmessage=e=>{i(`message`,r(e.data))}},stop(){e!==null&&(e.close(),e=null),t=!1,n.clear()},addEventListener(e,t){return n.has(e)||n.set(e,new Set),n.get(e).add(t),()=>{let r=n.get(e);r&&(r.delete(t),r.size===0&&n.delete(e))}}}}var ge=class{constructor(e,t,n,r=3e4){this._timer=null,this._host=e,this._rpcClient=t,this._onData=n,this._intervalMs=r,this._host.addController(this)}hostConnected(){this._poll(),this._timer=m(()=>this._poll(),this._intervalMs)}hostDisconnected(){this._timer!==null&&(n(this._timer),this._timer=null)}async _poll(){try{let[e,t,n]=await Promise.all([this._rpcClient.call(`agent.list`),this._rpcClient.call(`channel.list`),this._rpcClient.call(`session.list`,{})]);this._onData({agents:e.agents.length,channels:t.channels.length,sessions:n.total,agentIds:e.agents,sessionEntries:n.sessions?.slice(0,20)??[]}),this._host.requestUpdate()}catch{}}},T=`comis_token`,_e=3e4,ve=500;function ye(e,t={}){let n=t.onRouteMatch??(e=>{});e._gotoWaiting===void 0&&(e._gotoWaiting=!1);let i=null,a=e=>d.handleGlobalKeydown(e);function o(t){let n=new ge(e,t,t=>{e._agentCount=t.agents,e._channelCount=t.channels,e._sessionCount=t.sessions,e._agentList=t.agentIds.map(e=>({id:e})),e._sessionList=t.sessionEntries.map(e=>({key:e.sessionKey,agentId:e.agentId}))},_e);return n.hostConnected(),n}function s(t){return{approvalUnsub:t.addEventListener(`approval:requested`,()=>{let t=w(e),n=t.getSnapshot();t.update({pendingApprovals:n.pendingApprovals+1})}),approvalResolvedUnsub:t.addEventListener(`approval:resolved`,()=>{let t=w(e),n=t.getSnapshot();t.update({pendingApprovals:Math.max(0,n.pendingApprovals-1)})}),errorUnsub:t.addEventListener(`system:error`,()=>{let t=w(e),n=t.getSnapshot();t.update({errorCount:(n.errorCount??0)+1})})}}function c(t){return t.subscribe(()=>{let t=w(e).getSnapshot();e._connectionStatus=t.connectionStatus,e._pendingApprovals=t.pendingApprovals,e._errorCount=t.errorCount,e._agentCount=t.agentCount,e._channelCount=t.channelCount,e._sessionCount=t.sessionCount})}function l(t,r){sessionStorage.setItem(T,t),e._authenticated=!0,e._authError=``,e._rpcClient=de();let i=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}/ws`;e._rpcClient.connect(i,t);let a=e._rpcClient;e._apiClient=x(r,t,(e,t)=>a.call(e,t)),e._globalState=fe(),e._rpcClient.onStatusChange(t=>{e._globalState?.update({connectionStatus:t})}),e._eventDispatcher=he(),e._eventDispatcher.start(r,t);let l=s(e._eventDispatcher);e._approvalUnsub=l.approvalUnsub,e._approvalResolvedUnsub=l.approvalResolvedUnsub,e._errorUnsub=l.errorUnsub,e._stateUnsubscribe=c(e._globalState),e._pollingController=o(e._rpcClient),e._router=d.initRouter(n)}let d={hostConnected(){let e=sessionStorage.getItem(T);e&&d.initWithToken(e),document.addEventListener(`keydown`,a)},hostDisconnected(){d.cleanup(),document.removeEventListener(`keydown`,a),i&&=(u(i),null)},initWithToken(t){e._token=t;let n=`${window.location.protocol}//${window.location.host}`;e._apiClient=x(n,t),e._apiClient.getAgents().then(()=>{l(t,n)}).catch(t=>{e._authError=`Invalid token or server unreachable`,sessionStorage.removeItem(T)})},handleLogin(t){t.preventDefault();let n=t.target.querySelector(`input`).value.trim();if(!n){e._authError=`Please enter a token`;return}d.initWithToken(n)},handleLogout(){sessionStorage.removeItem(T),e._authenticated=!1,d.cleanup(),e._apiClient=null,e._token=``},cleanup(){e._pollingController&&=(e._pollingController.hostDisconnected(),null),e._rpcClient?.disconnect(),e._rpcClient=null,e._eventDispatcher?.stop(),e._eventDispatcher=null,e._stateUnsubscribe?.(),e._stateUnsubscribe=null,e._approvalUnsub?.(),e._approvalUnsub=null,e._approvalResolvedUnsub?.(),e._approvalResolvedUnsub=null,e._errorUnsub?.(),e._errorUnsub=null,e._globalState=null,e._router?.stop(),e._router=null},isInputTarget(e){let t=e.target?.tagName;return!!(t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.target?.isContentEditable)},handleGlobalKeydown(t){if((t.ctrlKey||t.metaKey)&&t.key===`k`){t.preventDefault(),e._commandPaletteOpen=!e._commandPaletteOpen;return}if(t.key===`Escape`){if(e._commandPaletteOpen){e._commandPaletteOpen=!1;return}if(e._shortcutsHelpOpen){e._shortcutsHelpOpen=!1;return}e.dispatchEvent(new CustomEvent(`close-overlay`,{bubbles:!0,composed:!0})),e._sidebarOpen&&=!1;return}if(!d.isInputTarget(t)&&!e._commandPaletteOpen){if(t.key===`?`&&!t.ctrlKey&&!t.metaKey&&!t.altKey){e._shortcutsHelpOpen=!e._shortcutsHelpOpen;return}if(e._gotoWaiting){switch(e._gotoWaiting=!1,i&&=(u(i),null),t.key.toLowerCase()){case`d`:e._router?.navigate(`dashboard`);return;case`a`:e._router?.navigate(`agents`);return;case`c`:e._router?.navigate(`chat`);return;case`s`:e._router?.navigate(`sessions`);return;case`o`:e._router?.navigate(`observe/overview`);return}return}t.key===`g`&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&(e._gotoWaiting=!0,i=r(()=>{e._gotoWaiting=!1,i=null},ve))}},handleCommand(t){switch(t){case`refresh`:window.location.reload();break;case`toggle-sidebar`:e._sidebarOpen=!e._sidebarOpen;break;case`logout`:d.handleLogout();break;case`show-shortcuts`:e._shortcutsHelpOpen=!0;break}},initRouter(e){let t=ae(e);return t.start(),t}};return e.addController(d),d}var E=[{id:`home`,label:`Home`,items:[{route:`dashboard`,label:`Dashboard`,icon:`▣`}]},{id:`operate`,label:`Operate`,items:[{route:`agents`,label:`Agents`,icon:`⬤`,badge:`agentCount`},{route:`channels`,label:`Channels`,icon:`◎`,badge:`channelCount`},{route:`messages`,label:`Messages`,icon:`○`},{route:`chat`,label:`Chat`,icon:`▬`},{route:`sessions`,label:`Sessions`,icon:`◷`,badge:`sessionCount`},{route:`subagents`,label:`Sub-Agents`,icon:`◔`},{route:`pipelines`,label:`Pipelines`,icon:`◈`}]},{id:`observe`,label:`Observe`,items:[{route:`observe/overview`,label:`Overview`,icon:`△`,badge:`errorCount`},{route:`observe/context`,label:`Context Engine`,icon:`◥`},{route:`context`,label:`Context DAG`,icon:`◖`},{route:`observe/billing`,label:`Billing`,icon:`◇`},{route:`observe/delivery`,label:`Delivery`,icon:`▷`},{route:`observe/diagnostics`,label:`Diagnostics`,icon:`□`}]},{id:`configure`,label:`Configure`,items:[{route:`skills`,label:`Skills`,icon:`⚒`},{route:`mcp`,label:`MCP Servers`,icon:`⚖`},{route:`models`,label:`Models`,icon:`⌸`},{route:`memory`,label:`Memory`,icon:`◉`},{route:`scheduler`,label:`Scheduler`,icon:`▨`},{route:`security`,label:`Security`,icon:`☖`},{route:`media`,label:`Media`,icon:`▶`},{route:`config`,label:`Config`,icon:`⚙`}]}],be={route:`setup`,label:`Setup`,icon:`▶`},D=`ic_sidebar_collapsed`,O=class extends i{constructor(...e){super(...e),this.currentRoute=`dashboard`,this.pendingApprovals=0,this.errorCount=0,this.agentCount=0,this.channelCount=0,this.sessionCount=0,this.open=!1,this._collapsed=!1}static{this.styles=[f,l,e`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chat-console-C_EZsEon.js","assets/decorate-C2wzL86z.js","assets/ic-tag-C5SwX7RT.js","assets/ic-relative-time-DCCDywYC.js","assets/ic-search-input-zfYWKjl4.js","assets/ic-empty-state-DIodMykW.js","assets/session-key-parser-CzslOQQP.js","assets/ic-tool-call-CFexsEC4.js","assets/ic-chat-message-s52yIvwR.js","assets/directive-BSZPiF1A.js","assets/ic-budget-segment-bar-Dw6vzCTO.js","assets/memory-inspector-CdE2cWRI.js","assets/ic-confirm-dialog-JnoEg4kp.js","assets/ic-data-table-c9pQCH_h.js","assets/ic-detail-panel-ZsLNS21P.js","assets/agent-list-B3PEW7Eu.js","assets/agent-detail-lQF_QdY3.js","assets/ic-breadcrumb-CamOsLdw.js","assets/agent-editor-t3rxtj2c.js","assets/ic-array-editor-Ba7psX7q.js","assets/workspace-manager-QmBrvxyy.js","assets/skills-DP1dLFcB.js","assets/ic-tabs-BsjznKoe.js","assets/mcp-management-CON6d_R1.js","assets/models-BpdoS8xA.js","assets/ic-connection-dot-3QDCBFHW.js","assets/channel-list-DYB8MGjC.js","assets/channel-detail-BqazWug8.js","assets/message-center-BggZE_We.js","assets/scheduler-Drjol0QC.js","assets/session-list-BGVUpP_a.js","assets/session-detail-Cv3O0UDP.js","assets/ic-layer-waterfall-3qBGZLwA.js","assets/observe-view-D1ajhutj.js","assets/observability-types-BvcvLSWK.js","assets/ic-delivery-row-BlEML37J.js","assets/context-engine-0Sl4qfpl.js","assets/billing-view-C4UJZTvI.js","assets/ic-time-range-picker-uBAk6VB8.js","assets/delivery-view-QQ-LYwDU.js","assets/diagnostics-view-DjMOkstH.js","assets/cache-health-CTOg1ZYH.js","assets/spend-governance-D-IBKKqz.js","assets/incident-view-C9r6FvdE.js","assets/subagents-D0_m-5Pa.js","assets/security-DvcAVz_Q.js","assets/ic-select-DY2apnK_.js","assets/config-editor-5rFdpiyn.js","assets/setup-wizard-DZsr49mN.js","assets/pipeline-list-DYdQxTk4.js","assets/extract-variables-pqBMrtGG.js","assets/pipeline-builder-DwLB9aCL.js","assets/ic-graph-canvas-Dllu1VH-.js","assets/pipeline-monitor-Q48nN7ZK.js","assets/pipeline-history-DVSVvho7.js","assets/pipeline-history-detail-C3e5mGIt.js","assets/context-dag-browser-8RP0Dm9d.js","assets/media-test-BOrE2MrP.js","assets/media-config-DNAN4cgu.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o as u,p as d,r as f,t as p,u as m,x as h,y as g}from"./decorate-C2wzL86z.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function _(e,t){if(typeof e!=`object`||!e)return!1;let n=e;if(Array.isArray(n.anyOf))return n.anyOf.some(e=>_(e,t));if(Array.isArray(n.oneOf))return n.oneOf.filter(e=>_(e,t)).length===1;if(n.const!==void 0&&n.type===void 0)return t===n.const;if(Array.isArray(n.enum)&&n.type===void 0)return n.enum.includes(t);switch(n.type){case`string`:return!(typeof t!=`string`||typeof n.minLength==`number`&&t.length<n.minLength||typeof n.maxLength==`number`&&t.length>n.maxLength||n.const!==void 0&&t!==n.const||Array.isArray(n.enum)&&!n.enum.includes(t));case`number`:return!(typeof t!=`number`||Number.isNaN(t)||typeof n.minimum==`number`&&t<n.minimum||typeof n.maximum==`number`&&t>n.maximum||n.const!==void 0&&t!==n.const);case`integer`:return!(typeof t!=`number`||!Number.isInteger(t)||typeof n.minimum==`number`&&t<n.minimum||typeof n.maximum==`number`&&t>n.maximum);case`boolean`:return!(typeof t!=`boolean`||n.const!==void 0&&t!==n.const);case`null`:return t===null;case`object`:{if(typeof t!=`object`||!t||Array.isArray(t))return!1;let e=t,r=n.required??[];for(let t of r)if(!(t in e))return!1;let i=n.properties??{};for(let[t,n]of Object.entries(i))if(t in e&&!_(n,e[t]))return!1;if(n.additionalProperties===!1){let t=new Set(Object.keys(i));for(let n of Object.keys(e))if(!t.has(n))return!1}else if(typeof n.additionalProperties==`object`&&n.additionalProperties!==null){let t=new Set(Object.keys(i)),r=n.additionalProperties;for(let n of Object.keys(e))if(!t.has(n)&&!_(r,e[n]))return!1}return!0}case`array`:{if(!Array.isArray(t))return!1;let e=n.items;return e?t.every(t=>_(e,t)):!0}default:return!0}}var v={"admin.approval.clearDenialCache":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cleared:{type:`boolean`,const:!0}},required:[`cleared`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.pending":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requests:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`requests`,`total`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.resolve":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requestId:{type:`string`,minLength:1},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{type:`string`}},required:[`requestId`,`approved`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{requestId:{type:`string`},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{anyOf:[{type:`string`},{type:`null`}]}},required:[`requestId`,`approved`,`approvedBy`,`reason`],additionalProperties:!1},scopes:[`admin`]},"admin.approval.resolveAll":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},approved:{type:`boolean`},approvedBy:{type:`string`},reason:{type:`string`}},required:[`approved`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{resolved:{type:`number`},requestIds:{type:`array`,items:{type:`string`}}},required:[`resolved`,`requestIds`],additionalProperties:!1},scopes:[`admin`]},"agent.cacheStats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},totalCacheSaved:{type:`number`}},required:[`providers`,`totalCacheSaved`],additionalProperties:!1},scopes:[`admin`]},"agent.getOperationModels":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},primaryModel:{type:`string`},primaryProvider:{type:`string`},providerFamily:{type:`string`},tieringActive:{type:`boolean`},operations:{type:`array`,items:{type:`object`,properties:{operationType:{type:`string`},model:{type:`string`},provider:{type:`string`},modelId:{type:`string`},source:{type:`string`},timeoutMs:{type:`number`},cacheRetention:{type:`number`},tieringActive:{type:`boolean`},crossProvider:{type:`boolean`},apiKeyConfigured:{type:`boolean`}},required:[`operationType`,`model`,`provider`,`modelId`,`source`,`timeoutMs`,`tieringActive`,`crossProvider`,`apiKeyConfigured`],additionalProperties:!1}}},required:[`agentId`,`primaryModel`,`primaryProvider`,`providerFamily`,`tieringActive`,`operations`],additionalProperties:!1},scopes:[`admin`]},"agents.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},inlineContent:{type:`object`,properties:{role:{type:`string`},identity:{type:`string`}},additionalProperties:!1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},created:{type:`boolean`,const:!0},workspaceDir:{type:`string`},inlineWritesResult:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`agentId`,`config`,`created`,`workspaceDir`],additionalProperties:!1},scopes:[`admin`]},"agents.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},deleted:{type:`boolean`,const:!0}},required:[`agentId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"agents.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},suspended:{type:`boolean`},isDefault:{type:`boolean`},workspaceDir:{type:`string`}},required:[`agentId`,`config`,`suspended`,`isDefault`,`workspaceDir`],additionalProperties:!1},scopes:[`admin`]},"agents.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agents:{type:`array`,items:{type:`string`}}},required:[`agents`],additionalProperties:!1},scopes:[`admin`]},"agents.resume":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},resumed:{type:`boolean`,const:!0}},required:[`agentId`,`resumed`],additionalProperties:!1},scopes:[`admin`]},"agents.suspend":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},suspended:{type:`boolean`,const:!0}},required:[`agentId`,`suspended`],additionalProperties:!1},scopes:[`admin`]},"agents.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},dryRun:{type:`boolean`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`,const:!0}},required:[`agentId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"audio.transcribe":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},language:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"auth.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profiles:{type:`array`,items:{type:`object`,properties:{provider:{type:`string`},profileId:{type:`string`},expires:{type:`number`},email:{type:`string`},displayName:{type:`string`}},required:[`provider`,`profileId`,`expires`],additionalProperties:!1}}},required:[`profiles`],additionalProperties:!1},scopes:[`admin`]},"auth.logout":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`,minLength:1}},required:[`profileId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`},deleted:{type:`boolean`}},required:[`profileId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"auth.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`,minLength:1},profileId:{type:`string`,minLength:1},access:{type:`string`,minLength:1},refresh:{type:`string`,minLength:1},expires:{type:`number`},accountId:{type:`string`},email:{type:`string`},displayName:{type:`string`},version:{type:`number`,const:1}},required:[`provider`,`profileId`,`access`,`refresh`,`expires`,`version`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{profileId:{type:`string`},stored:{type:`boolean`,const:!0}},required:[`profileId`,`stored`],additionalProperties:!1},scopes:[`admin`]},"autonomy.evict":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rootRunId:{type:`string`}},required:[`rootRunId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{evicted:{type:`boolean`}},required:[`evicted`],additionalProperties:!1},scopes:[`admin`]},"browser.act":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{request:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`request`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"browser.close":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{closed:{type:`boolean`,const:!0}},required:[`closed`],additionalProperties:!1},scopes:[`rpc`]},"browser.console":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{level:{type:`string`},targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`messages`],additionalProperties:!1},scopes:[`rpc`]},"browser.focus":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`,minLength:1}},required:[`targetId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{focused:{type:`boolean`,const:!0},targetId:{type:`string`}},required:[`focused`,`targetId`],additionalProperties:!1},scopes:[`rpc`]},"browser.navigate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetUrl:{type:`string`,minLength:1},targetId:{type:`string`}},required:[`targetUrl`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`},title:{type:`string`},targetId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`url`,`title`,`targetId`],additionalProperties:!1},scopes:[`rpc`]},"browser.open":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetUrl:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},title:{type:`string`},url:{type:`string`},type:{type:`string`}},required:[`targetId`,`title`,`url`,`type`],additionalProperties:!1},scopes:[`rpc`]},"browser.pdf":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{base64:{type:`string`},mimeType:{type:`string`}},required:[`base64`,`mimeType`],additionalProperties:!1},scopes:[`rpc`]},"browser.screenshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},fullPage:{type:`boolean`},ref:{type:`string`},element:{type:`string`},type:{type:`string`,enum:[`png`,`jpeg`]}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{base64:{type:`string`},mimeType:{type:`string`}},required:[`base64`,`mimeType`],additionalProperties:!1},scopes:[`rpc`]},"browser.snapshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{targetId:{type:`string`},interactive:{type:`boolean`},depth:{type:`number`},compact:{type:`boolean`},selector:{type:`string`},maxChars:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"browser.start":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{started:{type:`boolean`,const:!0}},required:[`started`],additionalProperties:!1},scopes:[`rpc`]},"browser.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{running:{type:`boolean`},chromeVersion:{type:`string`},cdpPort:{type:`number`},activeTabs:{type:`number`},connected:{type:`boolean`}},required:[`running`,`cdpPort`,`activeTabs`,`connected`],additionalProperties:!1},scopes:[`rpc`]},"browser.stop":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stopped:{type:`boolean`,const:!0}},required:[`stopped`],additionalProperties:!1},scopes:[`rpc`]},"browser.tabs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tabs:{type:`array`,items:{type:`object`,properties:{targetId:{type:`string`},title:{type:`string`},url:{type:`string`},type:{type:`string`}},required:[`targetId`,`title`,`url`,`type`],additionalProperties:!1}}},required:[`tabs`],additionalProperties:!1},scopes:[`rpc`]},"capabilities.introspect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},caps:{type:`array`,items:{type:`string`}},budget:{type:`object`,properties:{tokensRemaining:{type:`number`},wallClockMsRemaining:{type:`number`},usdRemaining:{anyOf:[{type:`number`},{type:`null`}]}},required:[`tokensRemaining`,`wallClockMsRemaining`,`usdRemaining`],additionalProperties:!1},outwardQuota:{type:`object`,properties:{perHourRemaining:{type:`number`}},required:[`perHourRemaining`],additionalProperties:!1}},required:[`agentId`,`enabled`,`caps`],additionalProperties:!1},scopes:[`rpc`]},"channels.capabilities":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},features:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`channelType`,`features`],additionalProperties:!1},scopes:[`rpc`]},"channels.disable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`stopped`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"channels.enable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`running`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"channels.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},channelId:{type:`string`},status:{type:`string`,enum:[`running`,`stopped`]},configured:{type:`boolean`}},required:[`channelType`,`status`],additionalProperties:!1},scopes:[`admin`]},"channels.health":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,properties:{channelType:{type:`string`},state:{type:`string`},connectionMode:{type:`string`},lastCheckedAt:{type:`number`},lastMessageAt:{anyOf:[{type:`number`},{type:`null`}]},error:{anyOf:[{type:`string`},{type:`null`}]},stateChangedAt:{type:`number`},consecutiveFailures:{type:`number`},activeRuns:{type:`number`},restartAttempts:{type:`number`},uptimeMs:{type:`number`}},required:[`channelType`,`state`,`connectionMode`,`lastCheckedAt`,`lastMessageAt`,`error`,`stateChangedAt`,`consecutiveFailures`,`activeRuns`,`restartAttempts`,`uptimeMs`],additionalProperties:!1}},timestamp:{type:`number`},enabled:{type:`boolean`}},required:[`channels`,`timestamp`,`enabled`],additionalProperties:!1},scopes:[`rpc`]},"channels.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,properties:{channelType:{type:`string`},channelId:{type:`string`},status:{type:`string`,enum:[`running`,`stopped`]}},required:[`channelType`,`status`],additionalProperties:!1}},total:{type:`number`}},required:[`channels`,`total`],additionalProperties:!1},scopes:[`admin`]},"channels.restart":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},required:[`channel_type`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelType:{type:`string`},status:{type:`string`,const:`running`},message:{type:`string`}},required:[`channelType`,`status`,`message`],additionalProperties:!1},scopes:[`admin`]},"config.apply":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]}},required:[`section`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{applied:{type:`boolean`,const:!0},section:{type:`string`},restarting:{type:`boolean`,const:!0}},required:[`applied`,`section`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.audit.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{since:{type:`string`},until:{type:`string`},suspiciousOnly:{type:`boolean`},pid:{type:`integer`,minimum:-9007199254740991,maximum:9007199254740991},tail:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{records:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`records`],additionalProperties:!1},scopes:[`admin`]},"config.audit.scrub":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{dryRun:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rewrittenRecords:{type:`integer`,minimum:0,maximum:9007199254740991},skippedMalformed:{type:`integer`,minimum:0,maximum:9007199254740991},aborted:{type:`boolean`}},required:[`rewrittenRecords`,`skippedMalformed`,`aborted`],additionalProperties:!1},scopes:[`admin`]},"config.diff":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{diff:{type:`string`},error:{type:`string`}},required:[`diff`],additionalProperties:!1},scopes:[`admin`]},"config.gc":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{olderThan:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{gc:{type:`boolean`,const:!0},squashed:{type:`number`},newRootSha:{type:`string`}},required:[`gc`],additionalProperties:!1},scopes:[`admin`]},"config.history":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,properties:{sha:{type:`string`},timestamp:{type:`string`},message:{type:`string`},metadata:{type:`object`,properties:{section:{type:`string`},key:{type:`string`},agent:{type:`string`},user:{type:`string`},traceId:{type:`string`},summary:{type:`string`}},required:[`section`,`summary`],additionalProperties:!1}},required:[`sha`,`timestamp`,`message`,`metadata`],additionalProperties:!1}},error:{type:`string`}},required:[`entries`],additionalProperties:!1},scopes:[`admin`]},"config.patch":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},key:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]}},required:[`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{patched:{type:`boolean`,const:!0},section:{type:`string`},key:{type:`string`},value:{anyOf:[{type:`string`},{type:`number`},{type:`boolean`},{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}]},restarting:{type:`boolean`,const:!0}},required:[`patched`,`section`,`value`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.read":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"config.rollback":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`,minLength:1}},required:[`sha`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rolledBack:{type:`boolean`,const:!0},sha:{type:`string`},newCommitSha:{type:`string`},restarting:{type:`boolean`,const:!0}},required:[`rolledBack`,`sha`,`newCommitSha`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"config.schema":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{section:{type:`string`},schema:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},sections:{type:`array`,items:{type:`string`}}},required:[`schema`,`sections`],additionalProperties:!1},scopes:[`admin`]},"context.conversations":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},offset:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversations:{type:`array`,items:{type:`object`,properties:{conversation_id:{type:`string`},tenant_id:{type:`string`},agent_id:{type:`string`},session_key:{type:`string`},title:{anyOf:[{type:`string`},{type:`null`}]},created_at:{type:`string`},updated_at:{type:`string`},message_count:{type:`number`}},required:[`conversation_id`,`tenant_id`,`agent_id`,`session_key`,`title`,`created_at`,`updated_at`,`message_count`],additionalProperties:!1}},total:{type:`number`}},required:[`conversations`,`total`],additionalProperties:!1},scopes:[`rpc`]},"context.tree":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversation_id:{type:`string`}},required:[`conversation_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{conversationId:{type:`string`},nodes:{type:`array`,items:{type:`object`,properties:{summaryId:{type:`string`},kind:{type:`string`},depth:{type:`number`},tokenCount:{type:`number`},contentPreview:{type:`string`},childIds:{type:`array`,items:{type:`string`}},parentIds:{type:`array`,items:{type:`string`}},taint:{type:`boolean`},createdAt:{type:`string`}},required:[`summaryId`,`kind`,`depth`,`tokenCount`,`contentPreview`,`childIds`,`parentIds`,`taint`,`createdAt`],additionalProperties:!1}},messageCount:{type:`number`}},required:[`conversationId`,`nodes`,`messageCount`],additionalProperties:!1},scopes:[`rpc`]},"cron.add":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},agentId:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},message:{type:`string`},sessionTarget:{type:`string`},deliveryTarget:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},enabled:{type:`boolean`},schedule_kind:{type:`string`},payload_kind:{type:`string`},payload_text:{type:`string`},schedule_expr:{type:`string`},timezone:{type:`string`},schedule_every_ms:{type:`number`},schedule_at:{type:`string`},schedule_in_seconds:{type:`number`},model:{type:`string`},session_target:{type:`string`},wake_mode:{type:`string`},forward_to_main:{type:`boolean`},session_strategy:{type:`string`},max_history_turns:{type:`number`}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobId:{type:`string`},name:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},model:{type:`string`}},required:[`jobId`,`name`,`schedule`],additionalProperties:!1},scopes:[`rpc`]},"cron.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`jobs`],additionalProperties:!1},scopes:[`rpc`]},"cron.remove":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`}},required:[`jobName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},removed:{type:`boolean`}},required:[`jobName`,`removed`],additionalProperties:!1},scopes:[`rpc`]},"cron.run":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},mode:{type:`string`},agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{triggered:{type:`boolean`},mode:{type:`string`},jobName:{type:`string`},resolvedAgentId:{type:`string`}},required:[`triggered`,`mode`],additionalProperties:!1},scopes:[`rpc`]},"cron.runs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},limit:{type:`number`},agentId:{type:`string`}},required:[`jobName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`runs`],additionalProperties:!1},scopes:[`rpc`]},"cron.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{running:{type:`boolean`},jobCount:{type:`number`},resolvedAgentId:{type:`string`}},required:[`running`,`jobCount`],additionalProperties:!1},scopes:[`rpc`]},"cron.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobId:{type:`string`},jobName:{type:`string`},enabled:{type:`boolean`},name:{type:`string`},sessionTarget:{type:`string`},schedule:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},message:{type:`string`},deliveryTarget:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{jobName:{type:`string`},updated:{type:`boolean`}},required:[`jobName`,`updated`],additionalProperties:!1},scopes:[`rpc`]},"daemon.setLogLevel":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{level:{type:`string`,enum:[`fatal`,`error`,`warn`,`info`,`debug`,`trace`]},module:{type:`string`}},required:[`level`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{updated:{type:`boolean`,const:!0},module:{type:`string`},level:{type:`string`},scope:{type:`string`,enum:[`global`,`module`]},persistent:{type:`boolean`,const:!1}},required:[`updated`,`level`,`scope`,`persistent`],additionalProperties:!1},scopes:[`admin`]},"delivery.queue.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pending:{type:`number`},inFlight:{type:`number`},failed:{type:`number`},delivered:{type:`number`},expired:{type:`number`}},required:[`pending`,`inFlight`,`failed`,`delivered`,`expired`],additionalProperties:!1},scopes:[`rpc`]},"discord.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"env.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{filter:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{secrets:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},source:{type:`string`,enum:[`envfile`,`secretstore`]},provider:{type:`string`},description:{type:`string`},createdAt:{type:`number`},updatedAt:{type:`number`},expiresAt:{type:`number`}},required:[`name`,`source`],additionalProperties:!1}},total:{type:`number`},truncated:{type:`boolean`}},required:[`secrets`,`total`,`truncated`],additionalProperties:!1},scopes:[`admin`]},"env.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{key:{type:`string`,minLength:1},value:{type:`string`,minLength:1}},required:[`key`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{set:{type:`boolean`,const:!0},key:{type:`string`},storage:{type:`string`,enum:[`encrypted`,`file`]},restarting:{type:`boolean`}},required:[`set`,`key`,`storage`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"gateway.restart":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{restarting:{type:`boolean`,const:!0},systemd:{type:`boolean`},warning:{type:`string`}},required:[`restarting`,`systemd`],additionalProperties:!1},scopes:[`admin`]},"gateway.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pid:{type:`number`},uptime:{type:`number`},memoryUsage:{type:`number`},nodeVersion:{type:`string`},configPaths:{type:`array`,items:{type:`string`}},sections:{type:`array`,items:{type:`string`}},secretsStoreAvailable:{type:`boolean`},version:{type:`string`}},required:[`pid`,`uptime`,`memoryUsage`,`nodeVersion`,`configPaths`,`sections`,`secretsStoreAvailable`],additionalProperties:!1},scopes:[`admin`]},"graph.cancel":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cancelled:{type:`boolean`},graphId:{type:`string`}},required:[`cancelled`,`graphId`],additionalProperties:!1},scopes:[`rpc`]},"graph.define":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{nodes:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},label:{type:`string`},onFailure:{type:`string`},on_failure:{type:`string`},timeoutMs:{type:`number`},timeout_ms:{type:`number`},budget:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},edges:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},settings:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`nodes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{valid:{type:`boolean`},nodeCount:{type:`number`},executionOrder:{type:`array`,items:{type:`string`}},label:{type:`string`},warnings:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},errors:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},userVariables:{type:`array`,items:{type:`string`}}},required:[`valid`,`nodeCount`,`executionOrder`,`warnings`,`errors`,`userVariables`],additionalProperties:!1},scopes:[`rpc`]},"graph.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},deleted:{type:`boolean`}},required:[`id`,`deleted`],additionalProperties:!1},scopes:[`rpc`]},"graph.deleteRun":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},deleted:{type:`boolean`}},required:[`graphId`,`deleted`],additionalProperties:!1},scopes:[`rpc`]},"graph.execute":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"graph.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{limit:{type:`number`},offset:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`entries`,`total`],additionalProperties:!1},scopes:[`rpc`]},"graph.load":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"graph.outputs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},outputs:{type:`object`,propertyNames:{type:`string`},additionalProperties:{anyOf:[{type:`string`},{type:`null`}]}},source:{type:`string`}},required:[`graphId`,`outputs`,`source`],additionalProperties:!1},scopes:[`rpc`]},"graph.runDetail":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},name:{type:`string`},status:{type:`string`,enum:[`completed`,`failed`]},date:{type:`string`},nodes:{type:`array`,items:{type:`object`,properties:{nodeId:{type:`string`},output:{anyOf:[{type:`string`},{type:`null`}]},artifacts:{type:`array`,items:{type:`object`,properties:{filename:{type:`string`},content:{type:`string`}},required:[`filename`,`content`],additionalProperties:!1}}},required:[`nodeId`,`output`,`artifacts`],additionalProperties:!1}}},required:[`graphId`,`name`,`status`,`date`,`nodes`],additionalProperties:!1},scopes:[`rpc`]},"graph.runs":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,properties:{graphId:{type:`string`},name:{type:`string`},status:{type:`string`,enum:[`completed`,`failed`]},nodeCount:{type:`number`},date:{type:`string`},fileCount:{type:`number`}},required:[`graphId`,`name`,`status`,`nodeCount`,`date`,`fileCount`],additionalProperties:!1}}},required:[`runs`],additionalProperties:!1},scopes:[`rpc`]},"graph.save":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{label:{type:`string`},id:{type:`string`},agentId:{type:`string`},nodes:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},edges:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},settings:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`label`,`nodes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},saved:{type:`boolean`}},required:[`id`,`saved`],additionalProperties:!1},scopes:[`rpc`]},"graph.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{graphId:{type:`string`},graph_id:{type:`string`},recentMinutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"heartbeat.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},perAgent:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},effective:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`agentId`,`perAgent`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.states":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agents:{type:`array`,items:{type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},intervalMs:{type:`number`},lastRunMs:{type:`number`},nextDueMs:{type:`number`},consecutiveErrors:{type:`number`},backoffUntilMs:{type:`number`},tickStartedAtMs:{type:`number`},lastAlertMs:{type:`number`},lastErrorKind:{anyOf:[{type:`string`,enum:[`transient`,`permanent`]},{type:`null`}]}},required:[`agentId`,`enabled`,`intervalMs`,`lastRunMs`,`nextDueMs`,`consecutiveErrors`,`backoffUntilMs`,`tickStartedAtMs`,`lastAlertMs`,`lastErrorKind`],additionalProperties:!1}}},required:[`agents`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.trigger":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},triggered:{type:`boolean`}},required:[`agentId`,`triggered`],additionalProperties:!1},scopes:[`admin`]},"heartbeat.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},enabled:{type:`boolean`},intervalMs:{type:`number`},showOk:{type:`boolean`},showAlerts:{type:`boolean`},prompt:{type:`string`},model:{type:`string`},session:{type:`string`},allowDm:{type:`boolean`},lightContext:{type:`boolean`},ackMaxChars:{type:`number`},responsePrefix:{type:`string`},skipHeartbeatOnlyDelivery:{type:`boolean`},alertThreshold:{type:`number`},alertCooldownMs:{type:`number`},staleMs:{type:`number`},targetChannelType:{type:`string`},targetChannelId:{type:`string`},targetChatId:{type:`string`},targetIsDm:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`}},required:[`agentId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"image.analyze":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{source_type:{type:`string`},source:{type:`string`},attachment_url:{type:`string`},prompt:{type:`string`},mime_type:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`],additionalProperties:!1},scopes:[`rpc`]},"image.generate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{prompt:{type:`string`},size:{type:`string`},model:{type:`string`},reference_image:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"lease.revoke":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{leaseId:{type:`string`},rootRunId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{revoked:{type:`integer`,minimum:0,maximum:9007199254740991}},required:[`revoked`],additionalProperties:!1},scopes:[`admin`]},"link.process":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enrichedText:{type:`string`},linksProcessed:{type:`number`},errors:{type:`array`,items:{type:`string`}}},required:[`enrichedText`,`linksProcessed`,`errors`],additionalProperties:!1},scopes:[`rpc`]},"mcp.connect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},rlimits:{type:`object`,properties:{as:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},nofile:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},cpu:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},disablePlaintextSecretCheck:{type:`boolean`},keepaliveIntervalMs:{type:`integer`,minimum:0,maximum:9007199254740991},circuitBreakerThreshold:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},circuitBreakerCooldownMs:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},auth:{type:`string`,enum:[`headers`,`oauth`]}},required:[`server_name`,`transport`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}},persistence:{type:`string`,enum:[`persisted`,`runtime_only`,`skipped`]},warning:{type:`string`}},required:[`name`,`status`,`toolCount`,`tools`],additionalProperties:!1},scopes:[`admin`]},"mcp.disconnect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,const:`disconnected`},persistence:{type:`string`,enum:[`persisted`,`runtime_only`,`skipped`]},warning:{type:`string`}},required:[`name`,`status`],additionalProperties:!1},scopes:[`admin`]},"mcp.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{servers:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},lastHealthCheck:{type:`number`},reconnectAttempt:{type:`number`},error:{type:`string`},capabilities:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},serverVersion:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1}},required:[`name`,`status`,`toolCount`,`lastHealthCheck`,`reconnectAttempt`],additionalProperties:!1}},total:{type:`number`}},required:[`servers`,`total`],additionalProperties:!1},scopes:[`admin`]},"mcp.oauth_login":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`},status:{type:`string`,enum:[`authorized`,`headless_hint`,`device_code_pending`,`failed`]},portForwardHint:{type:`string`},authUrl:{type:`string`},verificationUri:{type:`string`},userCode:{type:`string`},expiresIn:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},required:[`server_name`,`status`],additionalProperties:!1},scopes:[`admin`]},"mcp.oauth_logout":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`},cleared:{type:`boolean`}},required:[`server_name`,`cleared`],additionalProperties:!1},scopes:[`admin`]},"mcp.reconnect":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}}},required:[`name`,`status`,`toolCount`,`tools`],additionalProperties:!1},scopes:[`admin`]},"mcp.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{server_name:{type:`string`,minLength:1}},required:[`server_name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},status:{type:`string`,enum:[`connected`,`disconnected`,`connecting`,`reconnecting`,`error`]},toolCount:{type:`number`},tools:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},qualifiedName:{type:`string`},description:{type:`string`}},required:[`name`,`qualifiedName`],additionalProperties:!1}},lastHealthCheck:{type:`number`},reconnectAttempt:{type:`number`},maxReconnectAttempts:{type:`number`},error:{type:`string`},generation:{type:`number`},serverInfo:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1},instructions:{type:`string`},capabilities:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},serverVersion:{type:`object`,properties:{name:{type:`string`},version:{type:`string`}},required:[`name`,`version`],additionalProperties:!1}},required:[`name`,`status`,`toolCount`,`tools`,`lastHealthCheck`,`reconnectAttempt`,`maxReconnectAttempts`,`generation`],additionalProperties:!1},scopes:[`admin`]},"mcp.test":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},transport:{type:`string`,enum:[`stdio`,`sse`,`http`]},command:{type:`string`},args:{type:`array`,items:{type:`string`}},url:{type:`string`},env:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},headers:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`string`}},rlimits:{type:`object`,properties:{as:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},nofile:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991},cpu:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},disablePlaintextSecretCheck:{type:`boolean`}},required:[`name`,`transport`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{success:{type:`boolean`},toolCount:{type:`number`},tools:{type:`array`,items:{type:`string`}},error:{type:`string`}},required:[`success`],additionalProperties:!1},scopes:[`admin`]},"media.describe_video":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`},prompt:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`rpc`]},"media.extract_document":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},fileName:{type:`string`},mimeType:{type:`string`},extractedChars:{type:`number`},truncated:{type:`boolean`},durationMs:{type:`number`}},required:[`text`,`mimeType`,`extractedChars`,`truncated`,`durationMs`],additionalProperties:!1},scopes:[`rpc`]},"media.providers":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"media.test.document":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{file:{type:`string`},mimeType:{type:`string`},fileName:{type:`string`}},required:[`file`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},fileName:{type:`string`},mimeType:{type:`string`},extractedChars:{type:`number`},truncated:{type:`boolean`},durationMs:{type:`number`},pageCount:{type:`number`}},required:[`text`,`fileName`,`mimeType`,`extractedChars`,`truncated`,`durationMs`],additionalProperties:!1},scopes:[`admin`]},"media.test.link":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`}},required:[`url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enrichedText:{type:`string`},linksProcessed:{type:`number`},errors:{type:`array`,items:{type:`string`}}},required:[`enrichedText`,`linksProcessed`,`errors`],additionalProperties:!1},scopes:[`admin`]},"media.test.stt":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},language:{type:`string`}},required:[`audio`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},language:{type:`string`},durationMs:{type:`number`},provider:{type:`string`}},required:[`text`,`durationMs`,`provider`],additionalProperties:!1},scopes:[`admin`]},"media.test.tts":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},voice:{type:`string`},format:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{audio:{type:`string`},mimeType:{type:`string`},sizeBytes:{type:`number`},provider:{type:`string`}},required:[`audio`,`mimeType`,`sizeBytes`,`provider`],additionalProperties:!1},scopes:[`admin`]},"media.test.video":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{video:{type:`string`},mimeType:{type:`string`},prompt:{type:`string`},provider:{type:`string`}},required:[`video`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`admin`]},"media.test.vision":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{image:{type:`string`},mimeType:{type:`string`},prompt:{type:`string`},provider:{type:`string`}},required:[`image`,`mimeType`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{description:{type:`string`},provider:{type:`string`},model:{type:`string`}},required:[`description`,`provider`,`model`],additionalProperties:!1},scopes:[`admin`]},"media.transcribe":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{attachment_url:{type:`string`},language:{type:`string`}},required:[`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},language:{type:`string`},durationMs:{type:`number`}},required:[`text`,`durationMs`],additionalProperties:!1},scopes:[`rpc`]},"memory.ask":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{question:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},required:[`question`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{answer:{type:`string`},citations:{type:`array`,items:{type:`string`}},abstained:{type:`boolean`},reason:{type:`string`}},required:[`answer`,`citations`,`abstained`],additionalProperties:!1},scopes:[`rpc`]},"memory.browse":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},offset:{type:`number`},limit:{type:`number`},sort:{type:`string`},memory_type:{type:`string`},trust_level:{type:`string`},tags:{type:`array`,items:{type:`string`}}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`},hasMore:{type:`boolean`}},required:[`entries`,`total`,`offset`,`limit`,`hasMore`],additionalProperties:!1},scopes:[`admin`]},"memory.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ids:{minItems:1,type:`array`,items:{type:`string`}},tenant_id:{type:`string`}},required:[`ids`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`number`},failed:{type:`number`},total:{type:`number`}},required:[`deleted`,`failed`,`total`],additionalProperties:!1},scopes:[`admin`]},"memory.embeddingCache":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{enabled:{type:`boolean`},l1:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},l2:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]},provider:{type:`string`},vecAvailable:{type:`boolean`},circuitBreaker:{type:`object`,properties:{state:{type:`string`}},required:[`state`],additionalProperties:!1}},required:[`enabled`,`vecAvailable`,`circuitBreaker`],additionalProperties:!1},scopes:[`admin`]},"memory.entities":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entities:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},name:{type:`string`},mentionCount:{type:`number`},firstSeen:{type:`number`},lastSeen:{type:`number`}},required:[`id`,`name`,`mentionCount`],additionalProperties:!1}}},required:[`entities`],additionalProperties:!1},scopes:[`admin`]},"memory.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},offset:{type:`number`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`}},required:[`entries`,`total`,`offset`,`limit`],additionalProperties:!1},scopes:[`admin`]},"memory.flush":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{flushed:{type:`boolean`,const:!0},entriesRemoved:{type:`number`},scope:{type:`object`,properties:{tenantId:{type:`string`},agentId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`tenantId`,`agentId`],additionalProperties:!1}},required:[`flushed`,`entriesRemoved`,`scope`],additionalProperties:!1},scopes:[`admin`]},"memory.get_file":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{path:{type:`string`},startLine:{type:`number`},endLine:{type:`number`}},required:[`path`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{path:{type:`string`},startLine:{type:`number`},endLine:{type:`number`},totalLines:{type:`number`},content:{type:`string`}},required:[`path`,`startLine`,`endLine`,`totalLines`,`content`],additionalProperties:!1},scopes:[`rpc`]},"memory.observations":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{observations:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},content:{type:`string`},proofCount:{type:`number`},sourceIds:{type:`array`,items:{type:`string`}},confidence:{type:`number`},consolidatedAt:{type:`number`},createdAt:{type:`number`}},required:[`id`,`content`,`createdAt`],additionalProperties:!1}}},required:[`observations`],additionalProperties:!1},scopes:[`admin`]},"memory.pin":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1},tenant_id:{type:`string`},agent_id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pinned:{type:`boolean`,const:!0},found:{type:`boolean`},id:{type:`string`}},required:[`pinned`,`found`,`id`],additionalProperties:!1},scopes:[`admin`]},"memory.portability.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agent_id:{type:`string`},tenant_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:9007199254740991}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`string`,const:`comis-memory-export-v1`},exportedAt:{type:`number`},scope:{type:`object`,properties:{tenantId:{type:`string`},agentId:{anyOf:[{type:`string`},{type:`null`}]}},required:[`tenantId`,`agentId`],additionalProperties:!1},entryCount:{type:`number`},entries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`schemaVersion`,`exportedAt`,`scope`,`entryCount`,`entries`],additionalProperties:!1},scopes:[`admin`]},"memory.portability.import":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{maxItems:1e4,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},agent_id:{type:`string`,minLength:1},tenant_id:{type:`string`},dry_run:{type:`boolean`}},required:[`entries`,`agent_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{imported:{type:`number`},blocked:{type:`number`},downgraded:{type:`number`},deduped:{type:`number`},total:{type:`number`},dryRun:{type:`boolean`}},required:[`imported`,`blocked`,`downgraded`,`deduped`,`total`,`dryRun`],additionalProperties:!1},scopes:[`admin`]},"memory.recall_stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{laneUsage:{type:`object`,properties:{fts:{type:`number`},vector:{type:`number`},entity:{type:`number`}},required:[`fts`,`vector`,`entity`],additionalProperties:!1},rerankRuns:{type:`number`},rerankFallbacks:{type:`number`},consolidationClusters:{type:`number`},observationsCreated:{type:`number`},recalls:{type:`number`},recallsWithHits:{type:`number`},rerankFallbackRate:{type:`number`},recallHitRate:{type:`number`}},required:[`laneUsage`,`rerankRuns`,`rerankFallbacks`,`consolidationClusters`,`observationsCreated`,`recalls`,`recallsWithHits`,`rerankFallbackRate`,`recallHitRate`],additionalProperties:!1},scopes:[`admin`]},"memory.recall_trace":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},trace_id:{type:`string`},tenant_id:{type:`string`},agent_id:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{records:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},tracingEnabled:{type:`boolean`},hint:{type:`string`}},required:[`records`],additionalProperties:!1},scopes:[`admin`]},"memory.search_files":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{query:{type:`string`},limit:{type:`number`}},required:[`query`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{results:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},content:{type:`string`},score:{type:`number`},tags:{type:`array`,items:{type:`string`}},createdAt:{type:`number`}},required:[`id`,`content`,`score`,`tags`,`createdAt`],additionalProperties:!1}}},required:[`results`],additionalProperties:!1},scopes:[`rpc`]},"memory.stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tenant_id:{type:`string`},agent_id:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"memory.store":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{content:{type:`string`,minLength:1},tags:{type:`array`,items:{type:`string`}},trustLevel:{type:`string`}},required:[`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stored:{type:`boolean`,const:!0},id:{type:`string`}},required:[`stored`,`id`],additionalProperties:!1},scopes:[`rpc`]},"memory.unpin":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1},tenant_id:{type:`string`},agent_id:{type:`string`}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{unpinned:{type:`boolean`,const:!0},id:{type:`string`}},required:[`unpinned`,`id`],additionalProperties:!1},scopes:[`admin`]},"message.attach":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},attachment_url:{type:`string`},attachment_type:{type:`string`,enum:[`image`,`file`,`audio`,`video`]},mime_type:{type:`string`},file_name:{type:`string`},caption:{type:`string`}},required:[`channel_type`,`channel_id`,`attachment_url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`admin`]},"message.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`}},required:[`deleted`,`channelId`,`messageId`],additionalProperties:!1},scopes:[`admin`]},"message.edit":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},text:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{edited:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`}},required:[`edited`,`channelId`,`messageId`],additionalProperties:!1},scopes:[`admin`]},"message.fetch":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},limit:{type:`number`},before:{type:`string`}},required:[`channel_type`,`channel_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},channelId:{type:`string`}},required:[`messages`,`channelId`],additionalProperties:!1},scopes:[`admin`]},"message.react":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},emoji:{type:`string`}},required:[`channel_type`,`channel_id`,`message_id`,`emoji`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reacted:{type:`boolean`,const:!0},channelId:{type:`string`},messageId:{type:`string`},emoji:{type:`string`}},required:[`reacted`,`channelId`,`messageId`,`emoji`],additionalProperties:!1},scopes:[`rpc`]},"message.reply":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},message_id:{type:`string`},text:{type:`string`},buttons:{type:`array`,items:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},cards:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},effects:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},thread_reply:{type:`boolean`}},required:[`channel_type`,`channel_id`,`message_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`rpc`]},"message.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel_type:{type:`string`},channel_id:{type:`string`},text:{type:`string`},buttons:{type:`array`,items:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},cards:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},effects:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},thread_reply:{type:`boolean`}},required:[`channel_type`,`channel_id`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},channelId:{type:`string`}},required:[`messageId`,`channelId`],additionalProperties:!1},scopes:[`rpc`]},"models.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"models.list_providers":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`string`}},count:{type:`number`}},required:[`providers`,`count`],additionalProperties:!1},scopes:[`admin`]},"models.test":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{provider:{type:`string`}},required:[`provider`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"notification.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{message:{type:`string`},priority:{type:`string`,enum:[`low`,`normal`,`high`,`critical`]},channel_type:{type:`string`},channel_id:{type:`string`},origin:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{success:{type:`boolean`},entryId:{type:`string`},error:{type:`string`}},required:[`success`],additionalProperties:!1},scopes:[`rpc`]},"obs.audit.query":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{kind:{type:`string`,minLength:1},classification:{type:`string`,minLength:1},agentId:{type:`string`,minLength:1},tenant:{type:`string`},outcome:{type:`string`,minLength:1},since:{type:`number`},until:{type:`number`},limit:{type:`number`,exclusiveMinimum:0}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.byAgent":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},sinceMs:{type:`number`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`},budgetUsed:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},tools:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.byProvider":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`providers`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.bySession":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`,minLength:1},sinceMs:{type:`number`}},required:[`sessionKey`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.total":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{totalCost:{type:`number`},totalTokens:{type:`number`},callCount:{type:`number`},totalCacheSaved:{type:`number`}},required:[`totalCost`,`totalTokens`,`callCount`],additionalProperties:!1},scopes:[`admin`]},"obs.billing.usage24h":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.cacheBreaks.byReason":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{since:{type:`integer`,minimum:0,maximum:9007199254740991},until:{type:`integer`,minimum:0,maximum:9007199254740991}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.cacheStats.window":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`integer`,minimum:0,maximum:9007199254740991},untilMs:{type:`integer`,minimum:0,maximum:9007199254740991},agent:{type:`string`,minLength:1},provider:{type:`string`,minLength:1}},required:[`sinceMs`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{window:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`window`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.all":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channels:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`channels`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channelId:{type:`string`,minLength:1}},required:[`channelId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{channel:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},required:[`channel`],additionalProperties:!1},scopes:[`admin`]},"obs.channels.stale":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{thresholdMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{stale:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`stale`],additionalProperties:!1},scopes:[`admin`]},"obs.context.dag":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.context.pipeline":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`},limit:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},scopes:[`admin`]},"obs.delivery.recent":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceMs:{type:`number`},limit:{type:`number`},channelId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deliveries:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`deliveries`],additionalProperties:!1},scopes:[`admin`]},"obs.delivery.stats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{total:{type:`number`},successes:{type:`number`},failures:{type:`number`},avgLatencyMs:{type:`number`}},required:[`total`,`successes`,`failures`,`avgLatencyMs`],additionalProperties:!1},scopes:[`admin`]},"obs.diagnostics":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{category:{type:`string`,enum:[`usage`,`webhook`,`message`,`session`]},limit:{type:`number`},sinceMs:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{events:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},counts:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`events`,`counts`],additionalProperties:!1},scopes:[`rpc`]},"obs.explain":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`,minLength:1},traceId:{type:`string`,minLength:1},rootRunId:{type:`string`,minLength:1},depth:{type:`string`,enum:[`summary`,`full`]},includeSynthetic:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`number`,const:1},sessionKey:{type:`string`},traceId:{type:`string`},agentId:{type:`string`},channel:{type:`object`,properties:{type:{type:`string`},id:{type:`string`}},required:[`type`,`id`],additionalProperties:!1},outcome:{type:`object`,properties:{endReason:{type:`string`},degraded:{type:`boolean`},severity:{type:`string`,enum:[`ok`,`degraded`,`failed`]}},required:[`endReason`,`degraded`,`severity`],additionalProperties:!1},cost:{type:`object`,properties:{costUsd:{type:`number`},totalTokens:{type:`number`},cacheReadRatio:{type:`number`}},required:[`costUsd`,`totalTokens`,`cacheReadRatio`],additionalProperties:!1},timing:{type:`object`,properties:{durationMs:{type:`number`},turnCount:{type:`number`}},required:[`durationMs`,`turnCount`],additionalProperties:!1},toolStats:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`},topErrorKind:{type:`string`}},required:[`ok`,`failed`],additionalProperties:!1}},failures:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},toolName:{type:`string`},classifiedFailureBy:{type:`string`},transportOk:{type:`boolean`},httpStatus:{type:`number`},errorKind:{type:`string`},matchedToken:{type:`string`},matchedRule:{type:`string`},resultDigest:{type:`string`},resultBytes:{type:`number`},errorPreview:{type:`string`}},required:[`seq`,`toolName`,`classifiedFailureBy`,`transportOk`,`errorKind`,`resultDigest`,`resultBytes`,`errorPreview`],additionalProperties:!1}},breakerTimeline:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},event:{type:`string`,enum:[`opened`,`reset`]},toolName:{type:`string`},consecutiveFailures:{type:`number`}},required:[`seq`,`event`,`toolName`],additionalProperties:!1}},offloads:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},toolName:{type:`string`},originalChars:{type:`number`},pointer:{type:`string`}},required:[`seq`,`toolName`,`originalChars`,`pointer`],additionalProperties:!1}},nodeBudgetBreaches:{type:`array`,items:{type:`object`,properties:{seq:{type:`number`},nodeId:{type:`string`},capSource:{type:`string`,enum:[`node`,`operator-default`,`inherit-share`,`unknown`]},tokenBudget:{type:`number`},tokensUsed:{type:`number`}},required:[`seq`,`nodeId`,`capSource`,`tokenBudget`,`tokensUsed`],additionalProperties:!1}},spawnTree:{type:`array`,items:{type:`object`,properties:{leaseId:{type:`string`},parentLeaseId:{type:`string`},rootRunId:{type:`string`},agentId:{type:`string`},caps:{type:`array`,items:{type:`string`}},toolsInvoked:{type:`array`,items:{type:`string`}},denials:{type:`array`,items:{type:`string`}},budgetTokensUsed:{type:`number`}},required:[`leaseId`,`rootRunId`,`agentId`,`caps`,`toolsInvoked`,`denials`],additionalProperties:!1}},contextBudget:{type:`object`,properties:{windowTokens:{type:`number`},rawContextWindowTokens:{type:`number`},windowCapSource:{type:`string`,enum:[`effectiveContextCapSmall`,`effectiveContextCapNano`,`served`,`capabilityClass`,`none`]},systemTokens:{type:`number`},freshTailTokens:{type:`number`},budgetedHistoryTokens:{type:`number`},keptCount:{type:`number`},assembledInputTokens:{type:`number`},outputHeadroom:{type:`number`},verdict:{type:`string`,enum:[`fits`,`downshifted`,`exhausted`]}},required:[`windowTokens`,`rawContextWindowTokens`,`windowCapSource`,`systemTokens`,`freshTailTokens`,`budgetedHistoryTokens`,`keptCount`,`assembledInputTokens`,`outputHeadroom`,`verdict`],additionalProperties:!1},contextBudgetHistory:{type:`array`,items:{type:`object`,properties:{windowTokens:{type:`number`},assembledInputTokens:{type:`number`},keptCount:{type:`number`},verdict:{type:`string`,enum:[`fits`,`downshifted`,`exhausted`]}},required:[`windowTokens`,`assembledInputTokens`,`keptCount`,`verdict`],additionalProperties:!1}},recall:{type:`object`,properties:{recalls:{type:`number`},zeroHits:{type:`number`},lastLanes:{type:`number`},lastFinalCount:{type:`number`},rerankerAvailable:{type:`boolean`}},required:[`recalls`,`zeroHits`,`lastLanes`,`lastFinalCount`,`rerankerAvailable`],additionalProperties:!1},image:{type:`object`,properties:{provider:{type:`string`},model:{type:`string`},costUsd:{type:`number`},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`},delivered:{type:`boolean`},persisted:{type:`boolean`}},required:[`provider`,`outcome`,`delivered`],additionalProperties:!1},vision:{type:`object`,properties:{provider:{type:`string`},mainProvider:{type:`string`},model:{type:`string`},costUsd:{type:`number`},path:{type:`string`,enum:[`main-vision`,`registry`,`gemini-video`,`unavailable`]},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`}},required:[`provider`,`outcome`],additionalProperties:!1},videoGenerated:{type:`object`,properties:{provider:{type:`string`},model:{type:`string`},jobId:{type:`string`},costUsd:{type:`number`},estimatedCostUsd:{type:`number`},durationSecs:{type:`number`},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`},delivered:{type:`boolean`}},required:[`provider`,`outcome`,`delivered`],additionalProperties:!1},voice:{type:`object`,properties:{provider:{type:`string`},keyless:{type:`boolean`},model:{type:`string`},durationMs:{type:`number`},costUsd:{type:`number`},source:{type:`string`,enum:[`explicit`,`keyless-local`,`follow-main-key`,`fallback`]},outcome:{type:`string`,enum:[`ok`,`failed`]},errorKind:{type:`string`}},required:[`provider`,`keyless`,`outcome`],additionalProperties:!1},learning:{type:`object`,properties:{outcomeResolved:{type:`boolean`},outcome:{type:`string`,enum:[`success`,`failure`,`corrected`,`unknown`]},sources:{type:`array`,items:{type:`string`,enum:[`tool`,`pipeline`,`correction`,`judge`,`reaction`,`explicit`]}},skillsUsed:{type:`array`,items:{type:`string`}},skillFailures:{type:`array`,items:{type:`string`}},synthesisAbstained:{type:`boolean`},skillsPromoted:{type:`number`},skillsDemoted:{type:`number`},skillsDemotedNames:{type:`array`,items:{type:`string`}},failuresAttributed:{type:`number`},skillsSurfacedButUncredited:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},coverage:{type:`number`}},required:[`name`,`coverage`],additionalProperties:!1}}},required:[`outcomeResolved`,`sources`,`skillsUsed`,`skillFailures`,`synthesisAbstained`],additionalProperties:!1},cacheBreaks:{type:`array`,items:{type:`object`,properties:{reason:{type:`string`},count:{type:`number`},estCostUsd:{type:`number`}},required:[`reason`,`count`,`estCostUsd`],additionalProperties:!1}},audit:{type:`object`,properties:{total:{type:`number`},byKind:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}}},required:[`total`,`byKind`],additionalProperties:!1},spend:{type:`object`,properties:{scope:{type:`string`},totalUsd:{type:`number`},capUsd:{type:`number`}},required:[`scope`,`totalUsd`,`capUsd`],additionalProperties:!1},perRootBudget:{type:`object`,properties:{limb:{type:`string`},spent:{type:`number`},cap:{type:`number`},unit:{type:`string`}},required:[`limb`,`spent`,`cap`,`unit`],additionalProperties:!1},turnCount:{type:`number`},summary:{type:`string`},likelyRootCause:{anyOf:[{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},suggestedNextSteps:{type:`array`,items:{type:`string`}}},required:[`code`,`detail`,`suggestedNextSteps`],additionalProperties:!1},{type:`null`}]},suggestedNextSteps:{type:`array`,items:{type:`string`}},truncations:{type:`array`,items:{type:`object`,properties:{field:{type:`string`},reason:{type:`string`},pointer:{type:`string`}},required:[`field`,`reason`],additionalProperties:!1}},coverage:{type:`object`,properties:{trajectory:{type:`object`,properties:{found:{type:`boolean`},records:{type:`number`}},required:[`found`,`records`],additionalProperties:!1},rollup:{type:`object`,properties:{present:{type:`boolean`}},required:[`present`],additionalProperties:!1},offloads:{type:`object`,properties:{pointersResolved:{type:`number`},pointersTotal:{type:`number`}},required:[`pointersResolved`,`pointersTotal`],additionalProperties:!1},toolStats:{type:`object`,properties:{reconciled:{type:`boolean`},rollupSource:{type:`string`,const:`last-execution`},divergentTools:{type:`array`,items:{type:`object`,properties:{tool:{type:`string`},rollup:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1},trajectory:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1}},required:[`tool`,`rollup`,`trajectory`],additionalProperties:!1}}},required:[`reconciled`,`rollupSource`,`divergentTools`],additionalProperties:!1}},required:[`trajectory`,`rollup`,`offloads`],additionalProperties:!1}},required:[`schemaVersion`,`sessionKey`,`traceId`,`agentId`,`channel`,`outcome`,`cost`,`timing`,`toolStats`,`failures`,`breakerTimeline`,`offloads`,`summary`,`likelyRootCause`,`suggestedNextSteps`,`truncations`],additionalProperties:!1},scopes:[`rpc`]},"obs.fleet.health":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sinceHours:{type:`number`,exclusiveMinimum:0}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{schemaVersion:{type:`number`,const:1},windowHours:{type:`number`},sessions:{type:`object`,properties:{total:{type:`number`},degraded:{type:`number`},degradedRate:{type:`number`}},required:[`total`,`degraded`,`degradedRate`],additionalProperties:!1},topErrorKinds:{type:`array`,items:{type:`object`,properties:{kind:{type:`string`},count:{type:`number`}},required:[`kind`,`count`],additionalProperties:!1}},degradedByCause:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}},breakerTripTotal:{type:`number`},toolStats:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`object`,properties:{ok:{type:`number`},failed:{type:`number`}},required:[`ok`,`failed`],additionalProperties:!1}},cost:{type:`object`,properties:{costUsd:{type:`number`},totalTokens:{type:`number`}},required:[`costUsd`,`totalTokens`],additionalProperties:!1},activity:{type:`object`,properties:{activeAgents:{type:`array`,items:{type:`string`}},activeChannels:{type:`array`,items:{type:`string`}},exitReasons:{type:`object`,propertyNames:{type:`string`},additionalProperties:{type:`number`}},turnTotal:{type:`number`},tokenTotal:{type:`number`}},required:[`activeAgents`,`activeChannels`,`exitReasons`,`turnTotal`,`tokenTotal`],additionalProperties:!1},findings:{type:`array`,items:{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},count:{type:`number`},hint:{type:`string`}},required:[`code`,`detail`,`count`,`hint`],additionalProperties:!1}},likelyRootCause:{anyOf:[{type:`object`,properties:{code:{type:`string`},detail:{type:`string`},suggestedNextSteps:{type:`array`,items:{type:`string`}}},required:[`code`,`detail`,`suggestedNextSteps`],additionalProperties:!1},{type:`null`}]},suggestedNextSteps:{type:`array`,items:{type:`string`}},truncations:{type:`array`,items:{type:`object`,properties:{field:{type:`string`},reason:{type:`string`},pointer:{type:`string`}},required:[`field`,`reason`],additionalProperties:!1}},coverage:{type:`object`,properties:{sessionSummary:{type:`object`,properties:{found:{type:`boolean`},rows:{type:`number`}},required:[`found`,`rows`],additionalProperties:!1},sessionIndex:{type:`object`,properties:{daysRead:{type:`number`},daysMissing:{type:`number`}},required:[`daysRead`,`daysMissing`],additionalProperties:!1},billing:{type:`object`,properties:{present:{type:`boolean`}},required:[`present`],additionalProperties:!1}},required:[`sessionSummary`,`sessionIndex`,`billing`],additionalProperties:!1},pipelineAuthoringGate:{type:`object`,properties:{buildAuthor:{type:`boolean`},reason:{type:`string`}},required:[`buildAuthor`,`reason`],additionalProperties:!1},autonomy:{type:`object`,properties:{runs:{type:`object`,properties:{total:{type:`number`},degraded:{type:`number`},degradedRate:{type:`number`}},required:[`total`,`degraded`,`degradedRate`],additionalProperties:!1},orphaned:{type:`number`},resumed:{type:`number`},revoked:{type:`number`},killed:{type:`number`},breakerTrips:{type:`number`},denialBreakerTrips:{type:`number`},budgetBreaches:{type:`number`},costUsd:{type:`number`},worstRootRunId:{type:`string`}},required:[`runs`,`orphaned`,`resumed`,`revoked`,`killed`,`breakerTrips`,`denialBreakerTrips`,`budgetBreaches`,`costUsd`],additionalProperties:!1}},required:[`schemaVersion`,`windowHours`,`sessions`,`topErrorKinds`,`degradedByCause`,`breakerTripTotal`,`toolStats`,`cost`,`activity`,`findings`,`likelyRootCause`,`suggestedNextSteps`,`truncations`],additionalProperties:!1},scopes:[`admin`]},"obs.getCacheStats":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{cacheHitRate:{type:`number`},cacheEffectiveness:{type:`number`}},required:[`cacheHitRate`,`cacheEffectiveness`],additionalProperties:!1},scopes:[`admin`]},"obs.reset":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},rowsDeleted:{type:`object`,properties:{tokenUsage:{type:`number`},delivery:{type:`number`},diagnostics:{type:`number`},channels:{type:`number`}},required:[`tokenUsage`,`delivery`,`diagnostics`,`channels`],additionalProperties:!1}},required:[`reset`,`rowsDeleted`],additionalProperties:!1},scopes:[`admin`]},"obs.reset.table":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{table:{type:`string`,enum:[`token_usage`,`delivery`,`diagnostics`,`channels`]}},required:[`table`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},table:{type:`string`},rowsDeleted:{type:`number`}},required:[`reset`,`table`,`rowsDeleted`],additionalProperties:!1},scopes:[`admin`]},"obs.spend.snapshot":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{snapshot:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`snapshot`],additionalProperties:!1},scopes:[`admin`]},"obs.systemPromptReport.latest":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},sessionId:{type:`string`,minLength:1},runId:{type:`string`}},required:[`agentId`,`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{report:{anyOf:[{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},{type:`null`}]}},required:[`report`],additionalProperties:!1},scopes:[`admin`]},"obs.systemPromptReport.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionId:{type:`string`,minLength:1},limit:{type:`integer`,exclusiveMinimum:0,maximum:100}},required:[`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reports:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`reports`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionId:{type:`string`,minLength:1}},required:[`sessionId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{bundlePath:{type:`string`}},required:[`bundlePath`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.search":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{messageId:{type:`string`},traceId:{type:`string`},chatId:{type:`string`},since:{type:`string`},where:{type:`string`},limit:{type:`integer`,exclusiveMinimum:0,maximum:1e3},includeSynthetic:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rows:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}}},required:[`rows`],additionalProperties:!1},scopes:[`admin`]},"obs.trace.tail":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{chatId:{type:`string`,minLength:1},sinceMs:{type:`number`},limit:{type:`integer`,exclusiveMinimum:0,maximum:100}},required:[`chatId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{events:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},nextSinceMs:{type:`number`}},required:[`events`,`nextSinceMs`],additionalProperties:!1},scopes:[`admin`]},"providers.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},created:{type:`boolean`,const:!0}},required:[`providerId`,`config`,`created`],additionalProperties:!1},scopes:[`admin`]},"providers.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},deleted:{type:`boolean`,const:!0}},required:[`providerId`,`deleted`],additionalProperties:!1},scopes:[`admin`]},"providers.disable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},enabled:{type:`boolean`,const:!1},warning:{type:`string`}},required:[`providerId`,`enabled`],additionalProperties:!1},scopes:[`admin`]},"providers.enable":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},enabled:{type:`boolean`,const:!0}},required:[`providerId`,`enabled`],additionalProperties:!1},scopes:[`admin`]},"providers.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},apiKeyConfigured:{anyOf:[{type:`boolean`},{type:`null`}]},agentsUsing:{type:`array`,items:{type:`string`}}},required:[`providerId`,`config`,`apiKeyConfigured`,`agentsUsing`],additionalProperties:!1},scopes:[`admin`]},"providers.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providers:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},type:{type:`string`},name:{type:`string`},enabled:{type:`boolean`},baseUrl:{type:`string`},apiKeyName:{type:`string`},modelCount:{type:`number`},apiKeyConfigured:{anyOf:[{type:`boolean`},{type:`null`}]}},required:[`id`,`type`,`name`,`enabled`,`baseUrl`,`modelCount`,`apiKeyConfigured`],additionalProperties:!1}}},required:[`providers`],additionalProperties:!1},scopes:[`admin`]},"providers.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},required:[`providerId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{providerId:{type:`string`},config:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},updated:{type:`boolean`,const:!0}},required:[`providerId`,`config`,`updated`],additionalProperties:!1},scopes:[`admin`]},"run.kill":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{rootRunId:{type:`string`}},required:[`rootRunId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{killed:{type:`integer`,minimum:0,maximum:9007199254740991}},required:[`killed`],additionalProperties:!1},scopes:[`admin`]},"scheduler.wake":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{source:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{woke:{type:`boolean`},source:{type:`string`}},required:[`woke`,`source`],additionalProperties:!1},scopes:[`rpc`]},"secrets.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},deleted:{type:`boolean`},restarting:{type:`boolean`}},required:[`name`,`deleted`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"secrets.get":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},exists:{type:`boolean`},value:{type:`string`}},required:[`name`,`exists`],additionalProperties:!1},scopes:[`admin`]},"secrets.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{secrets:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},provider:{type:`string`},description:{type:`string`},expiresAt:{type:`number`},createdAt:{type:`number`},updatedAt:{type:`number`}},required:[`name`,`createdAt`,`updatedAt`],additionalProperties:!1}}},required:[`secrets`],additionalProperties:!1},scopes:[`admin`]},"secrets.set":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},value:{type:`string`,minLength:1},provider:{type:`string`},description:{type:`string`},expiresAt:{type:`number`}},required:[`name`,`value`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`},stored:{type:`boolean`},restarting:{type:`boolean`}},required:[`name`,`stored`,`restarting`],additionalProperties:!1},scopes:[`admin`]},"session.compact":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},instructions:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},messageCount:{type:`number`},estimatedTokens:{type:`number`},compactionTriggered:{type:`boolean`,const:!0},instructions:{anyOf:[{type:`string`},{type:`null`}]}},required:[`sessionKey`,`messageCount`,`estimatedTokens`,`compactionTriggered`,`instructions`],additionalProperties:!1},scopes:[`rpc`]},"session.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},deleted:{type:`boolean`,const:!0},transcript:{type:`object`,properties:{messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},metadata:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},messageCount:{type:`number`}},required:[`messages`,`metadata`,`messageCount`],additionalProperties:!1}},required:[`sessionKey`,`deleted`,`transcript`],additionalProperties:!1},scopes:[`admin`]},"session.export":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},messages:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},metadata:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},messageCount:{type:`number`},createdAt:{type:`number`},updatedAt:{type:`number`}},required:[`sessionKey`,`messages`,`metadata`,`messageCount`,`createdAt`,`updatedAt`],additionalProperties:!1},scopes:[`admin`]},"session.history":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},offset:{type:`number`},limit:{type:`number`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session:{type:`object`,properties:{key:{type:`string`},agentId:{type:`string`},channelType:{type:`string`},messageCount:{type:`number`},totalTokens:{type:`number`},inputTokens:{type:`number`},outputTokens:{type:`number`},toolCalls:{type:`number`},compactions:{type:`number`},resetCount:{type:`number`},createdAt:{type:`number`},lastActiveAt:{type:`number`},label:{type:`string`}},required:[`key`,`agentId`,`channelType`,`messageCount`,`totalTokens`,`inputTokens`,`outputTokens`,`toolCalls`,`compactions`,`resetCount`,`createdAt`,`lastActiveAt`],additionalProperties:!1},messages:{type:`array`,items:{type:`object`,properties:{role:{type:`string`},content:{type:`string`},timestamp:{type:`number`},deliveryStatus:{type:`string`,enum:[`confirmed`,`pending`]}},required:[`role`,`content`,`timestamp`],additionalProperties:!1}},total:{type:`number`},offset:{type:`number`},limit:{type:`number`},hasMore:{type:`boolean`}},required:[`session`,`messages`,`total`,`offset`,`limit`,`hasMore`],additionalProperties:!1},scopes:[`rpc`]},"session.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{kind:{type:`string`},since_minutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessions:{type:`array`,items:{type:`object`,properties:{sessionKey:{type:`string`},agentId:{type:`string`},userId:{type:`string`},channelId:{type:`string`},kind:{type:`string`},messageCount:{type:`number`},totalTokens:{type:`number`},updatedAt:{type:`number`},createdAt:{type:`number`}},required:[`sessionKey`,`agentId`,`userId`,`channelId`,`kind`,`messageCount`,`totalTokens`,`updatedAt`,`createdAt`],additionalProperties:!1}},total:{type:`number`}},required:[`sessions`,`total`],additionalProperties:!1},scopes:[`rpc`]},"session.reset":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},reset:{type:`boolean`,const:!0},previousMessageCount:{type:`number`}},required:[`sessionKey`,`reset`,`previousMessageCount`],additionalProperties:!1},scopes:[`rpc`]},"session.reset_conversation":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},memory:{type:`boolean`},purge_derived:{type:`boolean`},agentId:{type:`string`}},required:[`session_key`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sessionKey:{type:`string`},lcdRowsDeleted:{type:`number`},sessionMessagesCleared:{type:`number`},memoriesDeleted:{type:`number`},resolvedAgentId:{type:`string`},runtimeSessionDestroyed:{type:`boolean`}},required:[`sessionKey`,`lcdRowsDeleted`,`sessionMessagesCleared`],additionalProperties:!1},scopes:[`admin`]},"session.run_status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{run_id:{type:`string`}},required:[`run_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runId:{type:`string`},status:{type:`string`},agentId:{type:`string`},task:{type:`string`},sessionKey:{type:`string`},startedAt:{type:`number`},completedAt:{type:`number`},runtimeMs:{type:`number`},response:{type:`string`},tokensUsed:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},cost:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}},error:{type:`string`}},required:[`runId`,`status`,`agentId`,`task`,`startedAt`,`runtimeMs`],additionalProperties:!1},scopes:[`rpc`]},"session.search":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{query:{type:`string`},scope:{type:`string`},limit:{type:`number`},summarize:{type:`boolean`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.send":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{session_key:{type:`string`},text:{type:`string`},mode:{type:`string`},timeout_ms:{type:`number`},max_turns:{type:`number`},agent_id:{type:`string`}},required:[`session_key`,`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.spawn":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{task:{type:`string`},agent:{type:`string`},async:{type:`boolean`},max_steps:{type:`number`},model:{type:`string`},expected_outputs:{type:`array`,items:{type:`string`}},artifact_refs:{type:`array`,items:{type:`string`}},objective:{type:`string`},domain_knowledge:{type:`array`,items:{type:`string`}},tool_groups:{type:`array`,items:{type:`string`}},required_tools:{type:`array`,items:{type:`string`}},include_parent_history:{type:`string`},announce_channel_type:{type:`string`},announce_channel_id:{type:`string`},worktree:{type:`boolean`}},required:[`task`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"session.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{model:{type:`string`},agentName:{type:`string`},tokensUsed:{type:`object`,properties:{totalTokens:{type:`number`},totalCost:{type:`number`}},required:[`totalTokens`,`totalCost`],additionalProperties:!1},stepsExecuted:{type:`number`},maxSteps:{type:`number`}},required:[`model`,`agentName`,`tokensUsed`,`stepsExecuted`,`maxSteps`],additionalProperties:!1},scopes:[`rpc`]},"skills.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},content:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`},force:{type:`boolean`}},required:[`name`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`},name:{type:`string`}},required:[`ok`,`path`,`name`],additionalProperties:!1},scopes:[`rpc`]},"skills.delete":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`}},required:[`name`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0}},required:[`ok`],additionalProperties:!1},scopes:[`rpc`]},"skills.import":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{url:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`},force:{type:`boolean`}},required:[`url`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`},name:{type:`string`},fileCount:{type:`number`}},required:[`ok`,`path`,`name`,`fileCount`],additionalProperties:!1},scopes:[`rpc`]},"skills.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{skills:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},description:{type:`string`},location:{type:`string`},disableModelInvocation:{type:`boolean`},source:{type:`string`,enum:[`bundled`,`workspace`,`local`]}},required:[`name`,`description`,`location`],additionalProperties:!1}}},required:[`skills`],additionalProperties:!1},scopes:[`rpc`]},"skills.update":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},content:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},agentId:{type:`string`}},required:[`name`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},name:{type:`string`}},required:[`ok`,`name`],additionalProperties:!1},scopes:[`rpc`]},"skills.upload":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{name:{type:`string`,minLength:1},scope:{type:`string`,enum:[`local`,`shared`]},files:{type:`array`,items:{type:`object`,properties:{path:{type:`string`},content:{type:`string`}},required:[`path`,`content`],additionalProperties:!1}},agentId:{type:`string`},force:{type:`boolean`}},required:[`name`,`files`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{ok:{type:`boolean`,const:!0},path:{type:`string`}},required:[`ok`,`path`],additionalProperties:!1},scopes:[`rpc`]},"slack.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"subagent.kill":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{target:{type:`string`}},required:[`target`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{killed:{type:`boolean`},runId:{type:`string`}},required:[`killed`,`runId`],additionalProperties:!1},scopes:[`admin`]},"subagent.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{recentMinutes:{type:`number`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{runs:{type:`array`,items:{type:`object`,propertyNames:{type:`string`},additionalProperties:{}}},total:{type:`number`}},required:[`runs`,`total`],additionalProperties:!1},scopes:[`admin`]},"subagent.steer":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{target:{type:`string`},message:{type:`string`}},required:[`target`,`message`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,oneOf:[{type:`object`,properties:{status:{type:`string`,const:`steered`},oldRunId:{type:`string`},newRunId:{type:`string`}},required:[`status`,`oldRunId`,`newRunId`],additionalProperties:!1},{type:`object`,properties:{status:{type:`string`,const:`steered_inject`},runId:{type:`string`}},required:[`status`,`runId`],additionalProperties:!1}]},scopes:[`admin`]},"system.ping":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{pong:{type:`boolean`,const:!0},ts:{type:`number`}},required:[`pong`,`ts`],additionalProperties:!1},scopes:[`rpc`]},"telegram.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"tokens.create":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},scopes:{minItems:1,type:`array`,items:{type:`string`}}},required:[`scopes`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},secret:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`},message:{type:`string`}},required:[`id`,`secret`,`scopes`,`createdAt`,`message`],additionalProperties:!1},scopes:[`admin`]},"tokens.list":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{tokens:{type:`array`,items:{type:`object`,properties:{id:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`}},required:[`id`,`scopes`,`createdAt`],additionalProperties:!1}}},required:[`tokens`],additionalProperties:!1},scopes:[`admin`]},"tokens.revoke":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`},revoked:{type:`boolean`,const:!0},message:{type:`string`}},required:[`id`,`revoked`,`message`],additionalProperties:!1},scopes:[`admin`]},"tokens.rotate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{id:{type:`string`,minLength:1}},required:[`id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{oldId:{type:`string`},newId:{type:`string`},newSecret:{type:`string`},scopes:{type:`array`,items:{type:`string`}},createdAt:{type:`number`},message:{type:`string`}},required:[`oldId`,`newId`,`newSecret`,`scopes`,`createdAt`,`message`],additionalProperties:!1},scopes:[`admin`]},"tts.auto_check":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{response_text:{type:`string`},has_inbound_audio:{type:`boolean`},has_media_url:{type:`boolean`}},required:[`response_text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{shouldSynthesize:{type:`boolean`},strippedText:{type:`string`},mode:{type:`string`}},required:[`shouldSynthesize`,`mode`],additionalProperties:!1},scopes:[`rpc`]},"tts.synthesize":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{text:{type:`string`},voice:{type:`string`},format:{type:`string`}},required:[`text`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{filePath:{type:`string`},mimeType:{type:`string`},sizeBytes:{type:`number`}},required:[`filePath`,`mimeType`,`sizeBytes`],additionalProperties:!1},scopes:[`rpc`]},"video.generate":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{prompt:{type:`string`},duration:{type:`number`},aspect_ratio:{type:`string`},resolution:{type:`string`},audio:{type:`boolean`},negative_prompt:{type:`string`},seed:{type:`number`},image_url:{type:`string`},model:{type:`string`}},additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"video.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{job_id:{type:`string`}},required:[`job_id`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{state:{type:`string`,enum:[`pending`,`done`,`failed`]},progress:{type:`number`},mediaPath:{type:`string`},costUsd:{type:`number`},error:{type:`string`}},required:[`state`],additionalProperties:!1},scopes:[`rpc`]},"whatsapp.action":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`admin`]},"workspace.deleteFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{deleted:{type:`boolean`,const:!0}},required:[`deleted`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.commit":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},message:{type:`string`},paths:{type:`array`,items:{type:`string`}}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{sha:{type:`string`},author:{type:`string`},date:{type:`string`},message:{type:`string`}},required:[`sha`,`author`,`date`,`message`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.diff":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{diff:{type:`string`}},required:[`diff`],additionalProperties:!1},scopes:[`rpc`]},"workspace.git.log":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},limit:{type:`number`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{commits:{type:`array`,items:{type:`object`,properties:{sha:{type:`string`},author:{type:`string`},date:{type:`string`},message:{type:`string`}},required:[`sha`,`author`,`date`,`message`],additionalProperties:!1}}},required:[`commits`],additionalProperties:!1},scopes:[`rpc`]},"workspace.git.restore":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{restored:{type:`boolean`,const:!0}},required:[`restored`],additionalProperties:!1},scopes:[`admin`]},"workspace.git.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{branch:{type:`string`},clean:{type:`boolean`},entries:{type:`array`,items:{type:`object`,properties:{path:{type:`string`},status:{type:`string`,enum:[`untracked`,`deleted`,`added`,`renamed`,`copied`,`modified`]},staged:{type:`boolean`}},required:[`path`,`status`,`staged`],additionalProperties:!1}}},required:[`branch`,`clean`,`entries`],additionalProperties:!1},scopes:[`rpc`]},"workspace.init":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{initialized:{type:`boolean`,const:!0},dir:{type:`string`}},required:[`initialized`,`dir`],additionalProperties:!1},scopes:[`admin`]},"workspace.listDir":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},subdir:{type:`string`}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{entries:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},type:{type:`string`,enum:[`file`,`directory`]},sizeBytes:{type:`number`},modifiedAt:{type:`number`}},required:[`name`,`type`,`modifiedAt`],additionalProperties:!1}}},required:[`entries`],additionalProperties:!1},scopes:[`rpc`]},"workspace.readFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1}},required:[`agentId`,`filePath`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{content:{type:`string`},sizeBytes:{type:`number`}},required:[`content`,`sizeBytes`],additionalProperties:!1},scopes:[`rpc`]},"workspace.resetFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},fileName:{type:`string`,minLength:1}},required:[`agentId`,`fileName`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{reset:{type:`boolean`,const:!0},fileName:{type:`string`}},required:[`reset`,`fileName`],additionalProperties:!1},scopes:[`admin`]},"workspace.status":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1}},required:[`agentId`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,propertyNames:{type:`string`},additionalProperties:{}},scopes:[`rpc`]},"workspace.writeFile":{request:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{agentId:{type:`string`,minLength:1},filePath:{type:`string`,minLength:1},content:{type:`string`}},required:[`agentId`,`filePath`,`content`],additionalProperties:!1},response:{$schema:`https://json-schema.org/draft/2020-12/schema`,type:`object`,properties:{written:{type:`boolean`,const:!0},sizeBytes:{type:`number`}},required:[`written`,`sizeBytes`],additionalProperties:!1},scopes:[`admin`]}};function y(e,t){let n=v[e];return n?_(n.request,t):!1}function ee(e,t){let n=v[e];return n?_(n.response,t):!1}function te(){try{return import.meta.env?.DEV===!0}catch{return!1}}function b(e,t,n){let r=te();if(r&&!y(t,n))throw Error(`Invalid RPC request for ${t}`);return e(t,n).then(e=>{if(r&&!ee(t,e))throw Error(`Invalid RPC response for ${t}`);return e})}function x(e,t,n){let r={Authorization:`Bearer ${t}`,"Content-Type":`application/json`};async function i(t,n){let i=`${e}${t}`,a=await fetch(i,{...n,headers:{...r,...n?.headers}});if(!a.ok){let e=await a.text(),t=(e.length>200?e.slice(0,200)+`...`:e).replace(/https?:\/\/[^\s"')]+/g,`[URL]`).replace(/[A-Za-z0-9_-]{20,}/g,`[REDACTED]`);throw Error(`Request failed (${a.status}): ${t}`)}return a.json()}async function a(t,n){let i=`${e}${t}`,a=await fetch(i,{...n,headers:{...r,...n?.headers}});if(!a.ok){let e=await a.text(),t=(e.length>200?e.slice(0,200)+`...`:e).replace(/https?:\/\/[^\s"')]+/g,`[URL]`).replace(/[A-Za-z0-9_-]{20,}/g,`[REDACTED]`);throw Error(`Request failed (${a.status}): ${t}`)}return a.text()}return{async getAgents(){let e=await i(`/api/agents`),t=e.agents??e.routing?.agents??[];return Array.isArray(t)?t:Object.entries(e).map(([e,t])=>({id:e,provider:t.provider??`unknown`,model:t.model??`unknown`,status:`active`}))},async getChannels(){let e=await i(`/api/channels`),t=e.channels??[];return Array.isArray(t)?t:Object.entries(e).map(([e,t])=>({type:t.type??e,name:e,enabled:t.enabled??!1,status:t.enabled?`healthy`:`disconnected`}))},async getActivity(e=50){return(await i(`/api/activity?limit=${e}`)).entries??[]},async searchMemory(e,t=10){return(await i(`/api/memory/search?q=${encodeURIComponent(e)}&limit=${t}`)).results??[]},async getMemoryStats(){return i(`/api/memory/stats`)},async chat(e,t,n){return i(`/api/chat`,{method:`POST`,body:JSON.stringify({message:e,agentId:t,sessionKey:n})})},async getChatHistory(){return(await i(`/api/chat/history`)).messages??[]},async health(){return(await fetch(`${e}/api/health`)).json()},async browseMemory(e){if(n)return b(n,`memory.browse`,e);let t=new URLSearchParams;e.offset!==void 0&&t.set(`offset`,String(e.offset)),e.limit!==void 0&&t.set(`limit`,String(e.limit)),e.type&&t.set(`type`,e.type),e.trust&&t.set(`trust`,e.trust),e.agentId&&t.set(`agentId`,e.agentId),e.from!==void 0&&t.set(`from`,String(e.from)),e.to!==void 0&&t.set(`to`,String(e.to));let r=t.toString();return i(`/api/memory/browse${r?`?${r}`:``}`)},async deleteMemory(e){if(n){await b(n,`memory.delete`,{id:e});return}await i(`/api/memory/${encodeURIComponent(e)}`,{method:`DELETE`})},async deleteMemoryBulk(e){return n?b(n,`memory.delete`,{ids:e}):i(`/api/memory/bulk-delete`,{method:`POST`,body:JSON.stringify({ids:e})})},async exportMemory(e){return n?b(n,`memory.export`,e?{ids:e}:{}):a(`/api/memory/export`,{method:`POST`,body:JSON.stringify({ids:e})})},async listSessions(e){if(n)return(await b(n,`session.list`,e??{})).sessions;let t=new URLSearchParams;e?.agentId&&t.set(`agentId`,e.agentId),e?.channelType&&t.set(`channelType`,e.channelType),e?.search&&t.set(`search`,e.search);let r=t.toString();return i(`/api/sessions${r?`?${r}`:``}`)},async getSessionDetail(e){return n?b(n,`session.history`,{session_key:e}):i(`/api/sessions/${encodeURIComponent(e)}`)},async resetSession(e){if(n){await b(n,`session.reset`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}/reset`,{method:`POST`})},async compactSession(e){if(n){await b(n,`session.compact`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}/compact`,{method:`POST`})},async deleteSession(e){if(n){await b(n,`session.delete`,{session_key:e});return}await i(`/api/sessions/${encodeURIComponent(e)}`,{method:`DELETE`})},async exportSession(e){return n?b(n,`session.export`,{session_key:e}):a(`/api/sessions/${encodeURIComponent(e)}/export`)},async resetSessionsBulk(e){return n?b(n,`session.reset`,{keys:e}):i(`/api/sessions/bulk-reset`,{method:`POST`,body:JSON.stringify({keys:e})})},async exportSessionsBulk(e){return n?b(n,`session.export`,{keys:e}):a(`/api/sessions/bulk-export`,{method:`POST`,body:JSON.stringify({keys:e})})},async deleteSessionsBulk(e){return n?b(n,`session.delete`,{keys:e}):i(`/api/sessions/bulk-delete`,{method:`POST`,body:JSON.stringify({keys:e})})}}}var ne=[{pattern:`dashboard`,view:`ic-dashboard`},{pattern:`agents`,view:`ic-agent-list`},{pattern:`agents/:id`,view:`ic-agent-detail`},{pattern:`agents/:id/edit`,view:`ic-agent-editor`},{pattern:`agents/:id/workspace`,view:`ic-workspace-manager`},{pattern:`channels`,view:`ic-channel-list`},{pattern:`channels/:type`,view:`ic-channel-detail`},{pattern:`messages`,view:`ic-message-center`},{pattern:`messages/:type`,view:`ic-message-center`},{pattern:`skills`,view:`ic-skills-view`},{pattern:`mcp`,view:`ic-mcp-management`},{pattern:`chat`,view:`ic-chat-console`},{pattern:`chat/:sessionKey`,view:`ic-chat-console`},{pattern:`memory`,view:`ic-memory-inspector`},{pattern:`sessions`,view:`ic-session-list-view`},{pattern:`sessions/:key`,view:`ic-session-detail`},{pattern:`scheduler`,view:`ic-scheduler-view`},{pattern:`scheduler/:jobId`,view:`ic-scheduler-view`},{pattern:`models`,view:`ic-models-view`},{pattern:`observe/overview`,view:`ic-observe-dashboard`},{pattern:`observe/context`,view:`ic-context-engine-view`},{pattern:`observe/billing`,view:`ic-billing-view`},{pattern:`observe/delivery`,view:`ic-delivery-view`},{pattern:`observe/diagnostics`,view:`ic-diagnostics-view`},{pattern:`observe/cache`,view:`ic-cache-health-view`},{pattern:`observe/spend`,view:`ic-spend-governance-view`},{pattern:`observe/incident`,view:`ic-incident-view`},{pattern:`context`,view:`ic-context-dag-browser`},{pattern:`subagents`,view:`ic-subagents-view`},{pattern:`media`,view:`ic-media-test-view`},{pattern:`media/config`,view:`ic-media-config-view`},{pattern:`security`,view:`ic-security-view`},{pattern:`config`,view:`ic-config-editor`},{pattern:`setup`,view:`ic-setup-wizard`},{pattern:`pipelines`,view:`ic-pipeline-list`},{pattern:`pipelines/new`,view:`ic-pipeline-builder`},{pattern:`pipelines/history`,view:`ic-pipeline-history`},{pattern:`pipelines/history/:graphId`,view:`ic-pipeline-history-detail`},{pattern:`pipelines/:graphId`,view:`ic-pipeline-monitor`},{pattern:`pipelines/:graphId/edit`,view:`ic-pipeline-builder`}];function re(){return ne.map(e=>{let t=e.pattern.split(`/`);return{pattern:e.pattern,view:e.view,segments:t,segmentCount:t.length}}).sort((e,t)=>t.segmentCount-e.segmentCount)}var S={view:`ic-dashboard`,route:`dashboard`,params:{},query:{}};function ie(e,t){let n=e.split(`/`);for(let e of t){if(n.length!==e.segmentCount)continue;let t={},r=!0;for(let i=0;i<e.segments.length;i++){let a=e.segments[i],o=n[i];if(a.startsWith(`:`))t[a.slice(1)]=o;else if(a!==o){r=!1;break}}if(r)return{view:e.view,route:e.pattern,params:t,query:{}}}return null}function ae(e,t=`dashboard`){let n=re();function r(){let e=window.location.hash.replace(/^#\/?/,``);if(!e)return{...S};let t=e.indexOf(`?`),r=t>=0?e.slice(0,t):e,i=t>=0?e.slice(t+1):``,a={};if(i)for(let e of i.split(`&`)){let t=e.indexOf(`=`);if(t>=0){let n=decodeURIComponent(e.slice(0,t)),r=decodeURIComponent(e.slice(t+1));n&&(a[n]=r)}else e&&(a[decodeURIComponent(e)]=``)}let o=ie(r,n);return o?{...o,query:a}:{...S,query:a}}function i(){e(r())}return{navigate(e){window.location.hash=`#/${e}`},current(){return r()},start(){window.addEventListener(`hashchange`,i),i()},stop(){window.removeEventListener(`hashchange`,i)}}}var C=3e4,oe=3e4,se=1e4,ce=1e3,le=3e4,ue=10;function de(){let e=null,t=`disconnected`,n=1,r=0,i=null,a=null,o=null,s=``,c=``,l=!1,u=new Map,d=new Set,f=new Set;function p(e){if(t!==e){t=e;for(let t of d)t(e)}}function m(){a!==null&&(clearInterval(a),a=null),o!==null&&(clearTimeout(o),o=null)}function h(){i!==null&&(clearTimeout(i),i=null)}function g(e){for(let[t,n]of u)clearTimeout(n.timer),n.reject(Error(e)),u.delete(t)}function _(){m(),a=setInterval(()=>{if(e===null||e.readyState!==globalThis.WebSocket.OPEN)return;let t=n++;e.send(JSON.stringify({jsonrpc:`2.0`,method:`system.ping`,id:t})),o=setTimeout(()=>{u.delete(t),e!==null&&e.close()},se),u.set(t,{resolve:()=>{o!==null&&(clearTimeout(o),o=null)},reject:()=>{o!==null&&(clearTimeout(o),o=null)},timer:setTimeout(()=>{u.delete(t)},C)})},oe)}function v(){if(l)return;if(r>=ue){p(`disconnected`);return}p(`reconnecting`);let e=Math.min(ce*2**r,le);r++,i=setTimeout(()=>{y(s,c)},e)}function y(t,n){let i=`${t}?token=${encodeURIComponent(n)}`;e=new globalThis.WebSocket(i),e.onopen=()=>{r=0,p(`connected`),_()},e.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(!(t.method===`heartbeat`&&t.id==null)){if(t.method&&t.id==null){console.debug(`[rpc] notification received:`,t.method);for(let e of f)try{e(t.method,t.params)}catch(e){console.warn(`[rpc] notification handler error:`,e)}return}if(t.id!=null){let e=u.get(t.id);e&&(clearTimeout(e.timer),u.delete(t.id),t.error?e.reject(Error(`RPC error (${t.error.code}): ${t.error.message}`)):e.resolve(t.result))}}},e.onclose=t=>{if(m(),e=null,t.code>=4e3&&t.code<5e3){g(`Connection rejected: `+(t.reason||`auth error`)),p(`disconnected`);return}l||v()},e.onerror=()=>{}}return{get status(){return t},connect(e,t){l=!1,s=e,c=t,r=0,y(e,t)},disconnect(){l=!0,h(),m(),g(`Client disconnected`),p(`disconnected`),e!==null&&(e.close(),e=null)},call(t,r){return new Promise((i,a)=>{if(e===null||e.readyState!==globalThis.WebSocket.OPEN){a(Error(`Not connected`));return}let o=n++,s=setTimeout(()=>{u.delete(o),a(Error(`RPC request timed out after ${C}ms`))},C);u.set(o,{resolve:i,reject:a,timer:s});let c=JSON.stringify({jsonrpc:`2.0`,method:t,...r===void 0?{}:{params:r},id:o});try{e.send(c)}catch(e){clearTimeout(s),u.delete(o),a(Error(`Send failed: `+(e instanceof Error?e.message:String(e))))}})},onStatusChange(e){return d.add(e),()=>{d.delete(e)}},onNotification(e){return f.add(e),()=>{f.delete(e)}}}}function fe(){let e={connectionStatus:`disconnected`,pendingApprovals:0,errorCount:0,agentCount:0,channelCount:0,sessionCount:0,systemHealth:null,activeAgents:[],activeChannels:[]},t=new Set;function n(){for(let e of t)e()}return{get connectionStatus(){return e.connectionStatus},get pendingApprovals(){return e.pendingApprovals},get errorCount(){return e.errorCount},get agentCount(){return e.agentCount},get channelCount(){return e.channelCount},get sessionCount(){return e.sessionCount},get systemHealth(){return e.systemHealth},get activeAgents(){return e.activeAgents},get activeChannels(){return e.activeChannels},subscribe(e){return t.add(e),()=>{t.delete(e)}},getSnapshot(){return Object.freeze({...e})},update(t){e={...e,...t},n()}}}var pe=class extends Error{constructor(...e){super(...e),this.name=`GlobalStateNotInitializedError`}};function w(e){if(!e._globalState)throw new pe(`GlobalState not initialized — component lifecycle invariant violated`);return e._globalState}var me=`message:received.message:sent.message:streaming.session:created.session:expired.audit:event.skill:executed.skill:rejected.observability:metrics.observability:token_usage.scheduler:job_started.scheduler:job_completed.scheduler:heartbeat_check.scheduler:heartbeat_alert.scheduler:heartbeat_delivered.system:error.approval:requested.approval:resolved.graph:started.graph:node_updated.graph:completed.config:patched.diagnostic:channel_health.diagnostic:billing_snapshot.skill:loaded.skill:registry_reset.model:catalog_loaded.observability:reset.channel:registered.channel:deregistered.agent:hot_added.agent:hot_removed.security:injection_detected.security:injection_rate_exceeded.security:memory_tainted.security:warn.secret:accessed.model:fallback_attempt.model:fallback_exhausted.model:auth_cooldown.provider:degraded.provider:recovered.session:sub_agent_spawned.session:sub_agent_completed.session:sub_agent_archived.session:sub_agent_spawn_rejected.session:sub_agent_spawn_started.session:sub_agent_spawn_queued.session:sub_agent_lifecycle_ended.ping`.split(`.`);function he(){let e=null,t=!1,n=new Map;function r(e){if(!e)return{};try{return JSON.parse(e)}catch{return e}}function i(e,t){let r=n.get(e);if(r)for(let e of r)e(t);document.dispatchEvent(new CustomEvent(e,{detail:t}))}return{get connected(){return t},start(n,a){e!==null&&e.close();let o=`${n}/api/events?token=${encodeURIComponent(a)}`;e=new EventSource(o),e.onopen=()=>{t=!0},e.onerror=()=>{t=!1};for(let t of me)e.addEventListener(t,(e=>{let n=r(e.data);i(t,n)}));e.onmessage=e=>{i(`message`,r(e.data))}},stop(){e!==null&&(e.close(),e=null),t=!1,n.clear()},addEventListener(e,t){return n.has(e)||n.set(e,new Set),n.get(e).add(t),()=>{let r=n.get(e);r&&(r.delete(t),r.size===0&&n.delete(e))}}}}var ge=class{constructor(e,t,n,r=3e4){this._timer=null,this._host=e,this._rpcClient=t,this._onData=n,this._intervalMs=r,this._host.addController(this)}hostConnected(){this._poll(),this._timer=m(()=>this._poll(),this._intervalMs)}hostDisconnected(){this._timer!==null&&(n(this._timer),this._timer=null)}async _poll(){try{let[e,t,n]=await Promise.all([this._rpcClient.call(`agent.list`),this._rpcClient.call(`channel.list`),this._rpcClient.call(`session.list`,{})]);this._onData({agents:e.agents.length,channels:t.channels.length,sessions:n.total,agentIds:e.agents,sessionEntries:n.sessions?.slice(0,20)??[]}),this._host.requestUpdate()}catch{}}},T=`comis_token`,_e=3e4,ve=500;function ye(e,t={}){let n=t.onRouteMatch??(e=>{});e._gotoWaiting===void 0&&(e._gotoWaiting=!1);let i=null,a=e=>d.handleGlobalKeydown(e);function o(t){let n=new ge(e,t,t=>{e._agentCount=t.agents,e._channelCount=t.channels,e._sessionCount=t.sessions,e._agentList=t.agentIds.map(e=>({id:e})),e._sessionList=t.sessionEntries.map(e=>({key:e.sessionKey,agentId:e.agentId}))},_e);return n.hostConnected(),n}function s(t){return{approvalUnsub:t.addEventListener(`approval:requested`,()=>{let t=w(e),n=t.getSnapshot();t.update({pendingApprovals:n.pendingApprovals+1})}),approvalResolvedUnsub:t.addEventListener(`approval:resolved`,()=>{let t=w(e),n=t.getSnapshot();t.update({pendingApprovals:Math.max(0,n.pendingApprovals-1)})}),errorUnsub:t.addEventListener(`system:error`,()=>{let t=w(e),n=t.getSnapshot();t.update({errorCount:(n.errorCount??0)+1})})}}function c(t){return t.subscribe(()=>{let t=w(e).getSnapshot();e._connectionStatus=t.connectionStatus,e._pendingApprovals=t.pendingApprovals,e._errorCount=t.errorCount,e._agentCount=t.agentCount,e._channelCount=t.channelCount,e._sessionCount=t.sessionCount})}function l(t,r){sessionStorage.setItem(T,t),e._authenticated=!0,e._authError=``,e._rpcClient=de();let i=`${window.location.protocol===`https:`?`wss:`:`ws:`}//${window.location.host}/ws`;e._rpcClient.connect(i,t);let a=e._rpcClient;e._apiClient=x(r,t,(e,t)=>a.call(e,t)),e._globalState=fe(),e._rpcClient.onStatusChange(t=>{e._globalState?.update({connectionStatus:t})}),e._eventDispatcher=he(),e._eventDispatcher.start(r,t);let l=s(e._eventDispatcher);e._approvalUnsub=l.approvalUnsub,e._approvalResolvedUnsub=l.approvalResolvedUnsub,e._errorUnsub=l.errorUnsub,e._stateUnsubscribe=c(e._globalState),e._pollingController=o(e._rpcClient),e._router=d.initRouter(n)}let d={hostConnected(){let e=sessionStorage.getItem(T);e&&d.initWithToken(e),document.addEventListener(`keydown`,a)},hostDisconnected(){d.cleanup(),document.removeEventListener(`keydown`,a),i&&=(u(i),null)},initWithToken(t){e._token=t;let n=`${window.location.protocol}//${window.location.host}`;e._apiClient=x(n,t),e._apiClient.getAgents().then(()=>{l(t,n)}).catch(t=>{e._authError=`Invalid token or server unreachable`,sessionStorage.removeItem(T)})},handleLogin(t){t.preventDefault();let n=t.target.querySelector(`input`).value.trim();if(!n){e._authError=`Please enter a token`;return}d.initWithToken(n)},handleLogout(){sessionStorage.removeItem(T),e._authenticated=!1,d.cleanup(),e._apiClient=null,e._token=``},cleanup(){e._pollingController&&=(e._pollingController.hostDisconnected(),null),e._rpcClient?.disconnect(),e._rpcClient=null,e._eventDispatcher?.stop(),e._eventDispatcher=null,e._stateUnsubscribe?.(),e._stateUnsubscribe=null,e._approvalUnsub?.(),e._approvalUnsub=null,e._approvalResolvedUnsub?.(),e._approvalResolvedUnsub=null,e._errorUnsub?.(),e._errorUnsub=null,e._globalState=null,e._router?.stop(),e._router=null},isInputTarget(e){let t=e.target?.tagName;return!!(t===`INPUT`||t===`TEXTAREA`||t===`SELECT`||e.target?.isContentEditable)},handleGlobalKeydown(t){if((t.ctrlKey||t.metaKey)&&t.key===`k`){t.preventDefault(),e._commandPaletteOpen=!e._commandPaletteOpen;return}if(t.key===`Escape`){if(e._commandPaletteOpen){e._commandPaletteOpen=!1;return}if(e._shortcutsHelpOpen){e._shortcutsHelpOpen=!1;return}e.dispatchEvent(new CustomEvent(`close-overlay`,{bubbles:!0,composed:!0})),e._sidebarOpen&&=!1;return}if(!d.isInputTarget(t)&&!e._commandPaletteOpen){if(t.key===`?`&&!t.ctrlKey&&!t.metaKey&&!t.altKey){e._shortcutsHelpOpen=!e._shortcutsHelpOpen;return}if(e._gotoWaiting){switch(e._gotoWaiting=!1,i&&=(u(i),null),t.key.toLowerCase()){case`d`:e._router?.navigate(`dashboard`);return;case`a`:e._router?.navigate(`agents`);return;case`c`:e._router?.navigate(`chat`);return;case`s`:e._router?.navigate(`sessions`);return;case`o`:e._router?.navigate(`observe/overview`);return}return}t.key===`g`&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&(e._gotoWaiting=!0,i=r(()=>{e._gotoWaiting=!1,i=null},ve))}},handleCommand(t){switch(t){case`refresh`:window.location.reload();break;case`toggle-sidebar`:e._sidebarOpen=!e._sidebarOpen;break;case`logout`:d.handleLogout();break;case`show-shortcuts`:e._shortcutsHelpOpen=!0;break}},initRouter(e){let t=ae(e);return t.start(),t}};return e.addController(d),d}var E=[{id:`home`,label:`Home`,items:[{route:`dashboard`,label:`Dashboard`,icon:`▣`}]},{id:`operate`,label:`Operate`,items:[{route:`agents`,label:`Agents`,icon:`⬤`,badge:`agentCount`},{route:`channels`,label:`Channels`,icon:`◎`,badge:`channelCount`},{route:`messages`,label:`Messages`,icon:`○`},{route:`chat`,label:`Chat`,icon:`▬`},{route:`sessions`,label:`Sessions`,icon:`◷`,badge:`sessionCount`},{route:`subagents`,label:`Sub-Agents`,icon:`◔`},{route:`pipelines`,label:`Pipelines`,icon:`◈`}]},{id:`observe`,label:`Observe`,items:[{route:`observe/overview`,label:`Overview`,icon:`△`,badge:`errorCount`},{route:`observe/context`,label:`Context Engine`,icon:`◥`},{route:`context`,label:`Context DAG`,icon:`◖`},{route:`observe/billing`,label:`Billing`,icon:`◇`},{route:`observe/delivery`,label:`Delivery`,icon:`▷`},{route:`observe/diagnostics`,label:`Diagnostics`,icon:`□`}]},{id:`configure`,label:`Configure`,items:[{route:`skills`,label:`Skills`,icon:`⚒`},{route:`mcp`,label:`MCP Servers`,icon:`⚖`},{route:`models`,label:`Models`,icon:`⌸`},{route:`memory`,label:`Memory`,icon:`◉`},{route:`scheduler`,label:`Scheduler`,icon:`▨`},{route:`security`,label:`Security`,icon:`☖`},{route:`media`,label:`Media`,icon:`▶`},{route:`config`,label:`Config`,icon:`⚙`}]}],be={route:`setup`,label:`Setup`,icon:`▶`},D=`ic_sidebar_collapsed`,O=class extends i{constructor(...e){super(...e),this.currentRoute=`dashboard`,this.pendingApprovals=0,this.errorCount=0,this.agentCount=0,this.channelCount=0,this.sessionCount=0,this.open=!1,this._collapsed=!1}static{this.styles=[f,l,e`
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
5
|
}
|
|
@@ -563,7 +563,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
563
563
|
</div>
|
|
564
564
|
</aside>
|
|
565
565
|
</div>
|
|
566
|
-
`}};p([c()],k.prototype,`connectionStatus`,void 0),p([c({type:Number})],k.prototype,`notificationCount`,void 0),p([c({type:Boolean})],k.prototype,`sidebarCollapsed`,void 0),p([c()],k.prototype,`tokenId`,void 0),p([d()],k.prototype,`_menuOpen`,void 0),k=p([a(`ic-topbar`)],k);var
|
|
566
|
+
`}};p([c()],k.prototype,`connectionStatus`,void 0),p([c({type:Number})],k.prototype,`notificationCount`,void 0),p([c({type:Boolean})],k.prototype,`sidebarCollapsed`,void 0),p([c()],k.prototype,`tokenId`,void 0),p([d()],k.prototype,`_menuOpen`,void 0),k=p([a(`ic-topbar`)],k);var A={telegram:`M20.3 3.5L2.6 10.3c-1.2.5-1.2 1.2-.2 1.5l4.5 1.4 1.7 5.3c.2.6.1.8.7.8.4 0 .7-.2.9-.4l2.2-2.1 4.5 3.3c.8.5 1.4.2 1.6-.8l2.9-13.6c.3-1.3-.5-1.9-1.6-1.2zM8.4 13l8.7-5.4c.4-.3.8-.1.5.2l-7.1 6.4-.3 3.1-1.8-4.3z`,discord:`M19.5 5.6A16 16 0 0015.5 4a12 12 0 00-.5 1.1 15 15 0 00-6 0A12 12 0 008.5 4 16 16 0 004.5 5.6 17 17 0 002 18.6a16 16 0 005 2.5c.4-.6.8-1.2 1.1-1.8a10 10 0 01-1.7-1l.4-.3a11.5 11.5 0 0010.4 0l.4.3c-.5.4-1.1.7-1.7 1 .3.6.7 1.2 1.1 1.8a16 16 0 005-2.5A17 17 0 0019.5 5.6zM8.3 16c-1 0-1.8-1-1.8-2.1s.8-2.1 1.8-2.1 1.9 1 1.8 2.1S9.4 16 8.3 16zm7.4 0c-1 0-1.8-1-1.8-2.1s.8-2.1 1.8-2.1 1.9 1 1.8 2.1S16.8 16 15.7 16z`,slack:`M5.1 15c0 1-.8 1.8-1.8 1.8S1.5 16 1.5 15s.8-1.8 1.8-1.8h1.8V15zm.9 0c0-1 .8-1.8 1.8-1.8s1.8.8 1.8 1.8v4.5c0 1-.8 1.8-1.8 1.8S6 20.5 6 19.5V15zM9 5.1c-1 0-1.8-.8-1.8-1.8S8 1.5 9 1.5s1.8.8 1.8 1.8v1.8H9zm0 .9c1 0 1.8.8 1.8 1.8S10 9.6 9 9.6H4.5c-1 0-1.8-.8-1.8-1.8S3.5 6 4.5 6H9zm9.9 1.8c0-1 .8-1.8 1.8-1.8s1.8.8 1.8 1.8-.8 1.8-1.8 1.8h-1.8V7.8zm-.9 0c0 1-.8 1.8-1.8 1.8S14.4 8.8 14.4 7.8V3.3c0-1 .8-1.8 1.8-1.8s1.8.8 1.8 1.8v4.5zM15 18.9c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8-1.8-.8-1.8-1.8v-1.8H15zm0-.9c-1 0-1.8-.8-1.8-1.8s.8-1.8 1.8-1.8h4.5c1 0 1.8.8 1.8 1.8s-.8 1.8-1.8 1.8H15z`,whatsapp:`M17.5 14.4c-.3-.1-1.6-.8-1.9-.9-.3-.1-.5-.1-.7.1-.2.3-.7.9-.9 1.1-.2.2-.3.2-.6.1-.3-.1-1.2-.4-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6l.4-.5c.1-.2.2-.3.2-.5.1-.2 0-.3 0-.5s-.7-1.6-.9-2.2c-.3-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.3-.3.3-1 1-1 2.5s1.1 2.9 1.2 3.1c.2.2 2.1 3.2 5 4.5.7.3 1.3.5 1.7.6.7.2 1.3.2 1.8.1.6-.1 1.6-.7 1.9-1.3.2-.6.2-1.2.2-1.3-.1-.1-.3-.2-.6-.3zM12 2C6.5 2 2 6.5 2 12c0 1.8.5 3.5 1.3 4.9L2 22l5.2-1.4c1.4.8 3 1.2 4.8 1.2 5.5 0 10-4.5 10-10S17.5 2 12 2z`,line:`M22 10.8c0-4.8-4.8-8.7-10.8-8.7S.4 6 .4 10.8c0 4.3 3.8 7.9 9 8.6.3.1.8.2.9.5.1.3.1.6 0 .9l-.1.9c0 .3-.2 1.1.9.6s6.2-3.7 8.5-6.3c1.6-1.6 2.4-3.4 2.4-5.2zM7.5 13.3H5.7c-.3 0-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.1h1.3c.3 0 .5.2.5.5s-.2.5-.5.5zm1.9-.5c0 .3-.2.5-.5.5s-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.6zm5 0c0 .2-.1.4-.3.4l-.2.1-2.5-3.4v3c0 .3-.2.5-.5.5s-.5-.2-.5-.5V9.2c0-.2.1-.4.3-.4h.1l2.6 3.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.6zm3.5.5h-1.8c-.3 0-.5-.2-.5-.5V9.2c0-.3.2-.5.5-.5s.5.2.5.5v3.1h1.3c.3 0 .5.2.5.5s-.2.5-.5.5z`,signal:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 3c3.9 0 7 3.1 7 7s-3.1 7-7 7-7-3.1-7-7 3.1-7 7-7zm0 3a4 4 0 100 8 4 4 0 000-8zm0 2.5a1.5 1.5 0 110 3 1.5 1.5 0 010-3z`,imessage:`M12 2C6.5 2 2 5.8 2 10.5c0 2.7 1.5 5.1 3.8 6.7-.2 1-.6 2.5-1.8 3.8 2.1-.3 3.8-1.1 4.8-1.8.9.2 2 .3 3.2.3 5.5 0 10-3.8 10-8.5S17.5 2 12 2z`,irc:`M4 4h16v12H5.2L4 17.2V4zm2 2v8h12V6H6zm2 2h8v1H8V8zm0 3h6v1H8v-1z`,dashboard:`M3 3h7v7H3V3zm11 0h7v7h-7V3zM3 14h7v7H3v-7zm11 0h7v7h-7v-7z`,agents:`M16 11c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm-8 0c1.7 0 3-1.3 3-3S9.7 5 8 5 5 6.3 5 8s1.3 3 3 3zm0 2c-2.3 0-7 1.2-7 3.5V19h14v-2.5C15 14.2 10.3 13 8 13zm8 0c-.3 0-.6 0-.9.1 1.1.8 1.9 1.9 1.9 3.4V19h6v-2.5C23 14.2 18.3 13 16 13z`,channels:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-2 15l-5-5 1.4-1.4L10 14.2l7.6-7.6L19 8l-9 9z`,skills:`M12 2L4.5 20.3l.7.2L12 18l6.8 2.5.7-.2L12 2zm0 3.5l5.5 13.3L12 16.5l-5.5 2.3L12 5.5z`,chat:`M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z`,memory:`M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z`,sessions:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z`,scheduler:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z`,models:`M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 17.9c-3.9-.5-7-3.9-7-7.9 0-.6.1-1.2.2-1.8L9 15v1c0 1.1.9 2 2 2v1.9zm6.9-2.5c-.3-.8-1-1.4-1.9-1.4h-1v-3c0-.6-.4-1-1-1H8v-2h2c.6 0 1-.4 1-1V7h2c1.1 0 2-.9 2-2v-.4c2.9 1.2 5 4.1 5 7.4 0 2.1-.8 4-2.1 5.4z`,observe:`M12 4.5C7 4.5 2.7 7.6 1 12c1.7 4.4 6 7.5 11 7.5s9.3-3.1 11-7.5c-1.7-4.4-6-7.5-11-7.5zM12 17c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zm0-8c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z`,security:`M12 1L3 5v6c0 5.6 3.8 10.7 9 12 5.2-1.3 9-6.4 9-12V5l-9-4zm0 10.99h7c-.5 4.1-3.3 7.8-7 8.9V12H5V6.3l7-3.1v8.79z`,approvals:`M23 12l-2.4-2.8.3-3.7-3.6-.8-1.9-3.2L12 3 8.6 1.5 6.7 4.7l-3.6.8.3 3.7L1 12l2.4 2.8-.3 3.7 3.6.8 1.9 3.2L12 21l3.4 1.5 1.9-3.2 3.6-.8-.3-3.7L23 12zm-12.5 5.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.6-6.6 1.4 1.4-8 8z`,config:`M19.1 12.9a7 7 0 000-1.8l2-1.6a.5.5 0 00.1-.6l-1.9-3.3a.5.5 0 00-.6-.2l-2.3.9a7 7 0 00-1.6-.9l-.4-2.5a.5.5 0 00-.5-.4h-3.8a.5.5 0 00-.5.4l-.4 2.5a7 7 0 00-1.6.9l-2.3-.9a.5.5 0 00-.6.2L3 9a.5.5 0 00.1.6l2 1.6a7 7 0 000 1.8l-2 1.6a.5.5 0 00-.1.6l1.9 3.3a.5.5 0 00.6.2l2.3-.9a7 7 0 001.6.9l.4 2.5a.5.5 0 00.5.4h3.8a.5.5 0 00.5-.4l.4-2.5a7 7 0 001.6-.9l2.3.9a.5.5 0 00.6-.2l1.9-3.3a.5.5 0 00-.1-.6l-2-1.6zM12 15.5a3.5 3.5 0 110-7 3.5 3.5 0 010 7z`,setup:`M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 0V5h3v4h-3zm0 10v-4h3v4h-3z`,close:`M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12 19 6.4z`,menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,bell:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.1-1.6-5.6-4.5-6.3V4c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5v.7C7.6 5.4 6 7.9 6 11v5l-2 2v1h16v-1l-2-2z`,logout:`M17 7l-1.4 1.4L18.2 11H8v2h10.2l-2.6 2.6L17 17l5-5-5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z`,"chevron-left":`M15.4 7.4L14 6l-6 6 6 6 1.4-1.4L10.8 12l4.6-4.6z`,"chevron-right":`M8.6 7.4L10 6l6 6-6 6-1.4-1.4L13.2 12 8.6 7.4z`,search:`M15.5 14h-.8l-.3-.3c1-1.1 1.6-2.6 1.6-4.2C16 5.9 13.1 3 9.5 3S3 5.9 3 9.5 5.9 16 9.5 16c1.6 0 3.1-.6 4.2-1.6l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14z`,check:`M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z`,x:`M19 6.4L17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12 19 6.4z`,plus:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,minus:`M19 13H5v-2h14v2z`,trash:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z`,edit:`M3 17.3V21h3.8L17.8 9.9l-3.8-3.8L3 17.3zM20.7 7c.4-.4.4-1 0-1.4l-2.3-2.3c-.4-.4-1-.4-1.4 0l-1.8 1.8 3.8 3.8L20.7 7z`,copy:`M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z`,refresh:`M17.6 6.4A8 8 0 004.1 11H1l3.9 4 4-4H5.5a6 6 0 0110.8-3.2l1.3-1.4zM19 9l-4 4h3.5a6 6 0 01-10.8 3.2l-1.3 1.4A8 8 0 0019.9 13H23l-4-4z`,expand:`M21 11V3h-8l3.3 3.3-5 5 1.4 1.4 5-5L21 11zM3 13v8h8l-3.3-3.3 5-5-1.4-1.4-5 5L3 13z`,collapse:`M14 14h8l-3.3-3.3 3-3-1.4-1.4-3 3L14 6v8zM10 10H2l3.3 3.3-3 3 1.4 1.4 3-3L10 18v-8z`,settings:`M19.1 12.9a7 7 0 000-1.8l2-1.6a.5.5 0 00.1-.6l-1.9-3.3a.5.5 0 00-.6-.2l-2.3.9a7 7 0 00-1.6-.9l-.4-2.5a.5.5 0 00-.5-.4h-3.8a.5.5 0 00-.5.4l-.4 2.5a7 7 0 00-1.6.9l-2.3-.9a.5.5 0 00-.6.2L3 9a.5.5 0 00.1.6l2 1.6a7 7 0 000 1.8l-2 1.6a.5.5 0 00-.1.6l1.9 3.3a.5.5 0 00.6.2l2.3-.9a7 7 0 001.6.9l.4 2.5a.5.5 0 00.5.4h3.8a.5.5 0 00.5-.4l.4-2.5a7 7 0 001.6-.9l2.3.9a.5.5 0 00.6-.2l1.9-3.3a.5.5 0 00-.1-.6l-2-1.6zM12 15.5a3.5 3.5 0 110-7 3.5 3.5 0 010 7z`,pause:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`,play:`M8 5v14l11-7L8 5z`,microphone:`M12 14c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3S9 3.3 9 5v6c0 1.7 1.3 3 3 3zm5.3-3c0 3-2.5 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.4 2.7 6.2 6 6.7V21h2v-3.3c3.3-.5 6-3.3 6-6.7h-1.7z`,send:`M2.01 21L23 12 2.01 3 2 10l15 2-15 2z`,attach:`M16.5 6v11.5c0 2.5-2 4.5-4.5 4.5s-4.5-2-4.5-4.5V5c0-1.7 1.3-3 3-3s3 1.3 3 3v10.5c0 .8-.7 1.5-1.5 1.5s-1.5-.7-1.5-1.5V6H9v9.5c0 1.7 1.3 3 3 3s3-1.3 3-3V5c0-2.5-2-4.5-4.5-4.5S6 2.5 6 5v12.5c0 3.3 2.7 6 6 6s6-2.7 6-6V6h-1.5z`,stop:`M6 6h12v12H6z`,retry:`M17.6 6.4A8 8 0 004.1 11H1l3.9 4 4-4H5.5a6 6 0 0110.8-3.2l1.3-1.4zM19 9l-4 4h3.5a6 6 0 01-10.8 3.2l-1.3 1.4A8 8 0 0019.9 13H23l-4-4z`,download:`M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z`,image:`M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z`,"audio-wave":`M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.8-1-3.3-2.5-4v8c1.5-.7 2.5-2.2 2.5-4zM14 3.2v2.1c2.9.9 5 3.5 5 6.7s-2.1 5.8-5 6.7v2.1c4-.9 7-4.5 7-8.8s-3-7.9-7-8.8z`,slash:`M10 4L4 20h2l6-16h-2zm4 0l6 16h-2L12 4h2z`,"dollar-sign":`M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4z`,activity:`M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z`,layers:`M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z`,"git-branch":`M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z`,"help-circle":`M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z`},j=class extends i{constructor(...e){super(...e),this.name=``,this.size=`1em`,this.color=`currentColor`,this.label=``}static{this.styles=[f,e`
|
|
567
567
|
:host {
|
|
568
568
|
display: inline-flex;
|
|
569
569
|
align-items: center;
|
|
@@ -574,7 +574,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
574
574
|
svg {
|
|
575
575
|
display: block;
|
|
576
576
|
}
|
|
577
|
-
`]}render(){let e=
|
|
577
|
+
`]}render(){let e=A[this.name];return e?this.label?g`
|
|
578
578
|
<svg
|
|
579
579
|
width=${this.size}
|
|
580
580
|
height=${this.size}
|
|
@@ -595,7 +595,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
595
595
|
>
|
|
596
596
|
<path d=${e} />
|
|
597
597
|
</svg>
|
|
598
|
-
`:g``}};p([c()],
|
|
598
|
+
`:g``}};p([c()],j.prototype,`name`,void 0),p([c()],j.prototype,`size`,void 0),p([c()],j.prototype,`color`,void 0),p([c()],j.prototype,`label`,void 0),j=p([a(`ic-icon`)],j),Object.keys(A);var xe=[{id:`v-dashboard`,label:`Dashboard`,category:`view`,icon:`dashboard`,action:`dashboard`},{id:`v-agents`,label:`Agents`,category:`view`,icon:`agents`,action:`agents`},{id:`v-sessions`,label:`Sessions`,category:`view`,icon:`sessions`,action:`sessions`},{id:`v-channels`,label:`Channels`,category:`view`,icon:`channels`,action:`channels`},{id:`v-chat`,label:`Chat Console`,category:`view`,icon:`chat`,action:`chat`},{id:`v-memory`,label:`Memory Inspector`,category:`view`,icon:`memory`,action:`memory`},{id:`v-skills`,label:`Skills`,category:`view`,icon:`skills`,action:`skills`},{id:`v-models`,label:`Models`,category:`view`,icon:`models`,action:`models`},{id:`v-scheduler`,label:`Scheduler`,category:`view`,icon:`scheduler`,action:`scheduler`},{id:`v-pipelines`,label:`Pipelines`,category:`view`,icon:`git-branch`,action:`pipelines`},{id:`v-observe`,label:`Observability`,category:`view`,icon:`observe`,action:`observe/overview`},{id:`v-billing`,label:`Billing`,category:`view`,icon:`dollar-sign`,action:`observe/billing`},{id:`v-delivery`,label:`Delivery`,category:`view`,icon:`send`,action:`observe/delivery`},{id:`v-diagnostics`,label:`Diagnostics`,category:`view`,icon:`activity`,action:`observe/diagnostics`},{id:`v-context`,label:`Context Engine`,category:`view`,icon:`layers`,action:`observe/context`},{id:`v-security`,label:`Security`,category:`view`,icon:`security`,action:`security`},{id:`v-config`,label:`Settings`,category:`view`,icon:`settings`,action:`config`},{id:`v-setup`,label:`Setup Wizard`,category:`view`,icon:`setup`,action:`setup`}],Se=[{id:`c-refresh`,label:`Refresh Data`,category:`command`,icon:`refresh`,action:`refresh`},{id:`c-sidebar`,label:`Toggle Sidebar`,category:`command`,icon:`menu`,action:`toggle-sidebar`},{id:`c-logout`,label:`Logout`,category:`command`,icon:`logout`,action:`logout`},{id:`c-shortcuts`,label:`Show Keyboard Shortcuts`,category:`command`,icon:`help-circle`,action:`show-shortcuts`}],Ce=[`view`,`agent`,`session`,`command`],we={view:`Views`,agent:`Agents`,session:`Sessions`,command:`Commands`},M=class extends i{constructor(...e){super(...e),this.open=!1,this.agents=[],this.sessions=[],this._query=``,this._activeIndex=-1,this._results=[]}static{this.styles=[f,l,o,e`
|
|
599
599
|
:host {
|
|
600
600
|
display: block;
|
|
601
601
|
}
|
|
@@ -724,7 +724,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
724
724
|
font-size: 0.625rem;
|
|
725
725
|
font-family: inherit;
|
|
726
726
|
}
|
|
727
|
-
`]}updated(e){e.has(`open`)&&this.open&&(this._query=``,this._activeIndex=-1,this._results=this._filterResults(``),this.updateComplete.then(()=>{(this.shadowRoot?.querySelector(`.search-input`))?.focus()}))}_getAllItems(){let e=[...
|
|
727
|
+
`]}updated(e){e.has(`open`)&&this.open&&(this._query=``,this._activeIndex=-1,this._results=this._filterResults(``),this.updateComplete.then(()=>{(this.shadowRoot?.querySelector(`.search-input`))?.focus()}))}_getAllItems(){let e=[...xe];for(let t of this.agents)e.push({id:`a-${t.id}`,label:t.name??t.id,category:`agent`,icon:`agents`,action:`agents/${t.id}`});for(let t of this.sessions.slice(0,20))e.push({id:`s-${t.key}`,label:`${t.agentId}: ${t.key}`,category:`session`,icon:`sessions`,action:`sessions/${t.key}`});return e.push(...Se),e}_filterResults(e){let t=this._getAllItems();if(!e)return t.filter(e=>e.category===`view`||e.category===`command`).slice(0,20);let n=e.toLowerCase();return t.filter(e=>e.label.toLowerCase().includes(n)).slice(0,20)}_getGroupedResults(){let e=new Map;for(let t of this._results){let n=e.get(t.category);n||(n=[],e.set(t.category,n)),n.push(t)}return Ce.filter(t=>e.has(t)).map(t=>({category:t,items:e.get(t)}))}_handleInput(e){this._query=e.target.value,this._results=this._filterResults(this._query),this._activeIndex=this._results.length>0?0:-1}_handleKeydown(e){switch(e.key){case`ArrowDown`:e.preventDefault(),this._results.length>0&&(this._activeIndex=Math.min(this._activeIndex+1,this._results.length-1),this._scrollActiveIntoView());break;case`ArrowUp`:e.preventDefault(),this._results.length>0&&(this._activeIndex=Math.max(this._activeIndex-1,0),this._scrollActiveIntoView());break;case`Enter`:e.preventDefault(),this._activeIndex>=0&&this._activeIndex<this._results.length&&this._executeItem(this._results[this._activeIndex]);break;case`Escape`:e.preventDefault(),this._close();break}}_scrollActiveIntoView(){this.updateComplete.then(()=>{(this.shadowRoot?.querySelector(`#result-${this._activeIndex}`))?.scrollIntoView({block:`nearest`})})}_executeItem(e){e.category===`command`?this.dispatchEvent(new CustomEvent(`command`,{detail:e.action,bubbles:!0,composed:!0})):this.dispatchEvent(new CustomEvent(`navigate`,{detail:e.action,bubbles:!0,composed:!0})),this._close()}_close(){this._query=``,this._activeIndex=-1,this.dispatchEvent(new CustomEvent(`close`,{bubbles:!0,composed:!0}))}_handleBackdropClick(e){e.target.classList.contains(`backdrop`)&&this._close()}render(){if(!this.open)return t;let e=this._getGroupedResults(),n=0;return g`
|
|
728
728
|
<div class="backdrop" @click=${this._handleBackdropClick}>
|
|
729
729
|
<div class="palette" role="dialog" aria-label="Command palette">
|
|
730
730
|
<input
|
|
@@ -742,7 +742,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
742
742
|
/>
|
|
743
743
|
<div class="results" id="palette-results" role="listbox" aria-label="Search results">
|
|
744
744
|
${this._results.length===0?g`<div class="no-results">No results found</div>`:e.map(e=>g`
|
|
745
|
-
<div class="category-header">${
|
|
745
|
+
<div class="category-header">${we[e.category]??e.category}</div>
|
|
746
746
|
${e.items.map(e=>{let r=n++;return g`
|
|
747
747
|
<div
|
|
748
748
|
id="result-${r}"
|
|
@@ -766,7 +766,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
766
766
|
</div>
|
|
767
767
|
</div>
|
|
768
768
|
</div>
|
|
769
|
-
`}};p([c({type:Boolean})],
|
|
769
|
+
`}};p([c({type:Boolean})],M.prototype,`open`,void 0),p([c({attribute:!1})],M.prototype,`agents`,void 0),p([c({attribute:!1})],M.prototype,`sessions`,void 0),p([d()],M.prototype,`_query`,void 0),p([d()],M.prototype,`_activeIndex`,void 0),p([d()],M.prototype,`_results`,void 0),M=p([a(`ic-command-palette`)],M);var N={sm:`16px`,md:`24px`,lg:`48px`},P=class extends i{constructor(...e){super(...e),this.mode=`spinner`,this.size=`md`,this.lines=3}static{this.styles=[f,e`
|
|
770
770
|
:host {
|
|
771
771
|
display: block;
|
|
772
772
|
}
|
|
@@ -839,7 +839,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
839
839
|
display: none;
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
`]}render(){return this.mode===`skeleton`?this._renderSkeleton():this._renderSpinner()}_renderSpinner(){let e=
|
|
842
|
+
`]}render(){return this.mode===`skeleton`?this._renderSkeleton():this._renderSpinner()}_renderSpinner(){let e=N[this.size]??N.md;return g`
|
|
843
843
|
<div
|
|
844
844
|
class="spinner"
|
|
845
845
|
style="width: ${e}; height: ${e};"
|
|
@@ -857,7 +857,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
857
857
|
style="width: ${e[t%e.length]};"
|
|
858
858
|
></div>`)}
|
|
859
859
|
</div>
|
|
860
|
-
`}};p([c()],
|
|
860
|
+
`}};p([c()],P.prototype,`mode`,void 0),p([c()],P.prototype,`size`,void 0),p([c({type:Number})],P.prototype,`lines`,void 0),P=p([a(`ic-loading`)],P);var F=class extends i{constructor(...e){super(...e),this.variant=`dashboard`,this._showSkeleton=!1,this._delayTimer=null}static{this.styles=[f,e`
|
|
861
861
|
:host {
|
|
862
862
|
display: block;
|
|
863
863
|
}
|
|
@@ -998,7 +998,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
998
998
|
<div class=${this._showSkeleton?`skeleton-container`:`skeleton-container skeleton-hidden`} role="status" aria-label="Loading content">
|
|
999
999
|
${(()=>{switch(this.variant){case`dashboard`:return this._renderDashboard();case`list`:return this._renderList();case`detail`:return this._renderDetail();case`table`:return this._renderTable();case`editor`:return this._renderEditor()}})()}
|
|
1000
1000
|
</div>
|
|
1001
|
-
`}};p([c()],
|
|
1001
|
+
`}};p([c()],F.prototype,`variant`,void 0),p([d()],F.prototype,`_showSkeleton`,void 0),F=p([a(`ic-skeleton-view`)],F);var I,Te={success:`var(--ic-success)`,error:`var(--ic-error)`,warning:`var(--ic-warning)`,info:`var(--ic-info)`},Ee=5,De=0,L=class extends i{static{I=this}constructor(...e){super(...e),this._toasts=[],this._timers=new Map}static{this.styles=[f,e`
|
|
1002
1002
|
:host {
|
|
1003
1003
|
position: fixed;
|
|
1004
1004
|
bottom: var(--ic-space-lg);
|
|
@@ -1085,9 +1085,9 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
1085
1085
|
.toast__close:hover {
|
|
1086
1086
|
color: var(--ic-text);
|
|
1087
1087
|
}
|
|
1088
|
-
`]}static{this._instance=null}connectedCallback(){super.connectedCallback(),
|
|
1088
|
+
`]}static{this._instance=null}connectedCallback(){super.connectedCallback(),I._instance=this,this._onDocumentToast=this._onDocumentToast.bind(this),document.addEventListener(`ic-toast`,this._onDocumentToast)}disconnectedCallback(){super.disconnectedCallback(),I._instance===this&&(I._instance=null),document.removeEventListener(`ic-toast`,this._onDocumentToast);for(let e of this._timers.values())u(e);this._timers.clear()}static show(e,t=`info`,n=4e3){I._instance&&I._instance._addToast(e,t,n)}_onDocumentToast(e){let{message:t,variant:n=`info`,duration:r=4e3}=e.detail;this._addToast(t,n,r)}_addToast(e,t,n){let i=++De,a={id:i,message:e,variant:t,duration:n},o=[...this._toasts,a];for(;o.length>Ee;){let e=o[0];this._clearTimer(e.id),o=o.slice(1)}this._toasts=o;let s=r(()=>{this._removeToast(i)},n);this._timers.set(i,s)}_removeToast(e){this._clearTimer(e),this._toasts=this._toasts.filter(t=>t.id!==e)}_clearTimer(e){let t=this._timers.get(e);t!==void 0&&(u(t),this._timers.delete(e))}render(){return g`
|
|
1089
1089
|
<div role="alert" aria-live="polite">
|
|
1090
|
-
${this._toasts.map(e=>{let t=
|
|
1090
|
+
${this._toasts.map(e=>{let t=Te[e.variant]??Te.info;return g`
|
|
1091
1091
|
<div class="toast" data-variant=${e.variant}>
|
|
1092
1092
|
<div class="toast__border" style="background: ${t}"></div>
|
|
1093
1093
|
<span class="toast__message">${e.message}</span>
|
|
@@ -1099,7 +1099,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
1099
1099
|
</div>
|
|
1100
1100
|
`})}
|
|
1101
1101
|
</div>
|
|
1102
|
-
`}};p([d()],L.prototype,`_toasts`,void 0),L=
|
|
1102
|
+
`}};p([d()],L.prototype,`_toasts`,void 0),L=I=p([a(`ic-toast`)],L);var Oe=class{constructor(e,t,n){this._docHandlers=[],this._host=e,this._events=n,this._host.addController(this)}hostConnected(){for(let[e,t]of Object.entries(this._events)){let n=e=>{let n=e.detail;t(n)};document.addEventListener(e,n),this._docHandlers.push({type:e,handler:n})}}hostDisconnected(){for(let{type:e,handler:t}of this._docHandlers)document.removeEventListener(e,t);this._docHandlers.length=0}},R=class extends i{constructor(...e){super(...e),this.data=[],this.width=80,this.height=24,this.color=`var(--ic-accent)`}static{this.styles=[f,e`
|
|
1103
1103
|
:host {
|
|
1104
1104
|
display: inline-block;
|
|
1105
1105
|
}
|
|
@@ -1657,7 +1657,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
1657
1657
|
>
|
|
1658
1658
|
${h`<path d=${t} />`}
|
|
1659
1659
|
</svg>
|
|
1660
|
-
`}};p([c()],W.prototype,`platform`,void 0),p([c()],W.prototype,`size`,void 0),W=p([a(`ic-platform-icon`)],W);var G=class extends i{constructor(...e){super(...e),this.channelType=``,this.name=``,this.status=`disconnected`,this.enabled=!1,this.uptime=0,this.channelId=``}static{this.styles=[f,l,e`
|
|
1660
|
+
`}};p([c()],W.prototype,`platform`,void 0),p([c()],W.prototype,`size`,void 0),W=p([a(`ic-platform-icon`)],W),Object.keys(Fe);var G=class extends i{constructor(...e){super(...e),this.channelType=``,this.name=``,this.status=`disconnected`,this.enabled=!1,this.uptime=0,this.channelId=``}static{this.styles=[f,l,e`
|
|
1661
1661
|
:host {
|
|
1662
1662
|
display: inline-block;
|
|
1663
1663
|
}
|
|
@@ -2541,7 +2541,7 @@ import{S as e,_ as t,a as n,d as r,g as i,h as a,i as o,l as s,m as c,n as l,o a
|
|
|
2541
2541
|
></ic-activity-feed>
|
|
2542
2542
|
</div>
|
|
2543
2543
|
</div>
|
|
2544
|
-
`}};p([c({attribute:!1})],X.prototype,`apiClient`,void 0),p([c({attribute:!1})],X.prototype,`rpcClient`,void 0),p([c({attribute:!1})],X.prototype,`eventDispatcher`,void 0),p([d()],X.prototype,`_loadState`,void 0),p([d()],X.prototype,`_error`,void 0),p([d()],X.prototype,`_agents`,void 0),p([d()],X.prototype,`_channels`,void 0),p([d()],X.prototype,`_activity`,void 0),p([d()],X.prototype,`_systemHealth`,void 0),p([d()],X.prototype,`_deliveryStats`,void 0),p([d()],X.prototype,`_messagesToday`,void 0),p([d()],X.prototype,`_tokenUsageToday`,void 0),p([d()],X.prototype,`_sessionCount`,void 0),p([d()],X.prototype,`_errorCount`,void 0),p([d()],X.prototype,`_totalCost`,void 0),p([d()],X.prototype,`_prevMessages`,void 0),p([d()],X.prototype,`_prevTokens`,void 0),p([d()],X.prototype,`_prevCost`,void 0),p([d()],X.prototype,`_mcpStatus`,void 0),p([d()],X.prototype,`_contextSummary`,void 0),p([d()],X.prototype,`_tokenSparklineData`,void 0),p([d()],X.prototype,`_costSparklineData`,void 0),p([d()],X.prototype,`_agentBilling`,void 0),p([d()],X.prototype,`_rpcStatus`,void 0),X=p([a(`ic-dashboard`)],X);var Je=`modulepreload`,Ye=function(e){return`/app/`+e},Xe={},Z=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Ye(t,n),t in Xe)return;Xe[t]=!0;let r=t.endsWith(`.css`)
|
|
2544
|
+
`}};p([c({attribute:!1})],X.prototype,`apiClient`,void 0),p([c({attribute:!1})],X.prototype,`rpcClient`,void 0),p([c({attribute:!1})],X.prototype,`eventDispatcher`,void 0),p([d()],X.prototype,`_loadState`,void 0),p([d()],X.prototype,`_error`,void 0),p([d()],X.prototype,`_agents`,void 0),p([d()],X.prototype,`_channels`,void 0),p([d()],X.prototype,`_activity`,void 0),p([d()],X.prototype,`_systemHealth`,void 0),p([d()],X.prototype,`_deliveryStats`,void 0),p([d()],X.prototype,`_messagesToday`,void 0),p([d()],X.prototype,`_tokenUsageToday`,void 0),p([d()],X.prototype,`_sessionCount`,void 0),p([d()],X.prototype,`_errorCount`,void 0),p([d()],X.prototype,`_totalCost`,void 0),p([d()],X.prototype,`_prevMessages`,void 0),p([d()],X.prototype,`_prevTokens`,void 0),p([d()],X.prototype,`_prevCost`,void 0),p([d()],X.prototype,`_mcpStatus`,void 0),p([d()],X.prototype,`_contextSummary`,void 0),p([d()],X.prototype,`_tokenSparklineData`,void 0),p([d()],X.prototype,`_costSparklineData`,void 0),p([d()],X.prototype,`_agentBilling`,void 0),p([d()],X.prototype,`_rpcStatus`,void 0),X=p([a(`ic-dashboard`)],X);var Je=`modulepreload`,Ye=function(e){return`/app/`+e},Xe={},Z=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=Ye(t,n),t=s(t),t in Xe)return;Xe[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Je,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Q={"ic-chat-console":()=>Z(()=>import(`./chat-console-C_EZsEon.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),"ic-memory-inspector":()=>Z(()=>import(`./memory-inspector-CdE2cWRI.js`),__vite__mapDeps([11,1,2,12,3,13,4,14])),"ic-agent-list":()=>Z(()=>import(`./agent-list-B3PEW7Eu.js`),__vite__mapDeps([15,1,2,12,13,4,5])),"ic-agent-detail":()=>Z(()=>import(`./agent-detail-lQF_QdY3.js`),__vite__mapDeps([16,1,17,2,12,3])),"ic-agent-editor":()=>Z(()=>import(`./agent-editor-t3rxtj2c.js`),__vite__mapDeps([18,1,17,2,19])),"ic-workspace-manager":()=>Z(()=>import(`./workspace-manager-QmBrvxyy.js`),__vite__mapDeps([20,1,17,2,12,3,5])),"ic-skills-view":()=>Z(()=>import(`./skills-DP1dLFcB.js`),__vite__mapDeps([21,1,2,12,4,5,22])),"ic-mcp-management":()=>Z(()=>import(`./mcp-management-CON6d_R1.js`),__vite__mapDeps([23,1,2,12,3,5])),"ic-models-view":()=>Z(()=>import(`./models-BpdoS8xA.js`),__vite__mapDeps([24,1,2,4,5,22,25])),"ic-channel-list":()=>Z(()=>import(`./channel-list-DYB8MGjC.js`),__vite__mapDeps([26,1,12,5])),"ic-channel-detail":()=>Z(()=>import(`./channel-detail-BqazWug8.js`),__vite__mapDeps([27,1,17,2,3,5,22,25])),"ic-message-center":()=>Z(()=>import(`./message-center-BggZE_We.js`),__vite__mapDeps([28,1,17,12,3,5])),"ic-scheduler-view":()=>Z(()=>import(`./scheduler-Drjol0QC.js`),__vite__mapDeps([29,1,2,3,5,22])),"ic-session-list-view":()=>Z(()=>import(`./session-list-BGVUpP_a.js`),__vite__mapDeps([30,1,2,12,3,13,4,5,6])),"ic-session-detail":()=>Z(()=>import(`./session-detail-Cv3O0UDP.js`),__vite__mapDeps([31,1,17,2,12,3,5,6,7,8,9,10,32])),"ic-observe-dashboard":()=>Z(()=>import(`./observe-view-D1ajhutj.js`),__vite__mapDeps([33,1,34,2,3,5,22,35])),"ic-context-engine-view":()=>Z(()=>import(`./context-engine-0Sl4qfpl.js`),__vite__mapDeps([36,1,3,5,10,32])),"ic-billing-view":()=>Z(()=>import(`./billing-view-C4UJZTvI.js`),__vite__mapDeps([37,1,5,38])),"ic-delivery-view":()=>Z(()=>import(`./delivery-view-QQ-LYwDU.js`),__vite__mapDeps([39,1,3,5,38,14,35,2])),"ic-diagnostics-view":()=>Z(()=>import(`./diagnostics-view-DjMOkstH.js`),__vite__mapDeps([40,1,34,2,3,5,38])),"ic-cache-health-view":()=>Z(()=>import(`./cache-health-CTOg1ZYH.js`),__vite__mapDeps([41,1,2,13,5])),"ic-spend-governance-view":()=>Z(()=>import(`./spend-governance-D-IBKKqz.js`),__vite__mapDeps([42,1,2,13,5])),"ic-incident-view":()=>Z(()=>import(`./incident-view-C9r6FvdE.js`),__vite__mapDeps([43,1,2,13,5])),"ic-subagents-view":()=>Z(()=>import(`./subagents-D0_m-5Pa.js`),__vite__mapDeps([44,1,2,12,3,5])),"ic-security-view":()=>Z(()=>import(`./security-DvcAVz_Q.js`),__vite__mapDeps([45,1,2,3,19,13,5,22,25,46])),"ic-config-editor":()=>Z(()=>import(`./config-editor-5rFdpiyn.js`),__vite__mapDeps([47,1,2,12,3,19,5,22,46])),"ic-setup-wizard":()=>Z(()=>import(`./setup-wizard-DZsr49mN.js`),__vite__mapDeps([48,1])),"ic-pipeline-list":()=>Z(()=>import(`./pipeline-list-DYdQxTk4.js`),__vite__mapDeps([49,1,17,12,5,50])),"ic-pipeline-builder":()=>Z(()=>import(`./pipeline-builder-DwLB9aCL.js`),__vite__mapDeps([51,1,17,12,52,9,50])),"ic-pipeline-monitor":()=>Z(()=>import(`./pipeline-monitor-Q48nN7ZK.js`),__vite__mapDeps([53,1,17,12,52,9])),"ic-pipeline-history":()=>Z(()=>import(`./pipeline-history-DVSVvho7.js`),__vite__mapDeps([54,1,17,12,5])),"ic-pipeline-history-detail":()=>Z(()=>import(`./pipeline-history-detail-C3e5mGIt.js`),__vite__mapDeps([55,1,17,12,8,9])),"ic-context-dag-browser":()=>Z(()=>import(`./context-dag-browser-8RP0Dm9d.js`),__vite__mapDeps([56,1,2,3,4,5,14])),"ic-media-test-view":()=>Z(()=>import(`./media-test-BOrE2MrP.js`),__vite__mapDeps([57,1,5,22])),"ic-media-config-view":()=>Z(()=>import(`./media-config-DNAN4cgu.js`),__vite__mapDeps([58,1]))},$=class extends i{constructor(...e){super(...e),this._authenticated=!1,this._authError=``,this._token=``,this._currentView=`ic-dashboard`,this._currentRoute=`dashboard`,this._routeParams={},this._routeQuery={},this._connectionStatus=`disconnected`,this._pendingApprovals=0,this._errorCount=0,this._agentCount=0,this._channelCount=0,this._sessionCount=0,this._sidebarOpen=!1,this._viewLoading=!1,this._commandPaletteOpen=!1,this._shortcutsHelpOpen=!1,this._gotoWaiting=!1,this._agentList=[],this._sessionList=[],this._loadedViews=new Set,this._apiClient=null,this._router=null,this._rpcClient=null,this._globalState=null,this._eventDispatcher=null,this._stateUnsubscribe=null,this._approvalUnsub=null,this._approvalResolvedUnsub=null,this._errorUnsub=null,this._pollingController=null,this._appController=null}static{this.styles=e`
|
|
2545
2545
|
:host {
|
|
2546
2546
|
display: block;
|
|
2547
2547
|
min-height: 100vh;
|